Home
last modified time | relevance | path

Searched refs:amessage (Results 1 – 9 of 9) sorted by relevance

/packages/modules/adb/
Dtransport_fd.cpp108 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_;
DREADME.md62amessage 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…
Dtypes.h123 struct amessage { struct
134 amessage msg; argument
Dadb_utils.h48 std::string dump_header(const amessage* msg);
Dadb_utils.cpp189 std::string dump_header(const amessage* msg) { in dump_header()
Dtransport.cpp463 if (!DispatchRead(&packet->msg, sizeof(amessage))) { in Read()
/packages/modules/adb/client/
Dusb_libusb.cpp120 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_);
Dtransport_usb.cpp44 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/
Dusb.cpp562 if (block->payload.size() != sizeof(amessage)) { in ProcessRead()
566 amessage& msg = incoming_header_.emplace(); in ProcessRead()
706 std::optional<amessage> incoming_header_;