Home
last modified time | relevance | path

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

12345678910

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/
DLegacyPermissionManagerServiceTest.java48 private static final int SYSTEM_UID = 1000; field in LegacyPermissionManagerServiceTest
87 APP_PID, SYSTEM_UID)); in checkDeviceIdentifierAccess_callingAppUidMismatch_throwsException()
118 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID); in checkDeviceIdentifierAccess_systemUid_returnsGranted()
121 SYSTEM_UID); in checkDeviceIdentifierAccess_systemUid_returnsGranted()
130 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID, APP_UID); in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted()
145 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID, APP_UID); in checkDeviceIdentifierAccess_hasAppOp_returnsGranted()
161 setupCheckDeviceIdentifierAccessTest(SYSTEM_PID, SYSTEM_UID, APP_UID); in checkDeviceIdentifierAccess_hasDpmAccess_returnsGranted()
181 SYSTEM_UID)); in checkPhoneNumberAccess_callingAppUidMismatch_throwsException()
224 setupCheckPhoneNumberAccessTest(SYSTEM_PID, SYSTEM_UID); in checkPhoneNumberAccess_hasPrivilegedPermission_returnsGranted()
241 setupCheckPhoneNumberAccessTest(SYSTEM_PID, SYSTEM_UID, APP_UID); in checkPhoneNumberAccess_targetPreRWithReadPhoneState_returnsGranted()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java352 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
357 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
362 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
372 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
377 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
382 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
395 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
400 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
405 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
415 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll()
[all …]
/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
/frameworks/base/services/companion/java/com/android/server/companion/
DPermissionsUtils.java30 import static android.os.Process.SYSTEM_UID;
119 if (getCallingUid() == SYSTEM_UID) return; in enforceCallerIsSystemOrCanInteractWithUserId()
126 if (callingUid == SYSTEM_UID) return true; in checkCallerIsSystemOr()
137 if (callingUid == SYSTEM_UID) return; in enforceCallerIsSystemOr()
152 if (getCallingUid() == SYSTEM_UID) return true; in checkCallerCanManageCompanionDevice()
159 if (getCallingUid() == SYSTEM_UID) return; in enforceCallerCanManageCompanionDevice()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DSystemServicePowerCalculatorTest.java121 assertThat(mStatsRule.getUidBatteryConsumer(Process.SYSTEM_UID) in testPowerProfileBasedModel()
153 assertThat(mStatsRule.getUidBatteryConsumer(Process.SYSTEM_UID) in testMeasuredEnergyBasedModel()
179 callback.onUidCpuTime(Process.SYSTEM_UID, 5000L); in prepareBatteryStats()
192 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{60_000_000, 80_000_000}); in prepareBatteryStats()
201 callback.onUidCpuTime(Process.SYSTEM_UID, 15000L); in prepareBatteryStats()
210 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{50_000, 80_000}); in prepareBatteryStats()
221 callback.onUidCpuTime(Process.SYSTEM_UID, new long[]{20_000, 30_000, 40_000, 40_000}); in prepareBatteryStats()
/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/tests/servicestests/src/com/android/server/uri/
DUriGrantsMockContext.java138 eq(Process.SYSTEM_UID))) in UriGrantsMockContext()
144 eq(Process.SYSTEM_UID))) in UriGrantsMockContext()
150 eq(Process.SYSTEM_UID))) in UriGrantsMockContext()
156 eq(Process.SYSTEM_UID))) in UriGrantsMockContext()
162 eq(Process.SYSTEM_UID))) in UriGrantsMockContext()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java85 public static final int SYSTEM_UID = android.os.Process.SYSTEM_UID; field in DpmMockContext
108 callingUid = SYSTEM_UID; in clearCallingIdentity()
146 return callingUid == SYSTEM_UID; in isCallerUidMyUid()
262 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission()
521 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in checkPermission()
DDevicePolicyManagerTest.java400 UserHandle.getUid(CALLER_USER_HANDLE, DpmMockContext.SYSTEM_UID); in setAsProfileOwner()
996 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_sendToProfiles()
998 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetActivePasswordState_sendToProfiles()
1033 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_notSentToParent()
1036 mContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetActivePasswordState_notSentToParent()
1221 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi()
1278 mContext.binder.callingUid = Process.SYSTEM_UID; in checkGetDeviceOwnerInfoApi()
1564 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testSetProfileOwner()
1760 mServiceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in testCertificateDisclosure()
2273 UserHandle.getUid(CALLER_USER_HANDLE, DpmMockContext.SYSTEM_UID); in testSetUserRestriction_asPoOfOrgOwnedDevice()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationEnforcer.java53 case Process.SYSTEM_UID: in assertInternal()
69 case Process.SYSTEM_UID: in assertApprovedQuerent()
97 case Process.SYSTEM_UID: in assertApprovedVerifier()
/frameworks/base/services/core/java/com/android/server/compat/
DPlatformCompat.java24 import static android.os.Process.SYSTEM_UID;
419 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeLogPermission()
429 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeReadPermission()
440 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeOverridePermission()
451 if (Binder.getCallingUid() == SYSTEM_UID) { in checkCompatChangeOverrideOverridablePermission()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorManagerServicePermissionTest.java130 mVibratorService.vibrate(Process.SYSTEM_UID, DISPLAY_ID, "android", EFFECT, ATTRS, in testVibrateWithVibratePermissionAndDifferentUidsFails()
140 mVibratorService.vibrate(Process.SYSTEM_UID, DISPLAY_ID, "android", EFFECT, ATTRS, in testVibrateWithAllPermissionsAndDifferentUidsIsAllowed()
/frameworks/base/services/core/java/com/android/server/wm/
DBackgroundActivityStartController.java171 || callingAppId == Process.SYSTEM_UID in checkBackgroundActivityStart()
242 : (realCallingAppId == Process.SYSTEM_UID) in checkBackgroundActivityStart()
464 && (callingUid == Process.SYSTEM_UID || realCallingUid == Process.SYSTEM_UID)) { in statsLogBalAllowed()
/frameworks/base/core/java/com/android/internal/os/
DSystemServicePowerCalculator.java69 final BatteryStats.Uid systemUid = batteryStats.getUidStats().get(Process.SYSTEM_UID); in calculate()
88 Process.SYSTEM_UID); in calculate()
/frameworks/base/services/tests/inprocesstests/src/com/android/frameworks/inprocesstests/
DInstrumentSystemServerTest.java38 assertThat(Process.myUid()).isEqualTo(Process.SYSTEM_UID); in testCodeIsRunningInSystemServer()
/frameworks/base/services/core/java/com/android/server/telecom/
DInternalServiceRepository.java60 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in ensureSystemProcess()
/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/pm/
DPreferredActivityHelper.java388 if (callingUid != Process.SYSTEM_UID) {
420 if (callingUid != Process.SYSTEM_UID) {
477 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
506 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
533 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
562 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
675 if (!UserHandle.isSameApp(Binder.getCallingUid(), Process.SYSTEM_UID)) {
DPackageUsage.java20 import static android.os.Process.SYSTEM_UID;
61 0640, SYSTEM_UID, PACKAGE_INFO_GID); in writeInternal() local
DUserRestrictionsUtils.java712 && callingUid != Process.SYSTEM_UID) { in isSettingRestrictedForUser()
751 if (appId == Process.SYSTEM_UID || appId == Process.ROOT_UID) { in isSettingRestrictedForUser()
785 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser()
793 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser()
800 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser()
808 if (callingUid == Process.SYSTEM_UID) { in isSettingRestrictedForUser()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java217 if (appId == Process.SYSTEM_UID) { in resolveValidReportedPackageLocked()
262 if (UserHandle.getAppId(targetUid) == Process.SYSTEM_UID) { in computeValidReportedPackages()
530 || callingUid == Process.SYSTEM_UID in resolveCallingUserIdEnforcingPermissionsLocked()
590 if (Binder.getCallingUid() == Process.SYSTEM_UID) { in isRetrievalAllowingWindowLocked()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAppsTest.java104 Process.SYSTEM_UID, in testGetAppList_shouldNotShowAndroidOS()
115 Process.SYSTEM_UID, RecentLocationApps.ANDROID_SYSTEM_PACKAGE_NAME); in testGetAppList_shouldNotShowAndroidOS()
/frameworks/base/core/java/android/accounts/
DChooseAccountActivity.java77 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/applications/
DRecentAppOpsAccessesTest.java139 Process.SYSTEM_UID, in testGetAppList_shouldNotShowAndroidOS()
149 Process.SYSTEM_UID, RecentAppOpsAccess.ANDROID_SYSTEM_PACKAGE_NAME); in testGetAppList_shouldNotShowAndroidOS()

12345678910