Searched refs:amessage (Results 1 – 9 of 9) sorted by relevance
/packages/modules/adb/ |
D | transport_fd.cpp | 108 if (!read_header_ && read_buffer_.size() >= sizeof(amessage)) { in Run() 109 auto header_buf = read_buffer_.take_front(sizeof(amessage)).coalesce(); in Run() 110 CHECK_EQ(sizeof(amessage), header_buf.size()); in Run() 111 read_header_ = std::make_unique<amessage>(); in Run() 112 memcpy(read_header_.get(), header_buf.data(), sizeof(amessage)); in Run() 225 std::unique_ptr<amessage> read_header_;
|
D | README.md | 62 …amessage constructs exist only to wrap data while it transits on a Transport. An asocket handles a… 86 … on an unique byte stream. Without entering too much into details, the amessage fields arg1 and a…
|
D | types.h | 123 struct amessage { struct 134 amessage msg; argument
|
D | adb_utils.h | 48 std::string dump_header(const amessage* msg);
|
D | adb_utils.cpp | 189 std::string dump_header(const amessage* msg) { in dump_header()
|
D | transport.cpp | 463 if (!DispatchRead(&packet->msg, sizeof(amessage))) { in Read()
|
/packages/modules/adb/client/ |
D | usb_libusb.cpp | 120 void HandlePacket(amessage& msg, std::optional<Block> payload) { in HandlePacket() 169 if (transfer->actual_length != sizeof(amessage)) { in header_read_cb() 179 amessage& amsg = self->incoming_header_.emplace(); in header_read_cb() 192 self->SubmitRead(read_block, sizeof(amessage)); in header_read_cb() 231 self->SubmitRead(&self->header_read_, sizeof(amessage)); in payload_read_cb() 549 SubmitRead(&header_read_, sizeof(amessage)); in StartImpl() 682 std::optional<amessage> incoming_header_ GUARDED_BY(read_mutex_);
|
D | transport_usb.cpp | 44 static int UsbReadMessage(usb_handle* h, amessage* msg) { in UsbReadMessage() 130 if (usb_read(usb, &p->msg, sizeof(amessage)) != sizeof(amessage)) { in remote_read()
|
/packages/modules/adb/daemon/ |
D | usb.cpp | 562 if (block->payload.size() != sizeof(amessage)) { in ProcessRead() 566 amessage& msg = incoming_header_.emplace(); in ProcessRead() 706 std::optional<amessage> incoming_header_;
|