Home
last modified time | relevance | path

Searched refs:waitForDeviceAvailable (Results 1 – 25 of 64) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DWaitDeviceRecoveryTest.java83 EasyMock.expect(mMockMonitor.waitForDeviceAvailable(EasyMock.anyLong())).andReturn( in testRecoverDevice_success()
122 EasyMock.expect(mMockMonitor.waitForDeviceAvailable()).andReturn(mMockDevice); in testRecoverDevice_unavailable_recovers()
143 EasyMock.expect(mMockMonitor.waitForDeviceAvailable()).andReturn(null); in testRecoverDevice_unavailable_recovery()
147 EasyMock.expect(mMockMonitor.waitForDeviceAvailable()).andReturn(mMockDevice); in testRecoverDevice_unavailable_recovery()
168 EasyMock.expect(mMockMonitor.waitForDeviceAvailable()).andReturn(null); in testRecoverDevice_unavailable_recovery_fail()
224 EasyMock.expect(mMockMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testRecoverDevice_unresponsive()
256 EasyMock.expect(mMockMonitor.waitForDeviceAvailable(EasyMock.anyLong())).andReturn( in testRecoverDevice_fastboot()
DTestDeviceTest.java1154 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testUnencryptDevice_erase()
2161 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())).andReturn( in setRebootExpectations()
2183 … EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())).andReturn(null); in testRebootRecovers()
2878 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemount_verityUnsupported()
2892 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemountVendor_verityUnsupported()
2908 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemount_veritySupportedV1()
2924 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemountVendor_veritySupportedV1()
2940 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemount_veritySupportedV2()
2957 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemountVendor_veritySupportedV2()
2973 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable()).andReturn(mMockIDevice); in testRemount_veritySupportedNonNumerical()
[all …]
DDeviceStateMonitorTest.java720 assertEquals(mMockDevice, mMonitor.waitForDeviceAvailable(WAIT_TIMEOUT_NOT_REACHED_MS)); in testWaitForDeviceAvailable()
737 assertNull(mMonitor.waitForDeviceAvailable(WAIT_TIMEOUT_NOT_REACHED_MS)); in testWaitForDeviceAvailable_notOnline()
759 assertNull(mMonitor.waitForDeviceAvailable(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceAvailable_notBootComplete()
784 assertNull(mMonitor.waitForDeviceAvailable(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceAvailable_pmNotResponsive()
813 assertNull(mMonitor.waitForDeviceAvailable(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceAvailable_notMounted()
DTestDeviceFuncTest.java90 mTestDevice.waitForDeviceAvailable(); in setUp()
686 mTestDevice.waitForDeviceAvailable(); in testClearErrorDialogs_crash()
716 mTestDevice.waitForDeviceAvailable(); in testDisableKeyguard()
DDeviceManagerFuncTest.java56 mUsbDevice.waitForDeviceAvailable(30 * 1000); in testReconnectDeviceToTcp_backUsb()
91 mUsbDevice.waitForDeviceAvailable(); in testReconnectDeviceToTcp_reboot()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryTestTest.java324 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageAllProcesses()
325 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageAllProcesses()
326 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageAllProcesses()
425 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageSpecificProcesses()
426 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageSpecificProcesses()
427 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageSpecificProcesses()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java910 if (mStateMonitor.waitForDeviceAvailable(5 * 1000) == null) { in runInstrumentationTests()
3025 if (mStateMonitor.waitForDeviceAvailable(mOptions.getRebootTimeout()) != null) { in reboot()
3050 if (mStateMonitor.waitForDeviceAvailable(mOptions.getRebootTimeout()) != null) { in rebootUserspace()
3433 waitForDeviceAvailable(ENCRYPTION_WIPE_TIMEOUT_MIN * 60 * 1000); in unencryptDevice()
3554 waitForDeviceAvailable(); in unlockDevice()
3623 public void waitForDeviceAvailable(long waitTime) throws DeviceNotAvailableException { in waitForDeviceAvailable() method in NativeDevice
3624 if (mStateMonitor.waitForDeviceAvailable(waitTime) == null) { in waitForDeviceAvailable()
3633 public void waitForDeviceAvailable() throws DeviceNotAvailableException { in waitForDeviceAvailable() method in NativeDevice
3634 if (mStateMonitor.waitForDeviceAvailable() == null) { in waitForDeviceAvailable()
4221 waitForDeviceAvailable(); in remountSystemWritable()
[all …]
DWaitDeviceRecovery.java162 if (monitor.waitForDeviceAvailable(mWaitTime) == null) { in recoverDevice()
229 if (monitor.waitForDeviceAvailable(mWaitTime) != null) { in handleDeviceUnresponsive()
544 } else if (monitor.waitForDeviceAvailable() != null) { in waitForDevice()
DNativeDeviceStateMonitor.java209 public IDevice waitForDeviceAvailable(final long waitTime) { in waitForDeviceAvailable() method in NativeDeviceStateMonitor
241 public IDevice waitForDeviceAvailable() { in waitForDeviceAvailable() method in NativeDeviceStateMonitor
242 return waitForDeviceAvailable(mDefaultAvailableTimeout); in waitForDeviceAvailable()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java281 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testPreInvocationSetup()
310 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testPreInvocationSetup_fails()
528 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testDeviceNotStoreShutdownState()
632 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testDevice_skipTearDown()
718 EasyMock.expect(mMockStateMonitor.waitForDeviceAvailable(EasyMock.anyLong())) in testDeviceBoot_offline()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRestartSystemServerTargetPreparerTest.java54 mMockDevice.waitForDeviceAvailable(); in testSetUp_bootComplete()
72 mMockDevice.waitForDeviceAvailable(); in testSetUp_bootNotComplete()
93 mMockDevice.waitForDeviceAvailable(); in testTearDown_restart()
DDeviceFlashPreparerTest.java154 mMockDevice.waitForDeviceAvailable(EasyMock.anyLong()); in doSetupExpectations()
209 mMockDevice.waitForDeviceAvailable(EasyMock.anyLong()); in testSetup_buildError()
DInstallApexModuleTargetPreparerTest.java726 mMockDevice.waitForDeviceAvailable(); in testSetupAndTearDown_ApkAndApks()
934 mMockDevice.waitForDeviceAvailable(); in testInstallUsingBundletool()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestFuncTest.java177 getDevice().waitForDeviceAvailable(); in testRun_testCrash()
261 getDevice().waitForDeviceAvailable(); in testRun_deviceReboot()
346 getDevice().waitForDeviceAvailable(); in testRun_deviceRuntimeReset()
DGTestFuncTest.java168 getDevice().waitForDeviceAvailable(); in testRun_deviceReboot()
189 getDevice().waitForDeviceAvailable(); in testRun_timeout()
DGTestTest.java512 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageAllProcesses()
575 mMockITestDevice.waitForDeviceAvailable(5 * 60 * 1000); in testNativeCoverageSpecificProcesses()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTestsPoolPollerTest.java345 Mockito.verify(mDevice).waitForDeviceAvailable(Mockito.anyLong()); in testRun_dnae_NotLastDevice()
378 .waitForDeviceAvailable(Mockito.anyLong()); in testRun_dnae_NotLastDevice_offline()
393 Mockito.verify(mDevice).waitForDeviceAvailable(Mockito.anyLong()); in testRun_dnae_NotLastDevice_offline()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DIDeviceStateMonitor.java82 public IDevice waitForDeviceAvailable(final long waitTime); in waitForDeviceAvailable() method
93 public IDevice waitForDeviceAvailable(); in waitForDeviceAvailable() method
DINativeDevice.java1136 public void waitForDeviceAvailable(final long waitTime) throws DeviceNotAvailableException; in waitForDeviceAvailable() method
1144 public void waitForDeviceAvailable() throws DeviceNotAvailableException; in waitForDeviceAvailable() method
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DRemoveSystemAppPreparer.java55 device.waitForDeviceAvailable(); in setUp()
DRestartSystemServerTargetPreparer.java40 device.waitForDeviceAvailable(); in restartSystemServer()
DEraseUserDataPreparer.java50 device.waitForDeviceAvailable(); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/
DDeviceRecoveryModeUtil.java65 managedDevice.waitForDeviceAvailable(timeoutMs); in bootOutOfRecovery()
DNativeCodeCoverageFlusher.java87 mDevice.waitForDeviceAvailable(5 * 60 * 1000); in forceCoverageFlush()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DDeviceRecoveryModeUtilTest.java46 mMockManagedDevice.waitForDeviceAvailable(EasyMock.anyLong()); in testBootOutOfRecovery()

123