Home
last modified time | relevance | path

Searched refs:ReadFdExactly (Results 1 – 15 of 15) sorted by relevance

/system/core/adb/daemon/
Dframebuffer_service.cpp89 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()
Dfile_sync_service.cpp274 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()
Dtransport_qemu.cpp94 if (!ReadFdExactly(fd.get(), tmp, 2) || memcmp(tmp, _ok_resp, 2)) { in qemu_socket_thread()
Dshell_service_test.cpp280 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
300 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
/system/core/adb/
Dshell_service_protocol.cpp35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { in Read()
46 if (read_length && !ReadFdExactly(fd_, data(), read_length)) { in Read()
Dadb_io.cpp52 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
Dadb_io_test.cpp55 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()
Dadb_io.h45 bool ReadFdExactly(int fd, void* buf, size_t len);
Dsocket_test.cpp93 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()
Dsysdeps_test.cpp35 ASSERT_TRUE(ReadFdExactly(fds[1], buf, 4)); in TEST()
37 ASSERT_TRUE(ReadFdExactly(fds[0], buf, 4)); in TEST()
Dfdevent_test.cpp162 ASSERT_TRUE(ReadFdExactly(reader, &write_buffer[0], write_buffer.size())); in TEST_F()
Dtransport.cpp390 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/
Dadb_client.cpp121 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()
Dfile_sync_client.cpp325 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()
Dcommandline.cpp815 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()