/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; 342 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptOnce() 349 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptOnce() 353 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptOnce() 354 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptOnce() 357 private static class OriginCheck extends PollingCheck implements 397 private static class BooleanCheck extends PollingCheck implements 436 PollingCheck.check("Geolocation prompt not called", POLLING_TIMEOUT, receivedRequest); in testSimpleGeolocationRequestAcceptAlways() 443 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptAlways() 448 PollingCheck.check("JS didn't get position", POLLING_TIMEOUT, receivedLocation); in testSimpleGeolocationRequestAcceptAlways() [all …]
|
D | WebChromeClientTest.java | 31 import com.android.compatibility.common.util.PollingCheck; 82 new PollingCheck(TEST_TIMEOUT) { in testOnProgressChanged() method 101 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedTitle() method 136 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedIcon() method 161 new PollingCheck(TEST_TIMEOUT) { in runWindowTest() method 169 new PollingCheck(TEST_TIMEOUT) { in runWindowTest() method 219 new PollingCheck(TEST_TIMEOUT) { in testOnJsBeforeUnloadIsCalled() method 243 new PollingCheck(TEST_TIMEOUT) { in testOnJsAlert() method 268 new PollingCheck(TEST_TIMEOUT) { in testOnJsConfirm() method 295 new PollingCheck(TEST_TIMEOUT) { in testOnJsPrompt() method [all …]
|
D | WebViewClientTest.java | 39 import com.android.compatibility.common.util.PollingCheck; 65 new PollingCheck(TEST_TIMEOUT) { in setUp() method 151 new PollingCheck(TEST_TIMEOUT) { in testShouldOverrideUrlLoadingOnCreateWindow() method 200 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method 207 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method 214 new PollingCheck(TEST_TIMEOUT) { in testLoadPage() method 243 new PollingCheck(TEST_TIMEOUT) { in testOnReceivedLoginRequest() method 321 new PollingCheck(TEST_TIMEOUT) { in testOnFormResubmission() method 342 new PollingCheck(TEST_TIMEOUT) { in testDoUpdateVisitedHistory() method 388 new PollingCheck(TEST_TIMEOUT) { in testOnUnhandledKeyEvent() method [all …]
|
D | WebSettingsTest.java | 36 import com.android.compatibility.common.util.PollingCheck; 230 new PollingCheck(WEBVIEW_TIMEOUT) { in testAccessCacheMode() method 239 new PollingCheck(WEBVIEW_TIMEOUT) { in testAccessCacheMode() method 251 new PollingCheck(WEBVIEW_TIMEOUT) { in testAccessCacheMode() method 260 new PollingCheck(WEBVIEW_TIMEOUT) { in testAccessCacheMode() method 274 new PollingCheck(WEBVIEW_TIMEOUT) { in testAccessCacheMode() 411 new PollingCheck(WEBVIEW_TIMEOUT) { 421 new PollingCheck(WEBVIEW_TIMEOUT) { 436 new PollingCheck(WEBVIEW_TIMEOUT) { 446 new PollingCheck(WEBVIEW_TIMEOUT) { [all …]
|
D | ServiceWorkerClientTest.java | 31 import com.android.compatibility.common.util.PollingCheck; 158 PollingCheck.check("JS could not register Service Worker", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback() 167 PollingCheck.check("Service Worker intercept callbacks not invoked", POLLING_TIMEOUT, in testServiceWorkerClientInterceptCallback()
|
D | WebViewTest.java | 74 import com.android.compatibility.common.util.PollingCheck; 155 new PollingCheck() { in setUp() method 1052 new PollingCheck(TEST_TIMEOUT) { 1096 new PollingCheck(TEST_TIMEOUT) { 1158 new PollingCheck(TEST_TIMEOUT) { 1170 new PollingCheck(TEST_TIMEOUT) { 1661 new PollingCheck() { 1671 class ScrollDiffPollingCheck extends PollingCheck { 1714 new PollingCheck() { 1739 new PollingCheck() { [all …]
|
/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/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 | 31 import com.android.compatibility.common.util.PollingCheck; 102 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method 107 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method 115 new PollingCheck(TIME_OUT) { in checkConnectionState() method
|
/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/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/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/preference2/src/android/preference2/cts/ |
D | PreferenceRecycleTest.java | 30 import com.android.compatibility.common.util.PollingCheck; 99 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaXmlTest() 137 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest() 151 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
|
/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/tests/text/src/android/text/method/cts/ |
D | KeyListenerTestCase.java | 27 import com.android.compatibility.common.util.PollingCheck; 50 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
|
/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/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()
|
/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() 202 PollingCheck.waitFor(TIMEOUT_DELTA, mActivity::hasWindowFocus); in setup() 228 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture() 232 PollingCheck.waitFor(TIMEOUT_DELTA, () -> mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture() 244 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mActivity.hasWindowFocus()); in testActivityFocusChangeEndsCapture()
|