Home
last modified time | relevance | path

Searched refs:uid1 (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DScreenPowerCalculatorTest.java91 UidBatteryConsumer uid1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testMeasuredEnergyBasedModel() local
92 assertThat(uid1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
98 assertThat(uid1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
100 assertThat(uid1.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
199 UidBatteryConsumer uid1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testMeasuredEnergyBasedModel_multiDisplay() local
200 assertThat(uid1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
206 assertThat(uid1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
208 assertThat(uid1.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel_multiDisplay()
262 UidBatteryConsumer uid1 = mStatsRule.getUidBatteryConsumer(APP_UID1); in testPowerProfileBasedModel() local
263 assertThat(uid1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testPowerProfileBasedModel()
[all …]
DBatteryStatsNoteTest.java1146 final int uid1 = 10500; in testUpdateDisplayMeasuredEnergyStatsLocked() local
1156 checkMeasuredCharge("A", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1165 checkMeasuredCharge("B", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1169 setFgState(uid1, true, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1172 checkMeasuredCharge("C", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1179 checkMeasuredCharge("D.1", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1183 checkMeasuredCharge("D.2", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1193 checkMeasuredCharge("E", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1203 checkMeasuredCharge("F", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
1210 checkMeasuredCharge("G", uid1, blame1, uid2, blame2, globalDoze, bi); in testUpdateDisplayMeasuredEnergyStatsLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java361 final int uid1 = pm.getPackageUid(TEST_APP1, 0); in testAppFreezerWithAllowOomAdj() local
363 final MyUidImportanceListener uid1Listener = new MyUidImportanceListener(uid1); in testAppFreezerWithAllowOomAdj()
716 final int uid1 = pm.getPackageUid(TEST_APP1, 0); in testKillPids() local
719 final MyUidImportanceListener uid1Listener1 = new MyUidImportanceListener(uid1); in testKillPids()
720 final MyUidImportanceListener uid1Listener2 = new MyUidImportanceListener(uid1); in testKillPids()
737 pids[0] = startTargetService(am, TEST_APP1, TEST_CLASS, uid1, TEST_APP1, in testKillPids()
789 final int uid1 = pm.getPackageUid(TEST_APP1, 0); in testGetIsolatedProcesses() local
796 getIsolatedProcesses(uid1).isEmpty()); in testGetIsolatedProcesses()
803 uid1Processes.add(createIsolatedProcessAndVerify(TEST_APP1, uid1)); in testGetIsolatedProcesses()
804 uid1Processes.add(createIsolatedProcessAndVerify(TEST_APP1, uid1)); in testGetIsolatedProcesses()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java237 final int uid1 = mSourceUid; in testTopPowerConnectedExemption() local
240 JobStatus jobFg = createJobStatus("testTopPowerConnectedExemption", SOURCE_PACKAGE, uid1, in testTopPowerConnectedExemption()
243 SOURCE_PACKAGE, uid1, in testTopPowerConnectedExemption()
245 JobStatus jobFgLow = createJobStatus("testTopPowerConnectedExemption", SOURCE_PACKAGE, uid1, in testTopPowerConnectedExemption()
267 setUidBias(uid1, JobInfo.BIAS_TOP_APP); in testTopPowerConnectedExemption()
297 setUidBias(uid1, JobInfo.BIAS_DEFAULT); in testTopPowerConnectedExemption()
/frameworks/base/core/java/android/os/
DUserHandle.java198 public static boolean isSameUser(int uid1, int uid2) { in isSameUser() argument
199 return getUserId(uid1) == getUserId(uid2); in isSameUser()
211 public static boolean isSameApp(int uid1, int uid2) { in isSameApp() argument
212 return getAppId(uid1) == getAppId(uid2); in isSameApp()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java675 int uid1 = 190992; in getRecoveryAgents_withTwoAgents() local
677 mRecoverableKeyStoreDb.setRecoveryServicePublicKey(userId, uid1, genRandomPublicKey()); in getRecoveryAgents_withTwoAgents()
682 assertThat(agents).contains(uid1); in getRecoveryAgents_withTwoAgents()
747 int uid1 = 10011; in setRecoverySecretTypes_withDifferentUid() local
752 mRecoverableKeyStoreDb.setRecoverySecretTypes(userId, uid1, types1); in setRecoverySecretTypes_withDifferentUid()
754 assertThat(mRecoverableKeyStoreDb.getRecoverySecretTypes(userId, uid1)).isEqualTo( in setRecoverySecretTypes_withDifferentUid()
874 int uid1 = 10009; in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids() local
877 mRecoverableKeyStoreDb.setRecoveryServicePublicKey(userId, uid1, pubkey); in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids()
879 assertThat(mRecoverableKeyStoreDb.getRecoveryServicePublicKey(userId, uid1)).isEqualTo( in setRecoveryServiceMetadataEntry_allowsAUserToHaveTwoUids()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/publish/
DPublishControllerImplTest.java246 Object uid1 = (Object)boolObj; in testPublishingStateTargetingEnable() local
247 doReturn(uid1).when(mPublishStateCallbacks).getRegisteredCallbackCookie(anyInt()); in testPublishingStateTargetingEnable()
286 Object uid1 = (Object)boolObj; in testPublishingStateTargetingDisable() local
287 doReturn(uid1).when(mPublishStateCallbacks).getRegisteredCallbackCookie(anyInt()); in testPublishingStateTargetingDisable()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenersTest.java436 final int uid1 = 1, uid2 = 2; in testHasAllowedListener() local
438 mListeners.addApprovedList(mCn1.flattenToString(), uid1, true); in testHasAllowedListener() local
442 assertTrue(mListeners.hasAllowedListener(mCn1.getPackageName(), uid1)); in testHasAllowedListener() local
446 assertFalse(mListeners.hasAllowedListener(mCn2.getPackageName(), uid1)); in testHasAllowedListener() local
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java625 boolean signaturesMatch(int uid1, int uid2) { in signaturesMatch() argument
628 return pm.checkUidSignatures(uid1, uid2) == PackageManager.SIGNATURE_MATCH; in signaturesMatch()
/frameworks/base/services/core/java/com/android/server/pm/
DIPackageManagerBase.java245 public final int checkUidSignatures(int uid1, int uid2) { in checkUidSignatures() argument
246 return snapshot().checkUidSignatures(uid1, uid2); in checkUidSignatures()
DComputer.java374 int checkUidSignatures(int uid1, int uid2); in checkUidSignatures() argument
DComputerEngine.java4234 public int checkUidSignatures(int uid1, int uid2) { in checkUidSignatures() argument
4238 final int appId1 = UserHandle.getAppId(uid1); in checkUidSignatures()
/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.aidl107 int checkUidSignatures(int uid1, int uid2); in checkUidSignatures() argument
DPackageManager.java6386 public abstract @SignatureResult 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/test-mock/src/android/test/mock/
DMockPackageManager.java343 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java3319 final int uid1 = 1294; in isScheduleExactAlarmAllowedByDefault() local
3324 when(mPackageManagerInternal.isUidPrivileged(uid1)).thenReturn(true); in isScheduleExactAlarmAllowedByDefault()
3344 assertFalse(mService.isScheduleExactAlarmAllowedByDefault(package1, uid1)); in isScheduleExactAlarmAllowedByDefault()
3356 assertTrue(mService.isScheduleExactAlarmAllowedByDefault(package1, uid1)); in isScheduleExactAlarmAllowedByDefault()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java3566 int uid1 = o1.getUid();
3570 if (uid1 != uid2) {
3571 return uid1 < uid2 ? -1 : 1;
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java970 public int checkSignatures(int uid1, int uid2) { in checkSignatures() argument
972 return mPM.checkUidSignatures(uid1, uid2); in checkSignatures()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java2533 boolean validateAssociationAllowedLocked(String pkg1, int uid1, String pkg2, int uid2) { in validateAssociationAllowedLocked() argument
2538 if (uid1 == uid2 || UserHandle.getAppId(uid1) == SYSTEM_UID in validateAssociationAllowedLocked()
/frameworks/proto_logging/stats/
Datoms.proto7934 * [uid1]: [time-0] [time-1] [time-2] ... ...
7948 * [uid1]: [time-0-0] [time-0-1] ... [time-1-0] [time-1-1] ...