Refactor all lock task related methods into a new class
This simplifies the way lock task mode is called by creating a class that is fully responsible for managing locked tasks. This enables unit testing and makes it easier to see where individual calls are coming from. Feeling is that there are some subtle bugs around synchronization and expectations on the locked task APIs. Also added unit tests for the new manager class. Test: bit FrameworksServicesTests:com.android.server.am.LockTaskManagerTest Test: go/wm-smoke Test: cts-tradefed run cts -m DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser Bug: 63909481 Change-Id: I3fa8606778fea5a801c21aebeb231db5a6bee47f
Loading
Please register or sign in to comment