Home
last modified time | relevance | path

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

/system/core/adb/daemon/
Dframebuffer_service.cpp88 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()
Dfile_sync_service.cpp301 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 …]
Dtransport_qemu.cpp101 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(borrowed_fd 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(borrowed_fd 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.cpp50 ASSERT_TRUE(ReadFdExactly(fds[1], buf, 4)); in TEST()
52 ASSERT_TRUE(ReadFdExactly(fds[0], buf, 4)); in TEST()
Dtransport.cpp445 return ReadFdExactly(fd_.get(), buf, len); in DispatchRead()
/system/core/adb/client/
Dadb_client.cpp122 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()
Dfile_sync_client.cpp472 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()
Dincremental_utils.cpp68 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()
Dcommandline.cpp837 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/
Dfdevent_test.cpp162 ASSERT_TRUE(ReadFdExactly(reader, &write_buffer[0], write_buffer.size())); in TEST_F()