Home
last modified time | relevance | path

Searched refs:RecoveryMode (Results 1 – 16 of 16) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstallerTest.java23 import com.android.tradefed.device.ITestDevice.RecoveryMode;
105 EasyMock.expect(mMockDevice.getRecoveryMode()).andReturn(RecoveryMode.AVAILABLE); in testCantTouchFilesystem()
108 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testCantTouchFilesystem()
136 EasyMock.expect(mMockDevice.getRecoveryMode()).andReturn(RecoveryMode.AVAILABLE); in testPushTestsZipOntoData()
137 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData()
150 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testPushTestsZipOntoData()
180 EasyMock.expect(mMockDevice.getRecoveryMode()).andReturn(RecoveryMode.AVAILABLE); in testPushTestsZipOntoData_retry()
181 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData_retry()
DDeviceFlashPreparerTest.java32 import com.android.tradefed.device.ITestDevice.RecoveryMode;
131 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in doSetupExpectations()
146 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in doSetupExpectations()
167 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_buildError()
183 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testSetup_buildError()
210 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_flashException()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestSystemAppInstallSetup.java29 import com.android.tradefed.device.ITestDevice.RecoveryMode;
76 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
87 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
DDeviceFlashPreparer.java27 import com.android.tradefed.device.ITestDevice.RecoveryMode;
184 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
238 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestFuncTest.java30 import com.android.tradefed.device.ITestDevice.RecoveryMode;
172 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_testTimeout()
173 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_testTimeout()
342 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_rerun()
343 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_rerun()
392 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_rerunHang()
393 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_rerunHang()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DIInvocationContext.java21 import com.android.tradefed.device.ITestDevice.RecoveryMode;
171 public void setRecoveryModeForAllDevices(RecoveryMode mode); in setRecoveryModeForAllDevices()
DInvocationContext.java23 import com.android.tradefed.device.ITestDevice.RecoveryMode;
284 public void setRecoveryModeForAllDevices(RecoveryMode mode) { in setRecoveryModeForAllDevices()
DTestInvocation.java28 import com.android.tradefed.device.ITestDevice.RecoveryMode;
213 context.setRecoveryModeForAllDevices(RecoveryMode.NONE); in performInvocation()
215 badDevice.setRecoveryMode(RecoveryMode.NONE); in performInvocation()
246 badDevice.setRecoveryMode(RecoveryMode.NONE); in performInvocation()
/tools/tradefederation/core/src/com/android/tradefed/device/
DINativeDevice.java25 import com.android.tradefed.device.ITestDevice.RecoveryMode;
994 public void setRecoveryMode(RecoveryMode mode); in setRecoveryMode()
1001 public RecoveryMode getRecoveryMode(); in getRecoveryMode()
DNativeDevice.java195 private RecoveryMode mRecoveryMode = RecoveryMode.AVAILABLE;
1879 if (mRecoveryMode.equals(RecoveryMode.NONE)) { in recoverDevice()
1886 mRecovery.recoverDevice(mStateMonitor, mRecoveryMode.equals(RecoveryMode.ONLINE)); in recoverDevice()
1888 RecoveryMode previousRecoveryMode = mRecoveryMode; in recoverDevice()
1889 mRecoveryMode = RecoveryMode.NONE; in recoverDevice()
1895 if (mRecoveryMode.equals(RecoveryMode.AVAILABLE)) { in recoverDevice()
1899 mRecoveryMode = RecoveryMode.NONE; in recoverDevice()
1905 mRecoveryMode = RecoveryMode.AVAILABLE; in recoverDevice()
1906 } else if (mRecoveryMode.equals(RecoveryMode.ONLINE)) { in recoverDevice()
1910 mRecoveryMode = RecoveryMode.NONE; in recoverDevice()
[all …]
DITestDevice.java38 public enum RecoveryMode { enum
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DStartupMetricsTest.java26 import com.android.tradefed.device.ITestDevice.RecoveryMode;
98 mTestDevice.setRecoveryMode(RecoveryMode.NONE); in executeRebootTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockDeviceManager.java20 import com.android.tradefed.device.ITestDevice.RecoveryMode;
98 mockDevice.setRecoveryMode(RecoveryMode.NONE); in setNumDevicesCustomRealNoRecovery()
DTestDeviceTest.java31 import com.android.tradefed.device.ITestDevice.RecoveryMode;
452 testDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testRecoverDevice_ThrowException()
530 mRecoveryTestDevice.setRecoveryMode(RecoveryMode.ONLINE); in testExecuteShellCommand_recoveryUntilOnline()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java37 import com.android.tradefed.device.ITestDevice.RecoveryMode;
344 mockDevice.setRecoveryMode(EasyMock.eq(RecoveryMode.AVAILABLE)); in testExecCommand()
885 assertTrue(t.getRecoveryMode().equals(RecoveryMode.AVAILABLE)); in testDeviceRecoveryState()
1132 mockDevice.setRecoveryMode(EasyMock.eq(RecoveryMode.AVAILABLE)); in testExecCommand_versioning()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java47 import com.android.tradefed.device.ITestDevice.RecoveryMode;
465 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testInvoke_deviceNotAvail()
528 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testInvoke_resume()
728 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testInvoke_tearDown_deviceNotAvail()