Home
last modified time | relevance | path

Searched refs:waitOn (Results 1 – 21 of 21) sorted by relevance

/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DServiceControlUtils.java19 import static com.android.compatibility.common.util.TestUtils.waitOn;
57 waitOn(lock, condition, timeoutMs, conditionName); in waitForConditionWithServiceStateChange()
DInstrumentedAccessibilityService.java19 import static com.android.compatibility.common.util.TestUtils.waitOn;
291 waitOn(waitLockForA11yOff, () -> !accessibilityEnabled.get(), TIMEOUT_SERVICE_ENABLE, in disableAllServices()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAsyncUtils.java72 public static void waitOn(Object notifyLock, BooleanSupplier condition) { in waitOn() method in AsyncUtils
73 TestUtils.waitOn(notifyLock, condition, DEFAULT_TIMEOUT_MS, null); in waitOn()
DDisplayUtils.java162 TestUtils.waitOn(waitObject, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DFullScreenMagnificationGestureHandlerTest.java20 import static android.accessibilityservice.cts.utils.AsyncUtils.waitOn;
271 waitOn(mZoomLock, () -> !isZoomed()); in testViewportDragging()
314 waitOn(mZoomLock, in testPanning()
354 waitOn(mZoomLock, () -> !isZoomed()); in testTapNavigationBar_zoomingAndFlagsOff_zoomOut()
370 waitOn(mZoomLock, () -> !isZoomed()); in testSwipeUpFromNavigationBar_zooming_zoomOut()
379 waitOn(mZoomLock, () -> { in setZoomByTripleTapping()
398 waitOn(mZoomLock, () -> distance(mCurrentZoomCenter, oldCenter) >= mPan / 5); in tripleTapAndDragViewport()
411 waitOn(mZoomLock, () -> isZoomed()); in tripleTapAndHold()
DStubMotionInterceptingAccessibilityService.java96 TestUtils.waitOn(waitObject, foundCanaryEvent::get, in setAndAwaitMotionEventSources()
122 TestUtils.waitOn(waitObject, gotEvent::get, timeoutMs, in injectAndAwaitMotionEvent()
DAccessibilityDisplayProxyTest.java60 import static com.android.compatibility.common.util.TestUtils.waitOn;
553 waitOn(mA11yProxy.mWaitObject, ()-> mA11yProxy.mReceivedEvent.get(), TIMEOUT_MS, in testOnAccessibilityEvent_clickButton_proxyReceivesClickEvent()
767 waitOn(mA11yProxy.mWaitObject, ()-> mA11yProxy.mReceivedEvent.get(), in testOnA11yEvent_moveFocusWithinWindow_proxyDoesNotGetWindowEvent()
783 waitOn(mA11yProxy.mWaitObject, ()-> mA11yProxy.mReceivedEvent.get(), TIMEOUT_MS, in testOnA11yEvent_setInitialFocus_proxyGetsWindowEvent()
810 waitOn(mA11yProxy.mWaitObject, ()-> mA11yProxy.mReceivedEvent.get(), TIMEOUT_MS, in testOnA11yEvent_moveFocusBetweenWindows_proxyGetsWindowEvent()
910 waitOn(mA11yProxy.mWaitObject, ()-> mA11yProxy.mReceivedEvent.get(), in testOnA11yEvent_touchProxyDisplay_proxyDoesNotReceiveInteractionEvent()
982 waitOn(listener.mWaitObject, () -> listener.mAtomicBoolean.get(), TIMEOUT_MS, in onAccessibilityServicesStateChanged_updateProxyEnabledList_notifiesProxiedApp()
1011 waitOn(listener.mWaitObject, () -> listener.mAtomicBoolean.get(), TIMEOUT_MS, in onAccessibilityServicesStateChanged_updateProxyEnabledList_closeVirtualDevice_notifiesProxiedApp()
1039 waitOn(listener.mWaitObject, ()-> !listener.mAtomicBoolean.get(), TIMEOUT_MS, in onAccessibilityStateChanged_registerProxy_isCalledForProxiedApp()
1045 waitOn(listener.mWaitObject, ()-> listener.mAtomicBoolean.get(), TIMEOUT_MS, in onAccessibilityStateChanged_registerProxy_isCalledForProxiedApp()
[all …]
DTouchExplorationStubAccessibilityService.java49 TestUtils.waitOn(mLock, () -> mCollectedEvents.contains(TYPE_VIEW_ACCESSIBILITY_FOCUSED), in waitForAccessibilityFocus()
DStubEventCapturingAccessibilityService.java62 TestUtils.waitOn(mWaitObject, mReceivedEvent::get, timeoutMs, condition); in waitOnEvent()
DBrailleDisplayControllerTest.java250 TestUtils.waitOn(mDeviceWaitObject, () -> { in cleanup()
317 TestUtils.waitOn(mDeviceWaitObject, () -> { in createTestHidrawNode()
740 TestUtils.waitOn(mDeviceWaitObject, () -> { in connect_allowsReconnectionAfterDisconnect()
832 TestUtils.waitOn(waitObject, () -> receivedInputBytes.size() == 2, in onInput()
DAccessibilityEndToEndTest.java1698 TestUtils.waitOn(waitLock, in checkIsRequestFromAccessibilityTool()
1832 TestUtils.waitOn(waitLock, () -> !hasAnyDirectConnection.get(), DEFAULT_TIMEOUT_MS, in testDirectAccessibilityConnection_AccessibilityManagerEnabled()
2135 TestUtils.waitOn( in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
2158 TestUtils.waitOn( in testOnMotionEvent_interceptsEventFromRequestedSource_observesMotionEvents()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java52 import static com.android.compatibility.common.util.TestUtils.waitOn;
401 waitOn(waitLockForA11yOff, () -> !enabled.get(), TIMEOUT_FOR_LISTENER_NOTIFIED_MS, in testOnA11yStateChanged_dontUseAccessibilityFlag_notifiesAppA11yIsOff()
427 waitOn(waitLockForA11yChange, () -> !enabled.get(), TIMEOUT_FOR_LISTENER_NOTIFIED_MS, in testOnA11yStateChanged_removeDontUseAccessibilityFlag_turnsA11yBackOn()
430 waitOn(waitLockForA11yChange, () -> enabled.get(), TIMEOUT_FOR_LISTENER_NOTIFIED_MS, in testOnA11yStateChanged_removeDontUseAccessibilityFlag_turnsA11yBackOn()
612 waitOn(waitLockForA11yOn, () -> enabled.get(), TIMEOUT_FOR_LISTENER_NOTIFIED_MS, in enableAccessibilityWithAutomationIfNeeded()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DTestUtils.java107 public static void waitOn(Object notifyLock, BooleanSupplier condition, in waitOn() method in TestUtils
/cts/libs/input/src/com/android/cts/input/
DUinputTouchDevice.kt28 import com.android.compatibility.common.util.TestUtils.waitOn
167 waitOn( in waitForDeviceUpdatesUntil()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DDisplayUtils.java104 TestUtils.waitOn(waitObject, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/tests/car/src/android/car/cts/utils/
DDisplayUtils.java131 TestUtils.waitOn(waitObject, in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityShortcutTest.java271 TestUtils.waitOn(clicked, () -> clicked.get(), TIMEOUT_SERVICE_ENABLE, in performShortcutAndWaitForA11yButtonClicked()
DAccessibilityManagerTest.java689 TestUtils.waitOn(waitObject, () -> atomicBoolean.get() == expectedValue, timeoutTime, in waitForAtomicBooleanBecomes()
/cts/tests/tests/widget29/src/android/widget/cts29/
DToastTest.java289 TestUtils.waitOn(lock, in waitForA11yRecommendedTimeoutChanged()
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java1047 TestUtils.waitOn(waitObject, () -> atomicBoolean.get() == expectedValue, in waitForAtomicBooleanBecomes()
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java573 TestUtils.waitOn(lock, in waitForA11yRecommendedTimeoutChanged()