/system/core/adb/ |
D | adb_io.cpp | 35 return WriteFdFmt(fd, "%04x", length) && WriteFdExactly(fd, s); in SendProtocolString() 39 return WriteFdExactly(fd, "OKAY", 4); in SendOkay() 43 return WriteFdExactly(fd, "FAIL", 4) && SendProtocolString(fd, reason); in SendFail() 75 bool WriteFdExactly(int fd, const void* buf, size_t len) { in WriteFdExactly() function 106 bool WriteFdExactly(int fd, const char* str) { in WriteFdExactly() function 107 return WriteFdExactly(fd, str, strlen(str)); in WriteFdExactly() 110 bool WriteFdExactly(int fd, const std::string& str) { in WriteFdExactly() function 111 return WriteFdExactly(fd, str.c_str(), str.size()); in WriteFdExactly() 122 return WriteFdExactly(fd, str); in WriteFdFmt()
|
D | adb_io.h | 50 bool WriteFdExactly(int fd, const void* buf, size_t len); 53 bool WriteFdExactly(int fd, const char* s); 54 bool WriteFdExactly(int fd, const std::string& s);
|
D | file_sync_service.cpp | 97 return WriteFdExactly(s, &msg.stat, sizeof(msg.stat)) ? 0 : -1; in do_stat() 135 if(!WriteFdExactly(s, &msg.dent, sizeof(msg.dent)) || in do_list() 136 !WriteFdExactly(s, de->d_name, len)) { in do_list() 151 return WriteFdExactly(s, &msg.dent, sizeof(msg.dent)) ? 0 : -1; in do_list() 163 if(!WriteFdExactly(s, &msg.data, sizeof(msg.data)) || in fail_message() 164 !WriteFdExactly(s, reason, len)) { in fail_message() 238 if(!WriteFdExactly(fd, buffer, len)) { in handle_send_file() 258 if(!WriteFdExactly(s, &msg.status, sizeof(msg.status))) in handle_send_file() 314 if(!WriteFdExactly(s, &msg.status, sizeof(msg.status))) in handle_send_link() 396 if(!WriteFdExactly(s, &msg.data, sizeof(msg.data)) || in do_recv() [all …]
|
D | file_sync_client.cpp | 89 WriteFdExactly(fd, &msg.req, sizeof(msg.req)); in sync_quit() 106 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_ls() 107 !WriteFdExactly(fd, path, len)) { in sync_ls() 150 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_readtime() 151 !WriteFdExactly(fd, path, len)) { in sync_readtime() 176 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_start_readtime() 177 !WriteFdExactly(fd, path, len)) { in sync_start_readtime() 210 if(!WriteFdExactly(fd, &msg.req, sizeof(msg.req)) || in sync_readmode() 211 !WriteFdExactly(fd, path, len)) { in sync_readmode() 265 if(!WriteFdExactly(fd, sbuf, sizeof(unsigned) * 2 + ret)){ in write_data_file() [all …]
|
D | remount_service.cpp | 87 WriteFdExactly(fd, "Not running as root. Try \"adb root\" first.\n"); in remount_service() 108 WriteFdExactly(fd, in remount_service() 119 WriteFdExactly(fd, success ? "remount succeeded\n" : "remount failed\n"); in remount_service()
|
D | adb_io_test.cpp | 107 ASSERT_TRUE(WriteFdExactly(tf.fd, expected, sizeof(expected))) in TEST() 122 ASSERT_TRUE(WriteFdExactly(tf.fd, buf, sizeof(buf) - 2)) << strerror(errno); in TEST() 138 ASSERT_FALSE(WriteFdExactly(fd, buf, sizeof(buf))); in TEST() 148 ASSERT_TRUE(WriteFdExactly(tf.fd, str)) << strerror(errno); in TEST()
|
D | services.cpp | 68 WriteFdExactly(fd, "adbd is already running as root\n"); in restart_root_service() 74 WriteFdExactly(fd, "adbd cannot run as root in production builds\n"); in restart_root_service() 80 WriteFdExactly(fd, "restarting adbd as root\n"); in restart_root_service() 87 WriteFdExactly(fd, "adbd not running as root\n"); in restart_unroot_service() 91 WriteFdExactly(fd, "restarting adbd as non root\n"); in restart_unroot_service() 113 WriteFdExactly(fd, "restarting in USB mode\n"); in restart_usb_service() 130 WriteFdExactly(fd, "'adb root' is required for 'adb reboot sideload'.\n"); in reboot_service_impl() 375 res = WriteFdExactly(SHELL_EXIT_NOTIFY_FD, &fd, sizeof(fd)) ? 0 : -1; in subproc_waiter_service()
|
D | framebuffer_service.cpp | 168 if(!WriteFdExactly(fd, &fbinfo, sizeof(fbinfo))) goto done; in framebuffer_service() 176 if(!WriteFdExactly(fd, buf, bsize)) goto done; in framebuffer_service()
|
D | transport_local.cpp | 78 if(!WriteFdExactly(t->sfd, &p->msg, sizeof(amessage) + length)) { in remote_write()
|
D | commandline.cpp | 472 if (!WriteFdExactly(fd, ptr, xfer)) { in adb_download_buffer() 578 if(!WriteFdExactly(fd, start, to_write)) { in adb_sideload_host()
|