Lines Matching refs:response_id
285 char response_id[5]; in ReadResponseStatus() local
288 response_id[packet_len] = 0; in ReadResponseStatus()
290 auto error = ReadAllBytes(response_id, packet_len); in ReadResponseStatus()
294 if (strncmp(response_id, kOKAY, packet_len) != 0) in ReadResponseStatus()
295 return GetResponseError(response_id); in ReadResponseStatus()
300 Status AdbClient::GetResponseError(const char *response_id) { in GetResponseError() argument
301 if (strcmp(response_id, kFAIL) != 0) in GetResponseError()
302 return Status("Got unexpected response id from adb: \"%s\"", response_id); in GetResponseError()
487 std::string response_id; in internalPushFile() local
489 error = ReadSyncHeader(response_id, data_len); in internalPushFile()
492 if (response_id == kFAIL) { in internalPushFile()
498 } else if (response_id != kOKAY) in internalPushFile()
499 return Status("Got unexpected DONE response: %s", response_id.c_str()); in internalPushFile()
602 Status AdbClient::SyncService::ReadSyncHeader(std::string &response_id, in ReadSyncHeader() argument
608 response_id.assign(&buffer[0], 4); in ReadSyncHeader()
621 std::string response_id; in PullFileChunk() local
623 auto error = ReadSyncHeader(response_id, data_len); in PullFileChunk()
627 if (response_id == kDATA) { in PullFileChunk()
632 } else if (response_id == kDONE) { in PullFileChunk()
634 } else if (response_id == kFAIL) { in PullFileChunk()
641 return Status("Pull failed with unknown response: %s", response_id.c_str()); in PullFileChunk()