/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
|
D | LockTaskControllerTest.java | 32 import static android.os.Process.SYSTEM_UID; 220 mLockTaskController.startLockTaskMode(tr, true, SYSTEM_UID); in testStartLockTaskMode_pinnedBySystem() 327 mLockTaskController.stopLockTaskMode(tr, true, SYSTEM_UID); in testStopLockTaskMode_systemCaller() 379 mLockTaskController.startLockTaskMode(tr, true, SYSTEM_UID); in testStopLockTaskMode_pinned() 388 mLockTaskController.stopLockTaskMode(null, true, SYSTEM_UID); in testStopLockTaskMode_pinned()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 336 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 340 areRestrictedWithExemption(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 349 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 353 areRestrictedWithExemption(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 361 assertTrue(instance.isUidActive(Process.SYSTEM_UID)); in testAll() 367 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 375 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 383 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 389 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() 406 areRestricted(instance, Process.SYSTEM_UID, PACKAGE_SYSTEM, NONE); in testAll() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 32 import static android.os.Process.SYSTEM_UID; 258 assertTrue(hasBgPermission(PARTITION_SYSTEM, VERSION_P, SYSTEM_UID)); in testHasUseBackgroundNetworksPermissionSystemUid() 259 assertTrue(hasBgPermission(PARTITION_SYSTEM, VERSION_P, SYSTEM_UID, CHANGE_WIFI_STATE)); in testHasUseBackgroundNetworksPermissionSystemUid() 260 assertTrue(hasBgPermission(PARTITION_SYSTEM, VERSION_P, SYSTEM_UID, in testHasUseBackgroundNetworksPermissionSystemUid() 264 assertFalse(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID)); in testHasUseBackgroundNetworksPermissionSystemUid() 265 assertFalse(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CHANGE_WIFI_STATE)); in testHasUseBackgroundNetworksPermissionSystemUid() 266 assertTrue(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, in testHasUseBackgroundNetworksPermissionSystemUid() 361 addPackageForUsers(new int[]{MOCK_USER1}, SYSTEM_PACKAGE2, SYSTEM_UID); in testUserAndPackageAddRemove() 362 mNetdMonitor.expectPermission(NETWORK, new int[]{MOCK_USER1}, new int[]{SYSTEM_UID}); in testUserAndPackageAddRemove() 365 addPackageForUsers(new int[]{MOCK_USER1}, SYSTEM_PACKAGE1, SYSTEM_UID); in testUserAndPackageAddRemove() [all …]
|
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/ |
D | PacService.java | 96 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in setPacFile() 105 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in startPacSystem() 114 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in stopPacSystem()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | ProcessTest.java | 28 assertEquals(android.os.Process.SYSTEM_UID, Process.getUidForName("system")); in testProcessGetUidFromName() 31 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 | 117 || UserHandle.getAppId(callingUid) == android.os.Process.SYSTEM_UID) { in checkAccessLevel() 155 return uid == android.os.Process.SYSTEM_UID || uid == UID_REMOVED in isAccessibleToUser() 161 return uid == android.os.Process.SYSTEM_UID || uid == UID_REMOVED in isAccessibleToUser()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 141 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_thresholdTooLow_setsDefaultThreshold() 154 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_highThreshold_accepted() 166 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_twoRequests_twoIds() 172 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_twoRequests_twoIds() 192 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUnregister_knownRequest_releasesCaller() 198 mStatsObservers.unregister(request, Process.SYSTEM_UID); in testUnregister_knownRequest_releasesCaller() 237 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_initialSample_doesNotNotify() 262 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_belowThreshold_doesNotNotify() 294 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_deviceAccess_notifies()
|
/frameworks/base/core/java/android/net/ |
D | TrafficStats.java | 766 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidTxBytes() 799 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidRxBytes() 832 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidTxPackets() 865 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidRxPackets()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 82 public static final int SYSTEM_UID = android.os.Process.SYSTEM_UID; field in DpmMockContext 105 callingUid = SYSTEM_UID; in clearCallingIdentity() 143 return callingUid == SYSTEM_UID; in isCallerUidMyUid() 238 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission()
|
D | DevicePolicyManagerTest.java | 273 UserHandle.getUid(DpmMockContext.CALLER_USER_HANDLE, DpmMockContext.SYSTEM_UID); in setAsProfileOwner() 778 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_sendToProfiles() 781 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetActivePasswordState_sendToProfiles() 820 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_notSentToParent() 823 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetActivePasswordState_notSentToParent() 930 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi() 987 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi() 1192 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetProfileOwner() 2071 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetGetSupportText() 2106 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetGetSupportText() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 676 && callingUid != Process.SYSTEM_UID) { in isSettingRestrictedForUser() 687 && callingUid != Process.SYSTEM_UID) { in isSettingRestrictedForUser() 728 if (appId == Process.SYSTEM_UID || appId == Process.ROOT_UID) { in isSettingRestrictedForUser() 769 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 780 } else if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 787 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 794 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 802 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser()
|
D | PackageUsage.java | 20 import static android.os.Process.SYSTEM_UID; 62 0640, SYSTEM_UID, PACKAGE_INFO_GID); in writeInternal() local
|
/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/usb/java/com/android/server/usb/ |
D | UsbPermissionManager.java | 136 if (uid == Process.SYSTEM_UID || mDisablePermissionDialogs) { in hasPermission() 156 if (uid == Process.SYSTEM_UID || mDisablePermissionDialogs) { in hasPermission()
|
D | UsbSerialReader.java | 75 if (uid != Process.SYSTEM_UID) { in getSerial()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkListStoreData.java | 268 configuration.creatorUid = Process.SYSTEM_UID; in parseNetwork() 270 mContext.getPackageManager().getNameForUid(Process.SYSTEM_UID); in parseNetwork()
|
/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 | 103 Process.SYSTEM_UID, in testGetAppList_shouldNotShowAndroidOS() 114 Process.SYSTEM_UID, RecentLocationApps.ANDROID_SYSTEM_PACKAGE_NAME); in testGetAppList_shouldNotShowAndroidOS()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 29 import static android.os.Process.SYSTEM_UID; 380 AppOpsManager.OP_NONE, null, true, false, MY_PID, SYSTEM_UID, in finishUserBoot() 481 null, null, AppOpsManager.OP_NONE, null, false, false, MY_PID, SYSTEM_UID, in finishUserUnlocked() 495 null, false, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), in finishUserUnlocked() 554 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), in finishUserUnlockedCompleted() 592 AppOpsManager.OP_NONE, null, true, false, MY_PID, SYSTEM_UID, in finishUserUnlockedCompleted() 723 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 763 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 912 null, false, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 1183 null, false, false, MY_PID, SYSTEM_UID, callingUid, callingPid, userId); [all …]
|
/frameworks/base/core/java/android/accounts/ |
D | ChooseAccountActivity.java | 84 if (UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate() 90 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) && in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RingtonePlayer.java | 177 if (Binder.getCallingUid() != Process.SYSTEM_UID) { 189 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceProvider.java | 392 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in call() 398 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in call() 409 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in call()
|
/frameworks/base/core/java/android/net/metrics/ |
D | WakeupStats.java | 68 case Process.SYSTEM_UID: in countEvent()
|