Lines Matching refs:WriteStatus
193 device->WriteStatus(FastbootResult::FAIL, ret.message); in OemPostWipeData()
195 device->WriteStatus(FastbootResult::OKAY, "Erasing succeeded"); in OemPostWipeData()
203 return device->WriteStatus(FastbootResult::FAIL, "Invalid arguments"); in EraseHandler()
207 return device->WriteStatus(FastbootResult::FAIL, "Erase is not allowed on locked devices"); in EraseHandler()
218 return device->WriteStatus(FastbootResult::FAIL, "Partition doesn't exist"); in EraseHandler()
228 return device->WriteStatus(FastbootResult::OKAY, "Erasing succeeded"); in EraseHandler()
234 return device->WriteStatus(FastbootResult::FAIL, "Erasing failed"); in EraseHandler()
240 return device->WriteStatus(FastbootResult::FAIL, "Unable to open fastboot HAL"); in OemCmdHandler()
245 return device->WriteStatus(FastbootResult::FAIL, "Unable to do oem postwipedata userdata"); in OemCmdHandler()
251 return device->WriteStatus(FastbootResult::FAIL, "Unable to do OEM command"); in OemCmdHandler()
254 return device->WriteStatus(FastbootResult::FAIL, ret.message); in OemCmdHandler()
257 return device->WriteStatus(FastbootResult::OKAY, ret.message); in OemCmdHandler()
262 return device->WriteStatus(FastbootResult::FAIL, "size argument unspecified"); in DownloadHandler()
266 return device->WriteStatus(FastbootResult::FAIL, in DownloadHandler()
273 return device->WriteStatus(FastbootResult::FAIL, "Invalid size"); in DownloadHandler()
276 if (!device->WriteStatus(FastbootResult::DATA, android::base::StringPrintf("%08x", size))) { in DownloadHandler()
281 return device->WriteStatus(FastbootResult::OKAY, ""); in DownloadHandler()
285 return device->WriteStatus(FastbootResult::FAIL, "Couldn't download data"); in DownloadHandler()
290 return device->WriteStatus(FastbootResult::FAIL, "Missing slot argument"); in SetActiveHandler()
294 return device->WriteStatus(FastbootResult::FAIL, in SetActiveHandler()
301 return device->WriteStatus(FastbootResult::FAIL, "Bad slot suffix"); in SetActiveHandler()
307 return device->WriteStatus(FastbootResult::FAIL, in SetActiveHandler()
311 return device->WriteStatus(FastbootResult::FAIL, "Slot out of range"); in SetActiveHandler()
347 return device->WriteStatus(FastbootResult::OKAY, ""); in SetActiveHandler()
349 return device->WriteStatus(FastbootResult::FAIL, "Unable to set slot"); in SetActiveHandler()
353 auto result = device->WriteStatus(FastbootResult::OKAY, "Shutting down"); in ShutDownHandler()
361 auto result = device->WriteStatus(FastbootResult::OKAY, "Rebooting"); in RebootHandler()
369 auto result = device->WriteStatus(FastbootResult::OKAY, "Rebooting bootloader"); in RebootBootloaderHandler()
377 auto result = device->WriteStatus(FastbootResult::OKAY, "Rebooting fastboot"); in RebootFastbootHandler()
413 status = device->WriteStatus(FastbootResult::OKAY, "Rebooting to recovery"); in RebootRecoveryHandler()
415 status = device->WriteStatus(FastbootResult::FAIL, "Unable to reboot to recovery"); in RebootRecoveryHandler()
465 return device->WriteStatus(FastbootResult::FAIL, "Command not available on locked devices"); in CreatePartitionHandler()
503 return device->WriteStatus(FastbootResult::FAIL, "Command not available on locked devices"); in DeletePartitionHandler()
525 return device->WriteStatus(FastbootResult::FAIL, "Command not available on locked devices"); in ResizePartitionHandler()
573 return device->WriteStatus(FastbootResult::FAIL, "Invalid arguments"); in FlashHandler()
577 return device->WriteStatus(FastbootResult::FAIL, in FlashHandler()
593 return device->WriteStatus(FastbootResult::FAIL, strerror(-ret)); in FlashHandler()
595 return device->WriteStatus(FastbootResult::OKAY, "Flashing succeeded"); in FlashHandler()
604 return device->WriteStatus(FastbootResult::FAIL, "Command not available on locked devices"); in UpdateSuperHandler()
622 return device->WriteStatus(FastbootResult::FAIL, "No GSI is installed"); in GsiHandler()
627 return device->WriteStatus(FastbootResult::FAIL, strerror(errno)); in GsiHandler()
631 return device->WriteStatus(FastbootResult::FAIL, strerror(errno)); in GsiHandler()
634 return device->WriteStatus(FastbootResult::OKAY, "Success"); in GsiHandler()
684 return device->WriteStatus(FastbootResult::OKAY, "Success"); in SnapshotUpdateHandler()
763 ret_ = device_->WriteStatus(FastbootResult::FAIL, "Invalid size, must be integer"); in Open()
801 if (!device_->WriteStatus(FastbootResult::DATA, in Fetch()