commit | 2560f6f87202fdc0f9d389fbacd34e9cac93cd8d | [log] [tgz] |
---|---|---|
author | Pavel Grafov <pgrafov@google.com> | Tue Jun 12 14:00:23 2018 +0100 |
committer | Pavel Grafov <pgrafov@google.com> | Tue Jun 12 15:57:34 2018 +0100 |
tree | 60bd356d7caebecb4ed8eb090312a6129a049fcc | |
parent | 1a61e0ea1d13f622ca2787e3c1f38a6df0076c1b [diff] |
Only call getActiveAdminForCallerLocked when holding a lock + factored out all device-owner checking calls + some profile owner checks Fixes: 110040849 Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.DeviceOwnerTest#testSetTime Test: create a profile with TestDPS, it sets profile name. Change-Id: I5fec70505d089bd7dcea80eae3df9c0f2b7094dd