/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | ServiceReporter.java | 99 return await(mCreateSessionLatch); in awaitOnCreatePredictionSession() 113 return await(mEventLatch); in awaitOnAppTargetEvent() 129 return await(mLocationShownLatch); in awaitOnLocationShown() 145 return await(mSortLatch); in awaitOnSortAppTargets() 157 return await(mStartPredictionUpdatesLatch); in awaitOnStartPredictionUpdates() 169 return await(mStopPredictionUpdatesLatch); in awaitOnStopPredictionUpdates() 183 return await(mPredictionUpdateLatch); in awaitOnRequestPredictionUpdate() 197 return await(mDestroyLatch); in awaitOnDestroyPredictionSession() 215 private boolean await(CountDownLatch latch) { in await() method in ServiceReporter 217 latch.await(500, TimeUnit.MILLISECONDS); in await() [all …]
|
/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()
|
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/ |
D | EuiccServiceTest.java | 204 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetEid() 227 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetOtaStatus() 255 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetDownloadableSubscriptionMetadata() 278 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnStartOtaIfNecessary() 303 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetDefaultDownloadableSubscriptionList() 334 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnDownloadSubscription() 358 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetEuiccProfileInfoList() 382 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetEuiccInfo() 405 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnDeleteSubscription() 429 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnSwitchToSubscription() [all …]
|
D | EuiccManagerTest.java | 127 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testDownloadSubscription() 170 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testDeleteSubscription() 200 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testSwitchToSubscription() 231 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testEraseSubscriptions() 265 countDownLatch.await(ACTIVITY_CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testStartResolutionActivity()
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | AutoResetLatch.java | 39 public void await() throws InterruptedException { in await() method in AutoResetLatch 41 mLatch.await(); in await() 47 public boolean await(long timeout, TimeUnit unit) throws InterruptedException { in await() method in AutoResetLatch 49 return mLatch.await(timeout, unit); in await()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestImsSmsImpl.java | 91 complete = mSmsAckLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in receiveSmsWaitForAcknowledge() 106 complete = mAckDeliveryLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in sendReportWaitForAcknowledgeSmsReportR() 122 complete = mAckDeliveryLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in sendReportWaitForAcknowledgeSmsReportPQ() 135 complete = mSentTriggeredLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForMessageSentLatch() 148 complete = mSentTriggeredLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForMessageSentLatchSuccess() 160 complete = mSentTriggeredLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForMessageSentLatchError() 172 complete = mOnReadyLatch.await(ImsUtils.TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForOnReadyLatch()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSessionManagerTest.java | 134 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 147 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 153 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener() 182 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 188 assertFalse(callback.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 196 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 202 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 214 assertFalse(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener() 259 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo() 309 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens() [all …]
|
D | MediaSessionTest.java | 349 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 355 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 361 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 367 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 373 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 379 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 385 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 394 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 402 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 411 assertFalse(sessionCallback.await(WAIT_MS)); in testCallbackOnMediaButtonEvent() [all …]
|
D | MediaSession2ServiceTest.java | 139 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSessionIsCalled() 189 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSession_returnsSession() 252 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSession_rejectsConnection() 277 assertFalse(latch.await(WAIT_TIME_FOR_NO_RESPONSE_MS, TimeUnit.MILLISECONDS)); in testAllControllersDisconnected_oneSession() 281 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAllControllersDisconnected_oneSession() 304 assertFalse(latch.await(WAIT_TIME_FOR_NO_RESPONSE_MS, TimeUnit.MILLISECONDS)); in testAllControllersDisconnected_multipleSessions() 308 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAllControllersDisconnected_multipleSessions() 375 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnUpdateNotification() 423 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in createConnectedController()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | SystemGestureExclusionRectsTest.java | 88 assertTrue("didn't receive exclusion rects", received.await(3, SECONDS)); in staticView() 119 assertTrue("didn't finish animating", doneAnimating.await(3, SECONDS)); in animatingView() 151 assertTrue("didn't finish second animation", secondDoneAnimating.await(3, SECONDS)); in animatingView() 170 assertTrue("set rects timeout", setter[0].await(3, SECONDS)); in removingRects() 178 assertTrue("unset rects timeout", unsetter[0].await(3, SECONDS)); in removingRects() 201 assertTrue("set rects timeout", setter[0].await(3, SECONDS)); in rootExclusionRects() 229 assertTrue("set rects timeout", setLatch[0].await(3, SECONDS)); in ignoreHiddenViewRects() 240 assertTrue("set rects timeout", updateHideLatch[0].await(3, SECONDS)); in ignoreHiddenViewRects() 251 assertTrue("set rects timeout", updateShowLatch[0].await(3, SECONDS)); in ignoreHiddenViewRects() 271 public boolean await(long time, TimeUnit unit) throws InterruptedException { in await() method in SystemGestureExclusionRectsTest.GestureExclusionLatcher [all …]
|
/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() 175 mReceiver.finishCountDown.await(3000, TimeUnit.MILLISECONDS)); 212 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); 213 assertTrue("Reenter transition didn't finish", latch.await(1000, TimeUnit.MILLISECONDS)); 214 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); 246 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); 247 assertTrue(mActivity.reenterLatch.await(1000, TimeUnit.MILLISECONDS)); 280 mActivity.returnLatch.await(3000, TimeUnit.MILLISECONDS)); 281 assertTrue("Reenter transition didn't finish", latch.await(1000, TimeUnit.MILLISECONDS)); [all …]
|
/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/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/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | DirectActionsSession.java | 120 Utils.await(mCondition); in executeWithAssist() 148 Utils.await(latch); in getDirectActions() 163 Utils.await(latch); in performDirectAction() 190 Utils.await(resultLatch); in performDirectActionAndCancel() 194 Utils.await(cancelLatch); in performDirectActionAndCancel() 203 Utils.await(mCondition); in detectDirectActionsInvalidated()
|
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/ |
D | ErrorsTests.java | 72 assertTrue(receiver.await()); in testException() 95 assertTrue(receiver.await()); in testANR() 113 assertTrue(receiver.await()); in testNativeCrash() 131 assertTrue(receiver.await()); in testTombstone()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | BlockingBroadcastReceiver.java | 48 latch.await(timeout, unit); in getParam() 52 public void await() throws Exception { in await() method in BlockingBroadcastReceiver 53 assertTrue(latch.await(20, TimeUnit.SECONDS)); in await()
|
D | CollectionAppWidgetTest.java | 143 assertTrue(providerCountDownLatch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in setup() 184 assertTrue(factoryCountDownLatch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in setup() 242 assertTrue(updateLatch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in verifySetDisplayedChild() 280 assertTrue(updateLatch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in verifyShowCommand() 409 assertTrue(updateLatch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetScrollPosition() 431 result = scrollToPositionLatch.await(20, TimeUnit.SECONDS); in testSetScrollPosition() 454 result = scrollByOffsetLatch.await(20, TimeUnit.SECONDS); in testSetScrollPosition()
|
/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/widget/src/android/widget/cts/ |
D | AbsListView_ScrollTest.java | 198 latch.await(2, TimeUnit.SECONDS)); in verifyScrollToPosition() 257 latch.await(2, TimeUnit.SECONDS)); in verifyScrollToPositionWithBound() 331 latch.await(timeoutMs, TimeUnit.MILLISECONDS)); in verifyScrollToPositionFromTop() 511 scrollLatch.await(5, TimeUnit.SECONDS)); in testListScrollAndTap() 540 scrollLatch.await(5, TimeUnit.SECONDS)); 555 flingLatch.await(5, TimeUnit.SECONDS)); 617 flingLatch.await(5, TimeUnit.SECONDS)); 685 initialFlingLatch.await(5, TimeUnit.SECONDS)); 698 fastFlingLatch.await(5, TimeUnit.SECONDS)); 717 slowFlingLatch.await(5, TimeUnit.SECONDS));
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | LoaderTest.java | 101 assertTrue(activity.loadFinished.await(1, TimeUnit.SECONDS)); in startWhenReused() 106 assertTrue(activity.loadFinished.await(1, TimeUnit.SECONDS)); in startWhenReused() 167 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData() 181 assertFalse(loadedLatch[0].await(300, TimeUnit.MILLISECONDS)); in noStaleData() 191 assertTrue(loadedLatch[0].await(1, TimeUnit.SECONDS)); in noStaleData()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
D | CallbackUtils.java | 82 if (mOnAvailableBlocker.await(mCallbackTimeoutInMs, TimeUnit.MILLISECONDS)) { in waitForAvailable() 94 if (mOnUnAvailableBlocker.await(mCallbackTimeoutInMs, TimeUnit.MILLISECONDS)) { in waitForUnavailable() 106 if (mOnLostBlocker.await(mCallbackTimeoutInMs, TimeUnit.MILLISECONDS)) { in waitForLost()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | LifecycleTest.java | 53 if (!mHasFocusLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForHasFocus() 60 if (!mLostFocusLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForLostFocus() 66 if (mActivityLifecycleLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitAndSeeIfLifecycleMethodsAreTriggered() 73 if (!mDestroyLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForDestroy()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/ |
D | CallbackUtils.java | 80 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForAttach() 113 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForMac() 151 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForNetworkCapabilities() 238 finishedNormally = mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS); in waitForCallbacks() 240 mBlocker.await(); in waitForCallbacks() 382 if (mBlocker.await(CALLBACK_TIMEOUT_SEC, TimeUnit.SECONDS)) { in waitForRangingResults()
|
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/ |
D | Utils.java | 168 public static boolean await(CountDownLatch latch) { in await() method in Utils 170 if (latch.await(OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) return true; in await() 179 public static boolean await(Condition condition) { in await() method in Utils 181 if (condition.await(OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS)) return true; in await()
|
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/ |
D | ContentSuggestionsManagerTest.java | 88 await(mWatcher.created, "Waiting for create"); in setup() 97 await(mWatcher.destroyed, "Waiting for service destroyed"); in tearDown() 148 private void await(@NonNull CountDownLatch latch, @NonNull String message) { in await() method in ContentSuggestionsManagerTest 151 latch.await(SERVICE_LIFECYCLE_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in await()
|