diff options
| author | Alex Johnston <acjohnston@google.com> | 2020-09-22 11:18:38 +0100 |
|---|---|---|
| committer | Alex Johnston <acjohnston@google.com> | 2020-09-22 18:55:24 +0100 |
| commit | de5182d214002cf24d539592f00a351504a9c894 (patch) | |
| tree | da7145b1c139f3d5f44fbfb2f9059597071e43fa /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
| parent | a67c5344ac3033c7f72e354919c16bbe46ff5f77 (diff) | |
Refactor caller identity checks
* getCallerIdentity(who) and getCallerIdentity(packageName)
can take in null, where getCallerIdentity() will be called.
* If componentName is null, isDeviceOwner(caller),
isProfileOwner(caller) and isProfileOwnerOnOrgOwnedDevice(caller)
cannot be called.
* Add missing null componentName checks
Bug: 168510294
Bug: 169029194
Bug: 168594327
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testScreenCaptureDisabled
atest com.android.cts.devicepolicy.ManagedProfileWipeTest#testWipeDataWithReason
Change-Id: I1721ec3c1d18fb5be55cbec955d39686bbb9d268
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions
