Lines Matching defs:from
237 bool ReceivedError(const char* from, const char* to) {
459 // Check to see if we've received an error from the other side.
478 bool CopyDone(const char* from, const char* to) {
481 Error("failed to copy '%s' to '%s': couldn't read from device", from, to);
490 Error("failed to copy '%s' to '%s': received premature success", from, to);
495 Error("failed to copy '%s' to '%s': unknown reason %d", from, to, msg.status.id);
498 return ReportCopyFailure(from, to, msg);
501 bool ReportCopyFailure(const char* from, const char* to, const syncmsg& msg) {
505 from, to, strerror(errno));
509 Error("failed to copy '%s' to '%s': remote %s", from, to, &buf[0]);
590 bool WriteOrDie(const char* from, const char* to, const void* data, size_t data_length) {
594 // try to read failure reason from adbd.
597 Error("failed to copy '%s' to '%s': no response: %s", from, to, strerror(errno));
599 Error("failed to copy '%s' to '%s': not ID_FAIL: %d", from, to, msg.status.id);
601 ReportCopyFailure(from, to, msg);