/frameworks/base/services/core/java/com/android/server/pm/ |
D | AppIdSettingMap.java | 42 private int mFirstAvailableAppId = Process.FIRST_APPLICATION_UID; 62 if (appId >= Process.FIRST_APPLICATION_UID) { in registerExistingAppId() 64 final int index = appId - Process.FIRST_APPLICATION_UID; in registerExistingAppId() 90 if (appId >= Process.FIRST_APPLICATION_UID) { in getSetting() 92 final int index = appId - Process.FIRST_APPLICATION_UID; in getSetting() 100 if (appId >= Process.FIRST_APPLICATION_UID) { in removeSetting() 102 final int index = appId - Process.FIRST_APPLICATION_UID; in removeSetting() 120 if (appId >= Process.FIRST_APPLICATION_UID) { in replaceSetting() 122 final int index = appId - Process.FIRST_APPLICATION_UID; in replaceSetting() 139 for (int i = mFirstAvailableAppId - Process.FIRST_APPLICATION_UID; i < size; i++) { in acquireAndRegisterNewAppId() [all …]
|
D | AppsFilterBase.java | 285 if (existingAppId < Process.FIRST_APPLICATION_UID) { in getVisibilityAllowList() 340 if (callingAppId < Process.FIRST_APPLICATION_UID in shouldFilterApplication() 341 || targetPkgSetting.getAppId() < Process.FIRST_APPLICATION_UID in shouldFilterApplication() 421 || callingAppId < Process.FIRST_APPLICATION_UID in shouldFilterApplicationInternal() 422 || targetAppId < Process.FIRST_APPLICATION_UID) { in shouldFilterApplicationInternal() 685 if (appId < Process.FIRST_APPLICATION_UID) { in canQueryPackage()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsCpuTimesTest.java | 21 import static android.os.Process.FIRST_APPLICATION_UID; 282 FIRST_APPLICATION_UID + 22, in testReadKernelUidCpuTimesLocked() 283 FIRST_APPLICATION_UID + 27, in testReadKernelUidCpuTimesLocked() 284 FIRST_APPLICATION_UID + 33 in testReadKernelUidCpuTimesLocked() 357 FIRST_APPLICATION_UID + 22, in testReadKernelUidCpuTimesLocked_isolatedUid() 359 FIRST_APPLICATION_UID + 33 in testReadKernelUidCpuTimesLocked_isolatedUid() 394 final int ownerUid = UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 42); in testReadKernelUidCpuTimesLocked_isolatedUid() 442 final int invalidUid = UserHandle.getUid(invalidUserId, FIRST_APPLICATION_UID + 99); in testReadKernelUidCpuTimesLocked_invalidUid() 446 FIRST_APPLICATION_UID + 22, in testReadKernelUidCpuTimesLocked_invalidUid() 447 FIRST_APPLICATION_UID + 27, in testReadKernelUidCpuTimesLocked_invalidUid() [all …]
|
D | BatteryStatsBinderCallStatsTest.java | 60 int callingUid = Process.FIRST_APPLICATION_UID + 1; in testNoteBinderCallStats() 61 int workSourceUid = Process.FIRST_APPLICATION_UID + 1; in testNoteBinderCallStats() 102 int callingUid = Process.FIRST_APPLICATION_UID + 1; in testProportionalSystemServiceUsage_noStatsForSomeMethods() 103 int workSourceUid1 = Process.FIRST_APPLICATION_UID + 1; in testProportionalSystemServiceUsage_noStatsForSomeMethods() 104 int workSourceUid2 = Process.FIRST_APPLICATION_UID + 2; in testProportionalSystemServiceUsage_noStatsForSomeMethods() 105 int workSourceUid3 = Process.FIRST_APPLICATION_UID + 3; in testProportionalSystemServiceUsage_noStatsForSomeMethods()
|
D | UserPowerCalculatorTest.java | 48 private static final int APP_UID1 = Process.FIRST_APPLICATION_UID + 42; 49 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 272; 50 private static final int APP_UID3 = Process.FIRST_APPLICATION_UID + 314;
|
D | GnssPowerCalculatorTest.java | 45 private static final int APP_UID = Process.FIRST_APPLICATION_UID + 42; 46 private static final int APP_UID2 = Process.FIRST_APPLICATION_UID + 222;
|
D | CameraPowerCalculatorTest.java | 45 private static final int APP1_UID = Process.FIRST_APPLICATION_UID + 42; 46 private static final int APP2_UID = Process.FIRST_APPLICATION_UID + 43;
|
D | FlashlightPowerCalculatorTest.java | 45 private static final int APP_UID = Process.FIRST_APPLICATION_UID + 42;
|
D | AudioPowerCalculatorTest.java | 45 private static final int APP_UID = Process.FIRST_APPLICATION_UID + 42;
|
D | VideoPowerCalculatorTest.java | 45 private static final int APP_UID = Process.FIRST_APPLICATION_UID + 42;
|
D | CustomEnergyConsumerPowerCalculatorTest.java | 45 private static final int APP_UID = Process.FIRST_APPLICATION_UID + 42;
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | KeyguardDisableHandlerTest.java | 19 import static android.os.Process.FIRST_APPLICATION_UID; 108 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_disables() 116 UserHandle.getUid(1, FIRST_APPLICATION_UID), 1); in disable_fromApp_secondaryUser_disables() 151 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_secure_staysEnabled() 158 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_dpmRequiresPassword_staysEnabled() 178 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_thenSecure_reenables()
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 184 public static final int AID_APP_START = android.os.Process.FIRST_APPLICATION_UID; 244 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; in isApp() 257 return appId < Process.FIRST_APPLICATION_UID; in isCore() 440 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UID in getAppIdFromSharedAppGid() 468 if (uid < Process.FIRST_APPLICATION_UID) { in formatUid() 482 } else if (appId >= Process.FIRST_APPLICATION_UID) { in formatUid() 484 sb.append(appId - Process.FIRST_APPLICATION_UID); in formatUid() 515 if (uid < Process.FIRST_APPLICATION_UID) { in formatUid() 529 } else if (appId >= Process.FIRST_APPLICATION_UID) { in formatUid() 531 pw.print(appId - Process.FIRST_APPLICATION_UID); in formatUid()
|
D | Process.java | 285 public static final int FIRST_APPLICATION_UID = 10000; field in Process 1013 return uid - (FIRST_SDK_SANDBOX_UID - FIRST_APPLICATION_UID); in getAppUidForSdkSandboxUid() 1027 return uid + (FIRST_SDK_SANDBOX_UID - FIRST_APPLICATION_UID); in toSdkSandboxUid() 1045 return uid + (FIRST_SDK_SANDBOX_UID - FIRST_APPLICATION_UID); in getSdkSandboxUidForAppUid()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/ |
D | BackupEligibilityRulesTest.java | 97 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 218 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndEnabled_returnsTrue() 234 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndEnabled_returnsTrue() 266 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_nonSystemAppWithoutCustomBackupAgentAndDisabled_returnsFalse() 282 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_nonSystemAppWithCustomBackupAgentAndDisbled_returnsFalse() 297 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_backupNotAllowedAndInMigration_returnsTrue() 323 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_adbBackupNotAllowed_returnsFalseForAdbBackup() 340 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_adbBackupAllowed_returnsTrueForAdbBackup() 357 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_debuggableNonPrivilegedApp_returnsTrueForAdbBackup() 371 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_allowBackupTrueBeforeS_returnsTrueForAdbBackup() [all …]
|
D | TarBackupReaderTest.java | 386 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 461 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_restoreAnyVersion_returnsAccept() 502 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept() 651 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchButAllowApksAndHasApk_returnsAcceptIfApk() 695 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchAndDoesNotAllowApks_returnsIgnore() 735 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in createNonRestoreAnyVersionUPackage()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | ProcessTest.java | 40 assertEquals(Process.FIRST_APPLICATION_UID, Process.getUidForName("u0_a0")); in testProcessGetUidFromName() 46 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100), in testProcessGetUidFromName()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BaseBroadcastQueueTest.java | 192 case PACKAGE_RED: return android.os.Process.FIRST_APPLICATION_UID + 1; in getUidForPackage() 193 case PACKAGE_GREEN: return android.os.Process.FIRST_APPLICATION_UID + 2; in getUidForPackage() 194 case PACKAGE_BLUE: return android.os.Process.FIRST_APPLICATION_UID + 3; in getUidForPackage() 195 case PACKAGE_YELLOW: return android.os.Process.FIRST_APPLICATION_UID + 4; in getUidForPackage() 196 case PACKAGE_ORANGE: return android.os.Process.FIRST_APPLICATION_UID + 5; in getUidForPackage()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | BackupAgentTimeoutParametersTest.java | 95 mParameters.getRestoreAgentTimeoutMillis(Process.FIRST_APPLICATION_UID - 1); in testGetRestoreAgentTimeout_afterConstructorWithStartForSystemAgent_returnsDefaultValue() 109 mParameters.getRestoreAgentTimeoutMillis(Process.FIRST_APPLICATION_UID); in testGetRestoreAgentTimeout_afterConstructorWithStartForAppAgent_returnsDefaultValue()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PhantomProcessRecord.java | 189 if (mUid < Process.FIRST_APPLICATION_UID) { in toString() 195 if (appId >= Process.FIRST_APPLICATION_UID) { in toString() 197 sb.append(appId - Process.FIRST_APPLICATION_UID); in toString()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | UserPowerCalculator.java | 58 if (UserHandle.getAppId(uid) < Process.FIRST_APPLICATION_UID) { in calculate()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/ |
D | AppIdAppOpMigration.kt | 42 if (packageNames == null && appId >= Process.FIRST_APPLICATION_UID) { in <lambda>()
|
/frameworks/base/ravenwood/junit-src/android/platform/test/ravenwood/ |
D | RavenwoodRule.java | 19 import static android.os.Process.FIRST_APPLICATION_UID; 161 mRule.mUid = FIRST_APPLICATION_UID; in setProcessApp()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | AppsFilterImplTest.java | 801 Process.FIRST_APPLICATION_UID - 1, null, target, SYSTEM_USER)); in testSystemUid_DoesntFilter() 818 UserHandle.getUid(SECONDARY_USER, Process.FIRST_APPLICATION_UID - 1), in testSystemUidSecondaryUser_DoesntFilter() 1185 final int systemAppId = Process.FIRST_APPLICATION_UID - 1; in testWhoCanSee() 1186 final int seesNothingAppId = Process.FIRST_APPLICATION_UID; in testWhoCanSee() 1187 final int hasProviderAppId = Process.FIRST_APPLICATION_UID + 1; in testWhoCanSee() 1188 final int queriesProviderAppId = Process.FIRST_APPLICATION_UID + 2; in testWhoCanSee() 1260 final int systemAppId = Process.FIRST_APPLICATION_UID - 1; in testOnChangeReport() 1261 final int seesNothingAppId = Process.FIRST_APPLICATION_UID; in testOnChangeReport() 1262 final int hasProviderAppId = Process.FIRST_APPLICATION_UID + 1; in testOnChangeReport() 1263 final int queriesProviderAppId = Process.FIRST_APPLICATION_UID + 2; in testOnChangeReport() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 198 if (UserHandle.getAppId(callingUid) >= Process.FIRST_APPLICATION_UID && (callingUid != uid in verifyCallerCanCheckAccess() 204 if (packageName != null && UserHandle.getAppId(uid) >= Process.FIRST_APPLICATION_UID) { in verifyCallerCanCheckAccess() 208 UserHandle.getAppId(callingUid) >= Process.FIRST_APPLICATION_UID in verifyCallerCanCheckAccess()
|