/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PollingCheck.java | 23 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/ |
D | IntentServiceTest.java | 27 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
|
D | AlarmManagerTest.java | 34 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/ |
D | GeolocationTest.java | 43 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 …]
|
D | WebChromeClientTest.java | 33 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 …]
|
D | ServiceWorkerClientTest.java | 31 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()
|
D | WebViewClientTest.java | 42 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 …]
|
D | WebBackForwardListTest.java | 25 import com.android.compatibility.common.util.PollingCheck; 86 new PollingCheck(TEST_TIMEOUT) { in checkBackForwardList() method
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 47 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 …]
|
D | TvInputManagerTest.java | 29 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
|
D | BundledTvInputServiceTest.java | 31 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/ |
D | AnimationTestUtils.java | 27 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/ |
D | MediaBrowserTest.java | 24 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 …]
|
D | MediaScannerConnectionTest.java | 32 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/ |
D | ChangeClipBoundsTest.java | 29 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/ |
D | SlidingDrawerTest.java | 46 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()
|
D | FilterTest.java | 35 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/ |
D | PreferenceRecycleTest.java | 30 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/ |
D | MyAppWidgetProvider.java | 31 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/ |
D | ClipboardManagerListenerTest.java | 24 import com.android.compatibility.common.util.PollingCheck; 60 new PollingCheck() { in assertClipChangedCount() method
|
/cts/tests/app/app/src/android/app/stubs/ |
D | IntentServiceStub.java | 24 import com.android.compatibility.common.util.PollingCheck; 54 new PollingCheck(timeout) { in waitToFinish() method
|
/cts/tests/tests/view/src/android/view/cts/ |
D | SearchEventTest.java | 33 import com.android.compatibility.common.util.PollingCheck; 55 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
|
D | PointerCaptureTest.java | 49 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()
|
D | KeyEventInterceptTest.java | 30 import com.android.compatibility.common.util.PollingCheck; 62 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiInfoTest.java | 31 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()
|