/cts/hostsidetests/systemui/src/android/host/systemui/ |
D | TileServiceTest.java | 39 assertTrue(waitFor("onCreate")); in testAddTile() 40 assertTrue(waitFor("onTileAdded")); in testAddTile() 41 assertTrue(waitFor("onDestroy")); in testAddTile() 48 assertTrue(waitFor("onCreate")); in testRemoveTile() 49 assertTrue(waitFor("onTileAdded")); in testRemoveTile() 50 assertTrue(waitFor("onDestroy")); in testRemoveTile() 53 assertTrue(waitFor("onTileRemoved")); in testRemoveTile() 59 assertTrue(waitFor("onDestroy")); in testListeningNotifications() 63 assertTrue(waitFor("onStartListening")); in testListeningNotifications() 66 assertTrue(waitFor("onStopListening")); in testListeningNotifications() [all …]
|
D | ActiveTileServiceTest.java | 38 assertTrue(waitFor("onDestroy")); in testNotListening() 43 assertFalse(waitFor("onStartListening")); in testNotListening() 49 assertTrue(waitFor("onDestroy")); in testRequestListening() 53 assertTrue(waitFor("requestListeningState")); in testRequestListening() 54 assertTrue(waitFor("onStartListening")); in testRequestListening() 60 assertTrue(waitFor("onDestroy")); in testClick() 67 assertTrue(waitFor("onStartListening")); in testClick() 68 assertTrue(waitFor("onClick")); in testClick()
|
D | BaseTileServiceTest.java | 71 waitFor("onTileRemoved"); in tearDown() 109 protected boolean waitFor(String str) throws DeviceNotAvailableException, InterruptedException { in waitFor() method in BaseTileServiceTest
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 298 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener() 308 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener() 309 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener() 320 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener() 347 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener() 348 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener() 363 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener() 372 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener() 392 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener() 455 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testBackgroundCheckService() [all …]
|
D | TaskDescriptionTest.java | 90 waitFor("TaskDescription's icon is null", () -> td.getIcon() != null); in assertTaskDescription() 91 waitFor("TaskDescription's icon filename is null", in assertTaskDescription() 94 waitFor("TaskDescription's icon is not null", () -> td.getIcon() == null); in assertTaskDescription() 95 waitFor("TaskDescription's icon filename is not null", in assertTaskDescription() 107 private void waitFor(String message, BooleanSupplier waitCondition) { in waitFor() method in TaskDescriptionTest
|
/cts/tests/tests/location/src/android/location/cts/ |
D | TestGnssStatusCallback.java | 110 return TestUtils.waitFor(mLatchStart, TIMEOUT_IN_SEC); in awaitStart() 114 return TestUtils.waitFor(mLatchStatus, TIMEOUT_IN_SEC); in awaitStatus() 118 return TestUtils.waitFor(mLatchTtff, TIMEOUT_IN_SEC); in awaitTtff() 122 return TestUtils.waitFor(mLatchStop, TIMEOUT_IN_SEC); in awaitStop()
|
D | TestLocationListener.java | 71 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await() 75 return TestUtils.waitFor(mCountDownLatch, timeInSec); in await()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | DeviceStatesTest.java | 64 static void waitFor(long waitMillis) throws Exception { in waitFor() method in DeviceStatesTest 78 waitFor(2_000); in toggleFakeDeviceDockState() 91 waitFor(2_000); in toggleScreenOn() 100 waitFor(2_000); in triggerIdleMaintenance()
|
D | BatteryConstraintTest.java | 167 static void waitFor(long waitMillis) throws Exception { in waitFor() method in BatteryConstraintTest 202 waitFor(2_000); in testBatteryNotLowConstraintExecutes_withPower() 227 waitFor(2_000); in testBatteryNotLowConstraintExecutes_withoutPower() 308 waitFor(2_000); in testBatteryNotLowConstraintFails_withoutPower() 329 waitFor(2_000); in testBatteryNotLowConstraintFails_withoutPower() 341 waitFor(2_000); in testBatteryNotLowConstraintFails_withoutPower()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CustomViewActivityTest.java | 98 watcher.waitFor(RESUMED); in testLifecycle() 101 watcher.waitFor(DESTROYED); in testLifecycle() 137 watcher.waitFor(RESUMED); in testVirtualView_wrongWay() 140 watcher.waitFor(DESTROYED); in testVirtualView_wrongWay() 215 watcher.waitFor(RESUMED); in testVirtualView_oneLevel() 219 watcher.waitFor(DESTROYED); in testVirtualView_oneLevel() 330 watcher.waitFor(RESUMED); in testVirtualView_multipleLevels() 333 watcher.waitFor(DESTROYED); in testVirtualView_multipleLevels() 395 watcher.waitFor(RESUMED); in testVirtualView_batchDisappear() 398 watcher.waitFor(DESTROYED); in testVirtualView_batchDisappear() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SlidingDrawerTest.java | 144 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateOpenAndClose() 145 PollingCheck.waitFor(mDrawer::isOpened); in testAnimateOpenAndClose() 152 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateOpenAndClose() 153 PollingCheck.waitFor(() -> !mDrawer.isOpened()); in testAnimateOpenAndClose() 168 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateToggle() 169 PollingCheck.waitFor(mDrawer::isOpened); in testAnimateToggle() 176 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateToggle() 177 PollingCheck.waitFor(() -> !mDrawer.isOpened()); in testAnimateToggle()
|
D | FilterTest.java | 92 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPerformedFiltering); in testFilter1() 95 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPublishedResults); in testFilter1() 111 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPerformedFiltering); in testFilter2() 114 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPublishedResults); in testFilter2()
|
D | SpinnerTest.java | 343 PollingCheck.waitFor(() -> mSpinnerDropdownMode.isPopupShowing()); in testDropDownMetricsDropdownMode() 377 PollingCheck.waitFor(() -> mSpinnerDialogMode.isPopupShowing()); in testDropDownMetricsDialogMode() 399 PollingCheck.waitFor(() -> mSpinnerDropdownMode.isPopupShowing()); in testDropDownBackgroundDropdownMode() 409 PollingCheck.waitFor(() -> !mSpinnerDropdownMode.isPopupShowing()); in testDropDownBackgroundDropdownMode() 421 PollingCheck.waitFor(() -> mSpinnerDropdownMode.isPopupShowing()); in testDropDownBackgroundDropdownMode() 443 PollingCheck.waitFor(() -> mSpinnerDialogMode.isPopupShowing()); in testDropDownBackgroundDialogMode() 450 PollingCheck.waitFor(() -> !mSpinnerDropdownMode.isPopupShowing()); in testDropDownBackgroundDialogMode() 460 PollingCheck.waitFor(() -> mSpinnerDialogMode.isPopupShowing()); in testDropDownBackgroundDialogMode()
|
D | ToolbarTest.java | 171 PollingCheck.waitFor(() -> mMainToolbar.isOverflowMenuShowing()); in testMenuOverflowShowHide() 175 PollingCheck.waitFor(() -> !mMainToolbar.isOverflowMenuShowing()); in testMenuOverflowShowHide() 187 PollingCheck.waitFor(() -> mMainToolbar.isOverflowMenuShowing()); in testMenuOverflowSubmenu() 204 PollingCheck.waitFor(() -> !mMainToolbar.isOverflowMenuShowing()); in testMenuOverflowSubmenu() 234 PollingCheck.waitFor(() -> in testActionView() 240 PollingCheck.waitFor(() -> in testActionView() 245 PollingCheck.waitFor(() -> in testActionView() 251 PollingCheck.waitFor(() -> in testActionView() 290 PollingCheck.waitFor(() -> in testCollapseConfiguration()
|
D | AutoCompleteTextViewTest.java | 148 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup() 446 PollingCheck.waitFor(() -> { in refreshAutoCompleteResults_addItem() 457 PollingCheck.waitFor(() -> { in refreshAutoCompleteResults_addItem() 477 PollingCheck.waitFor(() -> { in refreshAutoCompleteResults_removeItem() 488 PollingCheck.waitFor(() -> { in refreshAutoCompleteResults_removeItem() 586 PollingCheck.waitFor(() -> mAutoCompleteTextView.isPopupShowing()); in refreshAutoCompleteResults_dropDownAlwaysVisible() 642 PollingCheck.waitFor(() -> { in refreshAutoCompleteResults() 652 PollingCheck.waitFor(() -> { in refreshAutoCompleteResults() 777 PollingCheck.waitFor(() -> !mAutoCompleteTextView.isPopupShowing()); in testOnFilterComplete() 786 PollingCheck.waitFor(() -> !mAutoCompleteTextView.isPopupShowing()); in testOnFilterComplete() [all …]
|
/cts/hostsidetests/testharness/app/src/android/testharness/app/ |
D | TestHarnessModeDeviceTest.java | 45 PollingCheck.waitFor(activity::isKeyboardVisible); in ensureActivityNotObscuredByKeyboardSetUpScreen() 54 PollingCheck.waitFor(activity::hasWindowFocus); in dirtyDevice() 62 PollingCheck.waitFor(activity::hasWindowFocus); in testDeviceIsClean()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/ |
D | BusyWaitUtils.java | 58 if (waitFor(condition, timeout)) { in pollingCheck() 71 static boolean waitFor(PollingCondition condition, long timeout) throws Exception { in waitFor() method in BusyWaitUtils
|
/cts/hostsidetests/jvmti/allocation-tracking/app/src/android/jvmti/cts/ |
D | JvmtiTrackingTest.java | 127 trackBarrier.waitFor(); in testThread() 142 startBarrier.waitFor(); in testThread() 162 public synchronized void waitFor() throws Exception { in waitFor() method in JvmtiTrackingTest.SimpleBarrier
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PollingCheck.java | 77 public static void waitFor(final PollingCheckCondition condition) { in waitFor() method in PollingCheck 86 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() method in PollingCheck
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PollingCheck.java | 77 public static void waitFor(final PollingCheckCondition condition) { in waitFor() method in PollingCheck 86 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() method in PollingCheck
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | UiDeviceUtils.java | 111 private static void retryPressKeyCode(int keyCode, BooleanSupplier waitFor, String msg) { in retryPressKeyCode() argument 115 if (waitFor.getAsBoolean()) { in retryPressKeyCode() 121 if (!waitFor.getAsBoolean()) { in retryPressKeyCode()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceRecycleTest.java | 100 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaXmlTest() 145 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest() 152 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestUtils.java | 77 PollingCheck.waitFor(animation::hasStarted); in assertRunAnimation() 80 PollingCheck.waitFor(duration + TIMEOUT_DELTA, animation::hasEnded); in assertRunAnimation()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | UiDeviceUtils.java | 118 private static void retryPressKeyCode(int keyCode, BooleanSupplier waitFor, String msg) { in retryPressKeyCode() argument 122 if (waitFor.getAsBoolean()) { in retryPressKeyCode() 128 if (!waitFor.getAsBoolean()) { in retryPressKeyCode()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PointerCaptureTest.java | 88 PollingCheck.waitFor(TIMEOUT_DELTA, view::hasFocus); in requestFocusSync() 92 PollingCheck.waitFor(TIMEOUT_DELTA, () -> { in requestCaptureSync() 107 PollingCheck.waitFor(TIMEOUT_DELTA, in releaseCaptureSync() 212 PollingCheck.waitFor(TIMEOUT_DELTA, mActivity::hasWindowFocus); in setup() 241 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture() 242 PollingCheck.waitFor(TIMEOUT_DELTA, in testWindowFocusChangeEndsCapture() 246 PollingCheck.waitFor(TIMEOUT_DELTA, () -> mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture() 258 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mActivity.hasWindowFocus()); in testActivityFocusChangeEndsCapture()
|