Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java65 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(15000, mFastbootPath, "help"); in isFastbootAvailable() local
66 if (CommandStatus.SUCCESS.equals(fastbootResult.getStatus())) { in isFastbootAvailable()
69 if (fastbootResult.getStderr() != null && in isFastbootAvailable()
70 fastbootResult.getStderr().indexOf("usage: fastboot") >= 0) { in isFastbootAvailable()
76 fastbootResult.getStdout(), fastbootResult.getStderr()); in isFastbootAvailable()
86 CommandResult fastbootResult = in getDevices() local
88 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getDevices()
90 fastbootResult.getStdout()); in getDevices()
91 return parseDevices(fastbootResult.getStdout(), false); in getDevices()
93 CLog.w("'fastboot devices' failed. Result: %s, stderr: %s", fastbootResult.getStatus(), in getDevices()
[all …]
DNativeDevice.java1987 private boolean isRecoveryNeeded(CommandResult fastbootResult) { in isRecoveryNeeded() argument
1988 if (fastbootResult.getStatus().equals(CommandStatus.TIMED_OUT)) { in isRecoveryNeeded()
1994 if (fastbootResult.getStderr() == null || in isRecoveryNeeded()
1995 fastbootResult.getStderr().contains("data transfer failure (Protocol error)") || in isRecoveryNeeded()
1996 fastbootResult.getStderr().contains("status read failed (No such device)")) { in isRecoveryNeeded()
1998 getSerialNumber(), fastbootResult.getStderr()); in isRecoveryNeeded()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java132 CommandResult fastbootResult = new CommandResult(); in doGetSlotExpectation() local
133 fastbootResult.setStatus(CommandStatus.SUCCESS); in doGetSlotExpectation()
134 fastbootResult.setStderr("current-slot: _a\nfinished. total time 0.001s"); in doGetSlotExpectation()
135 fastbootResult.setStdout(""); in doGetSlotExpectation()
137 .andReturn(fastbootResult); in doGetSlotExpectation()
142 CommandResult fastbootResult = new CommandResult(); in doGetEmptySlotExpectation() local
143 fastbootResult.setStatus(CommandStatus.SUCCESS); in doGetEmptySlotExpectation()
144 fastbootResult.setStderr("current-slot: \nfinished. total time 0.001s"); in doGetEmptySlotExpectation()
145 fastbootResult.setStdout(""); in doGetEmptySlotExpectation()
147 .andReturn(fastbootResult); in doGetEmptySlotExpectation()
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()
148 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot() local
149 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetCurrentSlot_fastboot()
150 fastbootResult.setStderr("current-slot: _a\nfinished. total time 0.001s"); in testGetCurrentSlot_fastboot()
151 fastbootResult.setStdout(""); in testGetCurrentSlot_fastboot()
154 .andReturn(fastbootResult); in testGetCurrentSlot_fastboot()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java315 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastboot() local
316 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastboot()
318 fastbootResult.setStdout(""); in testGetProductType_fastboot()
319 fastbootResult.setStderr("product: nexusone\n" + "finished. total time: 0.001s"); in testGetProductType_fastboot()
324 fastbootResult); in testGetProductType_fastboot()
336 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastbootNonalpha() local
337 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootNonalpha()
339 fastbootResult.setStdout(""); in testGetProductType_fastbootNonalpha()
340 fastbootResult.setStderr("product: foo-bar\n" + "finished. total time: 0.001s"); in testGetProductType_fastbootNonalpha()
345 fastbootResult); in testGetProductType_fastbootNonalpha()
[all …]
DDeviceManagerTest.java484 CommandResult fastbootResult = new CommandResult(CommandStatus.SUCCESS); in testAllocateDevice_fastboot() local
485 fastbootResult.setStdout("serial fastboot\n"); in testAllocateDevice_fastboot()
491 .andReturn(fastbootResult); in testAllocateDevice_fastboot()