Home
last modified time | relevance | path

Searched refs:packet_bytes (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Bluetooth/system/gd/packet/parser/test/
Dgenerated_packet_test.cc77 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/
Dhci_packets_test.cc96 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 …]
Dacl_builder_test.cc139 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()
Dhci_layer_fake.cc62 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/
Dserialize_packet.h28 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()
Dhci_hal_host_test.cc428 auto packet_bytes = hal::SerializePacket( in TEST() local
430 ASSERT_EQ(bytes, packet_bytes); in TEST()
/packages/modules/Bluetooth/tools/rootcanal/model/devices/
Dlink_layer_socket_device.cc98 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/
Dt4at.py43 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/
Dmain.rs70 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()
Dmain-grpc.rs71 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/
Dlink_layer_socket.py118 packet_bytes = header + payload
119 self.packets_.put(packet_bytes)
Dhci_socket.py272 packet_bytes = type_byte + header + payload
273 packet = HCI_Hdr(packet_bytes)
/packages/modules/Bluetooth/system/gd/packet/parser/
Dparent_def.h39 void AddTestCase(std::string packet_bytes);
Dparent_def.cc62 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/
Dbtif_core_test.cc120 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/
DGattTransportClientProviderTest.java771 byte[] packet_bytes = in testOutCharactersticNotifyAndRead_packetLengthOverflow()
786 notifyAndReadOutCharacteristic(packet_bytes); in testOutCharactersticNotifyAndRead_packetLengthOverflow()