/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkProviderTest.kt | 57 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>()
|
D | CaptivePortalTest.java | 41 private static final int DEFAULT_TIMEOUT_MS = 5000; field in CaptivePortalTest
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 72 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/ |
D | NetworkAgentTest.kt | 133 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/ |
D | HttpsServiceConnection.java | 43 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/ |
D | GarageModeTest.java | 60 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/ |
D | SystemActivityMonitoringServiceTest.java | 55 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()
|
D | CarProjectionServiceTest.java | 76 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()
|
D | CarInputRotaryServiceTest.java | 73 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/ |
D | CtsTetheringUtils.java | 62 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/ |
D | DnsUtilsTest.kt | 40 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/ |
D | CarProjectionManagerTest.java | 75 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/ |
D | BlockingUserLifecycleListener.java | 55 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/ |
D | ProvisioningConfiguration.java | 76 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/ |
D | TetheringManagerTest.java | 98 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/ |
D | IpMemoryStoreServiceTest.java | 93 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/ |
D | TetheringManager.java | 61 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/ |
D | OsuServerConnection.java | 321 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/ |
D | RadioInfo.java | 309 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/ |
D | CarUserServiceTest.java | 166 private static final int DEFAULT_TIMEOUT_MS = 15000; field in CarUserServiceTest 2339 assertThat(mHandler.runWithScissors(() -> {}, DEFAULT_TIMEOUT_MS)).isTrue(); in waitForHandlerThreadToFinish()
|