Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java206 private RecoveryMode mRecoveryMode = RecoveryMode.AVAILABLE;
2155 if (mRecoveryMode.equals(RecoveryMode.NONE)) { in recoverDevice()
2162 mRecovery.recoverDevice(mStateMonitor, mRecoveryMode.equals(RecoveryMode.ONLINE)); in recoverDevice()
2164 RecoveryMode previousRecoveryMode = mRecoveryMode; in recoverDevice()
2165 mRecoveryMode = RecoveryMode.NONE; in recoverDevice()
2177 if (mRecoveryMode.equals(RecoveryMode.AVAILABLE)) { in recoverDevice()
2181 mRecoveryMode = RecoveryMode.NONE; in recoverDevice()
2187 mRecoveryMode = RecoveryMode.AVAILABLE; in recoverDevice()
2188 } else if (mRecoveryMode.equals(RecoveryMode.ONLINE)) { in recoverDevice()
2192 mRecoveryMode = RecoveryMode.NONE; in recoverDevice()
[all …]
DLocalAndroidVirtualDevice.java108 RecoveryMode previousMode = getRecoveryMode(); in preInvocationSetup()
110 setRecoveryMode(RecoveryMode.NONE); in preInvocationSetup()
/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()
149 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testPushTestsZipOntoData()
179 EasyMock.expect(mMockDevice.getRecoveryMode()).andReturn(RecoveryMode.AVAILABLE); in testPushTestsZipOntoData_retry()
180 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testPushTestsZipOntoData_retry()
DDeviceFlashPreparerTest.java32 import com.android.tradefed.device.ITestDevice.RecoveryMode;
140 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in doSetupExpectations()
155 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in doSetupExpectations()
194 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_buildError()
211 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testSetup_buildError()
238 mMockDevice.setRecoveryMode(RecoveryMode.ONLINE); in testSetup_flashException()
DGkiDeviceFlashPreparerTest.java29 import com.android.tradefed.device.ITestDevice.RecoveryMode;
126 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in doSetupExpectations()
DGsiDeviceFlashPreparerTest.java29 import com.android.tradefed.device.ITestDevice.RecoveryMode;
126 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in doSetupExpectations()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestFuncTest.java30 import com.android.tradefed.device.ITestDevice.RecoveryMode;
185 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_testTimeout()
186 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_testTimeout()
359 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_rerun()
360 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_rerun()
409 RecoveryMode initMode = getDevice().getRecoveryMode(); in testRun_rerunHang()
410 getDevice().setRecoveryMode(RecoveryMode.NONE); in testRun_rerunHang()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstaller.java24 import com.android.tradefed.device.ITestDevice.RecoveryMode;
117 RecoveryMode cachedRecoveryMode = device.getRecoveryMode(); in pushTestsZipOntoData()
118 device.setRecoveryMode(RecoveryMode.ONLINE); in pushTestsZipOntoData()
144 RecoveryMode cachedRecoveryMode = device.getRecoveryMode(); in deleteData()
145 device.setRecoveryMode(RecoveryMode.ONLINE); in deleteData()
DDeviceFlashPreparer.java27 import com.android.tradefed.device.ITestDevice.RecoveryMode;
207 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
263 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
DDeviceUpdateTargetPreparer.java25 import com.android.tradefed.device.ITestDevice.RecoveryMode;
102 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
DGkiDeviceFlashPreparer.java26 import com.android.tradefed.device.ITestDevice.RecoveryMode;
102 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
DGsiDeviceFlashPreparer.java26 import com.android.tradefed.device.ITestDevice.RecoveryMode;
121 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DTestSystemAppInstallSetup.java25 import com.android.tradefed.device.ITestDevice.RecoveryMode;
77 device.setRecoveryMode(RecoveryMode.ONLINE); in setUp()
88 device.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java26 import com.android.tradefed.device.ITestDevice.RecoveryMode;
196 mDevice.setRecoveryMode(RecoveryMode.ONLINE); in testFastboot()
209 mDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testFastboot()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java51 import com.android.tradefed.device.ITestDevice.RecoveryMode;
238 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in setUp()
658 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testInvoke_deviceNotAvail()
679 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testInvoke_setupError()
771 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testInvoke_tearDown_deviceNotAvail()
2146 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in setEarlyDeviceReleaseExpectation()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java25 import com.android.tradefed.device.ITestDevice.RecoveryMode;
1231 public void setRecoveryMode(RecoveryMode mode); in setRecoveryMode()
1238 public RecoveryMode getRecoveryMode(); in getRecoveryMode()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java36 import com.android.tradefed.device.ITestDevice.RecoveryMode;
246 context.setRecoveryModeForAllDevices(RecoveryMode.NONE); in performInvocation()
248 badDevice.setRecoveryMode(RecoveryMode.NONE); in performInvocation()
276 badDevice.setRecoveryMode(RecoveryMode.NONE); in performInvocation()
DInvocationContext.java25 import com.android.tradefed.device.ITestDevice.RecoveryMode;
302 public void setRecoveryModeForAllDevices(RecoveryMode mode) { in setRecoveryModeForAllDevices()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java46 import com.android.tradefed.device.ITestDevice.RecoveryMode;
357 mockDevice.setRecoveryMode(EasyMock.eq(RecoveryMode.AVAILABLE)); in testExecCommand()
979 assertTrue(t.getRecoveryMode().equals(RecoveryMode.AVAILABLE)); in testDeviceRecoveryState()
1270 mockDevice.setRecoveryMode(EasyMock.eq(RecoveryMode.AVAILABLE)); in testExecCommand_versioning()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java30 import com.android.tradefed.device.ITestDevice.RecoveryMode;
898 RecoveryMode origMode = null; in runTearDown()
904 device.setRecoveryMode(RecoveryMode.NONE); in runTearDown()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/
DIInvocationContext.java21 import com.android.tradefed.device.ITestDevice.RecoveryMode;
192 public void setRecoveryModeForAllDevices(RecoveryMode mode); in setRecoveryModeForAllDevices()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleDefinitionTest.java40 import com.android.tradefed.device.ITestDevice.RecoveryMode;
992 EasyMock.expect(mMockDevice.getRecoveryMode()).andReturn(RecoveryMode.AVAILABLE); in testRun_partialRun()
993 mMockDevice.setRecoveryMode(RecoveryMode.NONE); in testRun_partialRun()
994 mMockDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testRun_partialRun()
/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.java39 import com.android.tradefed.device.ITestDevice.RecoveryMode;
485 testDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testRecoverDevice_ThrowException()
563 mRecoveryTestDevice.setRecoveryMode(RecoveryMode.ONLINE); in testExecuteShellCommand_recoveryUntilOnline()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDevice.java112 RecoveryMode previousMode = getRecoveryMode(); in preInvocationSetup()
113 setRecoveryMode(RecoveryMode.NONE); in preInvocationSetup()

12