Home
last modified time | relevance | path

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

1234567891011

/cts/hostsidetests/systemui/src/android/host/systemui/
DTileServiceTest.java49 assertTrue(waitFor("onCreate")); in testAddTile()
50 assertTrue(waitFor("onTileAdded")); in testAddTile()
59 assertTrue(waitFor("onCreate")); in testRemoveTile()
60 assertTrue(waitFor("onTileAdded")); in testRemoveTile()
63 assertTrue(waitFor("onTileRemoved")); in testRemoveTile()
73 assertTrue(waitFor("onStartListening")); in testListeningSettings()
76 assertTrue(waitFor("onStopListening")); in testListeningSettings()
85 assertTrue(waitFor("onTileAdded")); in testCantAddDialog()
89 assertTrue(waitFor("onStartListening")); in testCantAddDialog()
93 assertTrue(waitFor("handleShowDialog")); in testCantAddDialog()
[all …]
DActiveTileServiceTest.java38 assertTrue(waitFor("onCreate")); in testNotListening()
45 assertFalse(waitFor("onStartListening")); in testNotListening()
51 assertTrue(waitFor("onCreate")); in testRequestListening()
57 assertTrue(waitFor("requestListeningState")); in testRequestListening()
58 assertTrue(waitFor("onStartListening")); in testRequestListening()
65 assertTrue(waitFor("onCreate")); in testClick()
74 assertTrue(waitFor("onStartListening")); in testClick()
75 assertTrue(waitFor("onClick")); in testClick()
DCompatChangesTileServiceTest.java65 waitFor("onTileRemoved"); in tearDown()
81 assertTrue(waitFor("onTileAdded")); in testStartActivityWithIntent_requiresPendingIntent_ThrowsException()
85 assertTrue(waitFor("onStartListening")); in testStartActivityWithIntent_requiresPendingIntent_ThrowsException()
90 assertTrue(waitFor("handleStartActivity")); in testStartActivityWithIntent_requiresPendingIntent_ThrowsException()
91 assertTrue(waitFor("UnsupportedOperationException")); in testStartActivityWithIntent_requiresPendingIntent_ThrowsException()
94 assertFalse((waitFor("TestActivity#onResume"))); in testStartActivityWithIntent_requiresPendingIntent_ThrowsException()
107 assertTrue(waitFor("onTileAdded")); in testStartActivityWithIntent_doesNotRequirePendingIntent_lauchesSuccessfully()
111 assertTrue(waitFor("onStartListening")); in testStartActivityWithIntent_doesNotRequirePendingIntent_lauchesSuccessfully()
116 assertTrue(waitFor("handleStartActivity")); in testStartActivityWithIntent_doesNotRequirePendingIntent_lauchesSuccessfully()
119 assertTrue((waitFor("TestActivity#onResume"))); in testStartActivityWithIntent_doesNotRequirePendingIntent_lauchesSuccessfully()
[all …]
DActiveTileServiceCompatChangeTest.java72 waitFor("onTileRemoved"); in tearDown()
91 waitFor("onDestroy"); in testRequestListeningBadPackage_changeEnabled_SecurityException()
95 assertTrue(waitFor("SecurityException")); in testRequestListeningBadPackage_changeEnabled_SecurityException()
136 waitFor("onDestroy"); in executeRequestListeningTest()
140 assertTrue(waitFor("requestListeningState")); in executeRequestListeningTest()
141 assertTrue(waitFor("onStartListening")); in executeRequestListeningTest()
159 protected boolean waitFor(String str) throws DeviceNotAvailableException, InterruptedException { in waitFor() method in ActiveTileServiceCompatChangeTest
/cts/tests/app/src/android/app/cts/
DToolbarActionBarTest.kt63 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
75 PollingCheck.waitFor { menuIsVisible.get() } in testOptionsMenuKey()
76 PollingCheck.waitFor { activity.getToolbar().isOverflowMenuShowing() } in testOptionsMenuKey()
83 PollingCheck.waitFor { !activity.getToolbar().hasWindowFocus() } in testOptionsMenuKey()
86 PollingCheck.waitFor { !menuIsVisible.get() } in testOptionsMenuKey()
87 PollingCheck.waitFor { !activity.getToolbar().isOverflowMenuShowing() } in testOptionsMenuKey()
100 PollingCheck.waitFor { menuIsVisible.get() } in testOpenOptionsMenu()
101 PollingCheck.waitFor { activity.getToolbar().isOverflowMenuShowing() } in testOpenOptionsMenu()
105 PollingCheck.waitFor { !menuIsVisible.get() } in testOpenOptionsMenu()
106 PollingCheck.waitFor { !activity.getToolbar().isOverflowMenuShowing() } in testOpenOptionsMenu()
DActivityManagerFgsBgStartTest.java246 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
255 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
270 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
290 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
305 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
313 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBG()
353 uid2Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
362 uid2Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
371 uid1Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
382 uid2Watcher.waitFor(WatchUidRunner.CMD_PROCSTATE, in testFgsLocationStartFromBGTwoProcesses()
[all …]
DActivityManagerProcessStateTest.java403 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener()
413 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener()
414 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener()
425 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener()
452 uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null); in testUidImportanceListener()
453 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener()
468 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener()
477 uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null); in testUidImportanceListener()
497 uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null); in testUidImportanceListener()
563 uidWatcher.waitFor(WatchUidRunner.CMD_GONE, null); in testBackgroundCheckService()
[all …]
DActivityManagerFgsDelegateTest.java145 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in prepareProcess()
160 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testFgsDelegate()
168 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in testFgsDelegate()
176 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testFgsDelegate()
184 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in testFgsDelegate()
192 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testFgsDelegate()
213 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testFgsDelegateNotAllowedWhenAppCanNotStartFGS()
221 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testFgsDelegateNotAllowedWhenAppCanNotStartFGS()
230 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE); in testFgsDelegateNotAllowedWhenAppCanNotStartFGS()
238 uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testFgsDelegateNotAllowedWhenAppCanNotStartFGS()
[all …]
DActivityManagerApi29Test.java182 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, in testTopActivityWithAppOps()
189 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in testTopActivityWithAppOps()
213 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testFgsLocationWithAppOps()
217 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, in testFgsLocationWithAppOps()
224 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testFgsLocationWithAppOps()
231 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in testFgsLocationWithAppOps()
256 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_TOP, in testAppOpsHistoricalOps()
271 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testAppOpsHistoricalOps()
277 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY, in testAppOpsHistoricalOps()
317 mUidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE, in testCameraWithAppOps()
[all …]
DAlertDialogTest.java78 PollingCheck.waitFor(mActivity.getDialog()::isShowing); in startDialogActivity()
109 PollingCheck.waitFor(() -> mActivity.isPositiveButtonClicked); in doTestAlertDialog()
113 PollingCheck.waitFor(() -> mActivity.isNegativeButtonClicked); in doTestAlertDialog()
117 PollingCheck.waitFor(() -> mActivity.isNeutralButtonClicked); in doTestAlertDialog()
150 PollingCheck.waitFor(() -> in testAlertDialogAPIWithMessage()
155 PollingCheck.waitFor(() -> in testAlertDialogAPIWithMessage()
160 PollingCheck.waitFor(() -> in testAlertDialogAPIWithMessage()
213 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()
/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.mDataShareSessionFinished); in testDataSharingSessionError_senderWasKilledDuringWrite()
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()
DBlankActivityTest.java93 watcher.waitFor(RESUMED); in testSimpleSessionLifecycle()
96 watcher.waitFor(DESTROYED); in testSimpleSessionLifecycle()
112 watcher.waitFor(RESUMED); in testGetServiceComponentName()
125 watcher.waitFor(DESTROYED); in testGetServiceComponentName()
137 watcher.waitFor(RESUMED); in testGetServiceComponentName_onUiThread()
144 watcher.waitFor(DESTROYED); in testGetServiceComponentName_onUiThread()
157 watcher.waitFor(RESUMED); in testIsContentCaptureFeatureEnabled_onUiThread()
164 watcher.waitFor(DESTROYED); in testIsContentCaptureFeatureEnabled_onUiThread()
177 watcher.waitFor(RESUMED); in testDisableContentCaptureService_onUiThread()
182 watcher.waitFor(DESTROYED); in testDisableContentCaptureService_onUiThread()
[all …]
DLoginActivityTest.java116 watcher.waitFor(RESUMED); in testSimpleLifecycle_defaultSession()
120 watcher.waitFor(DESTROYED); in testSimpleLifecycle_defaultSession()
162 watcher.waitFor(RESUMED); in testContentCaptureSessionCache()
165 watcher.waitFor(DESTROYED); in testContentCaptureSessionCache()
194 watcher.waitFor(RESUMED); in testSimpleLifecycle_rootViewSession()
197 watcher.waitFor(DESTROYED); in testSimpleLifecycle_rootViewSession()
296 watcher.waitFor(RESUMED); in testSimpleLifecycle_changeContextAfterCreate()
312 watcher.waitFor(DESTROYED); in testSimpleLifecycle_changeContextAfterCreate()
347 watcher.waitFor(RESUMED); in testSimpleLifecycle_changeContextOnCreate()
350 watcher.waitFor(DESTROYED); in testSimpleLifecycle_changeContextOnCreate()
[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()
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 …]
/cts/tests/input/src/android/input/cts/
DModifierKeyRemappingTest.kt74 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
79 PollingCheck.waitFor { getModifierKeyRemapping().isEmpty() } in setUp()
104 PollingCheck.waitFor { inputManager.getInputDevice(keyboardDevice.deviceId) != null } in testModifierKeyRemapping()
118 PollingCheck.waitFor { getModifierKeyRemapping().size == numKeys } in testModifierKeyRemapping()
142 PollingCheck.waitFor { getModifierKeyRemapping().isEmpty() } in testModifierKeyRemapping()
165 PollingCheck.waitFor { inputManager.getInputDevice(keyboardDevice.deviceId) != null } in testHardwareKeyEventsWithRemapping_AfterKeyboardAdded()
169 PollingCheck.waitFor { getModifierKeyRemapping().size == 1 } in testHardwareKeyEventsWithRemapping_AfterKeyboardAdded()
179 PollingCheck.waitFor { getModifierKeyRemapping().isEmpty() } in testHardwareKeyEventsWithRemapping_AfterKeyboardAdded()
196 PollingCheck.waitFor { getModifierKeyRemapping().size == 1 } in testHardwareKeyEventsWithRemapping_BeforeKeyboardAdded()
201 PollingCheck.waitFor { inputManager.getInputDevice(keyboardDevice.deviceId) != null } in testHardwareKeyEventsWithRemapping_BeforeKeyboardAdded()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPollingCheck.java122 public static void waitFor(final PollingCheckCondition condition) { in waitFor() method in PollingCheck
131 public static void waitFor(final PollingCheckCondition condition, String errorMessage) { in waitFor() method in PollingCheck
140 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() method in PollingCheck
149 public static void waitFor(long timeout, final PollingCheckCondition condition, in waitFor() method in PollingCheck
164 public static void waitFor(long timeout, BooleanSupplier condition, String errorMessage) { in waitFor() method in PollingCheck
173 public static <E> E waitFor(long timeout, Supplier<E> supplier, in waitFor() method in PollingCheck
/cts/tests/tests/car/src/android/car/app/cts/
DCarTaskViewControllerTest.java120 PollingCheck.waitFor(() -> mCallback.mCarTaskViewController != null, in setUp()
215 PollingCheck.waitFor(() -> taskViewCallback.mTaskViewReleased, "TaskView not released"); in multipleControlledCarTaskView_released_whenHostDestroyed()
220 PollingCheck.waitFor(() -> taskViewCallback2.mTaskViewReleased, "TaskView not released"); in multipleControlledCarTaskView_released_whenHostDestroyed()
241 PollingCheck.waitFor(() -> taskViewCallback2.mTaskViewReleased, "TaskView not released"); in releaseControlledCarTaskView_releasesTaskView()
265 PollingCheck.waitFor(() -> EmbeddedTestActivity1.sInstance != null, in controlledRemoteCarTaskView_autoRestartDisabled_doesNotRestartTask_whenKilled()
272 PollingCheck.waitFor(() -> taskViewHolder.mCurrentTask == null, in controlledRemoteCarTaskView_autoRestartDisabled_doesNotRestartTask_whenKilled()
291 PollingCheck.waitFor(() -> EmbeddedTestActivity1.sInstance != null, in controlledRemoteCarTaskView_autoRestartEnabled_restartsTheTask_whenKilled()
296 PollingCheck.waitFor(() -> taskViewHolder.mNumTimesOnTaskVanished == 1, in controlledRemoteCarTaskView_autoRestartEnabled_restartsTheTask_whenKilled()
300 PollingCheck.waitFor(() -> taskViewHolder.mCurrentTask != null, in controlledRemoteCarTaskView_autoRestartEnabled_restartsTheTask_whenKilled()
319 PollingCheck.waitFor(() -> EmbeddedTestActivity1.sInstance != null, in multipleControlledRemoteCarTaskView_bringsEmbeddedTaskToTop_whenActivityResumed()
[all …]
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DWatchUidRunner.java161 public void waitFor(int cmd) { in waitFor() method in WatchUidRunner
162 waitFor(cmd, null, null, mDefaultWaitTime); in waitFor()
165 public void waitFor(int cmd, long timeout) { in waitFor() method in WatchUidRunner
166 waitFor(cmd, null, null, timeout); in waitFor()
169 public void waitFor(int cmd, String procState) { in waitFor() method in WatchUidRunner
170 waitFor(cmd, procState, null, mDefaultWaitTime); in waitFor()
173 public void waitFor(int cmd, String procState, Integer capability) { in waitFor() method in WatchUidRunner
174 waitFor(cmd, procState, capability, mDefaultWaitTime); in waitFor()
177 public void waitFor(int cmd, String procState, long timeout) { in waitFor() method in WatchUidRunner
178 waitFor(cmd, procState, null, timeout); in waitFor()
[all …]
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DTvInteractiveAppServiceTest.java505 PollingCheck.waitFor(TIME_OUT_MS, () -> mTvView.getInputSession() != null); in linkTvView()
520 PollingCheck.waitFor(TIME_OUT_MS, () -> StubTvInputService2.sStubRecordingSession != null); in linkTvRecordingClient()
631 PollingCheck.waitFor(TIME_OUT_MS, () -> mTvIAppView.getInteractiveAppSession() != null); in setUp()
667 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mRecordingTunedCount > 0); in testNotifyRecordingTuned()
682 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mRecordingConnectionFailedCount > 0); in testRecordingConnectionFailed()
692 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mRecordingDisconnected > 0); in testRecordingDisconnected()
702 PollingCheck.waitFor(LONGER_TIME_OUT_MS, () -> mSession.mRecordingErrorCount > 0); in testRecordingError()
714 PollingCheck.waitFor(TIME_OUT_MS, () -> mCallback.mRequestCurrentChannelUriCount > 0); in testRequestCurrentChannelUri()
724 PollingCheck.waitFor(TIME_OUT_MS, () -> mCallback.mRequestCurrentVideoBoundsCount > 0); in testRequestCurrentVideoBounds()
735 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mRecordingStartedCount > 0); in testNotifyRecordingStarted()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java402 PollingCheck.waitFor(TIME_OUT, () -> session.mReleaseCount > 0); in verifyCommandRelease()
413 PollingCheck.waitFor(TIME_OUT, () -> session.mStartRecordingCount > 0); in verifyCommandStartRecording()
425 PollingCheck.waitFor(TIME_OUT, () -> session.mStartRecordingWithBundleCount > 0); in verifyCommandStartRecordingWithBundle()
441 PollingCheck.waitFor(TIME_OUT, () -> session.mPauseRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecordingWithBundle()
446 PollingCheck.waitFor(TIME_OUT, () -> session.mResumeRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecordingWithBundle()
460 PollingCheck.waitFor(TIME_OUT, () -> session.mPauseRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecording()
465 PollingCheck.waitFor(TIME_OUT, () -> session.mResumeRecordingWithBundleCount > 0); in verifyCommandPauseResumeRecording()
478 PollingCheck.waitFor(TIME_OUT, () -> session.mStopRecordingCount > 0); in verifyCommandStopRecording()
490 PollingCheck.waitFor(TIME_OUT, () -> session.mAppPrivateCommandCount > 0); in verifyCommandSendAppPrivateCommandForRecording()
516 PollingCheck.waitFor(TIME_OUT, () -> mRecordingCallback.mErrorCount > 0); in verifyCallbackError()
[all …]
/cts/tests/tests/tv/src/android/media/tv/ad/cts/
DTvAdServiceTest.java181 PollingCheck.waitFor(TIME_OUT_MS, () -> mTvAdView.getAdSession() != null); in setUp()
238 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mCurrentTvInputIdCount > 0); in testSendCurrentTvInputId()
249 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mCurrentVideoBoundsCount > 0); in testSendCurrentVideoBounds()
260 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mCurrentChannelUriCount > 0); in testSendCurrentChannelUri()
272 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mSigningResultCount > 0); in testSendSigningResult()
291 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mTrackInfoListCount > 0); in testSendTrackInfoList()
329 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mTvMessageCount > 0); in testNotifyTvMessage()
340 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mResetAdServiceCount > 0); in testResetAdService()
358 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mErrorCount > 0); in testNotifyError()
370 PollingCheck.waitFor(TIME_OUT_MS, () -> mSession.mStartAdServiceCount > 0); in testStartAdService()
[all …]
/cts/tests/location/common/src/android/location/cts/common/
DTestGnssStatusCallback.java128 return TestUtils.waitFor(mLatchStart, TIMEOUT_IN_SEC); in awaitStart()
132 return TestUtils.waitFor(mLatchStatus, TIMEOUT_IN_SEC); in awaitStatus()
136 return TestUtils.waitFor(mLatchTtff, TIMEOUT_IN_SEC); in awaitTtff()
140 return TestUtils.waitFor(mLatchStop, TIMEOUT_IN_SEC); in awaitStop()

1234567891011