/packages/services/Car/tests/CarLibUnitTest/src/android/car/ |
D | CarUnitTest.java | 84 private static final int DEFAULT_TIMEOUT_MS = 1000; field in CarUnitTest 308 verify(mServiceConnectionListener, timeout(DEFAULT_TIMEOUT_MS)).onServiceConnected( in testCreateCar_Context_ServiceConnection_Handler() 329 verify(mServiceConnectionListener, timeout(DEFAULT_TIMEOUT_MS)).onServiceConnected( in testCreateCar_Context_ServiceConnection_DefaultHandler() 347 verify(mServiceConnectionListener, timeout(DEFAULT_TIMEOUT_MS)).onServiceConnected( in testCreateCar_Context_ServiceConnection_Handler_CarServiceRegistered() 362 verify(mServiceConnectionListener, timeout(DEFAULT_TIMEOUT_MS)).onServiceConnected( in testCreateCar_Context_ServiceConnection_Handler_Disconnect_Reconnect() 369 verify(mServiceConnectionListener, timeout(DEFAULT_TIMEOUT_MS)).onServiceConnected( in testCreateCar_Context_ServiceConnection_Handler_Disconnect_Reconnect() 382 verify(mServiceConnectionListener, after(DEFAULT_TIMEOUT_MS).never()).onServiceConnected( in testCreateCar_Context_ServiceConnection_Handler_Disconnect_IgnoreCallback() 388 verify(mServiceConnectionListener, timeout(DEFAULT_TIMEOUT_MS)).onServiceConnected( in testCreateCar_Context_ServiceConnection_Handler_Disconnect_IgnoreCallback() 444 long timeout = currentTimeMs + DEFAULT_TIMEOUT_MS; in testCreateCar_Context_CarServiceRegistered_DisconnectReconnect() 537 mLifecycleListener.waitForEvent(1, DEFAULT_TIMEOUT_MS); in testCreateCar_Context_WaitForever_Lclistener_ConnectCrashRestart() [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProviderCbBinder.kt | 25 private const val DEFAULT_TIMEOUT_MS = 3000L constant 69 val event = history.poll(DEFAULT_TIMEOUT_MS) in expectNotifyStatsUpdated() 74 val event = history.poll(DEFAULT_TIMEOUT_MS)!! in expectNotifyStatsUpdated() 84 assertEquals(CallbackType.NotifyWarningReached, history.poll(DEFAULT_TIMEOUT_MS)) in expectNotifyWarningReached() 87 assertEquals(CallbackType.NotifyLimitReached, history.poll(DEFAULT_TIMEOUT_MS)) in expectNotifyWarningReached() 90 assertEquals(CallbackType.NotifyWarningOrLimitReached, history.poll(DEFAULT_TIMEOUT_MS)) in expectNotifyWarningReached() 93 assertEquals(CallbackType.NotifyAlertReached, history.poll(DEFAULT_TIMEOUT_MS)) in expectNotifyWarningReached()
|
D | TestableNetworkStatsProviderBinder.kt | 23 private const val DEFAULT_TIMEOUT_MS = 200L constant 51 assertEquals(CallbackType.OnRequestStatsUpdate(token), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnRequestStatsUpdate() 56 history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetWarningAndLimit() 60 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetAlert() 64 fun assertNoCallback(timeout: Long = DEFAULT_TIMEOUT_MS) { in assertNoCallback()
|
D | TestableNetworkAgent.kt | 69 val DEFAULT_TIMEOUT_MS = 5000L constant 185 val foundCallback = history.poll(DEFAULT_TIMEOUT_MS) in expectCallback() 191 val foundCallback = history.poll(DEFAULT_TIMEOUT_MS) in expectCallback() 197 history.poll(DEFAULT_TIMEOUT_MS) { it is T }.also { in eventuallyExpect() 202 assertTrue(waitForIdle(DEFAULT_TIMEOUT_MS), in assertNoCallback()
|
D | TestableNetworkStatsProvider.kt | 26 private const val DEFAULT_TIMEOUT_MS = 200L constant 30 val defaultTimeoutMs: Long = DEFAULT_TIMEOUT_MS
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarAppFocusManagerTest.java | 64 private static final int DEFAULT_TIMEOUT_MS = 1000; field in CarAppFocusManagerTest 118 verify(mApp1Callback, timeout(DEFAULT_TIMEOUT_MS)) in requestNavFocus_noCurrentFocus_callbackIsRun() 173 verify(mApp1Callback, timeout(DEFAULT_TIMEOUT_MS)) in requestNavFocus_currentOwnerInBackground_callbackIsRun() 213 verify(mApp1Listener, timeout(DEFAULT_TIMEOUT_MS)) in requestAppFocus_callingAppNotified() 226 verify(mApp2Listener, timeout(DEFAULT_TIMEOUT_MS)) in requestAppFocus_otherAppNotified() 239 verify(mApp2Callback, timeout(DEFAULT_TIMEOUT_MS)) in requestAppFocus_focusLost_otherAppRequest_callbackRun() 253 verify(mApp1Listener, timeout(DEFAULT_TIMEOUT_MS)) in abandonAppFocus_callingAppNotified() 268 verify(mApp2Listener, timeout(DEFAULT_TIMEOUT_MS)) in abandonAppFocus_otherAppNotified() 286 verify(mApp1Listener, timeout(DEFAULT_TIMEOUT_MS)) in gainAppFocus_multipleListenersRegistered_bothUnownedTrigger() 288 verify(mApp2Listener, timeout(DEFAULT_TIMEOUT_MS)) in gainAppFocus_multipleListenersRegistered_bothUnownedTrigger() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | GarageModeControllerTest.java | 79 private static final int DEFAULT_TIMEOUT_MS = 1000; field in GarageModeControllerTest 147 verify(mSystemInterfaceMock, timeout(DEFAULT_TIMEOUT_MS)) in testOnShutdownPrepare_shouldInitiateGarageMode() 165 verify(mSystemInterfaceMock, timeout(DEFAULT_TIMEOUT_MS).times(2)) in testOnShutdownCancelled_shouldCancelGarageMode() 171 verify(mCarPowerManagementServiceMock, timeout(DEFAULT_TIMEOUT_MS)) in testOnShutdownCancelled_shouldCancelGarageMode() 207 verify(garageMode, timeout(DEFAULT_TIMEOUT_MS)).cancel(any()); in testOnStateChanged() 211 verify(garageMode, timeout(DEFAULT_TIMEOUT_MS)).cancel(any()); in testOnStateChanged() 215 verify(garageMode, timeout(DEFAULT_TIMEOUT_MS)).cancel(any()); in testOnStateChanged() 219 verify(garageMode, timeout(DEFAULT_TIMEOUT_MS)).cancel(any()); in testOnStateChanged()
|
D | GarageModeTest.java | 70 private static final int DEFAULT_TIMEOUT_MS = 100; field in GarageModeTest 141 verify(mCarUserService, timeout(DEFAULT_TIMEOUT_MS)).startAllBackgroundUsersInGarageMode(); in test_backgroundUsersStopedOnGarageModeCancel() 189 verify(mCarUserService, timeout(DEFAULT_TIMEOUT_MS)).startAllBackgroundUsersInGarageMode(); in test_backgroundUsersStoppedOnGarageModeFinish() 247 .that(latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in waitForHandlerThreadToFinish() 248 mHandler.runWithScissors(() -> {}, DEFAULT_TIMEOUT_MS); in waitForHandlerThreadToFinish()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | TestableUsageCallback.kt | 26 private const val DEFAULT_TIMEOUT_MS = 200L constant 47 expectCallback<CallbackType.OnThresholdReached>(request, DEFAULT_TIMEOUT_MS) in expectOnThresholdReached() 51 expectCallback<CallbackType.OnCallbackReleased>(request, DEFAULT_TIMEOUT_MS) in expectOnCallbackReleased() 55 fun assertNoCallback(timeout: Long = DEFAULT_TIMEOUT_MS) { in assertNoCallback()
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/ |
D | SyncCallbackFactoryTest.java | 19 …t static com.android.adservices.shared.testing.concurrency.SyncCallbackSettings.DEFAULT_TIMEOUT_MS; 60 Boolean result = holder.poll(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testIsMainThread_mainThread() 80 .isEqualTo(DEFAULT_TIMEOUT_MS); in expectDefaultValues()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkProviderTest.kt | 57 private const val DEFAULT_TIMEOUT_MS = 5000L in <lambda>() constant 111 ) = 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>()
|
/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/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 171 private const val DEFAULT_TIMEOUT_MS = 5000L in <lambda>() constant 394 val deadline = SystemClock.elapsedRealtime() + DEFAULT_TIMEOUT_MS in assertLinkPropertiesEventually() 400 fail("Network $n LinkProperties did not $description after $DEFAULT_TIMEOUT_MS ms") in assertLinkPropertiesEventually() 478 TestableNetworkCallback(DEFAULT_TIMEOUT_MS).also { in testSignalStrengthThresholds() 541 verify(mFakeConnectivityService.mockRegistry, timeout(DEFAULT_TIMEOUT_MS)) in agent() 586 val callback = TestableNetworkCallback(DEFAULT_TIMEOUT_MS) in doTestAllowedUids() 678 assertTrue(cv.block(DEFAULT_TIMEOUT_MS), "Can't register CarrierPrivilegesCallback") in setHoldCarrierPrivilege() 699 assertTrue(cv.block(DEFAULT_TIMEOUT_MS), "Can't change carrier privilege") in setHoldCarrierPrivilege() 721 assertTrue(cv.block(DEFAULT_TIMEOUT_MS), "Can't register CarrierPrivilegesCallback") in acquireCarrierPrivilege() 738 assertTrue(cv.block(DEFAULT_TIMEOUT_MS), "Can't modify carrier service package") in acquireCarrierPrivilege() [all …]
|
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | SyncCallbackSettingsTest.java | 19 …t static com.android.adservices.shared.testing.concurrency.SyncCallbackSettings.DEFAULT_TIMEOUT_MS; 59 .isEqualTo(DEFAULT_TIMEOUT_MS); in testDefaultBuilder() 68 .contains("maxTimeoutMs=" + DEFAULT_TIMEOUT_MS); in testDefaultBuilder()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 78 private static final int DEFAULT_TIMEOUT_MS = 1000; field in CarProjectionManagerTest 104 mApCallback.mFailed.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in startAp_fail() 120 mApCallback.mStarted.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in startAp_success() 137 mApCallback.mStarted.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in startAp_success_setWifiConfiguration()
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/ |
D | BroadcastReceiverSyncCallback.java | 19 …t static com.android.adservices.shared.testing.concurrency.SyncCallbackSettings.DEFAULT_TIMEOUT_MS; 49 this(context, action, DEFAULT_TIMEOUT_MS); in BroadcastReceiverSyncCallback()
|
/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/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | SyncCallbackSettings.java | 43 public static final long DEFAULT_TIMEOUT_MS = 5_000; field in SyncCallbackSettings 147 private long mMaxTimeoutMs = DEFAULT_TIMEOUT_MS;
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 87 private static final long DEFAULT_TIMEOUT_MS = 5_000; field in VendorServiceControllerTest 455 Handler.getMain().runWithScissors(r, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle() 457 Handler.getMain().runWithScissors(() -> { }, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle() 600 Log.d(TAG, "waiting " + DEFAULT_TIMEOUT_MS + "ms for " + method); in await() 601 if (!latch.await(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in await() 602 String errorMessage = method + " not called in " + DEFAULT_TIMEOUT_MS + "ms"; in await()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/ |
D | CarActivityServiceTaskMonitorUnitTest.java | 88 private static final long DEFAULT_TIMEOUT_MS = 10_000; field in CarActivityServiceTaskMonitorUnitTest 117 long timeOutMs = DEFAULT_TIMEOUT_MS; in setUp() 435 for (long i = DEFAULT_TIMEOUT_MS / SLEEP_MS; !condition.getAsBoolean() && i > 0; --i) { in waitUntil() 567 assertThat(waitForTopTaskActivityCameOnTop(DEFAULT_TIMEOUT_MS)).isTrue(); in assertTopTaskActivityCameOnTop() 576 assertThat(waitForTopTaskActivityChangedInBackstack(DEFAULT_TIMEOUT_MS)).isTrue(); in assertTopTaskActivityChangedInBackstack()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/occupantconnection/ |
D | PayloadUnitTest.java | 46 private static final long DEFAULT_TIMEOUT_MS = 10_000; field in PayloadUnitTest 60 JavaMockitoHelper.await(mServiceConnection.latch, DEFAULT_TIMEOUT_MS); in setUp()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputRotaryServiceTest.java | 76 private static final long DEFAULT_TIMEOUT_MS = 5_000; field in CarInputRotaryServiceTest 322 Handler.getMain().runWithScissors(r, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle() 325 }, DEFAULT_TIMEOUT_MS); in runOnMainThreadAndWaitForIdle()
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsTetheringUtils.java | 69 private static final int DEFAULT_TIMEOUT_MS = 60_000; field in CtsTetheringUtils 446 if (!mWaiting.block(DEFAULT_TIMEOUT_MS)) { in waitForWifiEnabled() 447 assertTrue("Wifi did not become enabled after " + DEFAULT_TIMEOUT_MS + "ms", in waitForWifiEnabled() 528 if (!mWaiting.block(DEFAULT_TIMEOUT_MS)) { in waitForSoftApStopped()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsServiceCacheTest.kt | 47 private const val DEFAULT_TIMEOUT_MS = 2000L in <lambda>() constant 86 timeoutMs: Long = DEFAULT_TIMEOUT_MS in <lambda>() 121 return future.get(DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS) in <lambda>()
|
/packages/services/Car/tests/android_car_api_test/src/com/android/car/internal/test/ |
D | LargeParcelableTest.java | 46 private static final long DEFAULT_TIMEOUT_MS = 60_000; field in LargeParcelableTest 62 JavaMockitoHelper.await(mServiceConnection.latch, DEFAULT_TIMEOUT_MS); in setUp()
|