/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PollingCheck.java | 26 public abstract class PollingCheck { class 38 public PollingCheck() { in PollingCheck() method in PollingCheck 42 public PollingCheck(long timeout) { in PollingCheck() method in PollingCheck 46 public PollingCheck(long timeout, String errorMessage) { in PollingCheck() method in PollingCheck 51 public PollingCheck(String errorMessage) { in PollingCheck() method in PollingCheck 119 new PollingCheck() { in waitFor() method 128 new PollingCheck(errorMessage) { in waitFor() method 137 new PollingCheck(timeout) { in waitFor() method 146 new PollingCheck(timeout, errorMessage) { in waitFor() method 156 return new PollingCheck(timeout) { in waitFor()
|
D | WindowUtil.java | 35 PollingCheck.waitFor(WINDOW_FOCUS_TIMEOUT_MILLIS, in waitForFocus() 44 PollingCheck.waitFor(WINDOW_FOCUS_TIMEOUT_MILLIS, in waitForFocus()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | DataSharingServiceTest.java | 29 import com.android.compatibility.common.util.PollingCheck; 79 PollingCheck.waitFor(() -> dataSharingService.mSessionFinished); in testDataSharingSessionAccepted() 80 PollingCheck.waitFor(() -> ccService.mDataShareSessionFinished); in testDataSharingSessionAccepted() 98 PollingCheck.waitFor(() -> dataSharingService.mSessionFinished); in testDataSharingSessionRejected() 99 PollingCheck.waitFor(() -> ccService.mDataShareSessionFinished); in testDataSharingSessionRejected() 113 PollingCheck.waitFor(() -> dataSharingService.mSessionFinished); in testDataShareRequest_valuesPropagatedToReceiver() 114 PollingCheck.waitFor(() -> ccService.mDataShareSessionFinished); in testDataShareRequest_valuesPropagatedToReceiver() 131 PollingCheck.waitFor(() -> dataSharingService.mSessionFinished); in testDataSharingSessionError_concurrentRequests() 132 PollingCheck.waitFor(() -> ccService.mDataShareSessionFinished); in testDataSharingSessionError_concurrentRequests() 148 PollingCheck.waitFor(() -> ccService.mDataShareSessionErrorCode > 0); in testDataSharingSessionError_senderWasKilledBeforeWrite() [all …]
|
D | DataSharingActivityTest.java | 28 import com.android.compatibility.common.util.PollingCheck; 62 PollingCheck.waitFor(() -> activity.mSessionFinished); in testHappyPath_dataCopiedSuccessfully() 63 PollingCheck.waitFor(() -> service.mDataShareSessionFinished); in testHappyPath_dataCopiedSuccessfully() 82 PollingCheck.waitFor(() -> activity.mSessionFinished); in testDataSharingSessionIsRejected_propagatedToClient() 83 PollingCheck.waitFor(() -> service.mDataShareSessionFinished); in testDataSharingSessionIsRejected_propagatedToClient()
|
/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 | AlertDialogTest.java | 37 import com.android.compatibility.common.util.PollingCheck; 77 PollingCheck.waitFor(mActivity.getDialog()::isShowing); in startDialogActivity() 78 PollingCheck.waitFor(mActivity.getDialog().getWindow().getDecorView()::hasWindowFocus); in startDialogActivity() 108 PollingCheck.waitFor(() -> mActivity.isPositiveButtonClicked); in doTestAlertDialog() 112 PollingCheck.waitFor(() -> mActivity.isNegativeButtonClicked); in doTestAlertDialog() 116 PollingCheck.waitFor(() -> mActivity.isNeutralButtonClicked); in doTestAlertDialog() 149 PollingCheck.waitFor(() -> in testAlertDialogAPIWithMessage() 154 PollingCheck.waitFor(() -> in testAlertDialogAPIWithMessage() 159 PollingCheck.waitFor(() -> in testAlertDialogAPIWithMessage() 212 PollingCheck.waitFor(() -> mActivity.onCancelCalled); in testAlertDialogCancelable()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | GeolocationTest.java | 44 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 …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsControllerTests.java | 79 import com.android.compatibility.common.util.PollingCheck; 129 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testHideInternal() 147 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testShowInternal() 151 PollingCheck.waitFor(TIMEOUT, () -> rootView.getRootWindowInsets().isVisible(types)); in testShowInternal() 161 PollingCheck.waitFor(TIMEOUT, in testTopAppHidesStatusBarInternal() 219 PollingCheck.waitFor(TIMEOUT, () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowAndHide() 221 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(ime())); in testImeShowAndHide() 238 PollingCheck.waitFor(TIMEOUT, in testImeForceShowingNavigationBar() 241 PollingCheck.waitFor(TIMEOUT, in testImeForceShowingNavigationBar() 244 PollingCheck.waitFor(TIMEOUT, in testImeForceShowingNavigationBar() [all …]
|
D | WindowInsetsLayoutTests.java | 43 import com.android.compatibility.common.util.PollingCheck; 68 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsTypes() 87 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot.getWidth() > 0); in testSetFitInsetsTypesInner() 112 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsSides() 133 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot.getWidth() > 0); in testSetFitInsetsSidesInner() 158 PollingCheck.waitFor(TIMEOUT, () -> mainWindowRoot.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() 172 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot1.getWidth() > 0); in testSetFitInsetsIgnoringVisibility() 187 PollingCheck.waitFor(TIMEOUT, () -> childWindowRoot2.getWidth() > 0); in testSetFitInsetsIgnoringVisibility()
|
/cts/hostsidetests/testharness/app/src/android/testharness/app/ |
D | TestHarnessModeDeviceTest.java | 32 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/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 56 import com.android.compatibility.common.util.PollingCheck; 293 PollingCheck.waitFor(TIME_OUT, () -> session.mReleaseCount > 0); in verifyCommandRelease() 304 PollingCheck.waitFor(TIME_OUT, () -> session.mStartRecordingCount > 0); in verifyCommandStartRecording() 316 PollingCheck.waitFor(TIME_OUT, () -> session.mStartRecordingWithBundleCount > 0); in verifyCommandStartRecordingWithBundle() 332 PollingCheck.waitFor(TIME_OUT, () -> session.mPauseRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecordingWithBundle() 337 PollingCheck.waitFor(TIME_OUT, () -> session.mResumeRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecordingWithBundle() 351 PollingCheck.waitFor(TIME_OUT, () -> session.mPauseRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecording() 356 PollingCheck.waitFor(TIME_OUT, () -> session.mResumeRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecording() 369 PollingCheck.waitFor(TIME_OUT, () -> session.mStopRecordingCount > 0); in verifyCommandStopRecording() 381 PollingCheck.waitFor(TIME_OUT, () -> session.mAppPrivateCommandCount > 0); in verifyCommandSendAppPrivateCommandForRecording() [all …]
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | BasicApiTests.java | 48 import com.android.compatibility.common.util.PollingCheck; 143 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes() 155 new PollingCheck(SNOOZE_DELAY + TIME_DELAY) { in testSetTypes() 172 new PollingCheck(TIME_DELAY) { in testAlarmTriggersImmediatelyIfSetTimeIsNegative() method 213 PollingCheck.waitFor(1000, mMockAlarmReceiver::isAlarmed, in testExactAlarmBatching() 219 PollingCheck.waitFor(1000, mMockAlarmReceiver2::isAlarmed, in testExactAlarmBatching() 247 PollingCheck.waitFor(2000, mMockAlarmReceiver::isAlarmed, in testSetExactWithWorkSource() 259 PollingCheck.waitFor(2000, mMockAlarmReceiver::isAlarmed, in testSetExact() 271 new PollingCheck(TEST_ALARM_FUTURITY + REPEAT_PERIOD) { in testSetRepeating() 280 new PollingCheck(REPEAT_PERIOD * 2) { in testSetRepeating() [all …]
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | InattentiveSleepTests.java | 26 import com.android.compatibility.common.util.PollingCheck; 164 PollingCheck.check("Expected device to be asleep after timeout", TIME_BEFORE_WARNING_MS, in testInattentiveSleep_goesToSleepAfterTimeout() 176 PollingCheck.check("Expected device to be asleep after timeout", 1000, in testInattentiveSleep_goesToSleepAfterTimeoutWithWakeLock() 228 PollingCheck.check(message, TIME_BEFORE_WARNING_MS + 500, in assertWarningShown() 237 PollingCheck.waitFor(TIME_BEFORE_WARNING_MS + mWarningDurationConfig + 2000, in waitUntilAsleep() 246 PollingCheck.waitFor(timeout, this::isWarningShown); in waitUntilWarningIsShowing() 250 PollingCheck.waitFor(timeout, () -> !isWarningShown()); in waitUntilWarningIsNotShowing()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestUtils.java | 28 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/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 30 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/simphonebookprovider/src/android/provider/cts/simphonebook/ |
D | SimPhonebookContract_ContentNotificationsTest.java | 49 import com.android.compatibility.common.util.PollingCheck; 118 PollingCheck.check( in insert_notifiesObserver() 129 PollingCheck.check( in update_notifiesObserver() 136 PollingCheck.check( in update_notifiesObserver() 147 PollingCheck.check( in delete_notifiesObserver() 153 PollingCheck.check( in delete_notifiesObserver() 168 PollingCheck.check( in subscriptionsChange_notifiesObserver() 179 PollingCheck.check( in subscriptionsChange_notifiesObserver()
|
D | SimPhonebookRequirementsRule.java | 29 import com.android.compatibility.common.util.PollingCheck; 63 PollingCheck.waitFor(30_000, in before()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaBrowserTest.java | 24 import com.android.compatibility.common.util.PollingCheck; 81 new PollingCheck(TIME_OUT_MS) { in testMediaBrowser() method 140 new PollingCheck(TIME_OUT_MS) { in testConnectionFailed() method 162 new PollingCheck(TIME_OUT_MS) { in testReconnection() method 172 new PollingCheck(TIME_OUT_MS) { in testReconnection() method 187 new PollingCheck(TIME_OUT_MS) { in testReconnection() method 215 new PollingCheck(TIME_OUT_MS) { in testSubscribe() method 295 new PollingCheck(TIME_OUT_MS) { in testSubscribeWithOptions() method 337 new PollingCheck(TIME_OUT_MS) { in testSubscribeInvalidItem() method 359 new PollingCheck(TIME_OUT_MS) { in testSubscribeInvalidItemWithOptions() method [all …]
|
D | MediaScannerConnectionTest.java | 29 import com.android.compatibility.common.util.PollingCheck; 97 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method 102 new PollingCheck(TIME_OUT) { in checkMediaScannerConnection() method 110 new PollingCheck(TIME_OUT) { in checkConnectionState() method
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SlidingDrawerTest.java | 47 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()
|
D | FilterTest.java | 36 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()
|
/cts/tests/input/src/android/input/cts/ |
D | IncompleteMotionTest.kt | 35 import com.android.compatibility.common.util.PollingCheck 89 PollingCheck.waitFor { mActivity.hasWindowFocus() } in setUp() 121 PollingCheck.waitFor { receiver.overlayActivityIsFocused() } in testIncompleteMotion() 133 PollingCheck.waitFor { !mActivity.hasWindowFocus() } in testIncompleteMotion() 140 PollingCheck.waitFor { mActivity.receivedMove() } in testIncompleteMotion()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceRecycleTest.java | 31 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/appwidget/src/android/appwidget/cts/provider/ |
D | CollectionAppWidgetProvider.java | 31 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/hostsidetests/appsecurity/test-apps/UseEmbeddedDexApp/src/com/android/cts/useembeddeddex/ |
D | EmbeddedDexTest.java | 26 import com.android.compatibility.common.util.PollingCheck; 51 PollingCheck.waitFor(() -> EmbeddedDexTest.this.mServiceConnected); in testIsolatedService()
|