/system/core/adb/daemon/ |
D | framebuffer_service.cpp | 89 if(!ReadFdExactly(fd_screencap, &w, 4)) goto done; in framebuffer_service() 90 if(!ReadFdExactly(fd_screencap, &h, 4)) goto done; in framebuffer_service() 91 if(!ReadFdExactly(fd_screencap, &f, 4)) goto done; in framebuffer_service() 92 if(!ReadFdExactly(fd_screencap, &c, 4)) goto done; in framebuffer_service() 180 if(!ReadFdExactly(fd_screencap, buf, bsize)) goto done; in framebuffer_service()
|
D | file_sync_service.cpp | 274 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) goto fail; in handle_send_file() 290 if (!ReadFdExactly(s, &buffer[0], msg.data.size)) goto abort; in handle_send_file() 315 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) break; in handle_send_file() 333 if (!ReadFdExactly(s, &buffer[0], msg.data.size)) break; in handle_send_file() 350 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_link() 362 if (!ReadFdExactly(s, &buffer[0], len)) return false; in handle_send_link() 381 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_link() 517 if (!ReadFdExactly(fd, &request, sizeof(request))) { in handle_sync_command() 527 if (!ReadFdExactly(fd, name, path_length)) { in handle_sync_command()
|
D | transport_qemu.cpp | 94 if (!ReadFdExactly(fd.get(), tmp, 2) || memcmp(tmp, _ok_resp, 2)) { in qemu_socket_thread()
|
D | shell_service_test.cpp | 280 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F() 300 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
|
/system/core/adb/ |
D | shell_service_protocol.cpp | 35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { in Read() 46 if (read_length && !ReadFdExactly(fd_, data(), read_length)) { in Read()
|
D | adb_io.cpp | 52 if (!ReadFdExactly(fd, buf, 4)) { in ReadProtocolString() 60 if (!ReadFdExactly(fd, &(*s)[0], len)) { in ReadProtocolString() 76 bool ReadFdExactly(int fd, void* buf, size_t len) { in ReadFdExactly() function
|
D | adb_io_test.cpp | 55 ASSERT_TRUE(ReadFdExactly(tf.fd, buf, sizeof(buf) - 1)) << strerror(errno); in POSIX_TEST() 69 ASSERT_FALSE(ReadFdExactly(tf.fd, buf, sizeof(buf))); in POSIX_TEST() 83 ASSERT_TRUE(ReadFdExactly(tf.fd, buf, sizeof(buf) - 1)); in POSIX_TEST()
|
D | adb_io.h | 45 bool ReadFdExactly(int fd, void* buf, size_t len);
|
D | socket_test.cpp | 93 ASSERT_TRUE(ReadFdExactly(last[1], &write_buffer[0], write_buffer.size())); in TEST_F() 196 ASSERT_EQ(true, ReadFdExactly(socket_fd[0], buf.data(), buf.size())); in TEST_F() 257 EXPECT_TRUE(ReadFdExactly(tail_fd[0], buf, 6)); in TEST_F()
|
D | sysdeps_test.cpp | 35 ASSERT_TRUE(ReadFdExactly(fds[1], buf, 4)); in TEST() 37 ASSERT_TRUE(ReadFdExactly(fds[0], buf, 4)); in TEST()
|
D | fdevent_test.cpp | 162 ASSERT_TRUE(ReadFdExactly(reader, &write_buffer[0], write_buffer.size())); in TEST_F()
|
D | transport.cpp | 390 if (!ReadFdExactly(fd_.get(), &packet->msg, sizeof(amessage))) { in Read() 402 if (!ReadFdExactly(fd_.get(), &packet->payload[0], packet->payload.size())) { in Read()
|
/system/core/adb/client/ |
D | adb_client.cpp | 121 if (!ReadFdExactly(fd, &result, sizeof(result))) { in switch_socket_transport() 133 if (!ReadFdExactly(fd, buf, 4)) { in adb_status() 208 ReadFdExactly(fd.get(), buf, 4); in adb_kill_server()
|
D | file_sync_client.cpp | 325 if (!ReadFdExactly(fd.get(), &msg.stat_v2, sizeof(msg.stat_v2))) { in FinishStat() 351 if (!ReadFdExactly(fd.get(), &msg.stat_v1, sizeof(msg.stat_v1))) { in FinishStat() 480 if (!ReadFdExactly(fd, &msg.status, sizeof(msg.status))) { in CopyDone() 503 if (!ReadFdExactly(fd, &buf[0], msg.status.msglen)) { in ReportCopyFailure() 596 if (!ReadFdExactly(fd, &msg.status, sizeof(msg.status))) { in WriteOrDie() 620 if (!ReadFdExactly(sc.fd, &msg.dent, sizeof(msg.dent))) return false; in sync_ls() 629 if (!ReadFdExactly(sc.fd, buf, len)) return false; in sync_ls() 745 if (!ReadFdExactly(sc.fd, &msg.data, sizeof(msg.data))) { in sync_recv() 765 if (!ReadFdExactly(sc.fd, buffer, msg.data.size)) { in sync_recv()
|
D | commandline.cpp | 815 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy() 901 if (!ReadFdExactly(device_fd, buf, 8)) { in adb_sideload_install() 937 if (!ReadFdExactly(package_fd, buf, to_write)) { in adb_sideload_install() 976 if (!ReadFdExactly(fd, message.data(), wipe_devices_message_size)) { in adb_wipe_devices()
|