Home
last modified time | relevance | path

Searched refs:SHORT_TIMEOUT (Results 1 – 3 of 3) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DIncomingCallFilterTest.java68 private static final long SHORT_TIMEOUT = 100; field in IncomingCallFilterTest
142 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testAsyncBlockCallResultFilter()
156 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testDirectToVoiceMailCallResultFilter()
170 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testCallScreeningServiceBlockCallResultFilter()
184 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testPassCallResultFilter()
210 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testMultipleFiltersForAsyncBlockCheckFilter()
241 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testMultipleFiltersForDirectToVoicemailCallFilter()
269 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testMultipleFiltersForCallScreeningServiceFilter()
285 setTimeoutLength(SHORT_TIMEOUT); in testFilterTimeout()
289 verify(mResultCallback, timeout((int) SHORT_TIMEOUT * 2)).onCallFilteringComplete(eq(mCall), in testFilterTimeout()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt46 const val SHORT_TIMEOUT = 40L // ms in <lambda>() constant
179 var delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0)) } in <lambda>()
180 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
181 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>()
182 assertTrue(delay >= SHORT_TIMEOUT) in <lambda>()
192 Thread.sleep(SHORT_TIMEOUT * 2) in <lambda>()
201 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>()
206 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 1)) } in <lambda>()
207 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
209 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DTetherServiceTest.java81 private static final int SHORT_TIMEOUT = 100; field in TetherServiceTest
263 SystemClock.sleep(SHORT_TIMEOUT); in waitForAppInactive()
280 SystemClock.sleep(SHORT_TIMEOUT); in waitForProvisionRequest()
297 SystemClock.sleep(SHORT_TIMEOUT); in waitForProvisionResponse()