Home
last modified time | relevance | path

Searched refs:waitForDeviceNotAvailable (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDynamicSystemPreparerTest.java152 Mockito.when(mMockDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(true); in testSetUp_imageDir()
172 Mockito.when(mMockDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(true); in testSetUp_imageZip()
202 Mockito.when(mMockDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(false); in testSetUp_installationFail()
222 Mockito.when(mMockDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(true); in testSetUp_rebootFail()
244 Mockito.when(mMockDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(true); in testSetUp_noDsuRunningAfterRebootFail()
258 Mockito.when(mMockDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(true); in testImageSetup()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIDeviceStateMonitor.java151 public boolean waitForDeviceNotAvailable(long waitTime); in waitForDeviceNotAvailable() method
DINativeDevice.java1319 public boolean waitForDeviceNotAvailable(final long waitTime); in waitForDeviceNotAvailable() method
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DAtraceCollector.java191 device.waitForDeviceNotAvailable(DEVICE_OFFLINE_TIMEOUT_MS); in onTestStart()
194 device.waitForDeviceNotAvailable(DEVICE_OFFLINE_TIMEOUT_MS); in onTestStart()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDeviceWiper.java123 device.waitForDeviceNotAvailable(30_000); in doFactoryReset()
DDynamicSystemPreparer.java304 if (!device.waitForDeviceNotAvailable(DSU_MAX_WAIT_SEC * 1000)) { in setUp()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/sync/
DDeviceSyncHelper.java129 device.waitForDeviceNotAvailable(30 * 1000L); in syncFiles()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java382 monitor.waitForDeviceNotAvailable(WAIT_FOR_DEVICE_OFFLINE); in handleDeviceFastbootdUnresponsive()
422 monitor.waitForDeviceNotAvailable(20*1000); in handleDeviceBootloaderUnresponsive()
DNativeDevice.java3956 boolean notAvailable = waitForDeviceNotAvailable(DEFAULT_UNAVAILABLE_TIMEOUT); in postAdbReboot()
3996 protected boolean waitForDeviceNotAvailable(String operationDesc, long time) { in waitForDeviceNotAvailable() method in NativeDevice
3999 if (!mStateMonitor.waitForDeviceNotAvailable(time)) { in waitForDeviceNotAvailable()
4012 public boolean waitForDeviceNotAvailable(long waitTime) { in waitForDeviceNotAvailable() method in NativeDevice
4013 return mStateMonitor.waitForDeviceNotAvailable(waitTime); in waitForDeviceNotAvailable()
4044 waitForDeviceNotAvailable( in enableAdbRoot()
4086 waitForDeviceNotAvailable("unroot", 5 * 1000); in disableAdbRoot()
DNativeDeviceStateMonitor.java192 public boolean waitForDeviceNotAvailable(long waitTime) { in waitForDeviceNotAvailable() method in NativeDeviceStateMonitor
DDeviceManager.java900 device.waitForDeviceNotAvailable(10 * 1000); in killEmulator()
914 if (!device.waitForDeviceNotAvailable(20 * 1000)) { in killEmulator()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceStateMonitorTest.java152 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline_alreadyOffline()
173 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline()
184 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_REACHED_MS); in testWaitForDeviceOffline_timeout()
DWaitDeviceRecoveryTest.java285 when(mMockMonitor.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(Boolean.TRUE); in testRecoverDeviceBootloader_fastboot()
318 when(mMockMonitor.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(Boolean.TRUE); in testRecoverDeviceBootloader_unavailable()
DDeviceManagerTest.java380 when(mMockTestDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(Boolean.TRUE); in testFreeDevice_emulator()
381 when(mMockTestDevice.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(Boolean.TRUE); in testFreeDevice_emulator()
DTestDeviceTest.java385 when(mMockStateMonitor.waitForDeviceNotAvailable(Mockito.anyLong())) in testDisableAdbRoot_unroot()
404 when(mMockStateMonitor.waitForDeviceNotAvailable(Mockito.anyLong())) in setEnableAdbRootExpectations()
443 when(mMockStateMonitor.waitForDeviceNotAvailable(Mockito.anyLong())) in testEnableAdbRoot_rootRetry()
449 verify(mMockStateMonitor, times(2)).waitForDeviceNotAvailable(Mockito.anyLong()); in testEnableAdbRoot_rootRetry()
2431 when(mMockStateMonitor.waitForDeviceNotAvailable(Mockito.anyLong())) in setRebootExpectations()
2480 when(mMockStateMonitor.waitForDeviceNotAvailable(Mockito.anyLong())) in testRebootRecovers()
DNativeDeviceTest.java1490 when(mMockStateMonitor.waitForDeviceNotAvailable(Mockito.anyLong())).thenReturn(true); in testDoReboot()
/tools/tradefederation/core/src/com/android/tradefed/device/connection/
DAdbSshConnection.java274 .waitForDeviceNotAvailable(DEFAULT_SHORT_CMD_TIMEOUT)) { in tearDownConnection()