Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/packet/tests/avrcp/
Dget_item_attributes_packet_test.cc156 mtu = test_data[0].size() + Builder::kHeaderSize(); in TEST()
159 mtu = test_data[0].size() + test_data[1].size() + Builder::kHeaderSize(); in TEST()
162 mtu = test_data[0].size() + (Builder::kHeaderSize() * 2) + 1; in TEST()
165 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST()
168 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize(); in TEST()
Dget_element_attributes_packet_test.cc131 mtu = test_data[0].size() + Builder::kHeaderSize(); in TEST()
134 mtu = test_data[0].size() + test_data[1].size() + Builder::kHeaderSize(); in TEST()
137 mtu = test_data[0].size() + (Builder::kHeaderSize() * 2) + 1; in TEST()
140 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST()
143 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize(); in TEST()
/packages/modules/Bluetooth/system/include/hardware/avrcp/
Davrcp_common.h183 static constexpr size_t kHeaderSize() { in kHeaderSize() function
191 size_t size() const { return kHeaderSize() + value_.size(); } in size()
194 new_size = new_size < kHeaderSize() ? 0 : new_size - kHeaderSize(); in resize()
227 static constexpr size_t kHeaderSize() { in kHeaderSize() function
241 size_t size() const { return kHeaderSize() + name_.size(); } in size()
263 static constexpr size_t kHeaderSize() { in kHeaderSize() function
275 size_t size() const { return kHeaderSize() + name_.size(); } in size()
/packages/modules/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()
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_element_attributes_packet.h77 static constexpr size_t kHeaderSize() { return VendorPacket::kMinSize() + 1; } in kHeaderSize() function
Dget_item_attributes.h41 static constexpr size_t kHeaderSize() { in kHeaderSize() function
Dget_element_attributes_packet.cc124 return kHeaderSize() + attr_list_size; in size()
Dget_item_attributes.cc54 size_t len = kHeaderSize(); in size()
/packages/modules/Bluetooth/system/packet/tests/
Dpacket_test_helper.h143 size_t expected_size() { return Builder::kHeaderSize() + _current_size; } in expected_size()
/packages/modules/Bluetooth/system/profile/avrcp/tests/
Davrcp_device_test.cc1038 truncated_packet->size() + FolderItem::kHeaderSize() + 5); in TEST_F()