Home
last modified time | relevance | path

Searched refs:fastbootResult (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java62 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(5000, mFastbootPath, "help"); in isFastbootAvailable() local
63 if (fastbootResult.getStatus() == CommandStatus.SUCCESS) { in isFastbootAvailable()
66 if (fastbootResult.getStderr() != null && in isFastbootAvailable()
67 fastbootResult.getStderr().indexOf("usage: fastboot") >= 0) { in isFastbootAvailable()
73 fastbootResult.getStdout(), fastbootResult.getStderr()); in isFastbootAvailable()
84 CommandResult fastbootResult = in getDevices() local
86 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getDevices()
88 fastbootResult.getStdout()); in getDevices()
89 return parseDevices(fastbootResult.getStdout()); in getDevices()
91 CLog.w("'fastboot devices' failed. Result: %s, stderr: %s", fastbootResult.getStatus(), in getDevices()
[all …]
DNativeDevice.java1719 private boolean isRecoveryNeeded(CommandResult fastbootResult) { in isRecoveryNeeded() argument
1720 if (fastbootResult.getStatus().equals(CommandStatus.TIMED_OUT)) { in isRecoveryNeeded()
1726 if (fastbootResult.getStderr() == null || in isRecoveryNeeded()
1727 fastbootResult.getStderr().contains("data transfer failure (Protocol error)") || in isRecoveryNeeded()
1728 fastbootResult.getStderr().contains("status read failed (No such device)")) { in isRecoveryNeeded()
1730 getSerialNumber(), fastbootResult.getStderr()); in isRecoveryNeeded()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasherTest.java130 CommandResult fastbootResult = new CommandResult(); in testGetImageVersion() local
131 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetImageVersion()
133 fastbootResult.setStderr("version-bootloader: 1.0.1\nfinished. total time: 0.001s"); in testGetImageVersion()
134 fastbootResult.setStdout(""); in testGetImageVersion()
136 andReturn(fastbootResult); in testGetImageVersion()
147 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot() local
148 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetCurrentSlot_fastboot()
149 fastbootResult.setStderr("current-slot: _a\nfinished. total time 0.001s"); in testGetCurrentSlot_fastboot()
150 fastbootResult.setStdout(""); in testGetCurrentSlot_fastboot()
153 .andReturn(fastbootResult); in testGetCurrentSlot_fastboot()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java305 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastboot() local
306 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastboot()
308 fastbootResult.setStdout(""); in testGetProductType_fastboot()
309 fastbootResult.setStderr("product: nexusone\n" + "finished. total time: 0.001s"); in testGetProductType_fastboot()
314 fastbootResult); in testGetProductType_fastboot()
326 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastbootNonalpha() local
327 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootNonalpha()
329 fastbootResult.setStdout(""); in testGetProductType_fastbootNonalpha()
330 fastbootResult.setStderr("product: foo-bar\n" + "finished. total time: 0.001s"); in testGetProductType_fastbootNonalpha()
335 fastbootResult); in testGetProductType_fastbootNonalpha()
[all …]
DDeviceManagerTest.java399 CommandResult fastbootResult = new CommandResult(CommandStatus.SUCCESS); in testAllocateDevice_fastboot() local
400 fastbootResult.setStdout("serial fastboot\n"); in testAllocateDevice_fastboot()
406 .andReturn(fastbootResult); in testAllocateDevice_fastboot()