Home
last modified time | relevance | path

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

/packages/modules/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.cpp309 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_file_data()
316 if (!ReadFdExactly(s, block.data(), msg.data.size)) return false; in handle_send_file_data()
431 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) break; in handle_send_file()
449 if (!ReadFdExactly(s, &buffer[0], msg.data.size)) break; in handle_send_file()
465 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_link()
477 if (!ReadFdExactly(s, &buffer[0], len)) return false; in handle_send_link()
498 if (!ReadFdExactly(s, &msg.data, sizeof(msg.data))) return false; in handle_send_link()
584 int rc = ReadFdExactly(s, &msg.send_v2_setup, sizeof(msg.send_v2_setup)); in do_send_v2()
733 int rc = ReadFdExactly(s, &msg.recv_v2_setup, sizeof(msg.recv_v2_setup)); in do_recv_v2()
807 if (!ReadFdExactly(fd, &request, sizeof(request))) { in handle_sync_command()
[all …]
Dshell_service_test.cpp208 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
228 EXPECT_TRUE(ReadFdExactly(in, input, 2)); in TEST_F()
/packages/modules/adb/
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
Dshell_service_protocol.cpp35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { in Read()
46 if (read_length && !ReadFdExactly(fd_, data(), read_length)) { in Read()
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()
Dsocket_test.cpp94 ASSERT_TRUE(ReadFdExactly(last[1], &write_buffer[0], write_buffer.size())); in TEST_F()
200 ASSERT_EQ(true, ReadFdExactly(socket_fd[0], buf.data(), buf.size())); // TODO: b/237341044 in TEST_F()
262 EXPECT_TRUE(ReadFdExactly(tail_fd[0], buf, 6)); in TEST_F()
Dadb_io.h45 bool ReadFdExactly(borrowed_fd fd, void* buf, size_t len);
Dsysdeps_test.cpp50 ASSERT_TRUE(ReadFdExactly(fds[1], buf, 4)); in TEST()
52 ASSERT_TRUE(ReadFdExactly(fds[0], buf, 4)); in TEST()
Dtransport.cpp457 return ReadFdExactly(fd_.get(), buf, len); in DispatchRead()
/packages/modules/adb/client/
Dadb_client.cpp127 if (!ReadFdExactly(fd, &result, sizeof(result))) { in switch_socket_transport()
139 if (!ReadFdExactly(fd, buf, 4)) { in adb_status()
214 if (!ReadFdExactly(fd.get(), buf, 4)) { in adb_kill_server()
Dfile_sync_client.cpp476 if (!ReadFdExactly(fd.get(), &msg.stat_v2, sizeof(msg.stat_v2))) { in FinishStat()
502 if (!ReadFdExactly(fd.get(), &msg.stat_v1, sizeof(msg.stat_v1))) { in FinishStat()
538 if (!ReadFdExactly(fd, &dent, sizeof(dent))) return false; in FinishLsImpl()
549 if (!ReadFdExactly(fd, buf, len)) return false; in FinishLsImpl()
788 if (!ReadFdExactly(fd, &buf[0], msg.status.msglen)) { in ReportCopyFailure()
985 if (!ReadFdExactly(fd, &msg.status, sizeof(msg.status))) { in WriteOrDie()
1116 if (!ReadFdExactly(sc.fd, &msg.data, sizeof(msg.data))) { in sync_recv_v1()
1136 if (!ReadFdExactly(sc.fd, buffer, msg.data.size)) { in sync_recv_v1()
1201 if (!ReadFdExactly(sc.fd, &msg.data, sizeof(msg.data))) { in sync_recv_v2()
1223 if (!ReadFdExactly(sc.fd, block.data(), msg.data.size)) { in sync_recv_v2()
Dincremental_utils.cpp69 return ReadFdExactly(fd, &result, sizeof(result)) ? result : -1; in read_int32()
100 ReadFdExactly(fd, bytes->data() + old_size + sizeof(le_size), size); in append_bytes_with_size()
Dcommandline.cpp842 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy()
928 if (!ReadFdExactly(device_fd, buf, 8)) { in adb_sideload_install()
964 if (!ReadFdExactly(package_fd, buf, to_write)) { in adb_sideload_install()
1003 if (!ReadFdExactly(fd, message.data(), wipe_devices_message_size)) { in adb_wipe_devices()
/packages/modules/adb/fdevent/
Dfdevent_test.cpp174 ASSERT_TRUE(ReadFdExactly(reader, &write_buffer[0], write_buffer.size())); in TEST_F()