Searched refs:fastbootResult (Results 1 – 6 of 6) sorted by relevance
65 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(15000, mFastbootPath, "help"); in isFastbootAvailable() local66 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() local88 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 …]
1987 private boolean isRecoveryNeeded(CommandResult fastbootResult) { in isRecoveryNeeded() argument1988 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()
132 CommandResult fastbootResult = new CommandResult(); in doGetSlotExpectation() local133 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() local143 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()
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()148 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot() local149 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()
315 CommandResult fastbootResult = new CommandResult(); in testGetProductType_fastboot() local316 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() local337 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 …]
484 CommandResult fastbootResult = new CommandResult(CommandStatus.SUCCESS); in testAllocateDevice_fastboot() local485 fastbootResult.setStdout("serial fastboot\n"); in testAllocateDevice_fastboot()491 .andReturn(fastbootResult); in testAllocateDevice_fastboot()