| /packages/modules/Bluetooth/system/gd/packet/parser/test/ |
| D | generated_packet_test.cc | 77 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local 78 BitInserter it(*packet_bytes); in TEST() 81 ASSERT_EQ(packet_bytes->size(), child_two_two_three.size()); in TEST() 83 ASSERT_EQ(packet_bytes->at(i), child_two_two_three[i]); in TEST() 86 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() 109 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local 110 BitInserter it(*packet_bytes); in TEST() 113 ASSERT_EQ(packet_bytes->size(), child.size()); in TEST() 115 ASSERT_EQ(packet_bytes->at(i), child[i]); in TEST() 118 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() [all …]
|
| /packages/modules/Bluetooth/system/gd/hci/ |
| D | hci_packets_test.cc | 96 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local 97 BitInserter it(*packet_bytes); in TEST() 100 EXPECT_EQ(packet_bytes->size(), view_bytes->size()); in TEST() 102 ASSERT_EQ(packet_bytes->at(i), view_bytes->at(i)); in TEST() 253 std::shared_ptr<std::vector<uint8_t>> packet_bytes = in TEST() local 255 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() 266 std::shared_ptr<std::vector<uint8_t>> packet_bytes = in TEST() local 268 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() 282 std::shared_ptr<std::vector<uint8_t>> packet_bytes = in TEST() local 284 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() [all …]
|
| D | acl_builder_test.cc | 139 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local 140 BitInserter it(*packet_bytes); in TEST() 142 PacketView<true> packet_bytes_view(packet_bytes); in TEST() 146 ASSERT_EQ(packet_bytes->size(), information_request.size()); in TEST() 147 for (size_t i = 0; i < packet_bytes->size(); i++) { in TEST() 148 ASSERT_EQ((*packet_bytes)[i], information_request[i]); in TEST()
|
| D | hci_layer_fake.cc | 62 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in DebugPrintCommandOpcode() local 63 BitInserter it(*packet_bytes); in DebugPrintCommandOpcode() 65 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in DebugPrintCommandOpcode()
|
| /packages/modules/Bluetooth/system/gd/hal/ |
| D | serialize_packet.h | 28 std::vector<uint8_t> packet_bytes; in SerializePacket() local 29 packet_bytes.reserve(packet->size()); in SerializePacket() 30 packet::BitInserter it(packet_bytes); in SerializePacket() 32 return packet_bytes; in SerializePacket()
|
| D | hci_hal_host_test.cc | 428 auto packet_bytes = hal::SerializePacket( in TEST() local 430 ASSERT_EQ(bytes, packet_bytes); in TEST()
|
| /packages/modules/Bluetooth/tools/rootcanal/model/devices/ |
| D | link_layer_socket_device.cc | 98 std::vector<uint8_t> packet_bytes = packet.bytes().bytes(); in ReceiveLinkLayerPacket() local 100 pdl::packet::Builder::write_le<uint32_t>(size_bytes, packet_bytes.size()); in ReceiveLinkLayerPacket() 103 socket_->Send(packet_bytes.data(), packet_bytes.size()); in ReceiveLinkLayerPacket()
|
| /packages/modules/Nfc/libnfc-nci/tools/casimir/scripts/ |
| D | t4at.py | 43 packet_bytes = await self.reader.read(packet_length) 45 packet = rf.RfPacket.parse_all(packet_bytes) 50 packet_bytes = packet.serialize() 51 header_bytes = int.to_bytes(len(packet_bytes), length=2, byteorder='little') 52 self.writer.write(header_bytes + packet_bytes)
|
| /packages/modules/Nfc/libnfc-nci/tools/casimir/src/ |
| D | main.rs | 70 let mut packet_bytes = vec![0; packet_length]; in read() localVariable 71 self.socket.read_exact(&mut packet_bytes).await?; in read() 73 Ok(packet_bytes) in read() 159 let mut packet_bytes = rf_reader.read().await?; in rf() localVariable 160 packet_bytes[0..2].copy_from_slice(&id.to_le_bytes()); in rf() 163 let packet = rf::RfPacket::parse(&packet_bytes)?; in rf()
|
| D | main-grpc.rs | 71 let mut packet_bytes = vec![0; packet_length]; in read() localVariable 72 self.socket.read_exact(&mut packet_bytes).await?; in read() 74 Ok(packet_bytes) in read() 173 let mut packet_bytes = rf_reader.read().await?; in rf() localVariable 174 packet_bytes[0..2].copy_from_slice(&id.to_le_bytes()); in rf() 177 let packet = rf::RfPacket::parse(&packet_bytes)?; in rf()
|
| /packages/modules/Bluetooth/tools/rootcanal/scripts/ |
| D | link_layer_socket.py | 118 packet_bytes = header + payload 119 self.packets_.put(packet_bytes)
|
| D | hci_socket.py | 272 packet_bytes = type_byte + header + payload 273 packet = HCI_Hdr(packet_bytes)
|
| /packages/modules/Bluetooth/system/gd/packet/parser/ |
| D | parent_def.h | 39 void AddTestCase(std::string packet_bytes);
|
| D | parent_def.cc | 62 void ParentDef::AddTestCase(std::string packet_bytes) { in AddTestCase() argument 63 test_cases_.insert(std::move(packet_bytes)); in AddTestCase()
|
| /packages/modules/Bluetooth/system/btif/test/ |
| D | btif_core_test.cc | 120 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in BuilderToView() local 121 BitInserter it(*packet_bytes); in BuilderToView() 123 return PacketView<kLittleEndian>(packet_bytes); in BuilderToView()
|
| /packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/ |
| D | GattTransportClientProviderTest.java | 771 byte[] packet_bytes = in testOutCharactersticNotifyAndRead_packetLengthOverflow() 786 notifyAndReadOutCharacteristic(packet_bytes); in testOutCharactersticNotifyAndRead_packetLengthOverflow()
|