Home
last modified time | relevance | path

Searched refs:waitForDeviceOnline (Results 1 – 25 of 29) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DWaitDeviceRecoveryTest.java93 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(mMockDevice); in testRecoverDevice_success()
96 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(mMockDevice); in testRecoverDevice_success()
113 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(null); in testRecoverDevice_unavailable()
131 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(null); in testRecoverDevice_unavailable_recovers()
136 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(mMockDevice); in testRecoverDevice_unavailable_recovers()
150 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(null); in testRecoverDevice_unavailable_recovery_fail()
180 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(null); in testRecoverDevice_unavailable_fastboot()
202 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(mMockDevice); in testRecoverDevice_unresponsive()
225 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(null); in testRecoverDevice_unavailable_usb_exception()
259 when(mMockMonitor.waitForDeviceOnline(Mockito.anyLong())).thenReturn(mMockDevice); in testRecoverDevice_fastboot()
[all …]
DDeviceStateMonitorTest.java92 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline()); in testWaitForDeviceOnline_alreadyOnline()
110 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline(50)); in testWaitForDeviceOnline()
120 assertNull(mMonitor.waitForDeviceOnline(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceOnline_timeout()
793 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable()
860 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_mounted()
886 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_notOnline()
905 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_notBootComplete()
926 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_pmNotResponsive()
954 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_notMounted()
DDeviceManagerTest.java637 verify(mMockTestDevice).waitForDeviceOnline(); in testConnectToTcpDevice()
667 verify(mMockTestDevice).waitForDeviceOnline(); in testConnectToTcpDevice_alreadyAllocated()
677 .waitForDeviceOnline(); in testConnectToTcpDevice_notOnline()
737 verify(mMockTestDevice).waitForDeviceOnline(); in testDisconnectFromTcpDevice()
756 verify(mMockTestDevice).waitForDeviceOnline(); in testReconnectDeviceToTcp()
774 .waitForDeviceOnline(); in testReconnectDeviceToTcp_notOnline()
DTestDeviceTest.java387 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in testDisableAdbRoot_unroot()
406 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in setEnableAdbRootExpectations()
445 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in testEnableAdbRoot_rootRetry()
450 verify(mMockStateMonitor, times(2)).waitForDeviceOnline(); in testEnableAdbRoot_rootRetry()
846 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in testExecuteShellCommand_recoveryRetry()
946 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in testExecuteShellCommand_recoveryTimeoutRetry()
1004 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in testExecuteShellCommand_recoveryAttempts()
1016 verify(mMockStateMonitor, times(3)).waitForDeviceOnline(); in testExecuteShellCommand_recoveryAttempts()
2414 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in setRebootExpectations()
2433 when(mMockStateMonitor.waitForDeviceOnline()).thenReturn(mMockIDevice); in setRebootExpectations()
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIDeviceStateMonitor.java44 public IDevice waitForDeviceOnline(long time); in waitForDeviceOnline() method
56 public IDevice waitForDeviceOnline(); in waitForDeviceOnline() method
DINativeDevice.java1299 public void waitForDeviceOnline(final long waitTime) throws DeviceNotAvailableException; in waitForDeviceOnline() method
1310 public void waitForDeviceOnline() throws DeviceNotAvailableException; in waitForDeviceOnline() method
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java150 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in recoverDevice()
179 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in getDeviceAfterRecovery()
233 IDevice newdevice = monitor.waitForDeviceOnline(mOnlineWaitTime); in handleDeviceUnresponsive()
333 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in handleDeviceOnlineExpectedBootloader()
352 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in handleDeviceOnlineExpectedFasbootd()
577 if (monitor.waitForDeviceOnline() != null) { in waitForDevice()
DNativeDeviceStateMonitor.java131 public IDevice waitForDeviceOnline(long waitTime) { in waitForDeviceOnline() method in NativeDeviceStateMonitor
142 public IDevice waitForDeviceOnline() { in waitForDeviceOnline() method in NativeDeviceStateMonitor
143 return waitForDeviceOnline(mDefaultOnlineTimeout); in waitForDeviceOnline()
287 IDevice device = waitForDeviceOnline(waitTime); in internalWaitForDeviceAvailable()
DNativeDevice.java633 if (mStateMonitor.waitForDeviceOnline() == null) { in getPropertyWithRecovery()
3773 waitForDeviceOnline(); in internalRebootUntilOnline()
3795 waitForDeviceOnline(); in rebootUserspaceUntilOnline()
4027 waitForDeviceOnline(); in enableAdbRoot()
4055 waitForDeviceOnline(); in enableAdbRoot()
4091 waitForDeviceOnline(); in disableAdbRoot()
4251 public void waitForDeviceOnline(long waitTime) throws DeviceNotAvailableException { in waitForDeviceOnline() method in NativeDevice
4252 if (mStateMonitor.waitForDeviceOnline(waitTime) == null) { in waitForDeviceOnline()
4261 public void waitForDeviceOnline() throws DeviceNotAvailableException { in waitForDeviceOnline() method in NativeDevice
4262 if (mStateMonitor.waitForDeviceOnline() == null) { in waitForDeviceOnline()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java210 verify(mMockDevice).waitForDeviceOnline(); in testSetUp_Success_NoVbmetaImage()
252 verify(mMockDevice).waitForDeviceOnline(); in testSetup_Success()
296 verify(mMockDevice).waitForDeviceOnline(); in testSetup_Success_FromZipFile()
346 inOrder.verify(mMockDevice).waitForDeviceOnline(); in testSetup_Success_WithGkiBootImg()
403 inOrder.verify(mMockDevice).waitForDeviceOnline(); in testSetup_Success_WithGkiBootImgInZip()
442 verify(mMockDevice).waitForDeviceOnline(); in testSetup_Success_Api28()
485 verify(mMockDevice).waitForDeviceOnline(); in testSetup_GsiFlashFailure()
533 verify(mMockDevice).waitForDeviceOnline(); in testSetUp_BootFailure()
DAoaTargetPreparerTest.java88 verify(mTestDevice).waitForDeviceOnline(); in testSetUp()
115 verify(mTestDevice, never()).waitForDeviceOnline(); in testSetUp_skipDeviceCheck()
DDeviceFlashPreparerTest.java170 mMockDevice.waitForDeviceOnline(); in doSetupExpectations()
259 verify(mMockDevice).waitForDeviceOnline(); in testSetup_buildError()
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DBugreportCollectorTest.java217 verify(mMockDevice, times(2)).waitForDeviceOnline(Mockito.anyLong()); in testTestFailed()
247 verify(mMockDevice, times(2)).waitForDeviceOnline(Mockito.anyLong()); in testTestEnded()
261 verify(mMockDevice, times(2)).waitForDeviceOnline(1000); // Once per ending test method in testWaitForDevice()
308 verify(mMockDevice, times(2)).waitForDeviceOnline(Mockito.anyLong()); in testTestEnded_firstCase()
321 verify(mMockDevice).waitForDeviceOnline(Mockito.anyLong()); in testTestEnded_firstRun()
346 verify(mMockDevice).waitForDeviceOnline(Mockito.anyLong()); in testTestRunEnded()
380 verify(mMockDevice, times(2)).waitForDeviceOnline(Mockito.anyLong()); in testDescriptiveName()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DUsbResetTestTest.java79 verify(mDevice).waitForDeviceOnline(); in testReset()
92 verify(mDevice, times(0)).waitForDeviceOnline(); in testReset_recovery()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DCdmaDeviceFlasher.java180 device.waitForDeviceOnline(BASEBAND_FLASH_TIMEOUT); in flashSystem()
193 device.waitForDeviceOnline(); in flashSystem()
DAoaTargetPreparer.java156 device.waitForDeviceOnline(); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUsbResetTest.java63 device.waitForDeviceOnline(); in run()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DAtraceCollector.java192 device.waitForDeviceOnline(DEVICE_ONLINE_TIMEOUT_MS); in onTestStart()
195 device.waitForDeviceOnline(); in onTestStart()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DEmulatorStartupPerfTest.java78 device.waitForDeviceOnline(1 * 60 * 1000); in performIteration()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceUpdateTargetPreparer.java93 device.waitForDeviceOnline(); in setUp()
DGsiDeviceFlashPreparer.java188 device.waitForDeviceOnline(); in flashGsi()
DDeviceFlashPreparer.java450 device.waitForDeviceOnline(); in setUp()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java198 mDevice.waitForDeviceOnline(); in testFastboot()
/tools/tradefederation/core/src/com/android/tradefed/result/
DBugreportCollector.java277 mTestDevice.waitForDeviceOnline((long)mDeviceWaitTimeSecs * 1000); in grabBugreport()
/tools/tradefederation/contrib/src/com/android/monkey/
DMonkeyBase.java358 mTestDevice.waitForDeviceOnline(); in runMonkey()

12