Lines Matching refs:response

73 RetCode FastBootDriver::Boot(std::string* response, std::vector<std::string>* info) {  in Boot()  argument
74 return RawCommand(FB_CMD_BOOT, "Booting", response, info); in Boot()
77 RetCode FastBootDriver::Continue(std::string* response, std::vector<std::string>* info) { in Continue() argument
78 return RawCommand(FB_CMD_CONTINUE, "Resuming boot", response, info); in Continue()
90 RetCode FastBootDriver::Erase(const std::string& partition, std::string* response, in Erase() argument
92 return RawCommand(FB_CMD_ERASE ":" + partition, "Erasing '" + partition + "'", response, info); in Erase()
95 RetCode FastBootDriver::Flash(const std::string& partition, std::string* response, in Flash() argument
97 return RawCommand(FB_CMD_FLASH ":" + partition, "Writing '" + partition + "'", response, info); in Flash()
105 RetCode FastBootDriver::GetVarAll(std::vector<std::string>* response) { in GetVarAll() argument
107 return GetVar("all", &tmp, response); in GetVarAll()
110 RetCode FastBootDriver::Reboot(std::string* response, std::vector<std::string>* info) { in Reboot() argument
111 return RawCommand(FB_CMD_REBOOT, "Rebooting", response, info); in Reboot()
114 RetCode FastBootDriver::RebootTo(std::string target, std::string* response, in RebootTo() argument
116 return RawCommand("reboot-" + target, "Rebooting into " + target, response, info); in RebootTo()
124 RetCode FastBootDriver::SetActive(const std::string& slot, std::string* response, in SetActive() argument
127 response, info); in SetActive()
130 RetCode FastBootDriver::SnapshotUpdateCommand(const std::string& command, std::string* response, in SnapshotUpdateCommand() argument
134 auto result = RawCommand(raw, response, info); in SnapshotUpdateCommand()
188 size_t size, std::string* response, in Download() argument
191 auto result = Download(fd, size, response, info); in Download()
196 RetCode FastBootDriver::Download(android::base::borrowed_fd fd, size_t size, std::string* response, in Download() argument
206 if ((ret = DownloadCommand(u32size, response, info))) { in Download()
216 return HandleResponse(response, info); in Download()
220 std::string* response, std::vector<std::string>* info) { in Download() argument
222 auto result = Download(buf, response, info); in Download()
227 RetCode FastBootDriver::Download(const std::vector<char>& buf, std::string* response, in Download() argument
236 if ((ret = DownloadCommand(buf.size(), response, info))) { in Download()
246 return HandleResponse(response, info); in Download()
250 size_t current, size_t total, bool use_crc, std::string* response, in Download() argument
254 auto result = Download(s, use_crc, response, info); in Download()
259 RetCode FastBootDriver::Download(sparse_file* s, bool use_crc, std::string* response, in Download() argument
270 if ((ret = DownloadCommand(u32size, response, info))) { in Download()
296 return HandleResponse(response, info); in Download()
299 RetCode FastBootDriver::Upload(const std::string& outfile, std::string* response, in Upload() argument
302 auto result = UploadInner(outfile, response, info); in Upload()
311 const std::string& cmd, std::string* response, std::vector<std::string>* info, in RunAndReadBuffer() argument
315 if ((ret = RawCommand(cmd, response, info, &dsize))) { in RunAndReadBuffer()
341 return HandleResponse(response, info); in RunAndReadBuffer()
344 RetCode FastBootDriver::UploadInner(const std::string& outfile, std::string* response, in UploadInner() argument
360 RetCode ret = RunAndReadBuffer(FB_CMD_UPLOAD, response, info, write_fn); in UploadInner()
366 int64_t offset, int64_t size, std::string* response, in FetchToFd() argument
377 RetCode ret = RunAndReadBuffer(cmd, response, info, [&](const char* data, uint64_t size) { in FetchToFd()
428 std::string* response, std::vector<std::string>* info, in RawCommand() argument
431 auto result = RawCommand(cmd, response, info, dsize); in RawCommand()
436 RetCode FastBootDriver::RawCommand(const std::string& cmd, std::string* response, in RawCommand() argument
450 return HandleResponse(response, info, dsize); in RawCommand()
453 RetCode FastBootDriver::DownloadCommand(uint32_t size, std::string* response, in DownloadCommand() argument
457 if ((ret = RawCommand(cmd, response, info))) { in DownloadCommand()
463 RetCode FastBootDriver::HandleResponse(std::string* response, std::vector<std::string>* info, in HandleResponse() argument
468 auto set_response = [response](std::string s) { in HandleResponse()
469 if (response) *response = std::move(s); in HandleResponse()