Home
last modified time | relevance | path

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

/system/bt/gd/packet/parser/test/
Dgenerated_packet_test.cc73 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local
74 BitInserter it(*packet_bytes); in TEST()
77 ASSERT_EQ(packet_bytes->size(), child_two_two_three.size()); in TEST()
79 ASSERT_EQ(packet_bytes->at(i), child_two_two_three[i]); in TEST()
82 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
105 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local
106 BitInserter it(*packet_bytes); in TEST()
109 ASSERT_EQ(packet_bytes->size(), child.size()); in TEST()
111 ASSERT_EQ(packet_bytes->at(i), child[i]); in TEST()
114 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
[all …]
/system/bt/gd/hal/
Dserialize_packet.h27 std::vector<uint8_t> packet_bytes; in SerializePacket() local
28 packet_bytes.reserve(packet->size()); in SerializePacket()
29 packet::BitInserter it(packet_bytes); in SerializePacket()
31 return packet_bytes; in SerializePacket()
Dhci_hal_host_rootcanal_test.cc394 …auto packet_bytes = hal::SerializePacket(std::unique_ptr<packet::BasePacketBuilder>(new packet::Ra… in TEST() local
395 ASSERT_EQ(bytes, packet_bytes); in TEST()
/system/bt/gd/hci/
Dhci_packets_test.cc252 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local
253 BitInserter it(*packet_bytes); in TEST()
256 EXPECT_EQ(packet_bytes->size(), view_bytes->size()); in TEST()
258 ASSERT_EQ(packet_bytes->at(i), view_bytes->at(i)); in TEST()
428 std::shared_ptr<std::vector<uint8_t>> packet_bytes = in TEST() local
430 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
441 std::shared_ptr<std::vector<uint8_t>> packet_bytes = in TEST() local
443 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
464 std::shared_ptr<std::vector<uint8_t>> packet_bytes = in TEST() local
466 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
[all …]
Dacl_builder_test.cc138 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST() local
139 BitInserter it(*packet_bytes); in TEST()
141 PacketView<true> packet_bytes_view(packet_bytes); in TEST()
145 ASSERT_EQ(packet_bytes->size(), information_request.size()); in TEST()
146 for (size_t i = 0; i < packet_bytes->size(); i++) { in TEST()
147 ASSERT_EQ((*packet_bytes)[i], information_request[i]); in TEST()
/system/bt/gd/hci/cert/
Dle_acl_manager_test.py139 packet_bytes = packet.event
142 if b'\x3e\x13\x01\x00' in packet_bytes:
145 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
149 if b'\x3e\x13\x0A\x00' in packet_bytes:
152 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
258 packet_bytes = packet.event
260 if b'\x3e\x13\x01\x00' in packet_bytes:
263 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
266 if b'\x3e\x13\x0A\x00' in packet_bytes:
269 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
/system/bt/gd/security/
Dpairing_handler_le.cc207 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in ExchangePairingFeature() local
208 BitInserter it(*packet_bytes); in ExchangePairingFeature()
210 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in ExchangePairingFeature()
277 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in ExchangePairingFeature() local
278 BitInserter it(*packet_bytes); in ExchangePairingFeature()
280 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in ExchangePairingFeature()
Dpairing_handler_le_unittest.cc42 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in BuilderToView() local
43 BitInserter it(*packet_bytes); in BuilderToView()
45 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in BuilderToView()
/system/bt/vendor_libs/test_vendor_lib/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)
/system/bt/gd/cert/
Dpy_acl_manager.py38 packet_bytes = bytes(hci_packets.DisconnectBuilder(self.handle, reason).Serialize())
39 … self.acl_manager.ConnectionCommand(acl_manager_facade.ConnectionCommandMsg(packet=packet_bytes))
Dmatchers.py35 def _is_matching_command_complete(packet_bytes, opcode=None, num_complete=1): argument
36 … hci_event = HciMatchers.extract_hci_event_with_code(packet_bytes, EventCode.COMMAND_COMPLETE)
48 def extract_hci_event_with_code(packet_bytes, event_code=None): argument
49 … hci_event = hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc56 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in CommandBuilderToView() local
57 BitInserter it(*packet_bytes); in CommandBuilderToView()
59 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in CommandBuilderToView()
65 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in EventBuilderToView() local
66 BitInserter it(*packet_bytes); in EventBuilderToView()
68 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in EventBuilderToView()
/system/bt/gd/hal/cert/
Dsimple_hal_test.py240 packet_bytes = packet.payload
241 if b'\x3e\x13\x01\x00' in packet_bytes:
245 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
/system/bt/gd/l2cap/le/cert/
Dcert_le_l2cap.py193 packet_bytes = l2cap_packet.payload
194 … l2cap_view = l2cap_packets.BasicFrameView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))
/system/bt/gd/l2cap/classic/cert/
Dcert_l2cap.py373 packet_bytes = l2cap_packet.payload
374 … l2cap_view = l2cap_packets.BasicFrameView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))