Home
last modified time | relevance | path

Searched refs:waitFor (Results 1 – 25 of 175) sorted by relevance

1234567

/cts/hostsidetests/systemui/src/android/host/systemui/
DTileServiceTest.java39 assertTrue(waitFor("onCreate")); in testAddTile()
40 assertTrue(waitFor("onTileAdded")); in testAddTile()
41 assertTrue(waitFor("onDestroy")); in testAddTile()
48 assertTrue(waitFor("onCreate")); in testRemoveTile()
49 assertTrue(waitFor("onTileAdded")); in testRemoveTile()
50 assertTrue(waitFor("onDestroy")); in testRemoveTile()
53 assertTrue(waitFor("onTileRemoved")); in testRemoveTile()
59 assertTrue(waitFor("onDestroy")); in testListeningNotifications()
63 assertTrue(waitFor("onStartListening")); in testListeningNotifications()
66 assertTrue(waitFor("onStopListening")); in testListeningNotifications()
[all …]
DActiveTileServiceTest.java38 assertTrue(waitFor("onDestroy")); in testNotListening()
43 assertFalse(waitFor("onStartListening")); in testNotListening()
49 assertTrue(waitFor("onDestroy")); in testRequestListening()
53 assertTrue(waitFor("requestListeningState")); in testRequestListening()
54 assertTrue(waitFor("onStartListening")); in testRequestListening()
60 assertTrue(waitFor("onDestroy")); in testClick()
67 assertTrue(waitFor("onStartListening")); in testClick()
68 assertTrue(waitFor("onClick")); in testClick()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java184 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
192 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
207 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
226 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
241 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
249 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
286 uid2Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
294 uid2Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
303 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
314 uid2Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
[all …]
DActivityManagerProcessStateTest.java360 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener()
370 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener()
371 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener()
382 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener()
409 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener()
410 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener()
425 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener()
434 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener()
454 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener()
520 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testBackgroundCheckService()
[all …]
DActivityManagerApi29Test.java181 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, in testTopActivityWithAppOps()
188 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in testTopActivityWithAppOps()
212 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testFgsLocationWithAppOps()
216 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, in testFgsLocationWithAppOps()
223 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testFgsLocationWithAppOps()
230 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in testFgsLocationWithAppOps()
255 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, in testAppOpsHistoricalOps()
270 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testAppOpsHistoricalOps()
276 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in testAppOpsHistoricalOps()
316 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testCameraWithAppOps()
[all …]
DAlertDialogTest.java77 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()
DBadProviderTest.java72 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate()
73 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate()
74 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate()
84 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testExitOnCreate()
DTaskDescriptionTest.java110 waitFor("TaskDescription's icon is null", () -> td.getIcon() != null); in assertTaskDescription()
111 waitFor("TaskDescription's icon filename is null", in assertTaskDescription()
114 waitFor("TaskDescription's icon is not null", () -> td.getIcon() == null); in assertTaskDescription()
115 waitFor("TaskDescription's icon filename is not null", in assertTaskDescription()
127 private void waitFor(String message, BooleanSupplier waitCondition) { in waitFor() method in TaskDescriptionTest
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DDataSharingServiceTest.java79 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()
163 PollingCheck.waitFor(() -> ccService.mDataShareSessionErrorCode > 0); in testDataSharingSessionError_senderWasKilledDuringWrite()
DBlankActivityTest.java79 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle()
82 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle()
98 watcher.waitFor(RESUMED); in testGetServiceComponentName()
111 watcher.waitFor(DESTROYED); in testGetServiceComponentName()
123 watcher.waitFor(RESUMED); in testGetServiceComponentName_onUiThread()
130 watcher.waitFor(DESTROYED); in testGetServiceComponentName_onUiThread()
143 watcher.waitFor(RESUMED); in testIsContentCaptureFeatureEnabled_onUiThread()
150 watcher.waitFor(DESTROYED); in testIsContentCaptureFeatureEnabled_onUiThread()
163 watcher.waitFor(RESUMED); in testDisableContentCaptureService_onUiThread()
168 watcher.waitFor(DESTROYED); in testDisableContentCaptureService_onUiThread()
DDataSharingActivityTest.java60 watcher.waitFor(RESUMED); in testHappyPath_dataCopiedSuccessfully()
62 PollingCheck.waitFor(() -> activity.mSessionFinished); in testHappyPath_dataCopiedSuccessfully()
63 PollingCheck.waitFor(() -> service.mDataShareSessionFinished); in testHappyPath_dataCopiedSuccessfully()
80 watcher.waitFor(RESUMED); in testDataSharingSessionIsRejected_propagatedToClient()
82 PollingCheck.waitFor(() -> activity.mSessionFinished); in testDataSharingSessionIsRejected_propagatedToClient()
83 PollingCheck.waitFor(() -> service.mDataShareSessionFinished); in testDataSharingSessionIsRejected_propagatedToClient()
DLoginActivityTest.java116 watcher.waitFor(RESUMED); in testSimpleLifecycle_defaultSession()
119 watcher.waitFor(DESTROYED); in testSimpleLifecycle_defaultSession()
161 watcher.waitFor(RESUMED); in testContentCaptureSessionCache()
164 watcher.waitFor(DESTROYED); in testContentCaptureSessionCache()
193 watcher.waitFor(RESUMED); in testSimpleLifecycle_rootViewSession()
196 watcher.waitFor(DESTROYED); in testSimpleLifecycle_rootViewSession()
292 watcher.waitFor(RESUMED); in testSimpleLifecycle_changeContextAfterCreate()
308 watcher.waitFor(DESTROYED); in testSimpleLifecycle_changeContextAfterCreate()
341 watcher.waitFor(RESUMED); in testSimpleLifecycle_changeContextOnCreate()
344 watcher.waitFor(DESTROYED); in testSimpleLifecycle_changeContextOnCreate()
[all …]
DChildlessActivityTest.java106 watcher.waitFor(RESUMED); in testDefaultLifecycle()
109 watcher.waitFor(DESTROYED); in testDefaultLifecycle()
122 watcher.waitFor(RESUMED); in testGetContentCapture_disabledWhenNoService()
127 watcher.waitFor(DESTROYED); in testGetContentCapture_disabledWhenNoService()
136 watcher.waitFor(RESUMED); in testGetContentCapture_enabledWhenNoService()
141 watcher.waitFor(DESTROYED); in testGetContentCapture_enabledWhenNoService()
152 watcher1.waitFor(RESUMED); in testLaunchAnotherActivity()
154 watcher1.waitFor(DESTROYED); in testLaunchAnotherActivity()
161 watcher2.waitFor(RESUMED); in testLaunchAnotherActivity()
163 watcher2.waitFor(DESTROYED); in testLaunchAnotherActivity()
[all …]
DBlankWithTitleActivityTest.java55 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle()
58 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle()
75 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle_noAnimation()
78 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle_noAnimation()
DCustomViewActivityTest.java102 watcher.waitFor(RESUMED); in testLifecycle()
105 watcher.waitFor(DESTROYED); in testLifecycle()
130 watcher.waitFor(RESUMED); in testSessionLifecycleEvents()
133 watcher.waitFor(DESTROYED); in testSessionLifecycleEvents()
200 watcher.waitFor(RESUMED); in testVirtualView_wrongWay()
203 watcher.waitFor(DESTROYED); in testVirtualView_wrongWay()
283 watcher.waitFor(RESUMED); in testVirtualView_oneLevel()
287 watcher.waitFor(DESTROYED); in testVirtualView_oneLevel()
398 watcher.waitFor(RESUMED); in testVirtualView_multipleLevels()
401 watcher.waitFor(DESTROYED); in testVirtualView_multipleLevels()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsControllerTests.java125 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testHideInternal()
143 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testShowInternal()
147 PollingCheck.waitFor(TIMEOUT, () -> rootView.getRootWindowInsets().isVisible(types)); in testShowInternal()
157 PollingCheck.waitFor(TIMEOUT, in testTopAppHidesStatusBarInternal()
215 PollingCheck.waitFor(TIMEOUT, () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowAndHide()
217 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(ime())); in testImeShowAndHide()
234 PollingCheck.waitFor(TIMEOUT, in testImeForceShowingNavigationBar()
237 PollingCheck.waitFor(TIMEOUT, in testImeForceShowingNavigationBar()
240 PollingCheck.waitFor(TIMEOUT, in testImeForceShowingNavigationBar()
260 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testSetSystemBarsBehavior_default()
[all …]
DWindowInsetsLayoutTests.java68 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/tests/app/src/android/app/cts/android/app/cts/tools/
DWatchUidRunner.java155 public void waitFor(int cmd) { in waitFor() method in WatchUidRunner
156 waitFor(cmd, null, null, mDefaultWaitTime); in waitFor()
159 public void waitFor(int cmd, long timeout) { in waitFor() method in WatchUidRunner
160 waitFor(cmd, null, null, timeout); in waitFor()
163 public void waitFor(int cmd, String procState) { in waitFor() method in WatchUidRunner
164 waitFor(cmd, procState, null, mDefaultWaitTime); in waitFor()
167 public void waitFor(int cmd, String procState, Integer capability) { in waitFor() method in WatchUidRunner
168 waitFor(cmd, procState, capability, mDefaultWaitTime); in waitFor()
171 public void waitFor(int cmd, String procState, long timeout) { in waitFor() method in WatchUidRunner
172 waitFor(cmd, procState, null, timeout); in waitFor()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java293 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()
407 PollingCheck.waitFor(TIME_OUT, () -> mRecordingCallback.mErrorCount > 0); in verifyCallbackError()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivity.java65 PollingCheck.waitFor( in startLockTask()
79 PollingCheck.waitFor( in stopLockTask()
95 PollingCheck.waitFor(() -> !Objects.equals(startActivity, in startActivity()
100 … PollingCheck.waitFor(() -> component.equals(mTestApis.activities().foregroundActivity())); in startActivity()
/cts/tests/location/common/src/android/location/cts/common/
DTestGnssMeasurementListener.java166 return TestUtils.waitFor(mCountDownLatchStatus, STATUS_TIMEOUT_IN_SEC); in awaitStatus()
170 return TestUtils.waitFor(mCountDownLatch, MEAS_TIMEOUT_IN_SEC); in await()
177 return TestUtils.waitFor(mCountDownLatchBiasUncertainty, BIAS_UNCERTAINTY_TIMEOUT_IN_SEC); in awaitSmallBiasUncertainty()
184 return TestUtils.waitFor(mCountDownLatchSatellitePvt, MEAS_TIMEOUT_IN_SEC); in awaitSatellitePvt()
191 return TestUtils.waitFor(mCountDownLatchCorrelationVector, in awaitCorrelationVector()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DTestGnssStatusCallback.java130 return TestUtils.waitFor(mLatchStart, TIMEOUT_IN_SEC); in awaitStart()
134 return TestUtils.waitFor(mLatchStatus, TIMEOUT_IN_SEC); in awaitStatus()
138 return TestUtils.waitFor(mLatchTtff, TIMEOUT_IN_SEC); in awaitTtff()
142 return TestUtils.waitFor(mLatchStop, TIMEOUT_IN_SEC); in awaitStop()
/cts/tests/tests/widget/src/android/widget/cts/
DSlidingDrawerTest.java144 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()
/cts/hostsidetests/testharness/app/src/android/testharness/app/
DTestHarnessModeDeviceTest.java45 PollingCheck.waitFor(activity::isKeyboardVisible); in ensureActivityNotObscuredByKeyboardSetUpScreen()
54 PollingCheck.waitFor(activity::hasWindowFocus); in dirtyDevice()
62 PollingCheck.waitFor(activity::hasWindowFocus); in testDeviceIsClean()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPollingCheck.java88 public static void waitFor(final PollingCheckCondition condition) { in waitFor() method in PollingCheck
97 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() method in PollingCheck
106 public static void waitFor(long timeout, BooleanSupplier condition, String errorMessage) { in waitFor() method in PollingCheck

1234567