Home
last modified time | relevance | path

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

1234

/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/
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
DAlarmManagerTest.java34 import com.android.compatibility.common.util.PollingCheck;
125 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
137 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
149 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
161 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes()
177 new PollingCheck(TIME_DELAY) { in testAlarmTriggersImmediatelyIfSetTimeIsNegative() method
199 new PollingCheck(TEST_WINDOW_LENGTH + (windowStart - now) + 500) { in testExactAlarmBatching()
209 new PollingCheck(timeToExact) { in testExactAlarmBatching() method
235 new PollingCheck(TEST_ALARM_FUTURITY + REPEAT_PERIOD) { in testSetRepeating()
245 new PollingCheck(REPEAT_PERIOD*2) { in testSetRepeating()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DGeolocationTest.java43 import com.android.compatibility.common.util.PollingCheck;
349 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptOnce()
356 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptOnce()
360 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptOnce()
361 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptOnce()
364 private static class OriginCheck extends PollingCheck implements
404 private static class BooleanCheck extends PollingCheck implements
443 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptAlways()
450 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptAlways()
455 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptAlways()
[all …]
DWebChromeClientTest.java33 import com.android.compatibility.common.util.PollingCheck;
84 new PollingCheck(TEST_TIMEOUT) { in testOnProgressChanged() method
103 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedTitle() method
138 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedIcon() method
163 new PollingCheck(TEST_TIMEOUT) { in runWindowTest() method
171 new PollingCheck(TEST_TIMEOUT) { in runWindowTest() method
226 new PollingCheck(TEST_TIMEOUT) { in testOnJsBeforeUnloadIsCalled() method
250 new PollingCheck(TEST_TIMEOUT) { in testOnJsAlert() method
275 new PollingCheck(TEST_TIMEOUT) { in testOnJsConfirm() method
302 new PollingCheck(TEST_TIMEOUT) { in testOnJsPrompt() method
[all …]
DServiceWorkerClientTest.java31 import com.android.compatibility.common.util.PollingCheck;
167 PollingCheck.check("JS could not register Service Worker", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
176 PollingCheck.check("Service Worker intercept callbacks not invoked", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
192 PollingCheck.check("JS could not unregister Service Worker", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
DWebViewClientTest.java42 import com.android.compatibility.common.util.PollingCheck;
71 new PollingCheck(TEST_TIMEOUT) { in setUp() method
157 new PollingCheck(TEST_TIMEOUT) { in testShouldOverrideUrlLoadingOnCreateWindow() method
206 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method
213 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method
220 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method
249 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedLoginRequest() method
327 new PollingCheck(TEST_TIMEOUT) { in testOnFormResubmission() method
348 new PollingCheck(TEST_TIMEOUT) { in testDoUpdateVisitedHistory() method
394 new PollingCheck(TEST_TIMEOUT) { in testOnUnhandledKeyEvent() method
[all …]
DWebBackForwardListTest.java25 import com.android.compatibility.common.util.PollingCheck;
86 new PollingCheck(TEST_TIMEOUT) { in checkBackForwardList() method
/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
DBundledTvInputServiceTest.java31 import com.android.compatibility.common.util.PollingCheck;
145 new PollingCheck(TIME_OUT) { in testTune() method
180 new PollingCheck(TIME_OUT) { in testTuneStress() method
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java27 import com.android.compatibility.common.util.PollingCheck;
76 PollingCheck.waitFor(animation::hasStarted); in assertRunAnimation()
79 PollingCheck.waitFor(duration + TIMEOUT_DELTA, animation::hasEnded); in assertRunAnimation()
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java24 import com.android.compatibility.common.util.PollingCheck;
72 new PollingCheck(TIME_OUT_MS) { in testMediaBrowser() method
97 new PollingCheck(TIME_OUT_MS) { in testConnectionFailed() method
119 new PollingCheck(TIME_OUT_MS) { in testReconnection() method
129 new PollingCheck(TIME_OUT_MS) { in testReconnection() method
144 new PollingCheck(TIME_OUT_MS) { in testReconnection() method
183 new PollingCheck(TIME_OUT_MS) { in testSubscribe() method
226 new PollingCheck(TIME_OUT_MS) { in testSubscribeWithOptions() method
268 new PollingCheck(TIME_OUT_MS) { in testSubscribeInvalidItem() method
290 new PollingCheck(TIME_OUT_MS) { in testSubscribeInvalidItemWithOptions() method
[all …]
DMediaScannerConnectionTest.java32 import com.android.compatibility.common.util.PollingCheck;
104 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method
109 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method
117 new PollingCheck(TIME_OUT) { in checkConnectionState() method
/cts/tests/tests/transition/src/android/transition/cts/
DChangeClipBoundsTest.java29 import com.android.compatibility.common.util.PollingCheck;
63 PollingCheck.waitFor(isMiddleOfClipping(redSquare, newClip)); in testChangeClipBounds()
78 PollingCheck.waitFor(isMiddleOfClipping(redSquare, newClip)); in testChangeClipBounds()
84 private static PollingCheck.PollingCheckCondition isMiddleOfClipping(final View redSquare, in isMiddleOfClipping()
/cts/tests/tests/widget/src/android/widget/cts/
DSlidingDrawerTest.java46 import com.android.compatibility.common.util.PollingCheck;
143 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateOpenAndClose()
144 PollingCheck.waitFor(mDrawer::isOpened); in testAnimateOpenAndClose()
151 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateOpenAndClose()
152 PollingCheck.waitFor(() -> !mDrawer.isOpened()); in testAnimateOpenAndClose()
167 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateToggle()
168 PollingCheck.waitFor(mDrawer::isOpened); in testAnimateToggle()
175 PollingCheck.waitFor(() -> !mDrawer.isMoving()); in testAnimateToggle()
176 PollingCheck.waitFor(() -> !mDrawer.isOpened()); in testAnimateToggle()
DFilterTest.java35 import com.android.compatibility.common.util.PollingCheck;
89 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPerformedFiltering); in testFilter1()
92 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPublishedResults); in testFilter1()
107 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPerformedFiltering); in testFilter2()
110 PollingCheck.waitFor(TIME_OUT, mMockFilter::hadPublishedResults); in testFilter2()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceRecycleTest.java30 import com.android.compatibility.common.util.PollingCheck;
99 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaXmlTest()
144 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
151 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
/cts/tests/tests/widget/src/android/widget/cts/appwidget/
DMyAppWidgetProvider.java31 import com.android.compatibility.common.util.PollingCheck;
49 private static PollingCheck.PollingCheckCondition sSetScrollCondition;
51 private static PollingCheck.PollingCheckCondition sSetRelativeScrollCondition;
61 PollingCheck.PollingCheckCondition setScrollCondition, in configure()
62 PollingCheck.PollingCheckCondition setRelativeScrollCondition) { in configure()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerListenerTest.java24 import com.android.compatibility.common.util.PollingCheck;
60 new PollingCheck() { in assertClipChangedCount() method
/cts/tests/app/app/src/android/app/stubs/
DIntentServiceStub.java24 import com.android.compatibility.common.util.PollingCheck;
54 new PollingCheck(timeout) { in waitToFinish() method
/cts/tests/tests/view/src/android/view/cts/
DSearchEventTest.java33 import com.android.compatibility.common.util.PollingCheck;
55 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
DPointerCaptureTest.java49 import com.android.compatibility.common.util.PollingCheck;
87 PollingCheck.waitFor(TIMEOUT_DELTA, view::hasFocus); in requestFocusSync()
92 PollingCheck.waitFor(TIMEOUT_DELTA, in requestCaptureSync()
102 PollingCheck.waitFor(TIMEOUT_DELTA, in releaseCaptureSync()
207 PollingCheck.waitFor(TIMEOUT_DELTA, mActivity::hasWindowFocus); in setup()
236 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture()
237 PollingCheck.waitFor(TIMEOUT_DELTA, in testWindowFocusChangeEndsCapture()
241 PollingCheck.waitFor(TIMEOUT_DELTA, () -> mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture()
253 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mActivity.hasWindowFocus()); in testActivityFocusChangeEndsCapture()
DKeyEventInterceptTest.java30 import com.android.compatibility.common.util.PollingCheck;
62 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiInfoTest.java31 import com.android.compatibility.common.util.PollingCheck;
142 PollingCheck.check("getNetworkId not -1", 20000, new Callable<Boolean>() { in testWifiInfoProperties()
150 PollingCheck.check("getWifiState not disabled", 20000, new Callable<Boolean>() { in testWifiInfoProperties()

1234