Home
last modified time | relevance | path

Searched refs:TIMEOUT_MS (Results 1 – 25 of 122) sorted by relevance

12345

/packages/services/Car/tests/CarTestLibUnitTest/src/android/car/test/mocks/
DJavaMockitoHelperTest.java48 private static final long TIMEOUT_MS = Math.max(1_000L, JavaMockitoHelper.ASYNC_TIMEOUT_MS) + 1; field in JavaMockitoHelperTest
51 private static final String CUSTOM_TIMEOUT_MSG = TIMEOUT_MS + "ms";
60 JavaMockitoHelper.await(semaphore, TIMEOUT_MS); in testAwait_Semaphore()
70 JavaMockitoHelper.await(latch, TIMEOUT_MS); in testAwait_CountDownLatch()
88 assertThat(JavaMockitoHelper.silentAwait(latch, TIMEOUT_MS)).isTrue(); in testSilentAwait_called()
151 () -> JavaMockitoHelper.getResult(null, TIMEOUT_MS, "D'OH!")); in testGetResult_withCustomTimeout_nullFuture()
157 () -> JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, null)); in testGetResult_withCustomTimeout_nullMessageFormat()
164 assertThat(JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, "I am number %d!", 4)) in testGetResult_withCustomTimeout_ok()
166 verify(mFuture).get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testGetResult_withCustomTimeout_ok()
176 () -> JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, "I am number %d!", 4)); in testGetResult_withCustomTimeout_timeoutException()
[all …]
/packages/modules/Connectivity/tests/cts/multidevices/snippet/
DWifip2pMultiDevicesSnippet.kt43 private const val TIMEOUT_MS = 60000L in <lambda>() constant
75 timeoutMs: Long = TIMEOUT_MS, in <lambda>()
97 p2pStateEnabledFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
124 return deviceFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
154 createGroupFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
172 p2pDiscoveryStartedFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
224 connectedFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
253 if (isGroupInvitation) attachedFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) else in <lambda>()
254 connectionRequestFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
268 resultFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
[all …]
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java80 private static int TIMEOUT_MS = 30_000; field in CtsTetheringUtils.StartTetheringCallback
116 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted()
117 assertNotNull("No onTetheringStarted after " + TIMEOUT_MS + " ms", cv); in verifyTetheringStarted()
126 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectTetheringFailed()
127 assertNotNull("No onTetheringFailed after " + TIMEOUT_MS + " ms", cv); in expectTetheringFailed()
134 private static final int TIMEOUT_MS = 30_000; field in CtsTetheringUtils.StopTetheringCallback
181 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyStopTetheringSucceeded()
182 assertNotNull("No onStopTetheringSucceeded after " + TIMEOUT_MS + " ms", cv); in verifyStopTetheringSucceeded()
191 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectStopTetheringFailed()
192 assertNotNull("No onStopTetheringFailed after " + TIMEOUT_MS + " ms", cv); in expectStopTetheringFailed()
[all …]
DEthernetTestInterface.kt39 private const val TIMEOUT_MS = 5_000L constant
76 val cb = events.poll(TIMEOUT_MS) { it is InterfaceStateChanged && it.state == state } in eventuallyExpect()
101 handler.waitForIdle(TIMEOUT_MS)
107 handler.waitForIdle(TIMEOUT_MS) in destroy()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/
DSapRilReceiverHidlTest.java78 private static final long TIMEOUT_MS = 1_000; field in SapRilReceiverHidlTest
127 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_RIL_SOCK_CLOSED), any()); in notifyShutdown()
134 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RIL_CONNECT), any()); in sendRilConnectMessage()
142 verify(mCallback, timeout(ISAP_GET_SERVICE_DELAY_MILLIS + TIMEOUT_MS)) in serviceDied()
155 verify(mCallback, timeout(TIMEOUT_MS)) in callback_connectResponse()
177 verify(mCallback, timeout(TIMEOUT_MS)) in callback_disconnectResponse()
199 verify(mCallback, timeout(TIMEOUT_MS)) in callback_disconnectIndication()
228 verify(mCallback, timeout(TIMEOUT_MS)) in callback_apduResponse()
258 verify(mCallback, timeout(TIMEOUT_MS)) in callback_transferAtrResponse()
286 verify(mCallback, timeout(TIMEOUT_MS)) in callback_powerResponse_powerOff()
[all …]
DSapRilReceiverTest.java81 private static final long TIMEOUT_MS = 1_000; field in SapRilReceiverTest
134 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_RIL_SOCK_CLOSED), any()); in notifyShutdown()
141 verify(mCallback, timeout(TIMEOUT_MS)).receiveMessage(eq(SAP_MSG_RIL_CONNECT), any()); in sendRilConnectMessage()
148 verify(mCallback, timeout(ISAP_GET_SERVICE_DELAY_MILLIS + TIMEOUT_MS)) in binderDied()
161 verify(mCallback, timeout(TIMEOUT_MS)) in callback_connectResponse()
183 verify(mCallback, timeout(TIMEOUT_MS)) in callback_disconnectResponse()
205 verify(mCallback, timeout(TIMEOUT_MS)) in callback_disconnectIndication()
230 verify(mCallback, timeout(TIMEOUT_MS)) in callback_apduResponse()
256 verify(mCallback, timeout(TIMEOUT_MS)) in callback_transferAtrResponse()
284 verify(mCallback, timeout(TIMEOUT_MS)) in callback_powerResponse_powerOff()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipTransportControllerTest.java85 private static final int TIMEOUT_MS = 200; field in SipTransportControllerTest
357 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createDestroyAppDied()
446 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange()
453 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange()
456 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange()
460 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in createTwoAndTriggerRoleChange()
500 assertTrue(waitForExecutorAction(mExecutorService, TIMEOUT_MS)); in createTwoAndDestroyOlder()
599 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in testSubIdChangeDestroyTriggered()
619 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in testRcsManagerGoneDestroyTriggered()
639 waitForExecutorAction(mExecutorService, TIMEOUT_MS); in testDestroyTriggered()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioStateMachineTest.java68 private static final int TIMEOUT_MS = 1000; field in LeAudioStateMachineTest
129 verify(mLeAudioService, after(TIMEOUT_MS).never()) in testIncomingPriorityReject()
149 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingPriorityAccept()
165 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingPriorityAccept()
167 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingPriorityAccept()
185 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testOutgoingTimeout()
216 verify(mLeAudioService, timeout(TIMEOUT_MS)) in testIncomingTimeout()
246 verify(mLeAudioService, timeout(TIMEOUT_MS)) in connectEventNeglectedWhileInConnectingState()
256 verify(mLeAudioService, timeout(TIMEOUT_MS)) in connectEventNeglectedWhileInConnectingState()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSNetworkReservationTest.kt64 private const val TIMEOUT_MS = 5_000L constant
71 private val blanketOffer = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS)
105 val reservedOfferCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservationRequest()
129 val offerCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservationRequest_notDeliveredToRegularOffer()
152 val reservedOfferCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservedOffer_preventReservationIdUpdate()
187 val reservedOfferCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservedOffer_capabilitiesCannotBeUpdated()
229 val offerCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservationOffer_onlyAllowSingleOffer()
235 val newOfferCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservationOffer_onlyAllowSingleOffer()
256 val reservedOfferCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservationOffer_updateScore()
275 val offerCb = TestableNetworkOfferCallback(TIMEOUT_MS, NO_CB_TIMEOUT_MS) in testReservationOffer_regularOfferCanBeUpdated()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsResolverTest.java116 static final int TIMEOUT_MS = 12_000; field in DnsResolverTest
276 return waitForAnswer(TIMEOUT_MS); in waitForAnswer()
429 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQuery()
455 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryBlob()
469 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryRoot()
492 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomain()
514 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomainWithPrivateDns()
545 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryCancel()
574 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryBlobCancel()
614 return mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForAnswer()
[all …]
DTheaterModeTest.java30 private static final int TIMEOUT_MS = 10 * 1000; field in TheaterModeTest
52 fail("Theater mode failed to change in " + TIMEOUT_MS + "msec"); in testTheaterMode()
63 Thread.sleep(TIMEOUT_MS); in doOneTest()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DImsStateTrackerTest.java77 private static final long TIMEOUT_MS = 100; field in ImsStateTrackerTest
235 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateServiceStateBeforeAddingListener() local
242 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateServiceStateBeforeAddingListener() local
252 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateServiceStateAfterAddingListener() local
259 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateServiceStateAfterAddingListener() local
273 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testAddAndRemoveServiceStateListener() local
283 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateBarringInfoBeforeAddingListener() local
290 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateBarringInfoBeforeAddingListener() local
300 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateBarringInfoAfterAddingListener() local
307 waitForHandlerAction(mImsStateTracker.getHandler(), TIMEOUT_MS); in testUpdateBarringInfoAfterAddingListener() local
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DOutcomeReceiverForTestsTest.java43 private static final int TIMEOUT_MS = 200; field in OutcomeReceiverForTestsTest
70 OutcomeReceiverForTests<String> receiver = newReceiver(TIMEOUT_MS * 3); in testOnResult()
72 runAsync(TIMEOUT_MS, () -> receiver.onResult(RESULT)); in testOnResult()
114 OutcomeReceiverForTests<String> receiver = newReceiver(TIMEOUT_MS * 3); in testOnError()
116 runAsync(TIMEOUT_MS, () -> receiver.onError(mError)); in testOnError()
123 OutcomeReceiverForTests<String> receiver = newReceiver(TIMEOUT_MS * 3); in testOnError_wrongExceptionClass()
125 runAsync(TIMEOUT_MS, () -> receiver.onError(mError)); in testOnError_wrongExceptionClass()
/packages/modules/DnsResolver/tests/
Ddoh_ffi_test.cpp33 static const int TIMEOUT_MS = 10000; variable
103 .probe_timeout_ms = TIMEOUT_MS, in TEST_F()
104 .idle_timeout_ms = TIMEOUT_MS, in TEST_F()
118 EXPECT_EQ(cv.wait_for(lk, std::chrono::milliseconds(TIMEOUT_MS)), in TEST_F()
127 len = doh_query(doh, dnsNetId, buf.data(), len, answer, sizeof answer, TIMEOUT_MS); in TEST_F()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionTestBase.java122 private static final int TIMEOUT_MS = 2000; field in IkeSessionTestBase
366 return mFutureIkeConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitIkeConfig()
370 return mFutureOnClosedException.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosedException()
375 (long) TIMEOUT_MS, in awaitNextOnErrorException()
383 mFutureOnClosedCall.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosed()
387 return mFutureConnectionConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnIkeSessionConnectionInfoChanged()
392 (long) TIMEOUT_MS, in awaitNextOnLivenessStatus()
474 return mFutureChildConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS);
478 return mFutureOnClosedException.get(TIMEOUT_MS, TimeUnit.MILLISECONDS);
483 (long) TIMEOUT_MS,
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRequestStateStatsMetricsTest.java67 private static final int TIMEOUT_MS = 30_000; field in NetworkRequestStateStatsMetricsTest
104 verify(mNRStateStatsDeps, timeout(TIMEOUT_MS)) in testNetworkRequestReceivedRemoved()
122 verify(mNRStateStatsDeps, timeout(TIMEOUT_MS)) in testNetworkRequestReceivedRemoved()
139 HandlerUtils.waitForIdle(mHandlerThread, TIMEOUT_MS); in testUnreceivedNetworkRequestRemoved()
147 verify(mNRStateStatsDeps, timeout(TIMEOUT_MS)) in testNoMessagesWhenNetworkRequestReceived()
152 HandlerUtils.waitForIdle(mHandlerThread, TIMEOUT_MS); in testNoMessagesWhenNetworkRequestReceived()
183 verify(mNRStateStatsDeps, timeout(TIMEOUT_MS).times( in testMessageQueueSizeLimitNotExceeded()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DFinalizationControllerImplTest.java57 private static final int TIMEOUT_MS = 1000; field in FinalizationControllerImplTest
84 Futures.getChecked(clearedFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in notifyRestrictionsCleared_startsReportingWork()
103 Futures.getChecked(finalizeFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in finalizeNotEnrolledDevice_doesNotStartReportingWork()
123 Futures.getChecked(clearedFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in reportingFinishedSuccessfully_fullyFinalizes()
130 Futures.getChecked(reportedFuture, Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in reportingFinishedSuccessfully_fullyFinalizes()
147 Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in unreportedStateInitializedFromDisk_reportsWork() local
164 Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in enforceDiskState_noForce_usesCurrentState() local
186 Exception.class, TIMEOUT_MS, TimeUnit.MILLISECONDS); in enforceDiskState_force_usesDiskState() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/encryption/
DProtectedServersEncryptionConfigManagerTest.java114 private static final int TIMEOUT_MS = 500; field in ProtectedServersEncryptionConfigManagerTest
299 TIMEOUT_MS, in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey()
328 TIMEOUT_MS, in test_fetchAndPersistAuctionKey_fetchSuccess_withLogging()
374 TIMEOUT_MS, in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey()
386 TIMEOUT_MS, in test_multipleCoordinatorKeys_fetchSuccess_returnsLatestActiveAuctionKey()
421 TIMEOUT_MS, in test_fetchAndPersistJoinKey_fetchSuccess_returnsLatestActiveJoinKey()
464 TIMEOUT_MS, in test_fetchAndPersistActiveKeysOfType_persistsJey()
483 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey()
508 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging()
546 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_withNoKeys_returnsLatestKey()
[all …]
DAdSelectionEncryptionKeyManagerTest.java90 private static final int TIMEOUT_MS = 500; field in AdSelectionEncryptionKeyManagerTest
330 TIMEOUT_MS, in test_fetchAndPersistAuctionKey_fetchSuccess_returnsLatestActiveAuctionKey()
367 TIMEOUT_MS, in test_fetchAndPersistJoinKey_fetchSuccess_returnsLatestActiveJoinKey()
408 TIMEOUT_MS, in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
441 TIMEOUT_MS, in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey()
463 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey()
487 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging()
521 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_withExpiredKey_shouldReturnExpiredKey()
546 TIMEOUT_MS, in test_getLatestOhttpKeyConfigOfType_withExpiredKey_withLogging()
588 TIMEOUT_MS, in test_getLatestActiveOhttpKeyConfig_withExpiredKey_shouldFetchAndPersistAndReturnNewKey()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/
DResultCallbackImplTest.java34 private static final int TIMEOUT_MS = 5000; field in ResultCallbackImplTest
55 assertThat(callback.get(TIMEOUT_MS, UNIT).getStatus()).isEqualTo(STATUS); in testParcelable()
72 assertThat(callback.get(TIMEOUT_MS, UNIT).getStatus()).isEqualTo(STATUS); in tesSameProcessCall()
90 return mLatch.await(TIMEOUT_MS, UNIT); in isCompleteCalled()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java168 private static final long TIMEOUT_MS = 500; field in NsdServiceTest
442 verify(discListener, timeout(TIMEOUT_MS)).onDiscoveryStarted(SERVICE_TYPE); in testDiscoverOnTetheringDownstream()
459 verify(discListener, timeout(TIMEOUT_MS)).onServiceFound(discoveredInfoCaptor.capture()); in testDiscoverOnTetheringDownstream()
512 verify(resolveListener, timeout(TIMEOUT_MS)).onServiceResolved(resInfoCaptor.capture()); in testDiscoverOnTetheringDownstream()
560 verify(discListener, timeout(TIMEOUT_MS)).onServiceFound(foundInfoCaptor.capture()); in testDiscoverOnTetheringDownstream_DiscoveryManager()
590 verify(discListener, timeout(TIMEOUT_MS)).onDiscoveryStarted(SERVICE_TYPE); in testDiscoverOnBlackholeNetwork()
639 verify(regListener, timeout(TIMEOUT_MS)) in testServiceRegistrationSuccessfulAndFailed()
657 verify(regListener, timeout(TIMEOUT_MS)) in testServiceRegistrationSuccessfulAndFailed()
675 verify(discListener, timeout(TIMEOUT_MS)).onDiscoveryStarted(SERVICE_TYPE); in testServiceDiscoveryFailed()
690 verify(discListener, timeout(TIMEOUT_MS)) in testServiceDiscoveryFailed()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppNotificationTest.java64 static final int TIMEOUT_MS = 3000; field in BluetoothOppNotificationTest
202 device.wait(Until.hasObject(By.text(titleString)), TIMEOUT_MS); in updateActiveNotification() local
274 device.wait(Until.hasObject(By.text(titleString)), TIMEOUT_MS); in updateCompletedNotification_withOutBoundShare_showsNoti() local
283 device.wait(Until.gone(By.text(titleString)), TIMEOUT_MS); in updateCompletedNotification_withOutBoundShare_showsNoti() local
354 device.wait(Until.hasObject(By.text(titleString)), TIMEOUT_MS); in updateCompletedNotification_withInBoundShare_showsNoti() local
362 device.wait(Until.gone(By.text(titleString)), TIMEOUT_MS); in updateCompletedNotification_withInBoundShare_showsNoti() local
431 device.wait(Until.hasObject(By.text(titleString)), TIMEOUT_MS); in updateIncomingFileConfirmationNotification() local
449 buttonDecline.wait(Until.clickable(true), TIMEOUT_MS); in updateIncomingFileConfirmationNotification() local
456 device.wait(Until.gone(By.text(titleString)), TIMEOUT_MS); in updateIncomingFileConfirmationNotification() local
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DEnterTransitionAnimationDelegateTest.kt40 private const val TIMEOUT_MS = 200 constant
57 mock<Resources> { on { getInteger(any<Int>()) } doReturn TIMEOUT_MS } in <lambda>()
85 scheduler.advanceTimeBy(TIMEOUT_MS + 1L) in test_postponeTransition_timeout()
98 scheduler.advanceTimeBy(TIMEOUT_MS + 1L) in test_postponeTransition_animation_resumes_only_once()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DDistanceMeasurementTrackerTest.java56 private static final int TIMEOUT_MS = 1500; field in DistanceMeasurementTrackerTest
90 mHandlerThread.join(TIMEOUT_MS); in tearDown()
96 verify(mDistanceMeasurementManager, timeout(TIMEOUT_MS).times(1)) in testStartTimer()
104 verify(mDistanceMeasurementManager, after(TIMEOUT_MS).never()) in testCancelTimer()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/
DConntrackMonitorTest.java71 private static final long TIMEOUT_MS = 10_000L; field in ConntrackMonitorTest
108 TIMEOUT_MS); in sendMessage()
135 if (!initDone.block(TIMEOUT_MS)) { in setUp()
136 fail("... init monitor timed-out after " + TIMEOUT_MS + "ms"); in setUp()
224 verify(mConsumer, timeout(TIMEOUT_MS)).accept(eq(expectedEvent)); in testConntrackEventNew()
334 verify(mConsumer, timeout(TIMEOUT_MS)).accept(eq(expectedEvent)); in testConntrackEventDelete()

12345