/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverTest.java | 22 import static com.android.compatibility.common.util.TestUtils.waitUntil; 146 waitUntil("Location mode didn't change to " in testAutomotiveProjectionExceptions() 151 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_YES, in testAutomotiveProjectionExceptions() 162 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_NO, in testAutomotiveProjectionExceptions() 178 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_YES, in testAutomotiveProjectionExceptions() 203 waitUntil("Location mode didn't change to " in testGlobalSettings() 208 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_YES, in testGlobalSettings() 226 waitUntil("Location mode didn't change to " in testDeviceConfig() 231 waitUntil("UI mode didn't change to " + Configuration.UI_MODE_NIGHT_YES, in testDeviceConfig() 250 waitUntil("Location mode didn't change to " in testGlobalSettingsOverridesDeviceConfig() [all …]
|
D | BatterySavingTestBase.java | 23 import static com.android.compatibility.common.util.TestUtils.waitUntil; 98 waitUntil("Force all apps standby still " + !expected + " (alarm)", () -> in waitUntilAlarmForceAppStandby() 103 waitUntil("Force all apps standby still " + !expected + " (job)", () -> { in waitUntilJobForceAppStandby() 119 waitUntil("Force background check still " + !expected + " (job)", () -> in waitUntilForceBackgroundCheck()
|
D | BatterySaverBgServiceTest.java | 25 import static com.android.compatibility.common.util.TestUtils.waitUntil; 141 waitUntil("Service didn't start", () -> { in waitForLastIntentAction()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AudioRestrictionTest.java | 74 waitUntil(false, mCheckIfMasterVolumeMuted); in testDisallowAdjustVolume_muted() 80 waitUntil(true, mCheckIfMasterVolumeMuted); in testDisallowAdjustVolume_muted() 114 waitUntil(true, mCheckIfMasterVolumeMuted); in testDisallowAdjustVolume() 123 waitUntil(false, mCheckIfMasterVolumeMuted); in testDisallowAdjustVolume() 127 waitUntil(2, new Callable<Integer>() { in testDisallowAdjustVolume() 137 waitUntil(false, mCheckIfMasterVolumeMuted); in testDisallowAdjustVolume() 160 waitUntil(true, new Callable<Boolean>() { in testDisallowUnmuteMicrophone() 173 waitUntil(false, new Callable<Boolean>() { in testDisallowUnmuteMicrophone() 182 private <T> void waitUntil(T expected, Callable<T> c) throws Exception { in waitUntil() method in AudioRestrictionTest
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 19 import static com.android.compatibility.common.util.TestUtils.waitUntil; 90 waitUntil("Device still " + (pluggedIn ? " not plugged" : " plugged"), in waitForPlugStatus() 120 waitUntil("Battery saver still off", () -> getPowerManager().isPowerSaveMode()); in enableBatterySaver() 125 waitUntil("Battery saver still on", () -> !getPowerManager().isPowerSaveMode()); in enableBatterySaver() 138 waitUntil("Device still not interactive", () -> getPowerManager().isInteractive()); in turnOnScreen() 142 waitUntil("Device still interactive", () -> !getPowerManager().isInteractive()); in turnOnScreen()
|
D | TestUtils.java | 52 public static void waitUntil(String message, BooleanSupplierWithThrow predicate) in waitUntil() method in TestUtils 54 waitUntil(message, 0, predicate); in waitUntil() 60 public static void waitUntil( in waitUntil() method in TestUtils
|
D | AmMonitor.java | 104 final long waitUntil = SystemClock.uptimeMillis() + timeout; in waitFor() local 109 if (now >= waitUntil) { in waitFor() 115 mPendingLines.wait(waitUntil - now); in waitFor()
|
D | AmUtils.java | 45 TestUtils.waitUntil("package process was not killed:" + packageName, in runKill()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | InputMethodVisibilityVerifier.java | 58 private static boolean waitUntil(long timeout, @NonNull Predicate<UiAutomation> condition) { in waitUntil() method in InputMethodVisibilityVerifier 97 assertTrue(waitUntil(timeout, InputMethodVisibilityVerifier::containsWatermark)); in expectImeVisible() 110 assertTrue(waitUntil(timeout, InputMethodVisibilityVerifier::notContainsWatermark)); in expectImeInvisible()
|
D | MultiDisplaySecurityTests.java | 622 TestUtils.waitUntil("Waiting for system decoration flag to be set", in testSettingFlagWithoutInternalSystemPermission() 637 TestUtils.waitUntil("Waiting for show IME flag to be set", in testSettingFlagWithoutInternalSystemPermission() 692 TestUtils.waitUntil("Waiting for system decoration flag to be set", in testSettingFlagToUntrustedDisplay() 710 TestUtils.waitUntil("Waiting for show IME flag to be set", in testSettingFlagToUntrustedDisplay() 760 TestUtils.waitUntil("Waiting for system decoration flag to be set", in testSettingFlagToTrustedDisplay() 768 TestUtils.waitUntil("Waiting for system decoration flag to be set", in testSettingFlagToTrustedDisplay() 782 TestUtils.waitUntil("Waiting for show IME flag to be set", in testSettingFlagToTrustedDisplay() 790 TestUtils.waitUntil("Waiting for show IME flag to be set", in testSettingFlagToTrustedDisplay() 799 TestUtils.waitUntil("Waiting for show IME flag to be set", in testSettingFlagToTrustedDisplay()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | InputMethodVisibilityVerifier.java | 58 private static boolean waitUntil(long timeout, @NonNull Predicate<UiAutomation> condition) { in waitUntil() method in InputMethodVisibilityVerifier 97 assertTrue(waitUntil(timeout, InputMethodVisibilityVerifier::containsWatermark)); in expectImeVisible() 110 assertTrue(waitUntil(timeout, InputMethodVisibilityVerifier::notContainsWatermark)); in expectImeInvisible()
|
D | TestUtils.java | 129 CommonTestUtils.waitUntil("Device does not wake up after 5 seconds", 5, in turnScreenOn() 146 CommonTestUtils.waitUntil("Device does not sleep after 5 seconds", 5, in turnScreenOff() 166 CommonTestUtils.waitUntil("Device does not unlock after 3 seconds", 3, in unlockScreen()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | WatchUidRunner.java | 136 long waitUntil = SystemClock.uptimeMillis() + timeout; in expect() local 137 String[] line = waitForNextLine(waitUntil, cmd, procState, 0); in expect() 176 long waitUntil = SystemClock.uptimeMillis() + timeout; in waitFor() local 178 String[] line = waitForNextLine(waitUntil, cmd, procState, capability); in waitFor() 230 String[] waitForNextLine(long waitUntil, int cmd, String procState, Integer capability) { in waitForNextLine() argument 235 if (now >= waitUntil) { in waitForNextLine() 243 mPendingLines.wait(waitUntil - now); in waitForNextLine()
|
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/ |
D | AccessNetworkTest.java | 51 long waitUntil = SystemClock.uptimeMillis() + 5000; in waitForResult() local 55 if (now >= waitUntil) { in waitForResult() 59 wait(waitUntil - now); in waitForResult()
|
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/ |
D | CtsSyncManagerTest.java | 26 import static com.android.compatibility.common.util.TestUtils.waitUntil; 154 waitUntil("Dumpsys still mentions " + ACCOUNT_1_A, DEFAULT_TIMEOUT_SECONDS, in removeAllAccounts() 171 waitUntil("Syncable isn't initialized", DEFAULT_TIMEOUT_SECONDS, in addAccountAndLetInitialSyncRun() 174 waitUntil("Periodic sync should set up", DEFAULT_TIMEOUT_SECONDS, in addAccountAndLetInitialSyncRun() 232 waitUntil("Should retry more than 3 times.", DEFAULT_TIMEOUT_SECONDS, () -> { in testSoftErrorRetriesActiveApp() 260 waitUntil("Expedited job sync didn't run in Doze", 30, () -> { in testExpeditedJobSync() 291 waitUntil("Expedited job sync should still run in Doze", 30, () -> { in testExpeditedJobSync_InDoze() 344 waitUntil("Doze mode didn't change to " + (on ? "on" : "off"), 10, in setDozeState()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 19 import static com.android.compatibility.common.util.TestUtils.waitUntil; 161 waitUntil("PowerManager doesn't think the device has connected power", in testPowerManager_batteryDischargePrediction() 172 waitUntil("PowerManager still thinks the device has connected power", in testPowerManager_batteryDischargePrediction()
|
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/ |
D | SyncManagerCtsAuthenticator.java | 18 import static com.android.compatibility.common.util.TestUtils.waitUntil; 90 waitUntil("Accounts still exist.", in removeAllAccounts()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerSpoofingTest.java | 26 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.waitUntil; 113 waitUntil("Launcher 2 didn't receive message", () -> in testSpoofingLauncher()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_SimContactTest.java | 123 TestUtils.waitUntil("Broadcast has not been received in time", ASYNC_TIMEOUT_LIMIT_SEC, in testAddSimAccount_broadcastsChange() 145 TestUtils.waitUntil("Broadcast has not been received in time", ASYNC_TIMEOUT_LIMIT_SEC, in testRemoveSimAccount_broadcastsChange()
|
/cts/tests/app/src/android/app/cts/ |
D | CtsAppTestUtils.java | 54 CommonTestUtils.waitUntil("Device does not wake up after 5 seconds", 5, in turnScreenOn()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | PowerPolicyHostTest.java | 310 CommonTestUtils.waitUntil("timed out (" + DEFAULT_TIMEOUT_SEC in waitPowerPolicyListenersUpdated() 331 CommonTestUtils.waitUntil("timed out (" + DEFAULT_TIMEOUT_SEC in waitResetPowerPolicyListenersComplete() 344 CommonTestUtils.waitUntil("timed out (" + DEFAULT_TIMEOUT_SEC in waitUntilNumberPolicyListenersEquals() 352 CommonTestUtils.waitUntil(timeoutMsg, DEFAULT_TIMEOUT_SEC, in waitUntilForcedSilentModeChangeTo() 453 CommonTestUtils.waitUntil("timed out with " + mComponentName in waitUntilPowerStateChangeTo()
|
D | CarHostJUnit4TestCase.java | 311 CommonTestUtils.waitUntil("timed out waiting for user " + userId + " initialization", in waitForUserInitialized() 319 CommonTestUtils.waitUntil("timed out waiting for system server ", in waitForCarServiceReady() 368 CommonTestUtils.waitUntil("timed out (" + DEFAULT_TIMEOUT_SEC in waitUntilCurrentUser()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | MultiUserBackupStateTest.java | 93 CommonTestUtils.waitUntil("wait for backup to be deactivated for removed user", in testBackupDeactivatedWhenUserIsRemoved()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | AppStandbyTests.java | 292 assertTrue("Battery could not be unplugged", waitUntil(() -> !bm.isCharging(), 5_000)); in setBatteryCharging() 303 final boolean success = waitUntil(() -> (mAlarmCount.get() == 1), DEFAULT_WAIT); in waitForAlarm() 308 private boolean waitUntil(BooleanSupplier condition, long timeout) throws InterruptedException { in waitUntil() method in AppStandbyTests
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 278 TestUtils.waitUntil("Find and respond to request role UI", () -> { in requestRoleAndDenyWithDontAskAgainAndClearDataThenShowsUiWithoutDontAskAgain() 313 TestUtils.waitUntil("Find and respond to request role UI", () -> { in requestRoleAndDenyWithDontAskAgainAndReinstallThenShowsUiWithoutDontAskAgain() 466 TestUtils.waitUntil("App is not set as default dialer app", () -> in targetSdk28AndChangeDefaultDialerAndAllowThenIsDefaultDialer() 482 TestUtils.waitUntil("App is not set as default sms app", () -> Objects.equals( in targetSdk28AndChangeDefaultSmsAndAllowThenIsDefaultSms() 535 TestUtils.waitUntil("App is not set as default dialer app", () -> in targetSdk28AndChangeDefaultDialerForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultDialer() 554 TestUtils.waitUntil("App is not set as default sms app", () -> Objects.equals( in targetSdk28AndChangeDefaultSmsForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultSms()
|