Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt101 private const val TEST_TIMEOUT_MS = 10_000L in <lambda>() constant
327 reachabilityMonitor = monitorFuture.get(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS) in setUp()
337 handlerThread.waitForIdle(TEST_TIMEOUT_MS) in tearDown()
347 verify(callback, timeout(TEST_TIMEOUT_MS)).notifyLost( in testLoseProvisioning_FirstProbeIsFailed()
389 handlerThread.waitForIdle(TEST_TIMEOUT_MS) in runLoseProvisioningTest()
392 verify(callback, timeout(TEST_TIMEOUT_MS)).notifyLost( in runLoseProvisioningTest()
406 verify(mIpReachabilityMonitorMetrics, timeout(TEST_TIMEOUT_MS)).setNudIpType(eq(ipType)) in verifyNudFailureMetrics()
407 verify(mIpReachabilityMonitorMetrics, timeout(TEST_TIMEOUT_MS)) in verifyNudFailureMetrics()
409 verify(mIpReachabilityMonitorMetrics, timeout(TEST_TIMEOUT_MS)) in verifyNudFailureMetrics()
432 handlerThread.waitForIdle(TEST_TIMEOUT_MS) in runLoseNeighborStillProvisionedTest()
[all …]
DIpClientTest.java140 private static final int TEST_TIMEOUT_MS = 30_000; field in IpClientTest
219 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetEnableIPv6(ifname, false); in makeIpClient()
220 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceClearAddrs(ifname); in makeIpClient()
362 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).onProvisioningFailure(any()); in testInterfaceNotFoundFailsImmediately()
390 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setNeighborDiscoveryOffload(true); in doProvisioningWithDefaultConfiguration()
391 verify(mCb, timeout(TEST_TIMEOUT_MS).times(1)).setFallbackMulticastFilter(false); in doProvisioningWithDefaultConfiguration()
401 HandlerUtils.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doProvisioningWithDefaultConfiguration() local
441 HandlerUtils.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doDefaultIPv6ProvisioningConfigurationAndProvisioningLossTest() local
466 HandlerUtils.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doDefaultDualStackProvisioningConfigurationTest() local
470 HandlerUtils.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS); in doDefaultDualStackProvisioningConfigurationTest() local
[all …]
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java310 protected static final long TEST_TIMEOUT_MS = 2_000L; field in IpClientIntegrationTestCommon
785 final int timeout = useNetworkStackSignature() ? 500 : (int) TEST_TIMEOUT_MS;
850 verify(mCb, timeout(TEST_TIMEOUT_MS)).onQuit();
954 HandlerUtils.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS);
986 return inOrder.verify(t, timeout(TEST_TIMEOUT_MS));
988 return verify(t, timeout(TEST_TIMEOUT_MS));
993 inOrder.verify(mAlarm, timeout(TEST_TIMEOUT_MS)).cancel(eq(listener));
1226 verify(mCb, timeout(TEST_TIMEOUT_MS)).setFallbackMulticastFilter(true);
1241 final NetworkAttributes na = getStoredNetworkAttributes(TEST_L2KEY, TEST_TIMEOUT_MS);
1259 assertIpMemoryNeverStoreNetworkAttributes(TEST_L2KEY, TEST_TIMEOUT_MS);
[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 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in startServer() local
229 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testStartWithCallbacks() local
246 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover() local
266 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover_RapidCommit() local
285 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover_OutOfAddresses() local
314 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRequest_Selecting_Ack() local
332 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRequest_Selecting_Nak() local
347 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRelease() local
[all …]
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt86 private val TEST_TIMEOUT_MS = 10_000L constant
189 TEST_TIMEOUT_MS, in setAvailable()
302 verify(connection, timeout(TEST_TIMEOUT_MS)).inputStream in makeFileUri()
323 verify(connection, timeout(TEST_TIMEOUT_MS)).disconnect() in makeFileUri()
340 verify(connection, timeout(TEST_TIMEOUT_MS).times(2)).disconnect() in makeFileUri()
401 assertTrue(downloadAbortedFuture.get(TEST_TIMEOUT_MS, MILLISECONDS)) in testDirectlyOpenMimeType_fileSizeTooLarge()
433 assertFalse(directlyOpenCompleteFuture.get(TEST_TIMEOUT_MS, MILLISECONDS)) in testDirectlyOpenMimeType_cancelTask()
434 assertTrue(otherCompleteFuture.get(TEST_TIMEOUT_MS, MILLISECONDS)) in testDirectlyOpenMimeType_cancelTask()
489 assertTrue(device.wait(Until.hasObject(By.text(fileContents)), TEST_TIMEOUT_MS)) in testTapDoneNotification()
495 assertTrue(device.wait(Until.hasObject(By.res(NOTIFICATION_SHADE_TYPE)), TEST_TIMEOUT_MS)) in openNotificationShade()
[all …]
DCaptivePortalLoginActivityTest.java133 private static final long TEST_TIMEOUT_MS = 10_000L; field in CaptivePortalLoginActivityTest
299 getInstrumentation().getContext(), TEST_LINKADDR, TEST_TIMEOUT_MS); in setUp()
517 && (currentTimeMs - startTimeMs) < TEST_TIMEOUT_MS) { in waitForDestroyedState()
604 viewIntent.get(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testUnsupportedScheme()
607 "Open in browser intent not received after " + TEST_TIMEOUT_MS + "ms", e); in testUnsupportedScheme()
652 isEventually(() -> Intents.getIntents().size() == 1, TEST_TIMEOUT_MS)); in testDownload()
887 assertTrue(spinner.waitForExists(TEST_TIMEOUT_MS)); in testDirectlyOpen_onCreateDeleteFile()
909 assertTrue(toastFuture.get(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testDirectlyOpen_onDownloadAborted()
925 assertTrue(spinner.waitForExists(TEST_TIMEOUT_MS)); in testDirectlyOpen_taskCancelToast()
928 assertTrue(toastFuture.get(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testDirectlyOpen_taskCancelToast()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsAnnouncerTest.kt48 private const val TEST_TIMEOUT_MS = 1000L in <lambda>() constant
258 verify(cb, timeout(TEST_TIMEOUT_MS)).onSent(i, request, 1 /* sentPacketCount */) in <lambda>()
265 TEST_TIMEOUT_MS) in <lambda>()
269 verify(socket, timeout(TEST_TIMEOUT_MS).times(MdnsAnnouncer.ANNOUNCEMENT_COUNT)) in <lambda>()
271 verify(cb, timeout(TEST_TIMEOUT_MS)).onFinished(request) in <lambda>()
DMdnsProberTest.kt47 private const val TEST_TIMEOUT_MS = 10_000L in <lambda>() constant
96 verify(cb, timeout(TEST_TIMEOUT_MS)).onSent(i, probeInfo, 1 /* sentPacketCount */) in <lambda>()
108 verify(cb, timeout(TEST_TIMEOUT_MS)).onFinished(probeInfo) in <lambda>()
197 verify(cb, timeout(TEST_TIMEOUT_MS)).onSent(0, probeInfo, 1 /* sentPacketCount */) in <lambda>()
202 assertTrue(stopResult.get(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS), in <lambda>()
DMdnsServiceTypeClientTests.java114 private static final long TEST_TIMEOUT_MS = 10_000L; field in MdnsServiceTypeClientTests
1672 TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testNotifySocketDestroyed()
1682 TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testNotifySocketDestroyed()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt95 const val TEST_TIMEOUT_MS = 10_000L constant
298 networkStackClient.verifyNetworkMonitorCreated(na.network, TEST_TIMEOUT_MS) in testValidation()
304 testCallback.expectAvailableThenValidatedCallbacks(na.network, TEST_TIMEOUT_MS) in testValidation()
348 networkStackClient.verifyNetworkMonitorCreated(na.network, TEST_TIMEOUT_MS) in testCapportApi()
353 testCb.expectAvailableCallbacks(na.network, validated = false, tmt = TEST_TIMEOUT_MS) in testCapportApi()
355 val capportData = testCb.expect<LinkPropertiesChanged>(na, TEST_TIMEOUT_MS) { in testCapportApi()
366 testCb.expectCaps(na, TEST_TIMEOUT_MS) { in testCapportApi()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkValidationTest.kt69 private const val TEST_TIMEOUT_MS = 10_000L constant
166 DhcpDiscoverPacket::class.java, TEST_TIMEOUT_MS, DHCP_MESSAGE_TYPE_DISCOVER) in testCapportApiCallbacks()
170 DhcpRequestPacket::class.java, TEST_TIMEOUT_MS, DHCP_MESSAGE_TYPE_REQUEST) in testCapportApiCallbacks()
176 assertTrue(httpServer.requestsRecord.poll(TEST_TIMEOUT_MS, 0)?.matches(capportUrl) ?: false, in testCapportApiCallbacks()
180 val testCb = TestableNetworkCallback(TEST_TIMEOUT_MS) in testCapportApiCallbacks()
DCaptivePortalTest.kt83 private const val TEST_TIMEOUT_MS = 20_000L constant
159 TestableNetworkCallback(timeoutMs = TEST_TIMEOUT_MS)) in testCaptivePortalIsNotDefaultNetwork()
211 assertNotNull(server.requestsRecord.poll(TEST_TIMEOUT_MS, pos = 0) { in testCaptivePortalIsNotDefaultNetwork()
/packages/modules/NetworkStack/tests/unit/src/android/net/networkstack/
DModuleNetworkStackClientTest.kt52 private val TEST_TIMEOUT_MS = 500L constant in android.net.networkstack.ModuleNetworkStackClientTest
104 Thread.sleep(TEST_TIMEOUT_MS) in testIpClientServiceAvailableAfterPolling()
113 verify(mConnector, timeout(TEST_TIMEOUT_MS * 4)).makeIpClient(TEST_IFNAME, mIpClientCb) in testIpClientServiceAvailableAfterPolling()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeEventHandlerTest.java32 private static final long TEST_TIMEOUT_MS = 100; field in CarVolumeEventHandlerTest
39 new TestCarVolumeEventCallback(TEST_TIMEOUT_MS);
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java108 private static final long TEST_TIMEOUT_MS = 10_000L; field in NetworkNotificationManagerTest
109 private static final long UI_AUTOMATOR_WAIT_TIME_MILLIS = TEST_TIMEOUT_MS;
444 PollingCheck.check("Wait for the screen to be turned on failed, timeout=" + TEST_TIMEOUT_MS, in doTestNotifyNotificationAsDialogWhenHighPriority()
445 TEST_TIMEOUT_MS, () -> pm.isInteractive()); in doTestNotifyNotificationAsDialogWhenHighPriority()
452 "Launcher package name was still settings after " + TEST_TIMEOUT_MS + "ms", in doTestNotifyNotificationAsDialogWhenHighPriority()
453 TEST_TIMEOUT_MS, in doTestNotifyNotificationAsDialogWhenHighPriority()
497 assertTrue("Activity not shown", actionText.waitForExists(TEST_TIMEOUT_MS)); in doTestNotifyNotificationAsDialogWhenHighPriority()
501 assertTrue("Activity not dismissed", actionText.waitUntilGone(TEST_TIMEOUT_MS)); in doTestNotifyNotificationAsDialogWhenHighPriority()
/packages/modules/NetworkStack/tests/integration/root/android/net/ip/
DIpClientRootTest.kt108 val limit = currentTimeMillis() + TEST_TIMEOUT_MS in <lambda>()
163 assertTrue(latch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS)) in <lambda>()
175 verify(cbMock, timeout(TEST_TIMEOUT_MS)).onIpClientCreated(ipClientCaptor.capture()) in <lambda>()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java73 private static final long TEST_TIMEOUT_MS = 5_000; field in ClusterHomeManagerTest
200 mClusterStateListenerCalled.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testClusterSwitchUi()
222 mClusterStateListenerCalled.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testClusterState()
272 mPropertySetReady.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testClusterReportState()
285 mPropertySetReady.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testClusterRequestDisplay()
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt82 private val TEST_TIMEOUT_MS = 10_000L constant
150 val sentPacket = reader.poll(TEST_TIMEOUT_MS, IPv4UdpFilter().or(ArpRequestFilter())) in testAddArpEntry()
169 StructTimeval.fromMillis(TEST_TIMEOUT_MS)) in doTestAttachRaFilter()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerTest.java67 private static final long TEST_TIMEOUT_MS = 10_000; field in CarUserManagerTest
363 TEST_TIMEOUT_MS)).isTrue(); in testSwitchUserUxRestrictionFailure()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNetlinkUtilsTest.java72 private static final int TEST_TIMEOUT_MS = 500; field in NetlinkUtilsTest