Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DWaitDeviceRecoveryTest.java81 … EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(mMockDevice); in testRecoverDevice_success()
85 … EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(mMockDevice); in testRecoverDevice_success()
101 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(null); in testRecoverDevice_unavailable()
118 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(null); in testRecoverDevice_unavailable_recovers()
123 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())) in testRecoverDevice_unavailable_recovers()
139 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(null); in testRecoverDevice_unavailable_recovery()
148 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())) in testRecoverDevice_unavailable_recovery()
164 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(null); in testRecoverDevice_unavailable_recovery_fail()
200 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())).andReturn(null); in testRecoverDevice_unavailable_fastboot()
221 EasyMock.expect(mMockMonitor.waitForDeviceOnline(EasyMock.anyLong())) in testRecoverDevice_unresponsive()
[all …]
DDeviceStateMonitorTest.java63 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline()); in testWaitForDeviceOnline_alreadyOnline()
81 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline()); in testWaitForDeviceOnline()
90 assertNull(mMonitor.waitForDeviceOnline(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceOnline_timeout()
704 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable()
733 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_notOnline()
751 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_notBootComplete()
772 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_pmNotResponsive()
797 public IDevice waitForDeviceOnline(long waitTime) { in testWaitForDeviceAvailable_notMounted()
DDeviceManagerTest.java716 mMockTestDevice.waitForDeviceOnline(); in testConnectToTcpDevice()
732 mMockTestDevice.waitForDeviceOnline(); in testConnectToTcpDevice_alreadyAllocated()
751 mMockTestDevice.waitForDeviceOnline(); in testConnectToTcpDevice_notOnline()
800 mMockTestDevice.waitForDeviceOnline(); in testDisconnectFromTcpDevice()
821 mMockTestDevice.waitForDeviceOnline(); in testReconnectDeviceToTcp()
842 mMockTestDevice.waitForDeviceOnline(); in testReconnectDeviceToTcp_notOnline()
DTestDeviceTest.java234 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn( in testDisableAdbRoot_unroot()
253 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn( in setEnableAdbRootExpectations()
285 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn( in testEnableAdbRoot_rootRetry()
617 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn(mMockIDevice); in testExecuteShellCommand_recoveryRetry()
685 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn(mMockIDevice); in testExecuteShellCommand_recoveryTimeoutRetry()
735 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn(mMockIDevice).times(3); in testExecuteShellCommand_recoveryAttempts()
1113 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn( in testEncryptDevice_encryptionFails()
2157 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn( in setRebootExpectations()
2179 EasyMock.expect(mMockStateMonitor.waitForDeviceOnline()).andReturn( in testRebootRecovers()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DBugreportCollectorTest.java171 mMockDevice.waitForDeviceOnline(EasyMock.anyLong()); in testTestFailed()
192 mMockDevice.waitForDeviceOnline(EasyMock.anyLong()); in testTestEnded()
215 mMockDevice.waitForDeviceOnline(1000); in testWaitForDevice()
236 mMockDevice.waitForDeviceOnline(EasyMock.anyLong()); in testTestEnded_firstCase()
257 mMockDevice.waitForDeviceOnline(EasyMock.anyLong()); in testTestEnded_firstRun()
276 mMockDevice.waitForDeviceOnline(EasyMock.anyLong()); in testTestRunEnded()
292 mMockDevice.waitForDeviceOnline(EasyMock.anyLong()); in testDescriptiveName()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java209 mMockDevice.waitForDeviceOnline(); in testSetup_Success()
254 mMockDevice.waitForDeviceOnline(); in testSetup_Success_FromZipFile()
300 mMockDevice.waitForDeviceOnline(); in testSetup_Success_WithGkiBootImg()
355 mMockDevice.waitForDeviceOnline(); in testSetup_Success_WithGkiBootImgInZip()
405 mMockDevice.waitForDeviceOnline(); in testSetup_Success_Api28()
443 mMockDevice.waitForDeviceOnline(); in testSetup_GsiFlashFailure()
489 mMockDevice.waitForDeviceOnline(); in testSetUp_BootFailure()
DGkiDeviceFlashPreparerTest.java281 mMockDevice.waitForDeviceOnline(); in testSetup_Success()
307 mMockDevice.waitForDeviceOnline(); in testSetup_Success_FromZip()
334 mMockDevice.waitForDeviceOnline(); in testSetUp_GkiFlashFailure()
364 mMockDevice.waitForDeviceOnline(); in testSetUp_BootFailure()
DAoaTargetPreparerTest.java88 verify(mTestDevice).waitForDeviceOnline(); in testSetUp()
115 verify(mTestDevice, never()).waitForDeviceOnline(); in testSetUp_skipDeviceCheck()
DDeviceFlashPreparerTest.java146 mMockDevice.waitForDeviceOnline(); in doSetupExpectations()
201 mMockDevice.waitForDeviceOnline(); in testSetup_buildError()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java145 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in recoverDevice()
174 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in getDeviceAfterRecovery()
224 IDevice newdevice = monitor.waitForDeviceOnline(mOnlineWaitTime); in handleDeviceUnresponsive()
333 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in handleDeviceOnlineExpectedBootloader()
354 IDevice device = monitor.waitForDeviceOnline(mOnlineWaitTime); in handleDeviceOnlineExpectedFasbootd()
540 if (monitor.waitForDeviceOnline() != null) { in waitForDevice()
DNativeDevice.java3069 waitForDeviceOnline(); in rebootUntilOnline()
3079 waitForDeviceOnline(); in rebootUserspaceUntilOnline()
3270 waitForDeviceOnline(); in enableAdbRoot()
3288 waitForDeviceOnline(); in enableAdbRoot()
3319 waitForDeviceOnline(); in disableAdbRoot()
3405 waitForDeviceOnline(); // Device will not become available until the user data is unlocked. in encryptDevice()
3459 waitForDeviceOnline(); in unencryptDevice()
3603 public void waitForDeviceOnline(long waitTime) throws DeviceNotAvailableException { in waitForDeviceOnline() method in NativeDevice
3604 if (mStateMonitor.waitForDeviceOnline(waitTime) == null) { in waitForDeviceOnline()
3613 public void waitForDeviceOnline() throws DeviceNotAvailableException { in waitForDeviceOnline() method in NativeDevice
[all …]
DNativeDeviceStateMonitor.java102 public IDevice waitForDeviceOnline(long waitTime) { in waitForDeviceOnline() method in NativeDeviceStateMonitor
138 public IDevice waitForDeviceOnline() { in waitForDeviceOnline() method in NativeDeviceStateMonitor
139 return waitForDeviceOnline(mDefaultOnlineTimeout); in waitForDeviceOnline()
222 IDevice device = waitForDeviceOnline(waitTime); in waitForDeviceAvailable()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIDeviceStateMonitor.java37 public IDevice waitForDeviceOnline(long time); in waitForDeviceOnline() method
49 public IDevice waitForDeviceOnline(); in waitForDeviceOnline() method
DINativeDevice.java1156 public void waitForDeviceOnline(final long waitTime) throws DeviceNotAvailableException; in waitForDeviceOnline() method
1167 public void waitForDeviceOnline() throws DeviceNotAvailableException; in waitForDeviceOnline() method
/tools/tradefederation/core/tests/src/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.java181 device.waitForDeviceOnline(BASEBAND_FLASH_TIMEOUT); in flashSystem()
194 device.waitForDeviceOnline(); in flashSystem()
DDynamicSystemPreparer.java103 device.waitForDeviceOnline(); in setUp()
DAoaTargetPreparer.java155 device.waitForDeviceOnline(); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUsbResetTest.java63 device.waitForDeviceOnline(); in run()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceUpdateTargetPreparer.java92 device.waitForDeviceOnline(); in setUp()
DGkiDeviceFlashPreparer.java147 device.waitForDeviceOnline(); in flashGki()
DGsiDeviceFlashPreparer.java166 device.waitForDeviceOnline(); in flashGsi()
DDeviceFlashPreparer.java250 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()

12