diff options
author | Eran Messeri <eranm@google.com> | 2020-10-20 14:55:14 +0100 |
---|---|---|
committer | Eran Messeri <eranm@google.com> | 2020-10-23 16:33:24 +0100 |
commit | 7d0becbcca8e3008b720975f62fad6012232302d (patch) | |
tree | 5783bb4677445d5c3f9cb1f3e2552426c498455b /rs/java/android/renderscript/ProgramStore.java | |
parent | 30ae7a4351fed91b2f88960adbf441ca77b5aaa0 (diff) |
Remove DO/PO "policy" from DeviceAdminInfo
Remove the USES_POLICY_DEVICE_OWNER and USES_POLICY_PROFILE_OWNER from
DeviceAdminInfo, and all the code referring to these constants.
This is to prevent callers calling getActiveAdminXXX variants which
take in the DO/PO constant, leading them to use getDeviceOwnerLocked,
getProfileOwnerLocked, etc.
The USES_POLICY_PROFILE_OWNER constant was particularly confusing because
it implied Device Owner was also acceptable for this "policy", which
was plain wrong in some cases.
Bug: 163028934
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest com.android.cts.devicepolicy.MixedDeviceOwnerTest com.android.cts.devicepolicy.MixedProfileOwnerTest
Change-Id: Ie78bb8a1948f29ac440f220e14f71b8a0f7f32e1
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions