/system/core/adb/daemon/ |
D | restart_service.cpp | 33 WriteFdExactly(fd.get(), "adbd is already running as root\n"); in restart_root_service() 37 WriteFdExactly(fd.get(), "adbd cannot run as root in production builds\n"); in restart_root_service() 43 WriteFdExactly(fd.get(), "restarting adbd as root\n"); in restart_root_service() 48 WriteFdExactly(fd.get(), "adbd not running as root\n"); in restart_unroot_service() 54 WriteFdExactly(fd.get(), "restarting adbd as non root\n"); in restart_unroot_service() 71 WriteFdExactly(fd.get(), "restarting in USB mode\n"); in restart_usb_service()
|
D | set_verity_enable_state_service.cpp | 51 if (getuid() != 0) WriteFdExactly(fd, "Maybe run adb root?\n"); in suggest_run_adb_root() 85 WriteFdExactly(fd, "Couldn't find verity metadata!\n"); in set_verity_enabled_state() 155 WriteFdExactly(fd, "Device is locked. Please unlock the device first\n"); in set_avb_verity_enabled_state() 160 WriteFdExactly(fd, "Error getting verity state. Try adb root first?\n"); in set_avb_verity_enabled_state() 170 WriteFdExactly(fd, "Error setting verity\n"); in set_avb_verity_enabled_state() 198 WriteFdExactly(fd.get(), "verity not enabled - ENG build\n"); in set_verity_enabled_state_service() 206 WriteFdExactly(fd.get(), "verity cannot be disabled/enabled - USER build\n"); in set_verity_enabled_state_service() 214 WriteFdExactly(fd.get(), "Error getting AVB ops\n"); in set_verity_enabled_state_service() 227 WriteFdExactly(fd.get(), "Failed to read fstab\n"); in set_verity_enabled_state_service() 245 WriteFdExactly(fd.get(), "Now reboot your device for settings to take effect\n"); in set_verity_enabled_state_service()
|
D | file_sync_service.cpp | 143 return WriteFdExactly(s, &msg.stat_v1, sizeof(msg.stat_v1)); in do_lstat_v1() 174 return WriteFdExactly(s, &msg.stat_v2, sizeof(msg.stat_v2)); in do_stat_v2() 197 if (!WriteFdExactly(s, &msg.dent, sizeof(msg.dent)) || in do_list() 198 !WriteFdExactly(s, de->d_name, d_name_length)) { in do_list() 210 return WriteFdExactly(s, &msg.dent, sizeof(msg.dent)); in do_list() 222 return WriteFdExactly(fd, &msg.data, sizeof(msg.data)) && WriteFdExactly(fd, reason); in SendSyncFail() 292 if (!WriteFdExactly(fd.get(), &buffer[0], msg.data.size)) { in handle_send_file() 305 return WriteFdExactly(s, &msg.status, sizeof(msg.status)); in handle_send_file() 387 if (!WriteFdExactly(s, &msg.status, sizeof(msg.status))) return false; in handle_send_link() 481 if (!WriteFdExactly(s, &msg.data, sizeof(msg.data)) || !WriteFdExactly(s, &buffer[0], r)) { in do_recv() [all …]
|
D | transport_qemu.cpp | 91 if (WriteFdExactly(fd.get(), _accept_req, strlen(_accept_req))) { in qemu_socket_thread() 100 WriteFdExactly(fd.get(), _start_req, strlen(_start_req)); in qemu_socket_thread()
|
D | shell_service.cpp | 369 WriteFdExactly(child_error_sfd, "exec '" _PATH_BSHELL "' failed: "); in ForkAndExec() 370 WriteFdExactly(child_error_sfd, strerror(errno)); in ForkAndExec() 491 WriteFdExactly(*error_sfd, message); in OpenPtyChildFd() 500 WriteFdExactly(*error_sfd, "tcgetattr failed: "); in OpenPtyChildFd() 501 WriteFdExactly(*error_sfd, strerror(saved_errno)); in OpenPtyChildFd() 508 WriteFdExactly(*error_sfd, "tcsetattr failed: "); in OpenPtyChildFd() 509 WriteFdExactly(*error_sfd, strerror(saved_errno)); in OpenPtyChildFd() 775 WriteFdExactly(write.get(), &id, sizeof(id)); in ReportError() 776 WriteFdExactly(write.get(), &length, sizeof(length)); in ReportError() 779 WriteFdExactly(write.get(), buf.data(), buf.length()); in ReportError() [all …]
|
D | shell_service_test.cpp | 283 WriteFdExactly(out, "out\n"); in TEST_F() 284 WriteFdExactly(err, "err\n"); in TEST_F() 289 WriteFdExactly(command_fd_, "in"); in TEST_F() 303 WriteFdExactly(out, "out\n"); in TEST_F() 304 WriteFdExactly(err, "err\n"); in TEST_F()
|
D | services.cpp | 64 WriteFdExactly(fd.get(), "done"); in reconnect_service() 126 WriteFdExactly(fd.get(), "refusing to spin on non-debuggable build\n"); in spin_service() 133 WriteFdExactly(fd.get(), "failed to create pipe\n"); in spin_service() 143 WriteFdExactly(fd.get(), "spinning\n"); in spin_service()
|
D | framebuffer_service.cpp | 173 if (!WriteFdExactly(fd.get(), &fbinfo, sizeof(fbinfo))) goto done; in framebuffer_service() 181 if (!WriteFdExactly(fd.get(), buf, bsize)) goto done; in framebuffer_service()
|
D | remount_service.cpp | 34 WriteFdExactly(fd, "Not running as root. Try \"adb root\" first.\n"); in do_remount()
|
D | abb.cpp | 35 return WriteFdExactly(mFD, txt, len) ? android::OK : -errno; in print()
|
D | auth.cpp | 115 if (!WriteFdExactly(framework_fd, msg.c_str(), msg_len)) { in adbd_send_key_message_locked()
|
/system/core/adb/ |
D | adb_io.cpp | 47 return WriteFdExactly(fd, str); in SendProtocolString() 69 return WriteFdExactly(fd, "OKAY", 4); in SendOkay() 73 return WriteFdExactly(fd, "FAIL", 4) && SendProtocolString(fd, reason); in SendFail() 103 bool WriteFdExactly(int fd, const void* buf, size_t len) { in WriteFdExactly() function 132 bool WriteFdExactly(int fd, const char* str) { in WriteFdExactly() function 133 return WriteFdExactly(fd, str, strlen(str)); in WriteFdExactly() 136 bool WriteFdExactly(int fd, const std::string& str) { in WriteFdExactly() function 137 return WriteFdExactly(fd, str.c_str(), str.size()); in WriteFdExactly() 148 return WriteFdExactly(fd, str); in WriteFdFmt()
|
D | adb_io.h | 70 bool WriteFdExactly(int fd, const void* buf, size_t len); 73 bool WriteFdExactly(int fd, const char* s); 74 bool WriteFdExactly(int fd, const std::string& s);
|
D | sysdeps_test.cpp | 31 ASSERT_TRUE(WriteFdExactly(fds[0], "foo", 4)); in TEST() 32 ASSERT_TRUE(WriteFdExactly(fds[1], "bar", 4)); in TEST() 93 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F() 114 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F() 132 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F() 165 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F() 197 ASSERT_TRUE(WriteFdExactly(sockets[i * 2], &i, sizeof(i))); in TEST_F()
|
D | adb_io_test.cpp | 96 ASSERT_TRUE(WriteFdExactly(tf.fd, expected, sizeof(expected))) in POSIX_TEST() 111 ASSERT_TRUE(WriteFdExactly(tf.fd, buf, sizeof(buf) - 2)) << strerror(errno); in POSIX_TEST() 127 ASSERT_FALSE(WriteFdExactly(fd, buf, sizeof(buf))); in POSIX_TEST() 137 ASSERT_TRUE(WriteFdExactly(tf.fd, str)) << strerror(errno); in POSIX_TEST()
|
D | shell_service_protocol.cpp | 61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length); in Write()
|
D | socket_test.cpp | 92 ASSERT_TRUE(WriteFdExactly(first[0], &read_buffer[0], read_buffer.size())); in TEST_F() 249 EXPECT_TRUE(WriteFdExactly(head_fd[0], "foo", 3)); in TEST_F() 253 EXPECT_TRUE(WriteFdExactly(tail_fd[0], str, strlen(str))); in TEST_F() 254 EXPECT_TRUE(WriteFdExactly(head_fd[0], "bar", 3)); in TEST_F()
|
D | fdevent_test.h | 87 ASSERT_TRUE(WriteFdExactly(dummy, "", 1)); in TerminateThread()
|
D | fdevent_test.cpp | 161 ASSERT_TRUE(WriteFdExactly(writer, read_buffer.c_str(), read_buffer.size())); in TEST_F()
|
D | transport.cpp | 411 if (!WriteFdExactly(fd_.get(), &packet->msg, sizeof(packet->msg))) { in Write() 417 if (!WriteFdExactly(fd_.get(), &packet->payload[0], packet->msg.data_length)) { in Write()
|
D | adb.cpp | 1096 WriteFdExactly(reply_fd, &t->id, sizeof(t->id)); in handle_host_request()
|
/system/core/adb/client/ |
D | console.cpp | 125 if (!WriteFdExactly(fd, commands)) { in adb_send_emulator_command()
|
D | commandline.cpp | 553 if (!WriteFdExactly(args->write_fd, buffer_ptr, r)) { in stdin_read_thread_loop() 819 if (!WriteFdExactly(out_fd, buf, xfer)) { in adb_sideload_legacy() 942 if (!WriteFdExactly(device_fd, buf, to_write)) { in adb_sideload_install() 1127 WriteFdExactly(STDOUT_FILENO, buf, sizeof(buf) - bytes_left); in adb_root() 1377 if (!WriteFdExactly(sink, buf, rc)) { in adb_connect_command_bidirectional()
|
D | file_sync_client.cpp | 301 return WriteFdExactly(fd, &buf[0], buf.size()); in SendRequest() 591 if (!WriteFdExactly(fd, data, data_length)) { in WriteOrDie() 770 if (!WriteFdExactly(lfd, buffer, msg.data.size)) { in sync_recv()
|
D | auth.cpp | 324 return WriteFdExactly(STDOUT_FILENO, pubkey.data(), pubkey.size()) ? 0 : 1; in adb_auth_pubkey()
|