/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/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 31 import static android.os.Process.SYSTEM_UID; 253 assertTrue(hasRestrictedNetworkPermission(PARTITION_SYSTEM, VERSION_P, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid() 255 PARTITION_SYSTEM, VERSION_P, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid() 257 PARTITION_SYSTEM, VERSION_P, SYSTEM_UID, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasRestrictedNetworkPermissionSystemUid() 260 assertFalse(hasRestrictedNetworkPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid() 262 PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid() 264 PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasRestrictedNetworkPermissionSystemUid() 300 assertFalse(mPermissionMonitor.hasUseBackgroundNetworksPermission(SYSTEM_UID)); in testHasUseBackgroundNetworksPermission() 301 assertBackgroundPermission(false, "system1", SYSTEM_UID); in testHasUseBackgroundNetworksPermission() 302 assertBackgroundPermission(false, "system2", SYSTEM_UID, CONNECTIVITY_INTERNAL); in testHasUseBackgroundNetworksPermission() [all …]
|
/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/net/ |
D | NetworkStatsObserversTest.java | 137 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_thresholdTooLow_setsDefaultThreshold() 150 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_highThreshold_accepted() 162 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_twoRequests_twoIds() 168 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testRegister_twoRequests_twoIds() 188 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUnregister_knownRequest_releasesCaller() 194 mStatsObservers.unregister(request, Process.SYSTEM_UID); in testUnregister_knownRequest_releasesCaller() 233 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_initialSample_doesNotNotify() 257 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_belowThreshold_doesNotNotify() 287 Process.SYSTEM_UID, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_deviceAccess_notifies()
|
/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 | 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/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 23 import static android.os.Process.SYSTEM_UID; 334 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeLogPermission() 345 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeReadPermission() 356 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeOverridePermission()
|
/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() 240 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() 926 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi() 983 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi() 1219 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetProfileOwner() 2098 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetGetSupportText() 2133 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetGetSupportText() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 679 && callingUid != Process.SYSTEM_UID) { in isSettingRestrictedForUser() 690 && callingUid != Process.SYSTEM_UID) { in isSettingRestrictedForUser() 732 if (appId == Process.SYSTEM_UID || appId == Process.ROOT_UID) { in isSettingRestrictedForUser() 773 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 784 } else if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 791 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 798 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser() 806 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/core/java/android/net/ |
D | TrafficStats.java | 781 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidTxBytes() 814 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidRxBytes() 847 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidTxPackets() 880 if (callingUid == android.os.Process.SYSTEM_UID || callingUid == uid) { in getUidRxPackets()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ConnectionFailureNotifier.java | 117 mWifiConfigManager.addOrUpdateNetwork(mConfig, Process.SYSTEM_UID); in onClick() 126 Process.SYSTEM_UID); in onClick()
|
D | NetworkListStoreData.java | 293 configuration.creatorUid = Process.SYSTEM_UID; in parseNetwork() 295 mContext.getPackageManager().getNameForUid(Process.SYSTEM_UID); in parseNetwork()
|
/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()
|
/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/am/ |
D | UserController.java | 29 import static android.os.Process.SYSTEM_UID; 385 AppOpsManager.OP_NONE, null, true, false, MY_PID, SYSTEM_UID, in finishUserBoot() 488 null, null, AppOpsManager.OP_NONE, null, false, false, MY_PID, SYSTEM_UID, in finishUserUnlocked() 502 null, false, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), in finishUserUnlocked() 562 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), in finishUserUnlockedCompleted() 611 AppOpsManager.OP_NONE, null, true, false, MY_PID, SYSTEM_UID, in finishUserUnlockedCompleted() 742 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 783 null, true, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 934 null, false, false, MY_PID, SYSTEM_UID, Binder.getCallingUid(), 1214 null, false, false, MY_PID, SYSTEM_UID, callingUid, callingPid, userId); [all …]
|
/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/packages/services/PacProcessor/src/com/android/pacprocessor/ |
D | PacService.java | 80 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in setPacFile()
|
/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 | 394 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in call() 401 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in call() 413 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in call()
|