Searched refs:fastbootResult (Results 1 – 5 of 5) sorted by relevance
62 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(5000, mFastbootPath, "help"); in isFastbootAvailable() local63 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() local86 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 …]
1719 private boolean isRecoveryNeeded(CommandResult fastbootResult) { in isRecoveryNeeded() argument1720 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()
130 CommandResult fastbootResult = new CommandResult(); in testGetImageVersion() local131 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() local148 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()
305 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastboot() local306 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() local327 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 …]
399 CommandResult fastbootResult = new CommandResult(CommandStatus.SUCCESS); in testAllocateDevice_fastboot() local400 fastbootResult.setStdout("serial fastboot\n"); in testAllocateDevice_fastboot()406 .andReturn(fastbootResult); in testAllocateDevice_fastboot()