/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 154 private static final long WAIT_TIMEOUT_MS = 2000; field in CarPowerManagementServiceUnitTest 326 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand() 334 mDisplayInterface.waitForAllDisplaysOff(WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand() 335 mPowerSignalListener.waitFor(PowerHalService.SET_SHUTDOWN_START, WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand() 338 mSystemStateInterface.waitForShutdown(WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand() 349 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in testCanHibernate() 356 mPowerSignalListener.waitFor(PowerHalService.SET_HIBERNATION_ENTRY, WAIT_TIMEOUT_MS); in testCanHibernate() 361 mSystemStateInterface.waitForSleepEntryAndWakeup(WAIT_TIMEOUT_MS); in testCanHibernate() 363 mPowerSignalListener.waitFor(PowerHalService.SET_HIBERNATION_EXIT, WAIT_TIMEOUT_MS); in testCanHibernate() 544 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in testHibernateAbort() [all …]
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/ |
D | CarAudioManagerTestUtils.java | 36 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/ |
D | CarRemoteAccessServiceUnitTest.java | 120 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/ |
D | CarTestServiceUnitTest.java | 49 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()
|
D | AppFocusServiceTest.java | 51 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/ |
D | VirtualDisplayView.java | 55 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/ |
D | BluetoothDeviceConnectionPolicyTest.java | 71 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/CarServiceTest/src/com/android/car/hardware/power/ |
D | CarPowerManagerTest.java | 105 private static final long WAIT_TIMEOUT_MS = 5_000; field in CarPowerManagerTest 489 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_MS); in assertStateReceived() 498 int[] state = mPowerHal.waitForSend(WAIT_TIMEOUT_MS); in setPowerOn() 548 PollingCheck.check(errorMsg, WAIT_TIMEOUT_MS, in assertPowerPolicyId() 621 private long mTimeoutValue = WAIT_TIMEOUT_MS; 672 JavaMockitoHelper.await(mLatch, WAIT_TIMEOUT_MS); in await()
|
/packages/services/Car/tests/CarServiceTest/src/com/android/car/audio/ |
D | AudioPolicyTest.java | 51 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/ |
D | VehicleHalTest.java | 98 private static final int WAIT_TIMEOUT_MS = 1000; field in VehicleHalTest 1209 verify(dispatchList, timeout(WAIT_TIMEOUT_MS)).add(propValue); 1210 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onHalEvents(dispatchList); 1211 verify(dispatchList, timeout(WAIT_TIMEOUT_MS)).clear(); 1230 verify(mPowerHalService, after(WAIT_TIMEOUT_MS).never()).onHalEvents(dispatchList); 1248 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onHalEvents(dispatchList); 1268 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onHalEvents(dispatchList); 1286 verify(dispatchList, timeout(WAIT_TIMEOUT_MS).times(2)).clear(); 1337 verify(mPowerHalService, timeout(WAIT_TIMEOUT_MS)).onPropertySetError( 1339 verify(mPropertyHalService, timeout(WAIT_TIMEOUT_MS)).onPropertySetError( [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 110 private static final long WAIT_TIMEOUT_MS = 500; field in NetworkStatsObserversTest 524 HandlerUtils.waitForIdle(mObserverHandlerThread, WAIT_TIMEOUT_MS); in waitForObserverToIdle()
|