Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt57 private const val DEFAULT_TIMEOUT_MS = 5000L in <lambda>() constant
110 ) = seenEvents.poll(DEFAULT_TIMEOUT_MS) { it is T && predicate(it) } in <lambda>()
233 DEFAULT_TIMEOUT_MS, DEFAULT_NO_CALLBACK_TIMEOUT_MS) in <lambda>()
235 DEFAULT_TIMEOUT_MS, DEFAULT_NO_CALLBACK_TIMEOUT_MS) in <lambda>()
237 DEFAULT_TIMEOUT_MS, DEFAULT_NO_CALLBACK_TIMEOUT_MS) in <lambda>()
239 DEFAULT_TIMEOUT_MS, DEFAULT_NO_CALLBACK_TIMEOUT_MS) in <lambda>()
370 ) = seenEvents.poll(DEFAULT_TIMEOUT_MS) { it is T && predicate(it) } in <lambda>()
DCaptivePortalTest.java41 private static final int DEFAULT_TIMEOUT_MS = 5000; field in CaptivePortalTest
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java72 private static final long DEFAULT_TIMEOUT_MS = 5_000; field in VendorServiceControllerTest
195 Handler.getMain().runWithScissors(r, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle()
197 Handler.getMain().runWithScissors(() -> { }, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle()
288 Log.d(TAG, "waiting " + DEFAULT_TIMEOUT_MS + "ms for " + method); in await()
289 if (!latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in await()
290 String errorMessage = method + " not called in " + DEFAULT_TIMEOUT_MS + "ms"; in await()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt133 private const val DEFAULT_TIMEOUT_MS = 5000L in <lambda>() constant
339 val foundCallback = history.poll(DEFAULT_TIMEOUT_MS) in disconnect()
345 val foundCallback = history.poll(DEFAULT_TIMEOUT_MS) in disconnect()
351 history.poll(DEFAULT_TIMEOUT_MS) { it is T }.also { in disconnect()
356 assertTrue(waitForIdle(DEFAULT_TIMEOUT_MS), in disconnect()
521 TestableNetworkCallback(DEFAULT_TIMEOUT_MS).also { in testSignalStrengthThresholds()
583 verify(mFakeConnectivityService.mockRegistry, timeout(DEFAULT_TIMEOUT_MS)) in agent()
619 val callback = TestableNetworkCallback(timeoutMs = DEFAULT_TIMEOUT_MS) in testSendScore()
660 val callback = TestableNetworkCallback(timeoutMs = DEFAULT_TIMEOUT_MS) in testSetUnderlyingNetworksAndVpnSpecifier()
848 val commonCallback = TestableNetworkCallback(timeoutMs = DEFAULT_TIMEOUT_MS) in testSetLingerDuration()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java43 public static final int DEFAULT_TIMEOUT_MS = 5000; // 5 seconds field in HttpsServiceConnection
48 mConnection.setConnectTimeout(DEFAULT_TIMEOUT_MS); in HttpsServiceConnection()
49 mConnection.setReadTimeout(DEFAULT_TIMEOUT_MS); in HttpsServiceConnection()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java60 private static final int DEFAULT_TIMEOUT_MS = 100; field in GarageModeTest
136 .that(latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in waitForHandlerThreadToFinish()
137 mHandler.runWithScissors(() -> {}, DEFAULT_TIMEOUT_MS); in waitForHandlerThreadToFinish()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java55 private static final long DEFAULT_TIMEOUT_MS = 10_000; field in SystemActivityMonitoringServiceTest
147 for (long i = DEFAULT_TIMEOUT_MS / SLEEP_MS; !condition.getAsBoolean() && i > 0; --i) { in waitUntil()
248 assertTrue(mActivityLaunched.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in assertTopTaskActivityLaunched()
DCarProjectionServiceTest.java76 private static final int DEFAULT_TIMEOUT_MS = 1000; field in CarProjectionServiceTest
123 latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in updateProjectionStatus_defaultState()
168 latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in updateProjectionStatus_subscribeAfterUpdate()
194 latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in updateProjectionStatus_subscribeBeforeUpdate()
DCarInputRotaryServiceTest.java73 private static final long DEFAULT_TIMEOUT_MS = 5_000; field in CarInputRotaryServiceTest
248 Handler.getMain().runWithScissors(r, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle()
251 }, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java62 private static final int DEFAULT_TIMEOUT_MS = 60_000; field in CtsTetheringUtils
415 if (!mWaiting.block(DEFAULT_TIMEOUT_MS)) { in waitForWifiEnabled()
416 assertTrue("Wifi did not become enabled after " + DEFAULT_TIMEOUT_MS + "ms", in waitForWifiEnabled()
490 if (!mWaiting.block(DEFAULT_TIMEOUT_MS)) { in waitForSoftApStopped()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt40 const val DEFAULT_TIMEOUT_MS = 1000 constant
75 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, FLAG_EMPTY, DEFAULT_TIMEOUT_MS, in verifyGetAllByName()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java75 private static final int DEFAULT_TIMEOUT_MS = 1000; field in CarProjectionManagerTest
100 mApCallback.mFailed.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in startAp_fail()
114 mApCallback.mStarted.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in startAp_success()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DBlockingUserLifecycleListener.java55 private static final long DEFAULT_TIMEOUT_MS = 2_000; field in BlockingUserLifecycleListener
112 private long mTimeoutMs = DEFAULT_TIMEOUT_MS;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DProvisioningConfiguration.java76 private static final int DEFAULT_TIMEOUT_MS = 18 * 1000; field in ProvisioningConfiguration
130 mConfig.mRequestedPreDhcpActionMs = DEFAULT_TIMEOUT_MS; in withPreDhcpAction()
445 public int mProvisioningTimeoutMs = DEFAULT_TIMEOUT_MS;
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java98 private static final int DEFAULT_TIMEOUT_MS = 60_000; field in TetheringManagerTest
170 final TetherState state = pollAndAssertNoError(DEFAULT_TIMEOUT_MS, ifaceRegexs); in expectTethering()
358 assertEquals(expect, listener.get(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in assertEntitlementResult()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java93 private static final int DEFAULT_TIMEOUT_MS = 5000; field in IpMemoryStoreServiceTest
358 doLatched(timeoutMessage, functor, DEFAULT_TIMEOUT_MS);
745 return f.get(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS);
918 })), DEFAULT_TIMEOUT_MS);
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java61 private static final int DEFAULT_TIMEOUT_MS = 60_000; field in TetheringManager
408 if (!mWaiting.block(DEFAULT_TIMEOUT_MS)) { in waitForResult()
466 mWaitForCallback.block(DEFAULT_TIMEOUT_MS); in waitForStarted()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java321 httpsURLConnection.setConnectTimeout(HttpsServiceConnection.DEFAULT_TIMEOUT_MS); in performTlsConnection()
322 httpsURLConnection.setReadTimeout(HttpsServiceConnection.DEFAULT_TIMEOUT_MS); in performTlsConnection()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java309 private static final int DEFAULT_TIMEOUT_MS = 1000; field in RadioInfo
1146 resultFuture.get(DEFAULT_TIMEOUT_MS, MILLISECONDS); in updateNrStats()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java166 private static final int DEFAULT_TIMEOUT_MS = 15000; field in CarUserServiceTest
2339 assertThat(mHandler.runWithScissors(() -> {}, DEFAULT_TIMEOUT_MS)).isTrue(); in waitForHandlerThreadToFinish()