Home
last modified time | relevance | path

Searched refs:TEST_TIMEOUT_MS (Results 1 – 7 of 7) sorted by relevance

/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt68 private val TEST_TIMEOUT_MS = 10_000L constant
144 TEST_TIMEOUT_MS, MILLISECONDS), in setAvailable()
232 verify(connection, timeout(TEST_TIMEOUT_MS)).inputStream in makeDownloadIntent()
236 By.res(NOTIFICATION_SHADE_TYPE).hasDescendant(By.text(dlText1))), TEST_TIMEOUT_MS)) in makeDownloadIntent()
245 By.text(NumberFormat.getPercentInstance().format(.01f)))), TEST_TIMEOUT_MS)) in makeDownloadIntent()
254 verify(connection, timeout(TEST_TIMEOUT_MS)).disconnect() in makeDownloadIntent()
268 By.res(NOTIFICATION_SHADE_TYPE).hasDescendant(By.text(dlText2))), TEST_TIMEOUT_MS)) in makeDownloadIntent()
272 verify(connection, timeout(TEST_TIMEOUT_MS).times(2)).disconnect() in makeDownloadIntent()
295 val note = device.wait(Until.findObject(By.text(doneText)), TEST_TIMEOUT_MS) in testTapDoneNotification()
301 assertTrue(device.wait(Until.hasObject(By.text(fileContents)), TEST_TIMEOUT_MS)) in testTapDoneNotification()
[all …]
DCaptivePortalLoginActivityTest.java108 private static final long TEST_TIMEOUT_MS = 10_000L; field in CaptivePortalLoginActivityTest
210 getInstrumentation().getContext(), TEST_LINKADDR, TEST_TIMEOUT_MS); in setUp()
435 assertTrue(isEventually(() -> Intents.getIntents().size() == 1, TEST_TIMEOUT_MS)); in testUnsupportedScheme() local
485 isEventually(() -> Intents.getIntents().size() == 1, TEST_TIMEOUT_MS)); in testDownload()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java94 private static final int TEST_TIMEOUT_MS = 400; field in IpClientTest
160 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetEnableIPv6(ifname, false); in makeIpClient()
161 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceClearAddrs(ifname); in makeIpClient()
227 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).onProvisioningFailure(any()); in testInterfaceNotFoundFailsImmediately()
255 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setNeighborDiscoveryOffload(true); in doProvisioningWithDefaultConfiguration()
256 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setFallbackMulticastFilter(false); in doProvisioningWithDefaultConfiguration()
265 HandlerUtilsKt.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doProvisioningWithDefaultConfiguration() local
304 HandlerUtilsKt.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doDefaultIPv6ProvisioningConfigurationAndProvisioningLossTest() local
329 HandlerUtilsKt.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doDefaultDualStackProvisioningConfigurationTest() local
333 HandlerUtilsKt.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doDefaultDualStackProvisioningConfigurationTest() local
[all …]
DIpReachabilityMonitorTest.kt64 private const val TEST_TIMEOUT_MS = 10_000L in <lambda>() constant
189 reachabilityMonitor = monitorFuture.get(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS) in setUp()
197 handlerThread.waitForIdle(TEST_TIMEOUT_MS) in tearDown()
207 verify(callback, timeout(TEST_TIMEOUT_MS)).notifyLost(eq(TEST_IPV4_DNS), anyString()) in testLoseProvisioning_FirstProbeIsFailed()
219 verify(callback, timeout(TEST_TIMEOUT_MS)).notifyLost(eq(lostNeighbor), anyString()) in runLoseProvisioningTest()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java190 private static final int TEST_TIMEOUT_MS = 400; field in IpClientIntegrationTest
403 verify(mCb, timeout(TEST_TIMEOUT_MS)).onQuit();
467 HandlerUtilsKt.waitForIdle(mIpc.getHandler(), TEST_TIMEOUT_MS);
487 return inOrder.verify(t, timeout(TEST_TIMEOUT_MS));
489 return verify(t, timeout(TEST_TIMEOUT_MS));
494 inOrder.verify(mAlarm, timeout(TEST_TIMEOUT_MS)).cancel(eq(listener));
619 verify(mCb, timeout(TEST_TIMEOUT_MS)).setFallbackMulticastFilter(false);
639 verify(mIpMemoryStore, timeout(TEST_TIMEOUT_MS))
783 verify(mCb, timeout(TEST_TIMEOUT_MS)).onLinkPropertiesChange(emptyLp);
795 verify(mCb, timeout(TEST_TIMEOUT_MS)).onProvisioningSuccess(captor.capture());
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java113 private static final int TEST_TIMEOUT_MS = 10000; field in DhcpServerTest
154 assertTrue(mCv.block(TEST_TIMEOUT_MS)); in waitForShutdown()
190 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in startServer() local
228 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testStartWithCallbacks() local
245 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover() local
264 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover_RapidCommit() local
283 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover_OutOfAddresses() local
312 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRequest_Selecting_Ack() local
330 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRequest_Selecting_Nak() local
345 HandlerUtilsKt.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRelease() local
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/networkstack/
DModuleNetworkStackClientTest.kt52 private val TEST_TIMEOUT_MS = 500L constant
102 Thread.sleep(TEST_TIMEOUT_MS) in testIpClientServiceAvailableAfterPolling()
111 verify(mConnector, timeout(TEST_TIMEOUT_MS * 4)).makeIpClient(TEST_IFNAME, mIpClientCb) in testIpClientServiceAvailableAfterPolling()