/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationComparatorTest.java | 74 private final int uid2 = 1111111; field in NotificationComparatorTest 166 pkg2, 1, "inlinereply", uid2, uid2, n4, new UserHandle(userId), in setUp() 182 pkg2, 1, "starred", uid2, uid2, n6, new UserHandle(userId), in setUp() 189 pkg2, 1, "contact", uid2, uid2, n7, new UserHandle(userId), in setUp() 196 pkg2, 1, "urgent", uid2, uid2, n8, new UserHandle(userId), in setUp() 206 pkg2, 1, "cheater", uid2, uid2, n9, new UserHandle(userId), in setUp() 214 pkg2, 1, "email", uid2, uid2, n10, new UserHandle(userId), in setUp() 223 pkg2, 1, "cheater", uid2, uid2, n11, new UserHandle(userId), in setUp() 233 pkg2, pkg2, 1, "media", uid2, uid2, n12, new UserHandle(userId), in setUp() 242 pkg2, 1, "colorized", uid2, uid2, n13, in setUp()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 516 final int uid2 = 10501; in testUpdateDisplayMeasuredEnergyStatsLocked() local 525 checkMeasuredCharge("A", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 534 checkMeasuredCharge("B", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 541 checkMeasuredCharge("C", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 548 checkMeasuredCharge("D.1", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 552 checkMeasuredCharge("D.2", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 556 setFgState(uid2, true, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 562 checkMeasuredCharge("E", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 566 setFgState(uid2, false, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() 572 checkMeasuredCharge("F", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked() [all …]
|
D | ScreenPowerCalculatorTest.java | 97 UidBatteryConsumer uid2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testMeasuredEnergyBasedModel() local 98 assertThat(uid2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel() 104 assertThat(uid2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel() 106 assertThat(uid2.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel() 169 UidBatteryConsumer uid2 = mStatsRule.getUidBatteryConsumer(APP_UID2); in testPowerProfileBasedModel() local 170 assertThat(uid2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel() 175 assertThat(uid2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel() 177 assertThat(uid2.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 359 final int uid2 = pm.getPackageUid(TEST_APP2, 0); in testAppFreezerWithAllowOomAdj() local 361 final MyUidImportanceListener uid2Listener = new MyUidImportanceListener(uid2); in testAppFreezerWithAllowOomAdj() 512 final int uid2 = pm.getPackageUid(TEST_APP2, 0); in testKillPids() local 516 final MyUidImportanceListener uid2Listener1 = new MyUidImportanceListener(uid2); in testKillPids() 517 final MyUidImportanceListener uid2Listener2 = new MyUidImportanceListener(uid2); in testKillPids() 534 pids[1] = startTargetService(am, TEST_APP2, TEST_CLASS, uid2, TEST_APP2, in testKillPids() 585 final int uid2 = pm.getPackageUid(TEST_APP2, 0); in testGetIsolatedProcesses() local 593 getIsolatedProcesses(uid2).isEmpty()); in testGetIsolatedProcesses() 610 uid2Processes.add(createIsolatedProcessAndVerify(TEST_APP2, uid2)); in testGetIsolatedProcesses() 611 verifyIsolatedProcesses(uid2Processes, getIsolatedProcesses(uid2)); in testGetIsolatedProcesses()
|
D | ActivityManagerServiceTest.java | 435 int uid2 = range.allocateIsolatedUidLocked(0); in verifyIsolatedUidAllocator() local 436 verifyIsolatedUid(range, uid2); in verifyIsolatedUidAllocator() 437 assertTrue(uid2 != uid); in verifyIsolatedUidAllocator() 441 range.freeIsolatedUidLocked(uid2); in verifyIsolatedUidAllocator()
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 166 public static boolean isSameUser(int uid1, int uid2) { in isSameUser() argument 167 return getUserId(uid1) == getUserId(uid2); in isSameUser() 179 public static boolean isSameApp(int uid1, int uid2) { in isSameApp() argument 180 return getAppId(uid1) == getAppId(uid2); in isSameApp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 676 int uid2 = 190993; in getRecoveryAgents_withTwoAgents() local 678 mRecoverableKeyStoreDb.setRecoveryServicePublicKey(userId, uid2, genRandomPublicKey()); in getRecoveryAgents_withTwoAgents() 683 assertThat(agents).contains(uid2); in getRecoveryAgents_withTwoAgents() 748 int uid2 = 10012; in setRecoverySecretTypes_withDifferentUid() local 753 mRecoverableKeyStoreDb.setRecoverySecretTypes(userId, uid2, types2); in setRecoverySecretTypes_withDifferentUid() 756 assertThat(mRecoverableKeyStoreDb.getRecoverySecretTypes(userId, uid2)).isEqualTo( in setRecoverySecretTypes_withDifferentUid() 875 int uid2 = 20009; in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids() local 878 mRecoverableKeyStoreDb.setRecoveryServicePublicKey(userId, uid2, pubkey); in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids() 881 assertThat(mRecoverableKeyStoreDb.getRecoveryServicePublicKey(userId, uid2)).isEqualTo( in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | IntentFirewall.java | 610 boolean signaturesMatch(int uid1, int uid2) { in signaturesMatch() argument 613 return pm.checkUidSignatures(uid1, uid2) == PackageManager.SIGNATURE_MATCH; in signaturesMatch()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 285 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/ |
D | PackageManagerStub.java | 272 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
|
/frameworks/base/core/java/android/content/pm/ |
D | IPackageManager.aidl | 113 int checkUidSignatures(int uid1, int uid2); in checkUidSignatures() argument
|
D | PackageManager.java | 5539 public abstract @SignatureResult int checkSignatures(int uid1, int uid2); in checkSignatures() argument
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockPackageManager.java | 343 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/app/ |
D | MockPackageManager.java | 302 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerService.java | 3263 int uid2 = o2.getUid(); 3266 if (uid1 != uid2) { 3267 return uid1 < uid2 ? -1 : 1;
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 862 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument 864 return mPM.checkUidSignatures(uid1, uid2); in checkSignatures()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 2403 boolean validateAssociationAllowedLocked(String pkg1, int uid1, String pkg2, int uid2) { in validateAssociationAllowedLocked() argument 2408 if (uid1 == uid2 || UserHandle.getAppId(uid1) == SYSTEM_UID in validateAssociationAllowedLocked() 2409 || UserHandle.getAppId(uid2) == SYSTEM_UID) { in validateAssociationAllowedLocked()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 9720 public int checkUidSignatures(int uid1, int uid2) { in checkUidSignatures() argument 9725 final int appId2 = UserHandle.getAppId(uid2); in checkUidSignatures()
|