/system/core/adb/ |
adb_io.h | 67 bool WriteFdExactly(int fd, const void* buf, size_t len); 70 bool WriteFdExactly(int fd, const char* s); 71 bool WriteFdExactly(int fd, const std::string& s);
|
adb_io.cpp | 61 return WriteFdExactly(fd, "OKAY", 4); 65 return WriteFdExactly(fd, "FAIL", 4) && SendProtocolString(fd, reason); 95 bool WriteFdExactly(int fd, const void* buf, size_t len) { 124 bool WriteFdExactly(int fd, const char* str) { 125 return WriteFdExactly(fd, str, strlen(str)); 128 bool WriteFdExactly(int fd, const std::string& str) { 129 return WriteFdExactly(fd, str.c_str(), str.size()); 140 return WriteFdExactly(fd, str);
|
fdevent_test.h | 54 ASSERT_TRUE(WriteFdExactly(dummy, "", 1));
|
file_sync_service.cpp | 94 return WriteFdExactly(s, &msg.stat, sizeof(msg.stat)); 117 if (!WriteFdExactly(s, &msg.dent, sizeof(msg.dent)) || 118 !WriteFdExactly(s, de->d_name, d_name_length)) { 130 return WriteFdExactly(s, &msg.dent, sizeof(msg.dent)); 142 return WriteFdExactly(fd, &msg.data, sizeof(msg.data)) && WriteFdExactly(fd, reason); 204 if (!WriteFdExactly(fd, &buffer[0], msg.data.size)) { 219 return WriteFdExactly(s, &msg.status, sizeof(msg.status)); 296 if (!WriteFdExactly(s, &msg.status, sizeof(msg.status))) return false; 370 if (!WriteFdExactly(s, &msg.data, sizeof(msg.data)) || !WriteFdExactly(s, &buffer[0], r)) [all...] |
remount_service.cpp | 111 WriteFdExactly(fd, "Not running as root. Try \"adb root\" first.\n"); 132 WriteFdExactly(fd, 149 WriteFdExactly(fd, success ? "remount succeeded\n" : "remount failed\n");
|
adb_io_test.cpp | 91 ASSERT_TRUE(WriteFdExactly(tf.fd, expected, sizeof(expected))) 106 ASSERT_TRUE(WriteFdExactly(tf.fd, buf, sizeof(buf) - 2)) << strerror(errno); 122 ASSERT_FALSE(WriteFdExactly(fd, buf, sizeof(buf))); 132 ASSERT_TRUE(WriteFdExactly(tf.fd, str)) << strerror(errno);
|
shell_service_protocol.cpp | 61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length);
|
shell_service.cpp | 342 WriteFdExactly(child_error_sfd.fd(), "exec '" _PATH_BSHELL "' failed: "); 343 WriteFdExactly(child_error_sfd.fd(), strerror(errno)); 423 WriteFdExactly(error_sfd->fd(), message); 432 WriteFdExactly(error_sfd->fd(), "tcgetattr failed: "); 433 WriteFdExactly(error_sfd->fd(), strerror(saved_errno)); 440 WriteFdExactly(error_sfd->fd(), "tcsetattr failed: "); 441 WriteFdExactly(error_sfd->fd(), strerror(saved_errno)); 698 if (WriteFdExactly(SHELL_EXIT_NOTIFY_FD, &fd, sizeof(fd))) { 726 WriteFdExactly(pipefd[1], &id, sizeof(id)); 727 WriteFdExactly(pipefd[1], &length, sizeof(length)) [all...] |
sysdeps_test.cpp | 75 ASSERT_TRUE(WriteFdExactly(fds[0], "foo", 4)); 76 ASSERT_TRUE(WriteFdExactly(fds[1], "bar", 4)); 137 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); 158 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); 173 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); 195 ASSERT_TRUE(WriteFdExactly(fds[1], "foo", 4)); 227 ASSERT_TRUE(WriteFdExactly(sockets[i * 2], &i, sizeof(i)));
|
framebuffer_service.cpp | 168 if(!WriteFdExactly(fd, &fbinfo, sizeof(fbinfo))) goto done; 176 if(!WriteFdExactly(fd, buf, bsize)) goto done;
|
services.cpp | 72 WriteFdExactly(fd, "adbd is already running as root\n"); 78 WriteFdExactly(fd, "adbd cannot run as root in production builds\n"); 84 WriteFdExactly(fd, "restarting adbd as root\n"); 91 WriteFdExactly(fd, "adbd not running as root\n"); 95 WriteFdExactly(fd, "restarting adbd as non root\n"); 117 WriteFdExactly(fd, "restarting in USB mode\n"); 134 WriteFdExactly(fd, "'adb root' is required for 'adb reboot sideload'.\n"); 188 WriteFdExactly(fd, "done");
|
console.cpp | 125 if (!WriteFdExactly(fd, commands)) {
|
transport_local.cpp | 85 if(!WriteFdExactly(t->sfd, &p->msg, sizeof(amessage) + length)) { 260 if (WriteFdExactly(fd, _accept_req, strlen(_accept_req))) { 271 if (!WriteFdExactly(fd, _start_req, strlen(_start_req))) {
|
fdevent_test.cpp | 130 ASSERT_TRUE(WriteFdExactly(writer, read_buffer.c_str(), read_buffer.size()));
|
socket_test.cpp | 93 ASSERT_TRUE(WriteFdExactly(first[0], &read_buffer[0], read_buffer.size()));
|
file_sync_client.cpp | 160 return WriteFdExactly(fd, &buf[0], buf.size()); 406 if (!WriteFdExactly(fd, data, data_length)) { 567 if (!WriteFdExactly(lfd, buffer, msg.data.size)) { [all...] |
commandline.cpp | 601 if (!WriteFdExactly(args->write_fd, buffer_ptr, r)) { [all...] |
/bootable/recovery/minadbd/ |
fuse_adb_provider.cpp | 47 WriteFdExactly(ad->sfd, "DONEDONE");
|
fuse_adb_provider_test.cpp | 44 ASSERT_TRUE(WriteFdExactly(host_socket, expected_data,
|