Home
last modified time | relevance | path

Searched refs:SYSTEM_UID (Results 1 – 25 of 158) sorted by relevance

1234567

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DKeyguardDisableHandlerTest.java21 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
DLockTaskControllerTest.java32 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/
DAppStateTrackerTest.java336 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/
DPermissionMonitorTest.java32 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/
DPacService.java96 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/
DProcessTest.java28 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/
DNetworkStatsAccess.java117 || 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/
DNetworkStatsObserversTest.java141 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/
DTrafficStats.java766 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/
DDpmMockContext.java82 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()
DDevicePolicyManagerTest.java273 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/
DUserRestrictionsUtils.java676 && 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()
DPackageUsage.java20 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/
DActivityRecognitionProviderClient.java44 if (callingUid != Process.SYSTEM_UID) {
DActivityRecognitionProviderWatcher.java60 if (callingUid != Process.SYSTEM_UID) {
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPermissionManager.java136 if (uid == Process.SYSTEM_UID || mDisablePermissionDialogs) { in hasPermission()
156 if (uid == Process.SYSTEM_UID || mDisablePermissionDialogs) { in hasPermission()
DUsbSerialReader.java75 if (uid != Process.SYSTEM_UID) { in getSerial()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkListStoreData.java268 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/
DRecentLocationAccessesTest.java106 Process.SYSTEM_UID, in testGetAppList_shouldNotShowAndroidOS()
116 Process.SYSTEM_UID, RecentLocationAccesses.ANDROID_SYSTEM_PACKAGE_NAME); in testGetAppList_shouldNotShowAndroidOS()
DRecentLocationAppsTest.java103 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/
DUserController.java29 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/
DChooseAccountActivity.java84 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/
DRingtonePlayer.java177 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
189 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java392 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/
DWakeupStats.java68 case Process.SYSTEM_UID: in countEvent()

1234567