Home
last modified time | relevance | path

Searched refs:kHeaderSize (Results 1 – 6 of 6) sorted by relevance

/system/core/trusty/confirmationui/
DTrustyApp.cpp54 static constexpr const uint32_t kHeaderSize = sizeof(PacketHeader); variable
55 static constexpr const uint32_t kPayloadSize = kPacketSize - kHeaderSize;
68 .iov_len = kHeaderSize, in TrustyRpc()
83 rc = read(handle, &header, kHeaderSize); in TrustyRpc()
106 .iov_len = kHeaderSize, in TrustyRpc()
127 if (body_size != rc - kHeaderSize) { in TrustyRpc()
/system/core/adb/
Dshell_protocol.h68 const char* data() const { return buffer_ + kHeaderSize; } in data()
69 char* data() { return buffer_ + kHeaderSize; } in data()
104 kHeaderSize = sizeof(Id) + sizeof(length_t) enumerator
Dshell_service_protocol.cpp35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { in Read()
61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length); in Write()
/system/core/fastboot/
Dudp.cpp50 constexpr size_t kHeaderSize = 4; variable
79 uint8_t bytes_[kHeaderSize];
136 size_t max_data_length_ = kMinPacketSize - kHeaderSize;
199 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol()
261 if (!socket_->Send({{header->bytes(), kHeaderSize}, {tx_data, tx_length}})) { in SendSinglePacketHelper()
276 } else if (bytes < static_cast<ssize_t>(kHeaderSize)) { in SendSinglePacketHelper()
290 error->append(rx_packet_.data() + kHeaderSize, rx_packet_.data() + bytes); in SendSinglePacketHelper()
292 total_data_bytes += bytes - kHeaderSize; in SendSinglePacketHelper()
293 size_t rx_data_bytes = std::min<size_t>(bytes - kHeaderSize, rx_length); in SendSinglePacketHelper()
295 memcpy(rx_data, rx_packet_.data() + kHeaderSize, rx_data_bytes); in SendSinglePacketHelper()
/system/bt/include/hardware/avrcp/
Davrcp_common.h160 static constexpr size_t kHeaderSize() { in kHeaderSize() function
168 size_t size() const { return kHeaderSize() + value_.size(); } in size()
171 new_size = new_size < kHeaderSize() ? 0 : new_size - kHeaderSize(); in resize()
204 static constexpr size_t kHeaderSize() { in kHeaderSize() function
218 size_t size() const { return kHeaderSize() + name_.size(); } in size()
240 static constexpr size_t kHeaderSize() { in kHeaderSize() function
252 size_t size() const { return kHeaderSize() + name_.size(); } in size()
/system/bt/profile/avrcp/tests/
Davrcp_device_test.cc818 truncated_packet->size() + FolderItem::kHeaderSize() + 5); in TEST_F()