/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | KeyguardDisableHandlerTest.java | 21 import static android.os.Process.SYSTEM_UID; 122 mKeyguardDisable.disableKeyguard(createLockTaskToken(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_LockTask_disables() local 129 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_genericToken_fails() 165 mKeyguardDisable.disableKeyguard(createLockTaskToken(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_LockTask_secure_disables() local 172 mKeyguardDisable.disableKeyguard(createLockTaskToken(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_LockTask_requiresDpm_staysEnabled() local 185 mKeyguardDisable.disableKeyguard(createLockTaskToken(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_LockTask_thenRequiresDpm_reenables() local 192 mKeyguardDisable.disableKeyguard(createLockTaskToken(), "Tag", SYSTEM_UID, USER_SYSTEM); in user_switch_to_enabledUser_applies_enabled() local 201 SYSTEM_UID, 1); in user_switch_to_disabledUser_applies_disabled() local
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 348 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 353 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 358 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 368 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 373 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 378 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 386 assertTrue(instance.isUidActive(Process.SYSTEM_UID)); in testAll() 393 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 398 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 410 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/ |
D | LegacyPermissionManagerServiceTest.java | 46 private static final int SYSTEM_UID = 1000; field in LegacyPermissionManagerServiceTest 85 APP_PID, SYSTEM_UID)); in checkDeviceIdentifierAccess_callingAppUidMismatch_throwsException() 116 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID); in checkDeviceIdentifierAccess_systemUid_returnsGranted() 119 SYSTEM_UID); in checkDeviceIdentifierAccess_systemUid_returnsGranted() 128 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID); in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted() 143 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID); in checkDeviceIdentifierAccess_hasAppOp_returnsGranted() 159 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID); in checkDeviceIdentifierAccess_hasDpmAccess_returnsGranted() 179 SYSTEM_UID)); in checkPhoneNumberAccess_callingAppUidMismatch_throwsException() 222 setupCheckPhoneNumberAccessTest(SYSTEM_PID, SYSTEM_UID); in checkPhoneNumberAccess_hasPrivilegedPermission_returnsGranted() 239 setupCheckPhoneNumberAccessTest(SYSTEM_PID, SYSTEM_UID); in checkPhoneNumberAccess_targetPreRWithReadPhoneState_returnsGranted() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | SystemServicePowerCalculatorTest.java | 117 assertThat(mStatsRule.getUidBatteryConsumer(Process.SYSTEM_UID) in testPowerProfileBasedModel() 149 assertThat(mStatsRule.getUidBatteryConsumer(Process.SYSTEM_UID) in testMeasuredEnergyBasedModel() 173 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{60_000_000, 80_000_000}); in prepareBatteryStats() 182 callback.onUidCpuTime(Process.SYSTEM_UID, 10000L); in prepareBatteryStats() 191 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{50_000, 80_000}); in prepareBatteryStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SystemServicePowerCalculator.java | 67 final BatteryStats.Uid systemUid = batteryStats.getUidStats().get(Process.SYSTEM_UID); in calculate() 86 Process.SYSTEM_UID); in calculate() 123 final BatteryStats.Uid systemUid = batteryStats.getUidStats().get(Process.SYSTEM_UID); in calculate() 141 if (app.getUid() == Process.SYSTEM_UID) { in calculate()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | ProcessTest.java | 27 assertEquals(android.os.Process.SYSTEM_UID, Process.getUidForName("system")); in testProcessGetUidFromName() 30 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); in testProcessGetUidFromName()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 125 || appId == Process.SYSTEM_UID || appId == Process.NETWORK_STACK_UID) { in checkAccessLevel() 164 return uid == android.os.Process.SYSTEM_UID || uid == UID_REMOVED in isAccessibleToUser() 170 return uid == android.os.Process.SYSTEM_UID || uid == UID_REMOVED in isAccessibleToUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 84 public static final int SYSTEM_UID = android.os.Process.SYSTEM_UID; field in DpmMockContext 107 callingUid = SYSTEM_UID; in clearCallingIdentity() 145 return callingUid == SYSTEM_UID; in isCallerUidMyUid() 255 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission() 503 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in checkPermission()
|
D | DevicePolicyManagerTest.java | 355 UserHandle.getUid(CALLER_USER_HANDLE, DpmMockContext.SYSTEM_UID); in setAsProfileOwner() 953 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_sendToProfiles() 955 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetActivePasswordState_sendToProfiles() 989 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_notSentToParent() 992 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetActivePasswordState_notSentToParent() 1178 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi() 1235 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi() 1526 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetProfileOwner() 2265 UserHandle.getUid(CALLER_USER_HANDLE, DpmMockContext.SYSTEM_UID); in testSetUserRestriction_asPoOfOrgOwnedDevice() 2585 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetKeyguardDisabledFeaturesWithPOOfOrganizationOwnedDevice() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationEnforcer.java | 53 case Process.SYSTEM_UID: in assertInternal() 69 case Process.SYSTEM_UID: in assertApprovedQuerent() 94 case Process.SYSTEM_UID: in assertApprovedVerifier()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 24 import static android.os.Process.SYSTEM_UID; 395 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeLogPermission() 405 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeReadPermission() 416 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeOverridePermission() 427 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeOverrideOverridablePermission()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | VibratorManagerServicePermissionTest.java | 127 mVibratorService.vibrate(Process.SYSTEM_UID, "android", EFFECT, ATTRS, "testVibrate", in testVibrateWithVibratePermissionAndDifferentUidsFails() 136 mVibratorService.vibrate(Process.SYSTEM_UID, "android", EFFECT, ATTRS, "testVibrate", in testVibrateWithAllPermissionsAndDifferentUidsIsAllowed()
|
/frameworks/base/services/tests/inprocesstests/src/com/android/frameworks/inprocesstests/ |
D | InstrumentSystemServerTest.java | 38 assertThat(Process.myUid()).isEqualTo(Process.SYSTEM_UID); in testCodeIsRunningInSystemServer()
|
/frameworks/base/services/core/java/com/android/server/telecom/ |
D | InternalServiceRepository.java | 60 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in ensureSystemProcess()
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | ActivityRecognitionProviderClient.java | 44 if (callingUid != Process.SYSTEM_UID) {
|
D | ActivityRecognitionProviderWatcher.java | 60 if (callingUid != Process.SYSTEM_UID) {
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageUsage.java | 20 import static android.os.Process.SYSTEM_UID; 63 0640, SYSTEM_UID, PACKAGE_INFO_GID); in writeInternal() local
|
D | UserRestrictionsUtils.java | 687 && callingUid != Process.SYSTEM_UID) { in isSettingRestrictedForUser() 726 if (appId == Process.SYSTEM_UID || appId == Process.ROOT_UID) { in isSettingRestrictedForUser() 760 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 768 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 775 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 783 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilitySecurityPolicy.java | 196 if (appId == Process.SYSTEM_UID) { in resolveValidReportedPackageLocked() 241 if (UserHandle.getAppId(targetUid) == Process.SYSTEM_UID) { in computeValidReportedPackages() 400 || callingUid == Process.SYSTEM_UID in resolveCallingUserIdEnforcingPermissionsLocked() 458 if (Binder.getCallingUid() == Process.SYSTEM_UID) { in isRetrievalAllowingWindowLocked()
|
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/ |
D | PacService.java | 86 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in setPacFile()
|
/frameworks/base/core/java/android/accounts/ |
D | ChooseAccountActivity.java | 77 if (UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate() 83 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/ |
D | RecentLocationAccessesTest.java | 106 Process.SYSTEM_UID, in testGetAppList_shouldNotShowAndroidOS() 116 Process.SYSTEM_UID, RecentLocationAccesses.ANDROID_SYSTEM_PACKAGE_NAME); in testGetAppList_shouldNotShowAndroidOS()
|
D | RecentLocationAppsTest.java | 104 Process.SYSTEM_UID, in testGetAppList_shouldNotShowAndroidOS() 115 Process.SYSTEM_UID, RecentLocationApps.ANDROID_SYSTEM_PACKAGE_NAME); in testGetAppList_shouldNotShowAndroidOS()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 34 import static android.os.Process.SYSTEM_UID; 560 false, MY_PID, SYSTEM_UID, in sendLockedBootCompletedBroadcast() 646 null, null, AppOpsManager.OP_NONE, null, false, false, MY_PID, SYSTEM_UID, in finishUserUnlocked() 671 null, false, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), in finishUserUnlocked() 736 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), in finishUserUnlockedCompleted() 788 true, false, MY_PID, SYSTEM_UID, callingUid, callingPid, userId); in finishUserUnlockedCompleted() 997 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 1040 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 1212 null, false, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 1574 null, false, false, MY_PID, SYSTEM_UID, callingUid, callingPid, userId); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RingtonePlayer.java | 183 if (Binder.getCallingUid() != Process.SYSTEM_UID) { 195 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
|