/cts/tests/tests/location/src/android/location/cts/ |
D | GnssLocationRateChangeTest.java | 79 mLocationListenerMain.await()); in testVariedRates() 90 mLocationListenerAfterRateChanges.await()); in testVariedRates() 109 mLocationListenerMain.await()); in testVariedRatesOnOff() 121 mLocationListenerAfterRateChanges.await()); in testVariedRatesOnOff() 140 mLocationListenerMain.await()); in testVariedRatesRepetitive() 160 mLocationListenerAfterRateChanges.await()); in testVariedRatesRepetitive()
|
D | GnssNavigationMessageRegistrationTest.java | 97 mTestGnssNavigationMessageListener.await(); in testGnssNavigationMessageRegistration() 120 mLocationListener.await(); in testGnssNavigationMessageRegistration() 128 mGpsStatusListener.await(); in testGnssNavigationMessageRegistration()
|
D | GnssMeasurementRegistrationTest.java | 92 mMeasurementListener.await(); in testGnssMeasurementRegistration() 118 mLocationListener.await(); in testGnssMeasurementRegistration()
|
/cts/tests/app/src/android/app/cts/ |
D | NewDocumentTest.java | 42 receiver.await(); in testNewDocument() 47 receiver.await(); in testNewDocument() 58 void await() throws InterruptedException { in await() method in NewDocumentTest.Receiver 61 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in await()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSessionManager_MediaSession2Test.java | 112 assertTrue(player.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetMediaSession2Tokens_hasMediaController() 230 assertTrue(listener.await()); in testAddOnSessionTokensChangedListener() 235 assertTrue(listener.await()); in testAddOnSessionTokensChangedListener() 243 assertTrue(listener.await()); in testAddOnSessionTokensChangedListener() 252 assertTrue(listener.await()); in testAddOnSessionTokensChangedListener() 259 assertTrue(listener.await()); in testAddOnSessionTokensChangedListener() 266 assertTrue(listener.await()); in testAddOnSessionTokensChangedListener() 284 assertTrue(listener.await()); in testRemoveOnSessionTokensChangedListener() 290 assertFalse(listener.await()); in testRemoveOnSessionTokensChangedListener() 297 assertFalse(listener.await()); in testRemoveOnSessionTokensChangedListener() [all …]
|
D | MediaController2Test.java | 157 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlay() 168 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPause() 180 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testStop() 191 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPrepare() 213 assertTrue(mPlayer.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSeekTo() 251 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaylist() 301 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylist() 310 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testUpdatePlaylistMetadata() 346 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylistMetadata() 407 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testControllerCallback_onPlaylistMetadataChanged() [all …]
|
D | MediaSession2_PermissionTest.java | 142 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest() 149 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest() 271 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId() 279 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId() 290 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri() 298 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri() 309 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromSearch() 317 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPlayFromSearch() 328 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPrepareFromMediaId() 336 assertFalse(mCallback.mCountDownLatch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testPrepareFromMediaId() [all …]
|
D | MediaSessionManagerTest.java | 126 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 139 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 145 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 175 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 181 assertFalse(callback.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 189 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 195 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 207 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 248 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo()
|
D | MediaBrowser2Test.java | 125 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetLibraryRoot() 146 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetItem() 166 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetItemNullResult() 206 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetChildren() 227 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetChildrenEmptyResult() 247 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetChildrenNullResult() 299 assertTrue(latchForSearch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSearch() 303 assertTrue(latchForGetSearchResult.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSearch() 327 assertTrue(latch.await( in testSearchTakesTime() 352 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSearchEmptyResult() [all …]
|
D | MediaSessionTest.java | 345 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 351 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 357 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 363 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 369 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 375 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 381 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 390 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 398 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 407 assertFalse(sessionCallback.await(WAIT_MS)); in testCallbackOnMediaButtonEvent() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 35 public static <T> T await(Future<T> f) { in await() method in AsyncUtils 36 return await(f, DEFAULT_TIMEOUT_MS, MILLISECONDS); in await() 39 public static <T> T await(Future<T> f, long time, TimeUnit timeUnit) { in await() method in AsyncUtils 52 return assertThrows(() -> await(f, time, timeUnit)); in awaitFailure()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | ActivityTransitionTest.java | 101 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); in testOnSharedElementsArrived() 102 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); in testOnSharedElementsArrived() 149 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); 150 assertTrue("Reenter transition didn't finish", latch.await(1000, TimeUnit.MILLISECONDS)); 151 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); 183 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); 184 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); 217 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); 218 assertTrue("Reenter transition didn't finish", latch.await(1000, TimeUnit.MILLISECONDS)); 219 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); [all …]
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | LifecycleTest.java | 91 if (!mHasResumedLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForOnResume() 98 if (!mHasFocusLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForHasFocus() 105 if (!mLostFocusLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForLostFocus() 111 if (mActivityLifecycleLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitAndSeeIfLifecycleMethodsAreTriggered() 118 if (!mDestroyLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForDestroy()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | FragmentContainerActivity.java | 74 return mResumed.await(Timeouts.UI_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in waitUntilResumed() 78 return mStopped.await(Timeouts.UI_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in waitUntilStopped()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | LoaderTest.java | 100 assertTrue(activity.loadFinished.await(1, TimeUnit.SECONDS)); in startWhenReused() 105 assertTrue(activity.loadFinished.await(1, TimeUnit.SECONDS)); in startWhenReused() 166 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData() 180 assertFalse(loadedLatch[0].await(300, TimeUnit.MILLISECONDS)); in noStaleData() 190 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData()
|
D | RecreatedActivity.java | 74 assertTrue(sResumed.await(1, TimeUnit.SECONDS)); in waitForResume() 82 assertTrue(sResumed.await(1, TimeUnit.SECONDS)); in waitForResume()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | ActivityResultMultiplexedLatch.java | 53 public int await() throws InterruptedException { in await() method in ActivityResultMultiplexedLatch.Latch 54 mEntry.latch.await(); in await()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 86 public void await() throws InterruptedException { in await() method in OrientationTestUtils.Observer 88 assertTrue(mLatch.get().await(TIMEOUT_SEC, TimeUnit.SECONDS)); in await()
|
/cts/tests/fragment/sdk26/src/android/fragment/cts/sdk26/ |
D | FragmentManagerNonConfigTest.java | 55 assertTrue(activity.sDestroyed.await(1, TimeUnit.SECONDS)); in nonConfigStop() 56 assertTrue(activity.sResumed.await(1, TimeUnit.SECONDS)); in nonConfigStop()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/ |
D | CallbackUtils.java | 79 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForAttach() 112 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForMac() 146 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForNetwork() 233 finishedNormally = mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS); in waitForCallbacks() 235 mBlocker.await(); in waitForCallbacks() 377 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForRangingResults()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/ |
D | MockJobService.java | 83 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution() 93 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 118 return mIdleLatch.await(TIMEOUT, TimeUnit.MILLISECONDS); in hasIdleHandlerBeenCalled() 142 latch1.await(TIMEOUT, TimeUnit.MILLISECONDS); in testIsIdle() 161 latch2.await(TIMEOUT, TimeUnit.MILLISECONDS); in testIsIdle() 370 readerDone.await(TIMEOUT, TimeUnit.MILLISECONDS); in testFileDescriptorCallbacks() 378 writerSawError.await(TIMEOUT, TimeUnit.MILLISECONDS); in testFileDescriptorCallbacks() 433 assertTrue("awoke", awoke.await(TIMEOUT, TimeUnit.MILLISECONDS)); in testPathologicalFileDescriptorReuseCallbacks1() 460 assertTrue("awoke", awoke.await(TIMEOUT, TimeUnit.MILLISECONDS)); in testPathologicalFileDescriptorReuseCallbacks1() 515 assertTrue("awoke", awoke.await(TIMEOUT, TimeUnit.MILLISECONDS)); in testPathologicalFileDescriptorReuseCallbacks2() 542 assertTrue("awoke", awoke.await(TIMEOUT, TimeUnit.MILLISECONDS)); in testPathologicalFileDescriptorReuseCallbacks2() 618 assertTrue("awoke", awoke.await(TIMEOUT, TimeUnit.MILLISECONDS)); in testPathologicalFileDescriptorReuseCallbacks3() [all …]
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | RequestPinAppWidgetTest.java | 82 setupReceiver.await(); in runPinWidgetTest() 103 resultReceiver.await(); in runPinWidgetTest() 179 public void await() throws Exception { in await() method in RequestPinAppWidgetTest.BlockingReceiver 180 assertTrue(notifier.await(20, TimeUnit.SECONDS)); in await()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsListView_ScrollTest.java | 196 latch.await(2, TimeUnit.SECONDS)); in verifyScrollToPosition() 255 latch.await(2, TimeUnit.SECONDS)); in verifyScrollToPositionWithBound() 329 latch.await(timeoutMs, TimeUnit.MILLISECONDS)); in verifyScrollToPositionFromTop() 509 scrollLatch.await(5, TimeUnit.SECONDS)); in testListScrollAndTap() 538 scrollLatch.await(5, TimeUnit.SECONDS)); 552 flingLatch.await(5, TimeUnit.SECONDS)); 614 flingLatch.await(5, TimeUnit.SECONDS)); 683 initialFlingLatch.await(5, TimeUnit.SECONDS)); 696 fastFlingLatch.await(5, TimeUnit.SECONDS)); 715 slowFlingLatch.await(5, TimeUnit.SECONDS));
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | LocalVoiceInteractionTest.java | 78 if (!mLatchStart.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle() 83 if (!mLatchStop.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
|