Home
last modified time | relevance | path

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

12345678

/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/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java31 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/
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/net/
DNetworkStatsObserversTest.java137 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/
DProcessTest.java27 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/
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/services/core/java/com/android/server/compat/
DPlatformCompat.java23 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/
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()
240 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()
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/
DUserRestrictionsUtils.java679 && 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()
DPackageUsage.java20 import static android.os.Process.SYSTEM_UID;
62 0640, SYSTEM_UID, PACKAGE_INFO_GID); in writeInternal() local
/frameworks/base/core/java/android/net/
DTrafficStats.java781 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/
DConnectionFailureNotifier.java117 mWifiConfigManager.addOrUpdateNetwork(mConfig, Process.SYSTEM_UID); in onClick()
126 Process.SYSTEM_UID); in onClick()
DNetworkListStoreData.java293 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/
DUsbPermissionManager.java136 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/
DActivityRecognitionProviderClient.java44 if (callingUid != Process.SYSTEM_UID) {
DActivityRecognitionProviderWatcher.java60 if (callingUid != Process.SYSTEM_UID) {
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java29 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/
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/packages/services/PacProcessor/src/com/android/pacprocessor/
DPacService.java80 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in setPacFile()
/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.java394 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()

12345678