Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java66 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(15000, mFastbootPath, "help"); in isFastbootAvailable() local
67 if (CommandStatus.SUCCESS.equals(fastbootResult.getStatus())) { in isFastbootAvailable()
70 if (fastbootResult.getStderr() != null && in isFastbootAvailable()
71 fastbootResult.getStderr().indexOf("usage: fastboot") >= 0) { in isFastbootAvailable()
77 fastbootResult.getStdout(), fastbootResult.getStderr()); in isFastbootAvailable()
87 CommandResult fastbootResult = in getDevices() local
89 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getDevices()
91 fastbootResult.getStdout()); in getDevices()
92 return parseDevices(fastbootResult.getStdout(), false); in getDevices()
94 CLog.w("'fastboot devices' failed. Result: %s, stderr: %s", fastbootResult.getStatus(), in getDevices()
[all …]
DNativeDevice.java2542 private boolean isRecoveryNeeded(CommandResult fastbootResult) { in isRecoveryNeeded() argument
2543 if (fastbootResult.getStatus().equals(CommandStatus.TIMED_OUT)) { in isRecoveryNeeded()
2549 if (fastbootResult.getStderr() == null || in isRecoveryNeeded()
2550 fastbootResult.getStderr().contains("data transfer failure (Protocol error)") || in isRecoveryNeeded()
2551 fastbootResult.getStderr().contains("status read failed (No such device)")) { in isRecoveryNeeded()
2553 getSerialNumber(), fastbootResult.getStderr()); in isRecoveryNeeded()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/sync/
DIncrementalImageFuncTest.java222 CommandResult fastbootResult = in testBlockCompareUpdate() local
229 CLog.d("Status: %s", fastbootResult.getStatus()); in testBlockCompareUpdate()
230 CLog.d("stdout: %s", fastbootResult.getStdout()); in testBlockCompareUpdate()
231 CLog.d("stderr: %s", fastbootResult.getStderr()); in testBlockCompareUpdate()
385 CommandResult fastbootResult = in revertToPreviousBuild() local
392 CLog.d("Status: %s", fastbootResult.getStatus()); in revertToPreviousBuild()
393 CLog.d("stdout: %s", fastbootResult.getStdout()); in revertToPreviousBuild()
394 CLog.d("stderr: %s", fastbootResult.getStderr()); in revertToPreviousBuild()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java138 CommandResult fastbootResult = new CommandResult(); in doGetSlotExpectation() local
139 fastbootResult.setStatus(CommandStatus.SUCCESS); in doGetSlotExpectation()
140 fastbootResult.setStderr("current-slot: _a\nfinished. total time 0.001s"); in doGetSlotExpectation()
141 fastbootResult.setStdout(""); in doGetSlotExpectation()
143 .thenReturn(fastbootResult); in doGetSlotExpectation()
148 CommandResult fastbootResult = new CommandResult(); in doGetEmptySlotExpectation() local
149 fastbootResult.setStatus(CommandStatus.SUCCESS); in doGetEmptySlotExpectation()
150 fastbootResult.setStderr("current-slot: \nfinished. total time 0.001s"); in doGetEmptySlotExpectation()
151 fastbootResult.setStdout(""); in doGetEmptySlotExpectation()
153 .thenReturn(fastbootResult); in doGetEmptySlotExpectation()
DFastbootDeviceFlasherTest.java164 CommandResult fastbootResult = new CommandResult(); in testGetImageVersion() local
165 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetImageVersion()
167 fastbootResult.setStderr("version-bootloader: 1.0.1\nfinished. total time: 0.001s"); in testGetImageVersion()
168 fastbootResult.setStdout(""); in testGetImageVersion()
170 .thenReturn(fastbootResult); in testGetImageVersion()
181 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot() local
182 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetCurrentSlot_fastboot()
183 fastbootResult.setStderr("current-slot: _a\nfinished. total time 0.001s"); in testGetCurrentSlot_fastboot()
184 fastbootResult.setStdout(""); in testGetCurrentSlot_fastboot()
187 .thenReturn(fastbootResult); in testGetCurrentSlot_fastboot()
/tools/tradefederation/core/src/com/android/tradefed/util/image/
DIncrementalImageUtil.java637 CommandResult fastbootResult = in flashStaticPartition() local
643 CLog.d("Status: %s", fastbootResult.getStatus()); in flashStaticPartition()
644 CLog.d("stdout: %s", fastbootResult.getStdout()); in flashStaticPartition()
645 CLog.d("stderr: %s", fastbootResult.getStderr()); in flashStaticPartition()
646 if (!CommandStatus.SUCCESS.equals(fastbootResult.getStatus())) { in flashStaticPartition()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceTest.java476 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastboot() local
477 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastboot()
479 fastbootResult.setStdout(""); in testGetProductType_fastboot()
480 fastbootResult.setStderr("product: nexusone\n" + "finished. total time: 0.001s"); in testGetProductType_fastboot()
489 .thenReturn(fastbootResult); in testGetProductType_fastboot()
502 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastbootNonalpha() local
503 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootNonalpha()
505 fastbootResult.setStdout(""); in testGetProductType_fastbootNonalpha()
506 fastbootResult.setStderr("product: foo-bar\n" + "finished. total time: 0.001s"); in testGetProductType_fastbootNonalpha()
515 .thenReturn(fastbootResult); in testGetProductType_fastbootNonalpha()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java1692 CommandResult fastbootResult = in handleAndLogReleaseState() local
1699 CLog.d("'fastboot devices' output:\n%s", fastbootResult.getStdout()); in handleAndLogReleaseState()