Home
last modified time | relevance | path

Searched refs:WAIT_TIMEOUT_MS (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java152 private static final long WAIT_TIMEOUT_MS = 2000; field in CarPowerManagementServiceUnitTest
319 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
327 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
328 mPowerSignalListener.waitFor(PowerHalService.SET_SHUTDOWN_START, WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
331 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
341 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in testCanHibernate()
348 mPowerSignalListener.waitFor(PowerHalService.SET_HIBERNATION_ENTRY, WAIT_TIMEOUT_MS); in testCanHibernate()
353 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testCanHibernate()
355 mPowerSignalListener.waitFor(PowerHalService.SET_HIBERNATION_EXIT, WAIT_TIMEOUT_MS); in testCanHibernate()
524 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in hibernateImmediately()
[all …]
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DCarAudioManagerTestUtils.java36 private static final long WAIT_TIMEOUT_MS = 5_000; field in CarAudioManagerTestUtils
48 return silentAwait(mGroupVolumeChangeLatch, WAIT_TIMEOUT_MS); in receivedGroupVolumeChanged()
52 return silentAwait(mGroupMuteChangeLatch, WAIT_TIMEOUT_MS); in receivedGroupMuteChanged()
56 return silentAwait(mMasterMuteChangeLatch, WAIT_TIMEOUT_MS); in receivedMasterMuteChanged()
87 return silentAwait(mVolumeGroupEventLatch, WAIT_TIMEOUT_MS); in receivedVolumeGroupEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java120 private static final long WAIT_TIMEOUT_MS = 5000; field in CarRemoteAccessServiceUnitTest
351 verify(mContext, timeout(WAIT_TIMEOUT_MS).times(VALID_PACKAGE_COUNT)).unbindService(any()); in testStartRemoteTaskClientService()
398 PollingCheck.check("onRemoteTaskRequested should be called", WAIT_TIMEOUT_MS, in testStartRemoteTaskClientServiceUserLocked_bindAgainAfterUnlock()
459 verify(mRemoteAccessHalWrapper, timeout(WAIT_TIMEOUT_MS).times(3)).notifyApStateChange( in testCarRemoteAccessServiceInit_retryNotifyApState()
470 verify(mRemoteAccessHalWrapper, timeout(WAIT_TIMEOUT_MS).times(10)).notifyApStateChange( in testCarRemoteAccessServiceInit_maxRetryNotifyApState()
487 verify(mRemoteAccessHalWrapper, timeout(WAIT_TIMEOUT_MS).times(3)).notifyApStateChange( in testCarRemoteAccessServiceInit_resetRetryCountAfterSuccess()
508 PollingCheck.check("onClientRegistrationUpdated should be called", WAIT_TIMEOUT_MS, in testAddCarRemoteTaskClient()
526 PollingCheck.check("onClientRegistrationUpdated should be called", WAIT_TIMEOUT_MS, in testAddCarRemoteTaskClient_addTwice()
545 PollingCheck.check("Two clients should have different client IDs", WAIT_TIMEOUT_MS, in testAddCarRemoteTaskClient_addMultipleClients()
565 PollingCheck.check("onClientRegistrationUpdated should be called", WAIT_TIMEOUT_MS, in testAddCarRemoteTaskClient_persistentClientId()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarTestServiceUnitTest.java49 private static final long WAIT_TIMEOUT_MS = 100; field in CarTestServiceUnitTest
79 String result = mService.dumpVhal(options, WAIT_TIMEOUT_MS); in testDumpVhal()
102 mService.dumpVhal(List.of(""), WAIT_TIMEOUT_MS); in testDumpVhal_VhalNotClosingFd()
DAppFocusServiceTest.java51 private static final long WAIT_TIMEOUT_MS = 500; field in AppFocusServiceTest
175 assertThat(mSemaphore.tryAcquire(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in waitForEvent()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DVirtualDisplayView.java55 private static final int WAIT_TIMEOUT_MS = 4_000; field in VirtualDisplayView
229 created = latch.await(WAIT_TIMEOUT_MS, TimeUnit.SECONDS); in createVirtualDisplay()
239 throw new IllegalStateException("Timed out (up to " + WAIT_TIMEOUT_MS in createVirtualDisplay()
287 writer.printf("%sWait timeout: %dms\n", prefix, WAIT_TIMEOUT_MS); in dump()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicyTest.java71 private static final long WAIT_TIMEOUT_MS = 5000; field in BluetoothDeviceConnectionPolicyTest
263 verify(mMockBluetoothService, timeout(WAIT_TIMEOUT_MS).atLeastOnce()).connectDevices(); in testInitWithAdapterOn_connectDevices()
360 verify(mMockBluetoothService, timeout(WAIT_TIMEOUT_MS).atLeastOnce()).connectDevices(); in testReceiveAdapterOn_connectDevices()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java104 private static final long WAIT_TIMEOUT_MS = 5_000; field in CarPowerManagerUnitTest
485 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_MS); in assertStateReceived()
494 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_MS); in setPowerOn()
544 PollingCheck.check(errorMsg, WAIT_TIMEOUT_MS, in assertPowerPolicyId()
639 private long mTimeoutValue = WAIT_TIMEOUT_MS;
690 JavaMockitoHelper.await(mLatch, WAIT_TIMEOUT_MS); in await()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DAudioPolicyTest.java51 private static final long WAIT_TIMEOUT_MS = 1000; field in AudioPolicyTest
64 assertTrue(mWaitSemaphore.tryAcquire(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java90 private static final int WAIT_TIMEOUT_MS = 1000; field in VehicleHalTest
1195 verify(dispatchList, timeout(WAIT_TIMEOUT_MS)).add(propValue);
1196 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onHalEvents(dispatchList);
1197 verify(dispatchList, timeout(WAIT_TIMEOUT_MS)).clear();
1215 verify(dispatchList, timeout(WAIT_TIMEOUT_MS).times(2)).clear();
1266 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onPropertySetError(
1268 verify(mPropertyHalService, timeout(WAIT_TIMEOUT_MS)).onPropertySetError(
1321 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onPropertySetError(errors);
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsObserversTest.java110 private static final long WAIT_TIMEOUT_MS = 500; field in NetworkStatsObserversTest
524 HandlerUtils.waitForIdle(mObserverHandlerThread, WAIT_TIMEOUT_MS); in waitForObserverToIdle()