Home
last modified time | relevance | path

Searched refs:PollingCheck (Results 1 – 25 of 102) sorted by relevance

12345

/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java47 import com.android.compatibility.common.util.PollingCheck;
293 new PollingCheck(TIME_OUT) { in verifyCommandTuneForRecording() method
308 new PollingCheck(TIME_OUT) { in verifyCommandTuneForRecordingWithBundle() method
324 new PollingCheck(TIME_OUT) { in verifyCommandRelease() method
338 new PollingCheck(TIME_OUT) { in verifyCommandStartRecording() method
352 new PollingCheck(TIME_OUT) { in verifyCommandStopRecording() method
366 new PollingCheck(TIME_OUT) { in verifyCommandSendAppPrivateCommandForRecording() method
385 new PollingCheck(TIME_OUT) { in verifyCallbackTuned() method
401 new PollingCheck(TIME_OUT) { in verifyCallbackError() method
417 new PollingCheck(TIME_OUT) { in verifyCallbackRecordingStopped() method
[all …]
DTvInputManagerTest.java29 import com.android.compatibility.common.util.PollingCheck;
173 new PollingCheck(TIME_OUT_MS) { in testInputAddedAndRemoved() method
186 new PollingCheck(TIME_OUT_MS) { in testInputAddedAndRemoved() method
222 new PollingCheck(TIME_OUT_MS) { in testTvInputInfoUpdated() method
231 new PollingCheck(TIME_OUT_MS) { in testTvInputInfoUpdated() method
DTvViewTest.java40 import com.android.compatibility.common.util.PollingCheck;
241 new PollingCheck(TIME_OUT_MS) { in tryTuneAllChannels() method
281 new PollingCheck(TIME_OUT_MS) { in selectTrackAndVerify() method
358 new PollingCheck(TIME_OUT_MS) { in testTrackChange()
380 new PollingCheck(TIME_OUT_MS) { in verifyKeyEvent() method
417 new PollingCheck(TIME_OUT_MS) { in testOnUnhandledInputEventListener() method
445 new PollingCheck(TIME_OUT_MS) { in testConnectionFailed() method
460 new PollingCheck(TIME_OUT_MS) { in testDisconnected() method
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java44 import com.android.compatibility.common.util.PollingCheck;
351 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptOnce()
358 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptOnce()
362 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptOnce()
363 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptOnce()
366 private static class OriginCheck extends PollingCheck implements
406 private static class BooleanCheck extends PollingCheck implements
445 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptAlways()
452 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptAlways()
457 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptAlways()
[all …]
DWebChromeClientTest.java36 import com.android.compatibility.common.util.PollingCheck;
98 new PollingCheck(TEST_TIMEOUT) { in testOnProgressChanged() method
117 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedTitle() method
149 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedIcon() method
174 new PollingCheck(TEST_TIMEOUT) { in runWindowTest() method
182 new PollingCheck(TEST_TIMEOUT) { in runWindowTest() method
276 new PollingCheck(TEST_TIMEOUT) { in testOnJsAlert() method
301 new PollingCheck(TEST_TIMEOUT) { in testOnJsConfirm() method
328 new PollingCheck(TEST_TIMEOUT) { in testOnJsPrompt() method
335 new PollingCheck(TEST_TIMEOUT) { in testOnJsPrompt() method
DWebViewClientTest.java42 import com.android.compatibility.common.util.PollingCheck;
81 new PollingCheck(TEST_TIMEOUT) { in setUp() method
181 new PollingCheck(TEST_TIMEOUT) { in testShouldOverrideUrlLoadingOnCreateWindow() method
187 new PollingCheck(TEST_TIMEOUT) { in testShouldOverrideUrlLoadingOnCreateWindow() method
200 new PollingCheck(TEST_TIMEOUT) { in testShouldOverrideUrlLoadingOnCreateWindow() method
231 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method
238 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method
245 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method
274 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedLoginRequest() method
362 new PollingCheck(TEST_TIMEOUT) { in testOnFormResubmission() method
[all …]
DServiceWorkerClientTest.java31 import com.android.compatibility.common.util.PollingCheck;
173 PollingCheck.check("JS could not register Service Worker", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
182 PollingCheck.check("Service Worker intercept callbacks not invoked", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
198 PollingCheck.check("JS could not unregister Service Worker", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
DWebViewTest.java87 import com.android.compatibility.common.util.PollingCheck;
172 new PollingCheck() { in setUp() method
889 new PollingCheck(TEST_TIMEOUT) { in waitForPictureToHaveColor() method
948 new PollingCheck(TEST_TIMEOUT) { in testSetPictureListener() method
960 new PollingCheck(TEST_TIMEOUT) { in testSetPictureListener() method
1495 class ScrollDiffPollingCheck extends PollingCheck { in waitForFlingDone()
1538 new PollingCheck() { in testPageScroll() method
1563 new PollingCheck() { in testPageScroll() method
1572 new PollingCheck() { in testPageScroll() method
1586 new PollingCheck() { in testGetContentHeight() method
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPollingCheck.java23 public abstract class PollingCheck { class
31 public PollingCheck() { in PollingCheck() method in PollingCheck
34 public PollingCheck(long timeout) { in PollingCheck() method in PollingCheck
78 new PollingCheck() { in waitFor() method
87 new PollingCheck(timeout) { in waitFor() method
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPollingCheck.java23 public abstract class PollingCheck { class
31 public PollingCheck() { in PollingCheck() method in PollingCheck
34 public PollingCheck(long timeout) { in PollingCheck() method in PollingCheck
78 new PollingCheck() { in waitFor() method
87 new PollingCheck(timeout) { in waitFor() method
/cts/tests/app/src/android/app/cts/
DAlarmManagerTest.java36 import com.android.compatibility.common.util.PollingCheck;
127 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
139 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
151 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
163 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
179 new PollingCheck(TIME_DELAY) { in testAlarmTriggersImmediatelyIfSetTimeIsNegative() method
201 new PollingCheck(TEST_WINDOW_LENGTH + (windowStart - now) + 500) { in testExactAlarmBatching()
211 new PollingCheck(timeToExact) { in testExactAlarmBatching() method
238 new PollingCheck(TEST_ALARM_FUTURITY + REPEAT_PERIOD) { in testSetRepeating()
248 new PollingCheck(REPEAT_PERIOD*2) { in testSetRepeating()
[all …]
DIntentServiceTest.java27 import com.android.compatibility.common.util.PollingCheck;
63 PollingCheck.check("onHandleIntentCalled not called enough", TIMEOUT_MSEC, in testIntents()
71 PollingCheck.check("accumulator not correct", TIMEOUT_MSEC, new Callable<Boolean>() { in testIntents()
78 PollingCheck.check("onDestroyCalled not called", TIMEOUT_MSEC, new Callable<Boolean>() { in testIntents()
89 new PollingCheck(TIMEOUT_MSEC) { in testIntentServiceLifeCycle() method
100 new PollingCheck(TIMEOUT_MSEC) { in testIntentServiceLifeCycle() method
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java24 import com.android.compatibility.common.util.PollingCheck;
73 new PollingCheck(TIME_OUT_MS) { in testMediaBrowser() method
98 new PollingCheck(TIME_OUT_MS) { in testConnectionFailed() method
120 new PollingCheck(TIME_OUT_MS) { in testReconnection() method
130 new PollingCheck(TIME_OUT_MS) { in testReconnection() method
145 new PollingCheck(TIME_OUT_MS) { in testReconnection() method
184 new PollingCheck(TIME_OUT_MS) { in testSubscribe() method
227 new PollingCheck(TIME_OUT_MS) { in testSubscribeWithOptions() method
269 new PollingCheck(TIME_OUT_MS) { in testSubscribeInvalidItem() method
291 new PollingCheck(TIME_OUT_MS) { in testSubscribeInvalidItemWithOptions() method
[all …]
DMediaScannerConnectionTest.java29 import com.android.compatibility.common.util.PollingCheck;
100 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method
105 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method
113 new PollingCheck(TIME_OUT) { in checkConnectionState() method
/cts/tests/tests/widget/src/android/widget/cts/
DSlidingDrawerTest.java47 import com.android.compatibility.common.util.PollingCheck;
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()
DFilterTest.java36 import com.android.compatibility.common.util.PollingCheck;
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()
DSpinnerTest.java52 import com.android.compatibility.common.util.PollingCheck;
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()
DToolbarTest.java48 import com.android.compatibility.common.util.PollingCheck;
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()
DAutoCompleteTextViewTest.java78 import com.android.compatibility.common.util.PollingCheck;
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()
[all …]
/cts/hostsidetests/testharness/app/src/android/testharness/app/
DTestHarnessModeDeviceTest.java32 import com.android.compatibility.common.util.PollingCheck;
45 PollingCheck.waitFor(activity::isKeyboardVisible); in ensureActivityNotObscuredByKeyboardSetUpScreen()
54 PollingCheck.waitFor(activity::hasWindowFocus); in dirtyDevice()
62 PollingCheck.waitFor(activity::hasWindowFocus); in testDeviceIsClean()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java30 import com.android.compatibility.common.util.PollingCheck;
64 PollingCheck.waitFor(isMiddleOfClipping(redSquare, newClip)); in testChangeClipBounds()
79 PollingCheck.waitFor(isMiddleOfClipping(redSquare, newClip)); in testChangeClipBounds()
85 private static PollingCheck.PollingCheckCondition isMiddleOfClipping(final View redSquare, in isMiddleOfClipping()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DCollectionAppWidgetProvider.java31 import com.android.compatibility.common.util.PollingCheck;
50 private static PollingCheck.PollingCheckCondition sSetScrollCondition;
52 private static PollingCheck.PollingCheckCondition sSetRelativeScrollCondition;
62 PollingCheck.PollingCheckCondition setScrollCondition, in configure()
63 PollingCheck.PollingCheckCondition setRelativeScrollCondition) { in configure()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java28 import com.android.compatibility.common.util.PollingCheck;
77 PollingCheck.waitFor(animation::hasStarted); in assertRunAnimation()
80 PollingCheck.waitFor(duration + TIMEOUT_DELTA, animation::hasEnded); in assertRunAnimation()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceRecycleTest.java31 import com.android.compatibility.common.util.PollingCheck;
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/cts/
DPointerCaptureTest.java50 import com.android.compatibility.common.util.PollingCheck;
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()

12345