Home
last modified time | relevance | path

Searched refs:UID_1 (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java154 private static final int UID_1 = Process.FIRST_APPLICATION_UID + 1; field in AppStateTrackerTest
157 private static final int UID_10_1 = UserHandle.getUid(10, UID_1);
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/
DCarrierPrivilegesTrackerTest.java112 private static final int UID_1 = 10000001; 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);
232 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in setupCarrierPrivilegesTrackerWithCarrierConfigUids()
241 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in setupCarrierPrivilegesTrackerWithSimLoadedUids()
300 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testCarrierConfigUpdated()
373 verifyCurrentState(Set.of(PACKAGE_1), new int[] {UID_1}); in testCarrierConfigUpdatedExplicitPackageNames()
375 List.of(new Pair<>(Set.of(PACKAGE_1), Set.of(UID_1)))); in testCarrierConfigUpdatedExplicitPackageNames()
394 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testSimCardStateChanged()
412 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testSimApplicationStateChanged()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceMockingTest.java43 private static final int UID_1 = 0; field in VirtualDeviceManagerServiceMockingTest
63 mLocalService.onAuthenticationPrompt(UID_1); in onAuthenticationPrompt_noDevices_noCrash()
71 mLocalService.onAuthenticationPrompt(UID_1); in onAuthenticationPrompt_oneDevice_showToastWhereUidIsRunningIsCalled()
73 verify(device).showToastWhereUidIsRunning(eq(UID_1), in onAuthenticationPrompt_oneDevice_showToastWhereUidIsRunningIsCalled()
87 mLocalService.onAuthenticationPrompt(UID_1); in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
89 verify(device1).showToastWhereUidIsRunning(eq(UID_1), in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
92 verify(device2).showToastWhereUidIsRunning(eq(UID_1), in onAuthenticationPrompt_twoDevices_showToastWhereUidIsRunningIsCalledOnBoth()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/
DToastUITest.java89 private static final int UID_1 = 10255; field in ToastUITest
152 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsCorrectViewToWindowManager()
162 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsViewWithCorrectLayoutParamsToWindowManager()
204 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_callsCallback()
224 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_sendsAccessibilityEvent()
239 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_accessibilityManagerClientIsRemoved()
246 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_removesView()
262 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_finishesToken()
278 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_callsCallback()
294 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_whenNotCurrentToastToken_doesNotHideToast()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java166 private static final int UID_1 = 0; field in VirtualDeviceManagerServiceTest
625 assertThat(mLocalService.getDeviceIdsForUid(UID_1)).isEmpty(); in getDeviceIdsForUid_noRunningApps_returnsNull()
626 assertThat(mVdmNative.getDeviceIdsForUid(UID_1)).isEmpty(); in getDeviceIdsForUid_noRunningApps_returnsNull()
635 assertThat(mLocalService.getDeviceIdsForUid(UID_1)).isEmpty(); in getDeviceIdsForUid_differentUidOnDevice_returnsNull()
636 assertThat(mVdmNative.getDeviceIdsForUid(UID_1)).isEmpty(); in getDeviceIdsForUid_differentUidOnDevice_returnsNull()
643 Sets.newArraySet(UID_1)); in getDeviceIdsForUid_oneUidOnDevice_returnsCorrectId()
646 assertThat(mLocalService.getDeviceIdsForUid(UID_1)).containsExactly(deviceId); in getDeviceIdsForUid_oneUidOnDevice_returnsCorrectId()
647 assertThat(mVdmNative.getDeviceIdsForUid(UID_1)).asList().containsExactly(deviceId); in getDeviceIdsForUid_oneUidOnDevice_returnsCorrectId()
655 Sets.newArraySet(UID_1, UID_2)); in getDeviceIdsForUid_twoUidsOnDevice_returnsCorrectId()
658 assertThat(mLocalService.getDeviceIdsForUid(UID_1)).containsExactly(deviceId); in getDeviceIdsForUid_twoUidsOnDevice_returnsCorrectId()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCpuPowerStatsCollectorTest.java68 private static final int UID_1 = 42; field in CpuPowerStatsCollectorTest
275 put(UID_1, new long[]{100, 200}); in collectStats()
294 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_1), 0)) in collectStats()
296 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_1), 1)) in collectStats()
305 put(UID_1, new long[]{123, 234}); in collectStats()
324 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_1), 0)) in collectStats()
326 assertThat(layout.getUidTimeByPowerBracket(mCollectedStats.uidStats.get(UID_1), 1)) in collectStats()
384 put(UID_1, new long[]{100, 200}); in dump()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java48 private static final int UID_1 = 2000; field in BatteryUsageStatsPulledTest
106 assertEquals(UID_1, bus.getUidBatteryConsumers().get(1).getUid()); in testGetStatsProto()
107 assertEquals(UID_1, proto.uidBatteryConsumers[1].uid); in testGetStatsProto()
305 builder.getOrCreateUidBatteryConsumerBuilder(UID_1) in buildBatteryUsageStats()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java141 private static final int UID_1 = 10000; field in AppStandbyControllerTests
408 pi.applicationInfo.uid = UID_1; in setupPm()
668 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Charging()
669 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Charging()
677 assertFalse(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Charging()
678 assertFalse(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Charging()
686 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Charging()
687 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Charging()
701 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Enabled()
702 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Enabled()
[all …]