Home
last modified time | relevance | path

Searched defs:packet (Results 1 – 25 of 270) sorted by relevance

1234567891011

/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/util/
H A DConnectivityPacketSummaryTest.java50 final String packet = in testParseICMPv6DADProbe() local
72 final String packet = in testParseICMPv6RS() local
94 final String packet = in testParseICMPv6RA() local
127 final String packet = in testParseICMPv6NS() local
150 final String packet = in testInvalidICMPv6NDLength() local
175 final String packet = in testParseICMPv6NA() local
196 final String packet = in testParseARPRequest() local
215 final String packet = in testParseARPReply() local
236 final String packet = in testParseDHCPv4Discover() local
282 final String packet = in testParseDHCPv4Offer() local
[all …]
/aosp12/system/bt/packet/tests/base/
H A Diterator_test.cc51 auto packet = in TEST_F() local
79 auto packet = GetTestPacket(); in TEST_P() local
90 auto packet = GetTestPacket(); in TEST_P() local
103 auto packet = GetTestPacket(); in TEST_P() local
116 auto packet = GetTestPacket(); in TEST_P() local
125 auto packet = GetTestPacket(); in TEST_P() local
138 auto packet = GetTestPacket(); in TEST_P() local
148 auto packet = GetTestPacket(); in TEST_P() local
158 auto packet = GetTestPacket(); in TEST_P() local
169 auto packet = GetTestPacket(); in TEST_P() local
[all …]
H A Dpacket_test.cc29 auto packet = TestPacket::Make( in TEST() local
44 auto packet = TestPacket::Make(test_avctp_data); in TEST() local
54 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
68 auto packet = in TEST() local
75 auto packet = TestPacket::Make( in TEST() local
97 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
112 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
/aosp12/system/bt/gd/security/pairing/
H A Dclassic_pairing_handler.cc171 void ClassicPairingHandler::OnReceive(hci::CentralLinkKeyCompleteView packet) { in OnReceive()
176 void ClassicPairingHandler::OnReceive(hci::PinCodeRequestView packet) { in OnReceive()
184 void ClassicPairingHandler::OnReceive(hci::LinkKeyRequestView packet) { in OnReceive()
206 void ClassicPairingHandler::OnReceive(hci::LinkKeyNotificationView packet) { in OnReceive()
221 void ClassicPairingHandler::OnReceive(hci::IoCapabilityRequestView packet) { in OnReceive()
237 void ClassicPairingHandler::OnReceive(hci::IoCapabilityResponseView packet) { in OnReceive()
314 void ClassicPairingHandler::OnReceive(hci::ReturnLinkKeysView packet) { in OnReceive()
319 void ClassicPairingHandler::OnReceive(hci::EncryptionChangeView packet) { in OnReceive()
329 void ClassicPairingHandler::OnReceive(hci::RemoteOobDataRequestView packet) { in OnReceive()
387 void ClassicPairingHandler::OnReceive(hci::KeypressNotificationView packet) { in OnReceive()
[all …]
/aosp12/system/bt/gd/cert/
H A Dmatchers.py202 def LoopbackOf(packet): argument
206 def Exactly(packet): argument
404 def _basic_frame(packet): argument
410 def _basic_frame_with_fcs(packet): argument
416 def _basic_frame_for(packet, scid): argument
433 def _information_frame(packet): argument
440 def _information_frame_with_fcs(packet): argument
449 def _information_start_frame(packet): argument
463 def _supervisory_frame(packet): argument
522 def _control_frame(packet): argument
[all …]
H A Dcaptures.py126 def _extract_connection_request(packet): argument
135 def _extract_connection_response(packet): argument
144 def _extract_configuration_request(packet): argument
154 def _extract_credit_based_connection_request(packet): argument
164 def _extract_credit_based_connection_response(packet): argument
173 def _extract_address(packet): argument
/aosp12/system/bt/vendor_libs/test_vendor_lib/model/controller/
H A Ddual_mode_controller.cc508 auto packet = in ReadLocalVersionInformation() local
524 auto packet = in ReadRemoteVersionInformation() local
551 auto packet = in ReadLocalSupportedCommands() local
560 auto packet = in ReadLocalSupportedFeatures() local
570 auto packet = in ReadLocalSupportedCodecs() local
630 auto packet = in ReadRemoteSupportedFeatures() local
680 auto packet = in UserConfirmationRequestReply() local
697 auto packet = in UserConfirmationRequestNegativeReply() local
732 auto packet = in PinCodeRequestNegativeReply() local
763 auto packet = in UserPasskeyRequestNegativeReply() local
[all …]
/aosp12/system/connectivity/wificond/net/
H A Dmlme_event.cpp35 bool GetCommonFields(const NL80211Packet* packet, in GetCommonFields()
52 const NL80211Packet* packet) { in InitFromPacket()
74 const NL80211Packet* packet) { in InitFromPacket()
96 const NL80211Packet* packet) { in InitFromPacket()
111 const NL80211Packet* packet) { in InitFromPacket()
125 const NL80211Packet* packet) { in InitFromPacket()
H A Dnetlink_manager.cpp54 unique_ptr<const NL80211Packet> packet) { in AppendPacket()
114 unique_ptr<NL80211Packet> packet( in ReceivePacketAndRunHandler() local
170 void NetlinkManager::OnNewFamily(unique_ptr<const NL80211Packet> packet) { in OnNewFamily()
264 const NL80211Packet& packet, in RegisterHandlerAndSendMessage()
278 const NL80211Packet& packet, in SendMessageAndGetResponses()
327 const NL80211Packet& packet, in SendMessageAndGetSingleResponse()
345 const NL80211Packet& packet, in SendMessageAndGetSingleResponseOrError()
360 bool NetlinkManager::SendMessageAndGetAckOrError(const NL80211Packet& packet, in SendMessageAndGetAckOrError()
376 bool NetlinkManager::SendMessageAndGetAck(const NL80211Packet& packet) { in SendMessageAndGetAck()
597 void NetlinkManager::OnMlmeEvent(unique_ptr<const NL80211Packet> packet) { in OnMlmeEvent()
[all …]
/aosp12/system/memory/lmkd/include/
H A Dlmkd.h72 static inline void lmkd_pack_get_target(LMKD_CTRL_PACKET packet, int target_idx, in lmkd_pack_get_target()
82 static inline size_t lmkd_pack_set_target(LMKD_CTRL_PACKET packet, struct lmk_target* targets, in lmkd_pack_set_target()
115 static inline void lmkd_pack_get_procprio(LMKD_CTRL_PACKET packet, int field_count, in lmkd_pack_get_procprio()
146 static inline void lmkd_pack_get_procremove(LMKD_CTRL_PACKET packet, in lmkd_pack_get_procremove()
155 static inline size_t lmkd_pack_set_procremove(LMKD_CTRL_PACKET packet, in lmkd_pack_set_procremove()
166 static inline size_t lmkd_pack_set_procpurge(LMKD_CTRL_PACKET packet) { in lmkd_pack_set_procpurge()
181 static inline void lmkd_pack_get_getkillcnt(LMKD_CTRL_PACKET packet, in lmkd_pack_get_getkillcnt()
191 static inline size_t lmkd_pack_set_getkillcnt(LMKD_CTRL_PACKET packet, in lmkd_pack_set_getkillcnt()
203 static inline size_t lmkd_pack_set_getkillcnt_repl(LMKD_CTRL_PACKET packet, int kill_cnt) { in lmkd_pack_set_getkillcnt_repl()
255 static inline size_t lmkd_pack_set_update_props(LMKD_CTRL_PACKET packet) { in lmkd_pack_set_update_props()
[all …]
/aosp12/system/bt/gd/security/channel/
H A Dsecurity_manager_channel_unittest.cc96 void OnReceive(hci::AddressWithType device, hci::PinCodeRequestView packet) { in OnReceive()
100 void OnReceive(hci::AddressWithType device, hci::LinkKeyRequestView packet) { in OnReceive()
120 void OnReceive(hci::AddressWithType device, hci::ReturnLinkKeysView packet) { in OnReceive()
153 void OnHciEventReceived(EventView packet) override { in OnHciEventReceived()
290 auto packet = in TEST_F() local
436 auto packet = hci::ReadLocalOobDataBuilder::Create(); in TEST_F() local
451 auto packet = hci::ReadLocalOobExtendedDataBuilder::Create(); in TEST_F() local
550 auto packet = hci::WriteStoredLinkKeyBuilder::Create(keys_to_write); in TEST_F() local
565 auto packet = in TEST_F() local
635 auto packet = hci::ReadSimplePairingModeBuilder::Create(); in TEST_F() local
[all …]
/aosp12/system/bt/gd/neighbor/
H A Dinquiry.cc109 auto packet = hci::InquiryCancelCompleteView::Create(view); in OnCommandComplete() local
115 auto packet = hci::PeriodicInquiryModeCompleteView::Create(view); in OnCommandComplete() local
127 auto packet = hci::WriteInquiryModeCompleteView::Create(view); in OnCommandComplete() local
133 auto packet = hci::ReadInquiryModeCompleteView::Create(view); in OnCommandComplete() local
161 auto packet = hci::WriteInquiryScanTypeCompleteView::Create(view); in OnCommandComplete() local
167 auto packet = hci::ReadInquiryScanTypeCompleteView::Create(view); in OnCommandComplete() local
184 auto packet = hci::InquiryStatusView::Create(status); in OnCommandStatus() local
200 auto packet = hci::InquiryCompleteView::Create(view); in OnEvent() local
209 auto packet = hci::InquiryResultView::Create(view); in OnEvent() local
216 auto packet = hci::InquiryResultWithRssiView::Create(view); in OnEvent() local
[all …]
H A Dpage.cc66 auto packet = hci::WritePageScanActivityCompleteView::Create(view); in OnCommandComplete() local
72 auto packet = hci::ReadPageScanActivityCompleteView::Create(view); in OnCommandComplete() local
80 auto packet = hci::WritePageScanTypeCompleteView::Create(view); in OnCommandComplete() local
86 auto packet = hci::ReadPageScanTypeCompleteView::Create(view); in OnCommandComplete() local
93 auto packet = hci::WritePageTimeoutCompleteView::Create(view); in OnCommandComplete() local
99 auto packet = hci::ReadPageTimeoutCompleteView::Create(view); in OnCommandComplete() local
/aosp12/system/bt/hci/test/
H A Dhci_layer_test.cc43 void hci_transmit(BT_HDR* packet) { LOG(INFO) << __func__ << " UNIMPLEMENTED"; } in hci_transmit()
46 void hci_log_firmware_debug_packet(int fd, BT_HDR* packet) {} in hci_log_firmware_debug_packet()
79 BT_HDR* packet = in AllocatePacket() local
91 BT_HDR* packet = AllocateHciEventPacket(3); in TEST_F() local
101 BT_HDR* packet = AllocateHciEventPacket(3); in TEST_F() local
112 BT_HDR* packet = AllocateHciEventPacket(6); in TEST_F() local
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
H A DDhcpPacketTest.java178 ByteBuffer packet = new TestDhcpPacket(DHCP_MESSAGE_TYPE_OFFER) in assertDomainAndVendorInfoParses() local
224 ByteBuffer packet = testPacket.build(); in assertLeaseTimeParses() local
279 ByteBuffer packet = new TestDhcpPacket(type, clientIp, yourIp) in checkIpAddress() local
346 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1() local
379 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2() local
414 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runCapportOptionTest() local
459 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testCapportOption_Invalid() local
496 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runIPv6OnlyPreferredOption() local
750 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testMtu() local
1120 ByteBuffer packet = DhcpPacket.buildDiscoverPacket( in testDiscoverPacket() local
[all …]
H A DDhcpServerTest.java248 final DhcpOfferPacket packet = assertOffer(getPacket()); in testDiscover() local
267 final DhcpAckPacket packet = assertAck(getPacket()); in testDiscover_RapidCommit() local
286 final DhcpNakPacket packet = assertNak(getPacket()); in testDiscover_OutOfAddresses() local
315 final DhcpAckPacket packet = assertAck(getPacket()); in testRequest_Selecting_Ack() local
333 final DhcpNakPacket packet = assertNak(getPacket()); in testRequest_Selecting_Nak() local
441 final DhcpOfferPacket packet = assertOffer(getPacket()); in testChangePrefixOnDecline() local
466 private void assertMatchesTestLease(@NonNull DhcpPacket packet) { in assertMatchesTestLease()
470 private void assertMatchesClient(@NonNull DhcpPacket packet) { in assertMatchesClient()
479 private static DhcpNakPacket assertNak(@Nullable DhcpPacket packet) { in assertNak()
484 private static DhcpAckPacket assertAck(@Nullable DhcpPacket packet) { in assertAck()
[all …]
/aosp12/system/bt/hci/src/
H A Dhci_layer_android.cc100 BT_HDR* packet = in WrapPacketAndCopy() local
129 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, event); in hciEventReceived() local
136 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_ACL, data); in aclDataReceived() local
143 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_SCO, data); in scoDataReceived() local
150 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_ISO, data); in isoDataReceived() local
207 void hci_transmit(BT_HDR* packet) { in hci_transmit()
257 void hci_log_firmware_debug_packet(int fd, BT_HDR* packet) { in hci_log_firmware_debug_packet()
H A Dhci_packet_factory.cc49 BT_HDR* packet = make_command(HCI_HOST_BUFFER_SIZE, parameter_size, &stream); in make_host_buffer_size() local
73 BT_HDR* packet = in make_read_local_extended_features() local
83 BT_HDR* packet = in make_write_simple_pairing_mode() local
93 BT_HDR* packet = in make_write_secure_connections_host_support() local
103 BT_HDR* packet = make_command(HCI_SET_EVENT_MASK, parameter_size, &stream); in make_set_event_mask() local
113 BT_HDR* packet = in make_ble_write_host_support() local
173 BT_HDR* packet = in make_ble_set_event_mask() local
184 BT_HDR* packet = in make_ble_set_host_features() local
201 BT_HDR* packet = make_packet(HCI_COMMAND_PREAMBLE_SIZE + parameter_size); in make_command() local
/aosp12/system/bt/vendor_libs/test_vendor_lib/model/devices/
H A Dhci_socket_device.cc102 RegisterEventChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
105 RegisterAclChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
108 RegisterScoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
111 RegisterIsoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
123 const std::shared_ptr<std::vector<uint8_t>> packet) { in SendHci()
/aosp12/packages/modules/adb/
H A Dtransport_benchmark.cpp67 … server->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Unidirectional()
82 std::unique_ptr<apacket> packet = std::make_unique<apacket>(); in BM_Connection_Unidirectional() local
124 … client->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Echo()
129 static const auto handle_packet = [](Connection* connection, std::unique_ptr<apacket> packet) { in BM_Connection_Echo()
133 server->SetReadCallback([](Connection* connection, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Echo()
137 std::unique_ptr<apacket> packet(raw_packet); in BM_Connection_Echo() local
156 std::unique_ptr<apacket> packet = std::make_unique<apacket>(); in BM_Connection_Echo() local
/aosp12/system/bt/profile/sdp/common/test/
H A Ddata_element_reader_test.cc74 auto packet = ReaderPacket::Make(std::move(payload)); in CreateReader() local
192 auto packet = ReaderPacket::Make(std::get<0>(GetParam())); in TEST_P() local
219 auto packet = ReaderPacket::Make(payload); in TEST() local
250 auto packet = ReaderPacket::Make({}); in TEST() local
258 auto packet = ReaderPacket::Make({0xFF}); in TEST() local
398 auto packet = ReaderPacket::Make(GetParam()); in TEST_P() local
406 auto packet = ReaderPacket::Make({0x00, 0x00, 0x00, 0x00}); in TEST() local
/aosp12/system/logging/liblog/tests/
H A Dliblog_benchmark.cpp265 struct packet { in BM_pmsg_short_aligned() struct
267 android_log_header_t header; in BM_pmsg_short_aligned()
268 android_log_event_int_t payload; in BM_pmsg_short_aligned()
340 struct packet { in BM_pmsg_short_unaligned1() struct
342 android_log_header_t header; in BM_pmsg_short_unaligned1()
343 android_log_event_int_t payload; in BM_pmsg_short_unaligned1()
415 struct packet { in BM_pmsg_long_aligned() struct
417 android_log_header_t header; in BM_pmsg_long_aligned()
418 android_log_event_int_t payload; in BM_pmsg_long_aligned()
488 struct packet { in BM_pmsg_long_unaligned1() struct
[all …]
/aosp12/system/bt/gd/packet/
H A Draw_builder_unittest.cc38 namespace packet { namespace
60 std::vector<uint8_t> packet; in TEST() local
81 std::vector<uint8_t> packet; in TEST() local
103 std::vector<uint8_t> packet; in TEST() local
/aosp12/frameworks/av/media/mtp/
H A DMtpProperty.cpp130 bool MtpProperty::read(MtpDataPacket& packet) { in read()
182 void MtpProperty::write(MtpDataPacket& packet) { in write()
253 void MtpProperty::setCurrentValue(MtpDataPacket& packet) { in setCurrentValue()
448 bool MtpProperty::readValue(MtpDataPacket& packet, MtpPropertyValue& value) { in readValue()
503 void MtpProperty::writeValue(MtpDataPacket& packet, MtpPropertyValue& value) { in writeValue()
558 MtpPropertyValue* MtpProperty::readArrayValues(MtpDataPacket& packet, uint32_t& length) { in readArrayValues()
578 void MtpProperty::writeArrayValues(MtpDataPacket& packet, MtpPropertyValue* values, uint32_t length… in writeArrayValues()
/aosp12/system/bt/gd/hal/fuzz/
H A Dfuzz_hci_hal.h33 void sendAclData(HciPacket packet) override {} in sendAclData()
34 void sendScoData(HciPacket packet) override {} in sendScoData()
35 void sendIsoData(HciPacket packet) override {} in sendIsoData()

1234567891011