Home
last modified time | relevance | path

Searched refs:WriteFdExactly (Results 1 – 25 of 25) sorted by relevance

/system/core/adb/daemon/
Drestart_service.cpp33 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()
Dtransport_qemu.cpp98 if (WriteFdExactly(fd.get(), _accept_req, strlen(_accept_req))) { in qemu_socket_thread()
107 WriteFdExactly(fd.get(), _start_req, strlen(_start_req)); in qemu_socket_thread()
Dshell_service.cpp395 WriteFdExactly(child_error_sfd, "exec '" _PATH_BSHELL "' failed: "); in ForkAndExec()
396 WriteFdExactly(child_error_sfd, strerror(errno)); in ForkAndExec()
517 WriteFdExactly(*error_sfd, message); in OpenPtyChildFd()
526 WriteFdExactly(*error_sfd, "tcgetattr failed: "); in OpenPtyChildFd()
527 WriteFdExactly(*error_sfd, strerror(saved_errno)); in OpenPtyChildFd()
534 WriteFdExactly(*error_sfd, "tcsetattr failed: "); in OpenPtyChildFd()
535 WriteFdExactly(*error_sfd, strerror(saved_errno)); in OpenPtyChildFd()
809 WriteFdExactly(write.get(), &id, sizeof(id)); in ReportError()
810 WriteFdExactly(write.get(), &length, sizeof(length)); in ReportError()
813 WriteFdExactly(write.get(), buf.data(), buf.length()); in ReportError()
[all …]
Dshell_service_test.cpp283 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()
Dfile_sync_service.cpp151 return WriteFdExactly(s, &msg.stat_v1, sizeof(msg.stat_v1)); in do_lstat_v1()
182 return WriteFdExactly(s, &msg.stat_v2, sizeof(msg.stat_v2)); in do_stat_v2()
234 if (!WriteFdExactly(s, &msg, sizeof(msg)) || in do_list()
235 !WriteFdExactly(s, de->d_name, d_name_length)) { in do_list()
243 return WriteFdExactly(s, &msg, sizeof(msg)); in do_list()
263 return WriteFdExactly(fd, &msg.data, sizeof(msg.data)) && WriteFdExactly(fd, reason); in SendSyncFail()
325 if (!WriteFdExactly(fd, output.data(), output.size())) { in handle_send_file_data()
405 return WriteFdExactly(s, &msg.status, sizeof(msg.status)); in handle_send_file()
488 if (!WriteFdExactly(s, &msg.status, sizeof(msg.status))) return false; in handle_send_link()
691 if (!WriteFdExactly(s, &msg.data, sizeof(msg.data)) || in recv_impl()
[all …]
Dservices.cpp62 WriteFdExactly(fd.get(), "done"); in reconnect_service()
124 WriteFdExactly(fd.get(), "refusing to spin on non-debuggable build\n"); in spin_service()
131 WriteFdExactly(fd.get(), "failed to create pipe\n"); in spin_service()
141 WriteFdExactly(fd.get(), "spinning\n"); in spin_service()
Dframebuffer_service.cpp172 if (!WriteFdExactly(fd.get(), &fbinfo, sizeof(fbinfo))) goto done; in framebuffer_service()
180 if (!WriteFdExactly(fd.get(), buf, bsize)) goto done; in framebuffer_service()
Dabb.cpp37 return WriteFdExactly(fd_, txt, len) ? android::OK : -errno; in print()
/system/core/adb/
Dadb_io.cpp47 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(borrowed_fd fd, const void* buf, size_t len) { in WriteFdExactly() function
132 bool WriteFdExactly(borrowed_fd fd, const char* str) { in WriteFdExactly() function
133 return WriteFdExactly(fd, str, strlen(str)); in WriteFdExactly()
136 bool WriteFdExactly(borrowed_fd 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()
Dadb_io.h70 bool WriteFdExactly(borrowed_fd fd, const void* buf, size_t len);
73 bool WriteFdExactly(borrowed_fd fd, const char* s);
74 bool WriteFdExactly(borrowed_fd fd, const std::string& s);
Dsysdeps_test.cpp46 ASSERT_TRUE(WriteFdExactly(fds[0], "foo", 4)); in TEST()
47 ASSERT_TRUE(WriteFdExactly(fds[1], "bar", 4)); in TEST()
108 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F()
129 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F()
147 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F()
180 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); in TEST_F()
214 ASSERT_TRUE(WriteFdExactly(sockets[i * 2], &i, sizeof(i))); in TEST_F()
Dadb_io_test.cpp96 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()
Dshell_service_protocol.cpp61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length); in Write()
Dsocket_test.cpp92 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()
Dtransport.cpp457 return WriteFdExactly(fd_.get(), buf, len); in DispatchWrite()
Dadb.cpp1169 WriteFdExactly(reply_fd, &t->id, sizeof(t->id)); in handle_host_request()
/system/core/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils.cpp82 WriteFdExactly(output, kSignature, sizeof(kSignature) - 1); in WriteSignature()
87 WriteFdExactly(output, &littleEndian, sizeof(littleEndian)); in WriteLong()
92 WriteFdExactly(output, value); in WriteString()
106 WriteFdExactly(output, buffer, readAmount); in Pipe()
Dpatch_utils_test.cpp74 WriteFdExactly(input.fd, expected); in TEST()
/system/core/adb/fdevent/
Dfdevent_test.h93 ASSERT_TRUE(WriteFdExactly(dummy, "", 1)); in TerminateThread()
Dfdevent_test.cpp161 ASSERT_TRUE(WriteFdExactly(writer, read_buffer.c_str(), read_buffer.size())); in TEST_F()
/system/core/adb/client/
Dconsole.cpp125 if (!WriteFdExactly(fd, commands)) { in adb_send_emulator_command()
Dincremental_server.cpp288 (void)WriteFdExactly(output_fd_, buffer_.data(), bcur); in SkipToRequest()
304 (void)WriteFdExactly(output_fd_, buffer_.data(), buffer_.size()); in SkipToRequest()
332 WriteFdExactly(output_fd_, buffer_.data(), buffer_.size()); in SkipToRequest()
523 if (!WriteFdExactly(adb_fd_, pendingBlocksBuffer_.data(), totalBytes)) { in Flush()
Dfile_sync_client.cpp349 return WriteFdExactly(fd, buf.data(), buf.size()); in SendRequest()
401 return WriteFdExactly(fd, buf.data(), buf.size()); in SendSend2()
448 return WriteFdExactly(fd, buf.data(), buf.size()); in SendRecv2()
961 if (!WriteFdExactly(fd, data, data_length)) { in WriteOrDie()
1122 if (!WriteFdExactly(lfd, buffer, msg.data.size)) { in sync_recv_v1()
1222 if (!WriteFdExactly(lfd, output.data(), output.size())) { in sync_recv_v2()
Dcommandline.cpp569 if (!WriteFdExactly(args->write_fd, buffer_ptr, r)) { in stdin_read_thread_loop()
841 if (!WriteFdExactly(out_fd, buf, xfer)) { in adb_sideload_legacy()
964 if (!WriteFdExactly(device_fd, buf, to_write)) { in adb_sideload_install()
1459 if (!WriteFdExactly(sink, buf, rc)) { in adb_connect_command_bidirectional()
Dauth.cpp336 return WriteFdExactly(STDOUT_FILENO, pubkey.data(), pubkey.size()) ? 0 : 1; in adb_auth_pubkey()