diff options
author | Alex Johnston <acjohnston@google.com> | 2020-08-04 14:39:10 +0100 |
---|---|---|
committer | Alex Johnston <acjohnston@google.com> | 2020-08-13 17:30:10 +0100 |
commit | af1c3cb4403eb10348e91934b26e4cd09bf655f0 (patch) | |
tree | 8175580b5c9134f896988da202efc6ad5e15982f /rs/java/android/renderscript/ProgramStore.java | |
parent | 71008157a7a16a740130c5ec37be365cc0feb4af (diff) |
Add precondition checks
* Add precondition checks to check the call authorization
and the calling user.
* Add CallerIdentity object and helper method to create
and return a CallerIdentity object.
* Add isDeviceOwner check which takes in a CallingIdentity
* Update setLocationEnabled to use new precondition check
Bug: 162825394
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetLocationEnabled
Change-Id: I6054620aab661f302ebe0cb8c13bf906aad3cb68
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions