Home
last modified time | relevance | path

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

/system/core/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()
221 std::unique_ptr<amessage> read_header_;
Dtransport_usb.cpp40 static int UsbReadMessage(usb_handle* h, amessage* msg) { in UsbReadMessage()
126 if (usb_read(usb, &p->msg, sizeof(amessage)) != sizeof(amessage)) { in remote_read()
Dtypes.h125 struct amessage { struct
136 amessage msg; argument
Dadb_utils.h46 std::string dump_header(const amessage* msg);
Dadb_utils.cpp189 std::string dump_header(const amessage* msg) { in dump_header()
Dtransport.cpp390 if (!ReadFdExactly(fd_.get(), &packet->msg, sizeof(amessage))) { in Read()
/system/core/adb/daemon/
Dusb.cpp546 CHECK_EQ(sizeof(amessage), block->payload->size()); in ProcessRead()
547 amessage msg; in ProcessRead()
548 memcpy(&msg, block->payload->data(), sizeof(amessage)); in ProcessRead()
689 std::optional<amessage> incoming_header_;