/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 155 private static final int UID_2 = Process.FIRST_APPLICATION_UID + 2; field in AppStateTrackerTest 158 private static final int UID_10_2 = UserHandle.getUid(10, UID_2); 355 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 360 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 365 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 375 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 380 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 385 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 398 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() 403 new int[] {UID_1, UID_2, UID_10_2, Process.SYSTEM_UID}, in testAll() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 113 private static final int UID_2 = 10000002; field in CarrierPrivilegesTrackerTest 115 private static final int[] PRIVILEGED_UIDS = {UID_1, UID_2}; 116 private static final Set<Integer> PRIVILEGED_UIDS_SET = Set.of(UID_1, UID_2); 233 new PackageCertInfo(PACKAGE_2, CERT_2, USER_1, UID_2), in setupCarrierPrivilegesTrackerWithCarrierConfigUids() 242 new PackageCertInfo(PACKAGE_2, CERT_2, USER_1, UID_2), in setupCarrierPrivilegesTrackerWithSimLoadedUids() 301 new PackageCertInfo(PACKAGE_2, CERT_2, USER_1, UID_2)); in testCarrierConfigUpdated() 395 new PackageCertInfo(PACKAGE_2, CERT_2, USER_1, UID_2)); in testSimCardStateChanged() 413 new PackageCertInfo(PACKAGE_2, CERT_2, USER_1, UID_2)); in testSimApplicationStateChanged() 468 verifyCurrentState(Set.of(PACKAGE_1, PACKAGE_2), new int[]{UID_1, UID_2}); in testSimStateChangedSimStateNotReady() 503 verifyCurrentState(Set.of(PACKAGE_1, PACKAGE_2), new int[]{UID_1, UID_2}); in testSimStateChangedSimStateAbsentThenLoadedWithSameRules() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | CpuPowerStatsCollectorTest.java | 69 private static final int UID_2 = 99; field in CpuPowerStatsCollectorTest 154 mUidResolver.noteIsolatedUidAdded(ISOLATED_UID, UID_2); in setup() 276 put(UID_2, new long[]{100, 150}); in collectStats() 298 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_2), 0)) in collectStats() 300 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_2), 1)) in collectStats() 328 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_2), 0)) in collectStats() 330 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_2), 1)) in collectStats() 346 put(UID_2, new long[]{100, 150}); in isolatedUidReuse() 354 mUidResolver.noteIsolatedUidRemoved(ISOLATED_UID, UID_2); in isolatedUidReuse() 355 mUidResolver.noteIsolatedUidAdded(ISOLATED_UID, UID_2); in isolatedUidReuse() [all …]
|
D | BatteryStatsSensorTest.java | 45 private static final int UID_2 = 10501; // second uid for testing pool usage field in BatteryStatsSensorTest 275 bi.noteUidProcessStateLocked(UID_2, ActivityManager.PROCESS_STATE_RECEIVER); // background in testPooledBackgroundUsage() 279 bi.noteStartSensorLocked(UID_2, SENSOR_ID); in testPooledBackgroundUsage() 291 bi.noteStopSensorLocked(UID_2, SENSOR_ID); in testPooledBackgroundUsage() 293 bi.noteStartSensorLocked(UID_2, SENSOR_ID); in testPooledBackgroundUsage() 295 bi.noteStopSensorLocked(UID_2, SENSOR_ID); in testPooledBackgroundUsage() 339 BatteryStats.Timer timer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage() 341 BatteryStats.Timer bgTimer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 49 private static final int UID_2 = 3000; field in BatteryUsageStatsPulledTest 114 assertEquals(UID_2, bus.getUidBatteryConsumers().get(2).getUid()); in testGetStatsProto() 115 assertEquals(UID_2, proto.uidBatteryConsumers[2].uid); in testGetStatsProto() 309 builder.getOrCreateUidBatteryConsumerBuilder(UID_2) in buildBatteryUsageStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | VirtualDeviceManagerServiceTest.java | 167 private static final int UID_2 = 10; field in VirtualDeviceManagerServiceTest 633 Sets.newArraySet(UID_2)); in getDeviceIdsForUid_differentUidOnDevice_returnsNull() 655 Sets.newArraySet(UID_1, UID_2)); in getDeviceIdsForUid_twoUidsOnDevice_returnsCorrectId() 687 Sets.newArraySet(UID_1, UID_2)); in getDeviceIdsForUid_twoDevicesUidOnBoth_returnsCorrectId() 866 ArraySet<Integer> uids = new ArraySet<>(Arrays.asList(UID_1, UID_2)); in onAppsOnVirtualDeviceChanged_singleVirtualDevice_listenersNotified() 879 ArraySet<Integer> uidsOnDevice1 = new ArraySet<>(Arrays.asList(UID_1, UID_2)); in onAppsOnVirtualDeviceChanged_multipleVirtualDevices_listenersNotified() 887 new ArraySet<>(Arrays.asList(UID_1, UID_2))); in onAppsOnVirtualDeviceChanged_multipleVirtualDevices_listenersNotified() 894 new ArraySet<>(Arrays.asList(UID_1, UID_2, UID_3, UID_4))); in onAppsOnVirtualDeviceChanged_multipleVirtualDevices_listenersNotified() 897 uidsOnDevice1.remove(UID_2); in onAppsOnVirtualDeviceChanged_multipleVirtualDevices_listenersNotified() 1731 ArraySet<Integer> uids = new ArraySet<>(Arrays.asList(UID_1, UID_2)); in registerRunningAppsChangedListener_onRunningAppsChanged_listenersNotified() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/ |
D | ToastUITest.java | 95 private static final int UID_2 = 10256; field in ToastUITest 331 mToastUI.showToast(UID_2, PACKAGE_NAME_2, TOKEN_2, TEXT, WINDOW_TOKEN_2, Toast.LENGTH_LONG, in testShowToast_afterShowToast_hidesCurrentToast() 351 mToastUI.showToast(UID_2, PACKAGE_NAME_2, TOKEN_2, TEXT, WINDOW_TOKEN_2, Toast.LENGTH_LONG, in testShowToast_afterShowToast_animationListenerCleanup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 143 private static final int UID_2 = 20000; field in AppStandbyControllerTests 414 pInfo.applicationInfo.uid = UID_2; in setupPm()
|