summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAlex Johnston <acjohnston@google.com>2019-11-26 17:00:10 +0000
committerAlex Johnston <acjohnston@google.com>2019-12-16 16:39:37 +0000
commit51419384905c26e656270141abcd21347e7895f4 (patch)
treea3588f16d6edfdbc7b43a1f01addec7168c779d8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf707567c6bb154aabfd03dfbc7bd5ef3af45cb58 (diff)
Update user restriction APIs to be called on parent instance
In the new COPE mode, some user restrictions should be applied globally when called by the Work Profile PO. Previously, the APIs addUserRestriction, clearUserRestriction and getUserRestrictions did not support explicitly querying the parent profile. This CL allows the WP DPC to now call these methods, allowing the WP DPC to apply some restrictions globally. This CL also introduces the enforcingUserId parameter to setDevicePolicyUserRestriction. This new paramter is used as the key of mDevicePolicyGlobalUserRestrictions and mDevicePolicyLocalUserRestrictions. Bug: 138709470 Test: Manual testing with testdpc atest com.android.server.devicepolicy.DevicePolicyManagerTest atest com.android.cts.devicepolicy.UserRestrictionsTest atest com.android.server.pm.UserRestrictionsUtilsTest atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testUserRestrictionsSetOnParentAreNotPersisted atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testDevicePolicyManagerParentSupport Change-Id: Idfafd100bfcb250998a8628aba4cc378f1fc2c84
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions