/system/core/adb/daemon/ |
D | framebuffer_service.cpp | 88 if(!ReadFdExactly(fd_screencap, &w, 4)) goto done; in framebuffer_service() 89 if(!ReadFdExactly(fd_screencap, &h, 4)) goto done; in framebuffer_service() 90 if(!ReadFdExactly(fd_screencap, &f, 4)) goto done; in framebuffer_service() 91 if(!ReadFdExactly(fd_screencap, &c, 4)) goto done; in framebuffer_service() 179 if(!ReadFdExactly(fd_screencap, buf, bsize)) goto done; in framebuffer_service()
|
D | file_sync_service.cpp | 301 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_file_data() 308 if (!ReadFdExactly(s, block.data(), msg.data.size)) return false; in handle_send_file_data() 415 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) break; in handle_send_file() 433 if (!ReadFdExactly(s, &buffer[0], msg.data.size)) break; in handle_send_file() 449 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_link() 461 if (!ReadFdExactly(s, &buffer[0], len)) return false; in handle_send_link() 482 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_link() 568 int rc = ReadFdExactly(s, &msg.send_v2_setup, sizeof(msg.send_v2_setup)); in do_send_v2() 720 int rc = ReadFdExactly(s, &msg.recv_v2_setup, sizeof(msg.recv_v2_setup)); in do_recv_v2() 797 if (!ReadFdExactly(fd, &request, sizeof(request))) { in handle_sync_command() [all …]
|
D | transport_qemu.cpp | 101 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(borrowed_fd 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(borrowed_fd 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 | 50 ASSERT_TRUE(ReadFdExactly(fds[1], buf, 4)); in TEST() 52 ASSERT_TRUE(ReadFdExactly(fds[0], buf, 4)); in TEST()
|
D | transport.cpp | 445 return ReadFdExactly(fd_.get(), buf, len); in DispatchRead()
|
/system/core/adb/client/ |
D | adb_client.cpp | 122 if (!ReadFdExactly(fd, &result, sizeof(result))) { in switch_socket_transport() 134 if (!ReadFdExactly(fd, buf, 4)) { in adb_status() 209 if (!ReadFdExactly(fd.get(), buf, 4)) { in adb_kill_server()
|
D | file_sync_client.cpp | 472 if (!ReadFdExactly(fd.get(), &msg.stat_v2, sizeof(msg.stat_v2))) { in FinishStat() 498 if (!ReadFdExactly(fd.get(), &msg.stat_v1, sizeof(msg.stat_v1))) { in FinishStat() 534 if (!ReadFdExactly(fd, &dent, sizeof(dent))) return false; in FinishLsImpl() 545 if (!ReadFdExactly(fd, buf, len)) return false; in FinishLsImpl() 774 if (!ReadFdExactly(fd, &buf[0], msg.status.msglen)) { in ReportCopyFailure() 966 if (!ReadFdExactly(fd, &msg.status, sizeof(msg.status))) { in WriteOrDie() 1097 if (!ReadFdExactly(sc.fd, &msg.data, sizeof(msg.data))) { in sync_recv_v1() 1117 if (!ReadFdExactly(sc.fd, buffer, msg.data.size)) { in sync_recv_v1() 1182 if (!ReadFdExactly(sc.fd, &msg.data, sizeof(msg.data))) { in sync_recv_v2() 1204 if (!ReadFdExactly(sc.fd, block.data(), msg.data.size)) { in sync_recv_v2()
|
D | incremental_utils.cpp | 68 return ReadFdExactly(fd, &result, sizeof(result)) ? result : -1; in read_int32() 91 ReadFdExactly(fd, bytes->data() + old_size + sizeof(le_size), size); in append_bytes_with_size()
|
D | commandline.cpp | 837 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy() 923 if (!ReadFdExactly(device_fd, buf, 8)) { in adb_sideload_install() 959 if (!ReadFdExactly(package_fd, buf, to_write)) { in adb_sideload_install() 998 if (!ReadFdExactly(fd, message.data(), wipe_devices_message_size)) { in adb_wipe_devices()
|
/system/core/adb/fdevent/ |
D | fdevent_test.cpp | 162 ASSERT_TRUE(ReadFdExactly(reader, &write_buffer[0], write_buffer.size())); in TEST_F()
|