/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 147 private static final int UID_1 = Process.FIRST_APPLICATION_UID + 1; field in AppStateTrackerTest 150 private static final int UID_10_1 = UserHandle.getUid(10, UID_1); 334 areRestricted(instance, UID_1, PACKAGE_1, NONE); in testAll() 338 areRestrictedWithExemption(instance, UID_1, PACKAGE_1, NONE); in testAll() 347 areRestricted(instance, UID_1, PACKAGE_1, JOBS_AND_ALARMS); in testAll() 351 areRestrictedWithExemption(instance, UID_1, PACKAGE_1, NONE); in testAll() 359 assertFalse(instance.isUidActive(UID_1)); in testAll() 363 mIUidObserver.onUidActive(UID_1); in testAll() 365 areRestricted(instance, UID_1, PACKAGE_1, NONE); in testAll() 368 assertTrue(instance.isUidActive(UID_1)); in testAll() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 90 private static final int UID_1 = 10000001; field in CarrierPrivilegesTrackerTest 92 private static final int[] PRIVILEGED_UIDS = {UID_1, UID_2}; 185 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in setupCarrierPrivilegesTrackerWithCarrierConfigUids() 193 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in setupCarrierPrivilegesTrackerWithSimLoadedUids() 271 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testCarrierConfigUpdated() 325 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testSimCardStateChanged() 343 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testSimApplicationStateChanged() 400 setupInstalledPackages(new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1)); in testPackageAdded() 405 verifyPrivilegedUids(new int[] {UID_1}, 1 /* expectedUidUpdates */); in testPackageAdded() 415 new PackageCertInfo(PACKAGE_1, CERT_1, USER_1, UID_1), in testPackageAddedMultipleUsers() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/ |
D | ToastUITest.java | 74 private static final int UID_1 = 10255; field in ToastUITest 125 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsCorrectViewToWindowManager() 135 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsViewWithCorrectLayoutParamsToWindowManager() 177 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_callsCallback() 197 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_sendsAccessibilityEvent() 211 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_removesView() 222 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_finishesToken() 232 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_callsCallback() 242 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_whenNotCurrentToastToken_doesNotHideToast() 252 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_whenNotCurrentToastPackage_doesNotHideToast() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 108 private static final int UID_1 = 10000; field in AppStandbyControllerTests 307 pi.applicationInfo.uid = UID_1; in setupPm() 451 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Charging() 452 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Charging() 460 assertFalse(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Charging() 461 assertFalse(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Charging() 469 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Charging() 470 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Charging() 484 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, 0)); in testIsAppIdle_Enabled() 485 assertTrue(mController.isAppIdleFiltered(PACKAGE_1, UID_1, USER_ID, false)); in testIsAppIdle_Enabled() [all …]
|