/packages/modules/Bluetooth/system/tools/scripts/ |
D | dump_le_audio.py | 261 def parse_codec_information(connection_handle, ase_id, packet): argument 262 length, packet = unpack_data(packet, 1, False) 263 if len(packet) < length: 265 return packet 268 config_length, packet = unpack_data(packet, 1, False) 269 config_type, packet = unpack_data(packet, 1, False) 270 value, packet = unpack_data(packet, config_length - 1, False) 281 return packet 284 def parse_att_read_by_type_rsp(packet, connection_handle): argument 285 length, packet = unpack_data(packet, 1, False) [all …]
|
/packages/modules/Bluetooth/system/hci/src/ |
D | packet_fragmenter.cc | 103 static void fragment_and_dispatch_acl(BT_HDR* packet); 104 static void fragment_and_dispatch_iso(BT_HDR* packet); 106 static void fragment_and_dispatch(BT_HDR* packet) { in fragment_and_dispatch() argument 107 CHECK(packet != NULL); in fragment_and_dispatch() 109 uint16_t event = packet->event & MSG_EVT_MASK; in fragment_and_dispatch() 112 fragment_and_dispatch_acl(packet); in fragment_and_dispatch() 114 callbacks->fragmented(packet, true); in fragment_and_dispatch() 116 fragment_and_dispatch_iso(packet); in fragment_and_dispatch() 118 callbacks->fragmented(packet, true); in fragment_and_dispatch() 122 static void fragment_and_dispatch_acl(BT_HDR* packet) { in fragment_and_dispatch_acl() argument [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | matchers.py | 215 def LoopbackOf(packet): argument 216 return HciMatchers.Exactly(hci.LoopbackCommand(payload=packet)) 219 def Exactly(packet): argument 220 data = bytes(packet.serialize()) 249 return lambda msg: NeighborMatchers._is_matching_inquiry_result(msg.packet, address) 252 def _is_matching_inquiry_result(packet, address): argument 253 event = HciMatchers.ExtractEventWithCode(packet, hci.EventCode.INQUIRY_RESULT) 260 … return lambda msg: NeighborMatchers._is_matching_inquiry_result_with_rssi(msg.packet, address) 263 def _is_matching_inquiry_result_with_rssi(packet, address): argument 264 event = HciMatchers.ExtractEventWithCode(packet, hci.EventCode.INQUIRY_RESULT_WITH_RSSI) [all …]
|
D | captures.py | 32 return Capture(lambda packet: packet.payload[0:5] == b'\x0e\x0a\x01\x09\x10', 33 lambda packet: hci.Event.parse_all(packet.payload)) 37 return Capture(lambda packet: packet.payload[0:2] == b'\x04\x0a', 38 lambda packet: hci.Event.parse_all(packet.payload)) 42 return Capture(lambda packet: packet.payload[0:3] == b'\x03\x0b\x00', 43 lambda packet: hci.Event.parse_all(packet.payload)) 47 return Capture(lambda packet: packet.payload[0:2] == b'\x05\x04', 48 lambda packet: hci.Event.parse_all(packet.payload)) 53 …lambda packet: packet.payload[0] == 0x3e and (packet.payload[2] == 0x01 or packet.payload[2] == 0x… 54 lambda packet: hci.Event.parse_all(packet.payload)) [all …]
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | hci_packets.pdl | 84 packet Acl { 101 packet Sco { 755 packet Command { 763 packet DiscoveryCommand : Command { _payload_, } 764 packet AclCommand : Command { _payload_, } 765 packet ConnectionManagementCommand : AclCommand { _payload_, } 766 packet SecurityCommand : Command { _payload_, } 767 packet ScoConnectionCommand : AclCommand { _payload_, } 768 packet LeAdvertisingCommand : Command { _payload_, } 769 packet LeScanningCommand : Command { _payload_, } [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/packets/hci/ |
D | hci_packets.pdl | 84 packet Acl { 101 packet Sco { 755 packet Command { 763 packet VendorCommand : Command { _payload_, } 823 packet Event { 937 packet CommandComplete : Event (event_code = COMMAND_COMPLETE) { 943 packet CommandStatus : Event (event_code = COMMAND_STATUS) { 951 packet NoCommandComplete : CommandComplete (command_op_code = NONE) { 961 packet Inquiry : Command (op_code = INQUIRY) { 971 packet InquiryStatus : CommandStatus (command_op_code = INQUIRY) { [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/test/ |
D | big_endian_test_packets.pdl | 3 custom_field SixBytes : 48 "packet/parser/test/" 4 custom_field Variable "packet/parser/test/" 6 packet ParentBe { 13 packet ChildBe : ParentBe { 26 packet ParentTwoBe { 32 packet ChildTwoThreeBe : ParentTwoBe (four_bits = THREE) { 38 packet ChildTwoTwoBe : ParentTwoBe (four_bits = TWO) { 43 packet ChildTwoTwoThreeBe :ChildTwoTwoBe (more_bits = THREE) { 53 packet MiddleFourBitsBe { 61 packet ParentWithSixBytesBe { [all …]
|
D | test_packets.pdl | 3 custom_field SixBytes : 48 "packet/parser/test/" 4 custom_field Variable "packet/parser/test/" 6 packet Parent { 13 packet Child : Parent { 26 packet ParentTwo { 32 packet ChildTwoThree : ParentTwo (four_bits = THREE) { 38 packet ChildTwoTwo : ParentTwo (four_bits = TWO) { 43 packet ChildTwoTwoThree :ChildTwoTwo (more_bits = THREE) { 53 packet MiddleFourBits { 61 packet ParentWithSixBytes { [all …]
|
/packages/modules/Bluetooth/system/packet/tests/base/ |
D | iterator_test.cc | 59 auto packet = in TEST_F() local 65 ASSERT_DEATH(Iterator(packet, 0), "index_ >= packet->packet_start_index_"); in TEST_F() 66 ASSERT_DEATH(Iterator(packet, test_l2cap_data.size()), in TEST_F() 71 auto packet = TestPacket::Make(test_l2cap_data); in TEST_F() local 72 Iterator general_case = packet->begin(); in TEST_F() 81 auto packet = TestPacket::Make(test_l2cap_data); in TEST_F() local 82 Iterator general_case = packet->begin(); in TEST_F() 91 auto packet = GetTestPacket(); in TEST_P() local 92 ASSERT_EQ(static_cast<size_t>(packet->end() - packet->begin()), in TEST_P() 95 auto it = packet->begin(); in TEST_P() [all …]
|
D | packet_test.cc | 31 auto packet = TestPacket::Make( in TEST() local 35 auto new_packet = TestPacket::Make(packet); in TEST() 46 auto packet = TestPacket::Make(test_avctp_data); in TEST() local 47 ASSERT_EQ(packet->size(), test_avctp_data.size()); in TEST() 49 packet = TestPacket::Make(test_avctp_data, test_avctp_data_payload_offset, in TEST() 51 ASSERT_EQ(packet->size(), test_avrcp_data.size()); in TEST() 56 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local 58 ASSERT_EQ(test_l2cap_data[i], (*packet)[i]); in TEST() 61 packet = TestPacket::Make(test_avctp_data, test_avctp_data_payload_offset, in TEST() 64 ASSERT_EQ(test_avrcp_data[i], (*packet)[i]); in TEST() [all …]
|
/packages/modules/Bluetooth/system/hci/test/ |
D | packet_fragmenter_test.cc | 97 BT_HDR* packet = (BT_HDR*)osi_malloc(size + sizeof(BT_HDR)); in manufacture_packet_for_fragmentation() local 98 packet->len = size; in manufacture_packet_for_fragmentation() 99 packet->offset = 0; in manufacture_packet_for_fragmentation() 100 packet->event = event; in manufacture_packet_for_fragmentation() 101 packet->layer_specific = 0; in manufacture_packet_for_fragmentation() 102 uint8_t* packet_data = packet->data; in manufacture_packet_for_fragmentation() 109 packet->layer_specific |= BT_ISO_HDR_CONTAINS_TS; in manufacture_packet_for_fragmentation() 122 return packet; in manufacture_packet_for_fragmentation() 126 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented() argument 128 uint8_t* data = packet->data + packet->offset; in expect_packet_fragmented() [all …]
|
/packages/modules/Bluetooth/tools/pdl/tests/canonical/ |
D | le_rust_test_file.pdl | 29 packet ScalarParent { 35 packet EnumParent { 45 packet Packet_Scalar_Field { 52 packet Packet_Enum_Field { 59 packet Packet_Reserved_Field { 67 packet Packet_Size_Field { 75 packet Packet_Count_Field { 83 packet Packet_FixedScalar_Field { 90 packet Packet_FixedEnum_Field { 99 packet Packet_Payload_Field_VariableSize { [all …]
|
D | le_rust_noalloc_test_file.pdl | 24 packet ScalarParent { 30 packet EnumParent { 36 packet EmptyParent : ScalarParent { 40 packet PartialParent5 { 45 packet PartialParent12 { 54 packet Packet_Scalar_Field { 61 packet Packet_Enum_Field { 68 packet Packet_Reserved_Field { 76 packet Packet_Size_Field { 84 packet Packet_Count_Field { [all …]
|
D | le_test_file.pdl | 37 packet ScalarParent { 43 packet EnumParent { 49 packet EmptyParent : ScalarParent { 54 packet PartialParent5 { 59 packet PartialParent12 { 69 packet Packet_Scalar_Field { 76 packet Packet_Enum_Field { 83 packet Packet_Reserved_Field { 91 packet Packet_Size_Field { 99 packet Packet_Count_Field { [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/packets/ |
D | link_layer_packets.pdl | 61 packet LinkLayerPacket { 68 packet Acl : LinkLayerPacket (type = ACL) { 74 packet Disconnect : LinkLayerPacket (type = DISCONNECT) { 89 packet Inquiry : LinkLayerPacket (type = INQUIRY) { 94 packet BasicInquiryResponse : LinkLayerPacket(type = INQUIRY_RESPONSE) { 103 packet InquiryResponse : BasicInquiryResponse (inquiry_type = STANDARD) { 106 packet InquiryResponseWithRssi : BasicInquiryResponse (inquiry_type = RSSI) { 110 packet ExtendedInquiryResponse : BasicInquiryResponse (inquiry_type = EXTENDED) { 131 packet LeLegacyAdvertisingPdu : LinkLayerPacket (type = LE_LEGACY_ADVERTISING_PDU) { 150 packet LeExtendedAdvertisingPdu : LinkLayerPacket (type = LE_EXTENDED_ADVERTISING_PDU) { [all …]
|
/packages/modules/Bluetooth/system/packet/tests/fuzzers/ |
D | Android.bp | 18 "packages/modules/Bluetooth/system/packet/base", 19 "packages/modules/Bluetooth/system/packet/include", 20 "packages/modules/Bluetooth/system/packet/tests", 21 "packages/modules/Bluetooth/system/packet/tests/avrcp", 50 "packages/modules/Bluetooth/system/packet/base", 51 "packages/modules/Bluetooth/system/packet/include", 52 "packages/modules/Bluetooth/system/packet/tests", 53 "packages/modules/Bluetooth/system/packet/tests/avrcp", 83 "packages/modules/Bluetooth/system/packet/base", 84 "packages/modules/Bluetooth/system/packet/include", [all …]
|
/packages/modules/Bluetooth/system/gd/l2cap/ |
D | l2cap_packets.pdl | 5 packet BasicFrame { 11 packet BasicFrameWithFcs { 25 packet GroupFrame : BasicFrame (channel_id = 0x02) { 54 packet StandardFrame : BasicFrame { 59 packet StandardFrameWithFcs : BasicFrameWithFcs { 80 packet StandardSupervisoryFrame : StandardFrame (frame_type = S_FRAME) { 84 packet StandardSupervisoryFrameWithFcs : StandardFrameWithFcs (frame_type = S_FRAME) { 88 packet StandardInformationFrame : StandardFrame (frame_type = I_FRAME) { 93 packet StandardInformationFrameWithFcs : StandardFrameWithFcs (frame_type = I_FRAME) { 98 packet StandardInformationStartFrame : StandardInformationFrame (sar = START) { [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/rust/src/ |
D | packets.rs | 101 LinkKeyRequestReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 102 LinkKeyRequestNegativeReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 103 PinCodeRequestReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 104 PinCodeRequestNegativeReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 105 IoCapabilityRequestReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 106 IoCapabilityRequestNegativeReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 107 UserConfirmationRequestReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 108 UserConfirmationRequestNegativeReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 109 UserPasskeyRequestReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() 110 UserPasskeyRequestNegativeReply(packet) => Some(packet.get_bd_addr()), in command_remote_device_address() [all …]
|
/packages/modules/Bluetooth/system/tools/hci/ |
D | main.c | 33 static bool write_hci_command(hci_packet_t type, const void* packet, 81 uint8_t packet[] = {0x1A, 0x0C, 0x01, 0x00}; in set_discoverable() local 82 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x03; in set_discoverable() 84 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_discoverable() 99 uint8_t packet[251] = {0x13, 0x0C, 248}; in set_name() local 100 memcpy(&packet[3], argv[0], len + 1); in set_name() 102 if (!write_hci_command(HCI_PACKET_COMMAND, packet, sizeof(packet))) return 1; in set_name() 104 memset(&packet[0], 0, sizeof(packet)); in set_name() 105 packet[0] = 0x52; in set_name() 106 packet[1] = 0x0C; in set_name() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 178 ByteBuffer packet = new TestDhcpPacket(DHCP_MESSAGE_TYPE_OFFER) in assertDomainAndVendorInfoParses() local 182 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP, in assertDomainAndVendorInfoParses() 224 ByteBuffer packet = testPacket.build(); in assertLeaseTimeParses() local 229 offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP, in assertLeaseTimeParses() 237 offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP, in assertLeaseTimeParses() 279 ByteBuffer packet = new TestDhcpPacket(type, clientIp, yourIp) in checkIpAddress() local 282 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP, in checkIpAddress() 346 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1() local 368 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_L3, in testOffer1() 379 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2() local [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTest.java | 194 private void assertVerdict(int expected, byte[] program, byte[] packet, int filterAge) { in assertVerdict() argument 197 + " --packet " + HexDump.toHexString(packet) + " --trace | less\n "; in assertVerdict() 198 assertReturnCodesEqual(msg, expected, apfSimulate(program, packet, null, filterAge)); in assertVerdict() 201 private void assertVerdict(String msg, int expected, byte[] program, byte[] packet, in assertVerdict() argument 203 assertReturnCodesEqual(msg, expected, apfSimulate(program, packet, null, filterAge)); in assertVerdict() 206 private void assertVerdict(int expected, byte[] program, byte[] packet) { in assertVerdict() argument 207 assertVerdict(expected, program, packet, 0); in assertVerdict() 210 private void assertPass(byte[] program, byte[] packet, int filterAge) { in assertPass() argument 211 assertVerdict(PASS, program, packet, filterAge); in assertPass() 214 private void assertPass(byte[] program, byte[] packet) { in assertPass() argument [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/util/ |
D | ConnectivityPacketSummaryTest.java | 50 final String packet = in testParseICMPv6DADProbe() local 67 assertEquals(expected, getSummary(packet)); in testParseICMPv6DADProbe() 72 final String packet = in testParseICMPv6RS() local 89 assertEquals(expected, getSummary(packet)); in testParseICMPv6RS() 94 final String packet = in testParseICMPv6RA() local 122 assertEquals(expected, getSummary(packet)); in testParseICMPv6RA() 127 final String packet = in testParseICMPv6NS() local 145 assertEquals(expected, getSummary(packet)); in testParseICMPv6NS() 150 final String packet = in testInvalidICMPv6NDLength() local 170 assertEquals(expected, getSummary(packet)); in testInvalidICMPv6NDLength() [all …]
|
/packages/modules/Bluetooth/system/gd/security/pairing/ |
D | classic_pairing_handler.cc | 169 void ClassicPairingHandler::OnReceive(hci::ChangeConnectionLinkKeyCompleteView packet) { in OnReceive() argument 170 ASSERT(packet.IsValid()); in OnReceive() 171 LOG_INFO("Received unsupported event: %s", hci::EventCodeText(packet.GetEventCode()).c_str()); in OnReceive() 174 void ClassicPairingHandler::OnReceive(hci::CentralLinkKeyCompleteView packet) { in OnReceive() argument 175 ASSERT(packet.IsValid()); in OnReceive() 176 LOG_INFO("Received unsupported event: %s", hci::EventCodeText(packet.GetEventCode()).c_str()); in OnReceive() 179 void ClassicPairingHandler::OnReceive(hci::PinCodeRequestView packet) { in OnReceive() argument 180 ASSERT(packet.IsValid()); in OnReceive() 181 LOG_INFO("Received: %s", hci::EventCodeText(packet.GetEventCode()).c_str()); in OnReceive() 182 …ASSERT_LOG(GetRecord()->GetPseudoAddress()->GetAddress() == packet.GetBdAddr(), "Address mismatch"… in OnReceive() [all …]
|
/packages/modules/Bluetooth/floss/hcidoc/src/groups/ |
D | connections.rs | 105 packet: &Packet, in process_classic_connection() 110 self.connection_attempt.insert(cc.get_bd_addr(), packet.clone()) in process_classic_connection() 115 self.connection_attempt.insert(ac.get_bd_addr(), packet.clone()) in process_classic_connection() 124 format!("Dangling connection attempt at {:?} replaced with {:?}", p, packet), in process_classic_connection() 132 packet: &Packet, in process_sco_connection() 155 self.sco_connection_attempt.insert(address.clone(), packet.clone()) in process_sco_connection() 160 self.sco_connection_attempt.insert(asc.get_bd_addr(), packet.clone()) in process_sco_connection() 165 self.sco_connection_attempt.insert(easc.get_bd_addr(), packet.clone()) in process_sco_connection() 174 format!("Dangling sco connection attempt at {:?} replaced with {:?}", p, packet), in process_sco_connection() 182 packet: &Packet, in process_le_conn_connection() [all …]
|
/packages/modules/Bluetooth/system/gd/neighbor/ |
D | inquiry.cc | 109 auto packet = hci::InquiryCancelCompleteView::Create(view); in OnCommandComplete() local 110 ASSERT(packet.IsValid()); in OnCommandComplete() 111 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete() 115 auto packet = hci::PeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete() local 116 ASSERT(packet.IsValid()); in OnCommandComplete() 117 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete() 121 auto packet = hci::ExitPeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete() local 122 ASSERT(packet.IsValid()); in OnCommandComplete() 123 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete() 127 auto packet = hci::WriteInquiryModeCompleteView::Create(view); in OnCommandComplete() local [all …]
|