summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2020-09-25 11:35:45 +0100
committerEran Messeri <eranm@google.com>2020-10-06 10:34:23 +0100
commit4634589e4135a0c9c97c103ef5b26d01b97b0e20 (patch)
treec5b7060cc5a311e9484623ebe04dd1d5ad48199c /rs/java/android/renderscript/ProgramStore.java
parentb522c02e47dc3b0e5d446609e5d90fb12157b268 (diff)
Refactoring: Use explicit methods for checking DO/PO
Do not use USES_POLICY_PROFILE_OWNER / USES_POLICY_DEVICE_OWNER. Instead, use explicit methods for checking if the caller is the Device Owner or Profile Owner. USES_POLICY_PROFILE_OWNER is confusing since internally in the DevicePolicyManagerService, it implied a Device Owner is also a Profile Owner, which is not always what the caller expected. This is the first phase of the refactoring, removing external calles' dependency on these constants. The next phase will remove them internally completely in favour of an implementation that accesses mOwners directly. There are no functional changes in this CL. Bug: 163028934 Test: atest FrameworksServicesTests:DevicePolicyManagerTest Change-Id: I57c8465d190a3b4b130d57fd622cc93eaeb9c717
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions