/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | WaitDeviceRecoveryTest.java | 93 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 …]
|
D | DeviceStateMonitorTest.java | 92 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()
|
D | DeviceManagerTest.java | 637 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()
|
D | TestDeviceTest.java | 387 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/ |
D | IDeviceStateMonitor.java | 44 public IDevice waitForDeviceOnline(long time); in waitForDeviceOnline() method 56 public IDevice waitForDeviceOnline(); in waitForDeviceOnline() method
|
D | INativeDevice.java | 1299 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/ |
D | WaitDeviceRecovery.java | 150 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()
|
D | NativeDeviceStateMonitor.java | 131 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()
|
D | NativeDevice.java | 633 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/ |
D | GsiDeviceFlashPreparerTest.java | 210 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()
|
D | AoaTargetPreparerTest.java | 88 verify(mTestDevice).waitForDeviceOnline(); in testSetUp() 115 verify(mTestDevice, never()).waitForDeviceOnline(); in testSetUp_skipDeviceCheck()
|
D | DeviceFlashPreparerTest.java | 170 mMockDevice.waitForDeviceOnline(); in doSetupExpectations() 259 verify(mMockDevice).waitForDeviceOnline(); in testSetup_buildError()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | BugreportCollectorTest.java | 217 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/ |
D | UsbResetTestTest.java | 79 verify(mDevice).waitForDeviceOnline(); in testReset() 92 verify(mDevice, times(0)).waitForDeviceOnline(); in testReset_recovery()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | CdmaDeviceFlasher.java | 180 device.waitForDeviceOnline(BASEBAND_FLASH_TIMEOUT); in flashSystem() 193 device.waitForDeviceOnline(); in flashSystem()
|
D | AoaTargetPreparer.java | 156 device.waitForDeviceOnline(); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | UsbResetTest.java | 63 device.waitForDeviceOnline(); in run()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | AtraceCollector.java | 192 device.waitForDeviceOnline(DEVICE_ONLINE_TIMEOUT_MS); in onTestStart() 195 device.waitForDeviceOnline(); in onTestStart()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | EmulatorStartupPerfTest.java | 78 device.waitForDeviceOnline(1 * 60 * 1000); in performIteration()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceUpdateTargetPreparer.java | 93 device.waitForDeviceOnline(); in setUp()
|
D | GsiDeviceFlashPreparer.java | 188 device.waitForDeviceOnline(); in flashGsi()
|
D | DeviceFlashPreparer.java | 450 device.waitForDeviceOnline(); in setUp()
|
/tools/tradefederation/contrib/src/com/android/fastboot/tests/ |
D | FastbootTest.java | 198 mDevice.waitForDeviceOnline(); in testFastboot()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | BugreportCollector.java | 277 mTestDevice.waitForDeviceOnline((long)mDeviceWaitTimeSecs * 1000); in grabBugreport()
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | MonkeyBase.java | 358 mTestDevice.waitForDeviceOnline(); in runMonkey()
|