Home
last modified time | relevance | path

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

/aosp12/system/bt/gd/packet/parser/test/
H A Dgenerated_packet_test.cc74 BitInserter it(*packet_bytes); in TEST()
106 BitInserter it(*packet_bytes); in TEST()
178 BitInserter it(*packet_bytes); in TEST()
199 BitInserter it(*packet_bytes); in TEST()
238 BitInserter it(*packet_bytes); in TEST()
264 BitInserter it(*packet_bytes); in TEST()
300 BitInserter it(*packet_bytes); in TEST()
314 packet_bytes->back()++; in TEST()
347 BitInserter it(*packet_bytes); in TEST()
382 BitInserter it(*packet_bytes); in TEST()
[all …]
/aosp12/system/bt/gd/hci/
H A Dhci_packets_test.cc90 BitInserter it(*packet_bytes); in TEST()
93 EXPECT_EQ(packet_bytes->size(), view_bytes->size()); in TEST()
95 ASSERT_EQ(packet_bytes->at(i), view_bytes->at(i)); in TEST()
378 packet_bytes->reserve(builder->size()); in TEST()
379 BitInserter bit_inserter(*packet_bytes); in TEST()
396 packet_bytes->reserve(builder->size()); in TEST()
397 BitInserter bit_inserter(*packet_bytes); in TEST()
414 packet_bytes->reserve(builder->size()); in TEST()
415 BitInserter bit_inserter(*packet_bytes); in TEST()
435 packet_bytes->reserve(builder->size()); in TEST()
[all …]
H A 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()
/aosp12/system/bt/gd/cert/
H A Dmatchers.py38 def ExtractMatchingCommandComplete(packet_bytes, opcode=None): argument
42 def _is_matching_command_complete(packet_bytes, opcode=None): argument
64 def ExtractMatchingCommandStatus(packet_bytes, opcode=None): argument
68 def _is_matching_command_status(packet_bytes, opcode=None): argument
90 def ExtractEventWithCode(packet_bytes, event_code): argument
94 def _is_matching_event(packet_bytes, event_code): argument
98 def _extract_matching_event(packet_bytes, event_code): argument
111 def ExtractLeEventWithCode(packet_bytes, subevent_code): argument
115 def _extract_matching_le_event(packet_bytes, subevent_code): argument
129 def ExtractLeConnectionComplete(packet_bytes): argument
[all …]
H A 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))
/aosp12/system/bt/gd/hal/
H A 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()
H A Dhci_hal_host_test.cc418 …auto packet_bytes = hal::SerializePacket(std::unique_ptr<packet::BasePacketBuilder>(new packet::Ra… in TEST() local
419 ASSERT_EQ(bytes, packet_bytes); in TEST()
/aosp12/system/bt/gd/hci/cert/
H A Dle_acl_manager_test.py135 packet_bytes = packet.payload
138 if b'\x3e\x13\x01\x00' in packet_bytes:
141 … hci_packets.EventView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
145 if b'\x3e\x13\x0A\x00' in packet_bytes:
148 … hci_packets.EventView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
254 packet_bytes = packet.payload
256 if b'\x3e\x13\x01\x00' in packet_bytes:
259 … hci_packets.EventView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
262 if b'\x3e\x13\x0A\x00' in packet_bytes:
265 … hci_packets.EventView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))))
/aosp12/system/bt/gd/security/
H A Dpairing_handler_le.cc230 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in ExchangePairingFeature() local
231 BitInserter it(*packet_bytes); in ExchangePairingFeature()
233 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in ExchangePairingFeature()
307 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in ExchangePairingFeature() local
308 BitInserter it(*packet_bytes); in ExchangePairingFeature()
310 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in ExchangePairingFeature()
H A 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()
/aosp12/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dlink_layer_socket.py118 packet_bytes = header + payload
119 self.packets_.put(packet_bytes)
H A Dhci_socket.py272 packet_bytes = type_byte + header + payload
273 packet = HCI_Hdr(packet_bytes)
/aosp12/system/bt/gd/security/test/
H A 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()
/aosp12/system/bt/gd/l2cap/le/cert/
H A Dcert_le_l2cap.py193 packet_bytes = l2cap_packet.payload
194 … l2cap_view = l2cap_packets.BasicFrameView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))
/aosp12/system/bt/gd/packet/parser/
H A Dparent_def.h37 void AddTestCase(std::string packet_bytes);
H A Dparent_def.cc58 void ParentDef::AddTestCase(std::string packet_bytes) { in AddTestCase() argument
59 test_cases_.insert(std::move(packet_bytes)); in AddTestCase()
/aosp12/system/bt/gd/l2cap/classic/cert/
H A Dcert_l2cap.py377 packet_bytes = l2cap_packet.payload
378 … l2cap_view = l2cap_packets.BasicFrameView(bt_packets.PacketViewLittleEndian(list(packet_bytes)))