Home
last modified time | relevance | path

Searched refs:uid2 (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationComparatorTest.java74 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/
DBatteryStatsNoteTest.java516 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 …]
DScreenPowerCalculatorTest.java97 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/
DActivityManagerTest.java359 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()
DActivityManagerServiceTest.java435 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/
DUserHandle.java166 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/
DRecoverableKeyStoreDbTest.java676 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/
DIntentFirewall.java610 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/
DBridgePackageManager.java285 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java272 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl113 int checkUidSignatures(int uid1, int uid2); in checkUidSignatures() argument
DPackageManager.java5539 public abstract @SignatureResult int checkSignatures(int uid1, int uid2); in checkSignatures() argument
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java343 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/app/
DMockPackageManager.java302 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java3263 int uid2 = o2.getUid();
3266 if (uid1 != uid2) {
3267 return uid1 < uid2 ? -1 : 1;
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java862 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/
DActivityManagerService.java2403 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/
DPackageManagerService.java9720 public int checkUidSignatures(int uid1, int uid2) { in checkUidSignatures() argument
9725 final int appId2 = UserHandle.getAppId(uid2); in checkUidSignatures()