Home
last modified time | relevance | path

Searched refs:packet_type (Results 1 – 23 of 23) sorted by relevance

/system/bt/vendor_libs/linux/interface/
Dhci_packetizer.cc55 void HciPacketizer::OnDataReady(int fd, HciPacketType packet_type) { in OnDataReady() argument
60 preamble_size_for_type[packet_type] - bytes_read_)); in OnDataReady()
63 if (bytes_read_ == preamble_size_for_type[packet_type]) { in OnDataReady()
65 HciGetPacketLengthForType(packet_type, preamble_); in OnDataReady()
66 packet_.resize(preamble_size_for_type[packet_type] + packet_length); in OnDataReady()
67 memcpy(packet_.data(), preamble_, preamble_size_for_type[packet_type]); in OnDataReady()
78 packet_.data() + preamble_size_for_type[packet_type] + bytes_read_, in OnDataReady()
Dhci_packetizer.h37 void OnDataReady(int fd, HciPacketType packet_type);
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_packetizer.cc58 void HciPacketizer::OnDataReady(int fd, hci::PacketType packet_type) { in OnDataReady() argument
70 …read(fd, preamble_ + bytes_read_, preamble_size[static_cast<uint8_t>(packet_type)] - bytes_read_)); in OnDataReady()
83 if (bytes_read_ == preamble_size[static_cast<uint8_t>(packet_type)]) { in OnDataReady()
84 size_t packet_length = HciGetPacketLengthForType(packet_type, preamble_); in OnDataReady()
85 packet_.resize(preamble_size[static_cast<uint8_t>(packet_type)] + packet_length); in OnDataReady()
86 memcpy(packet_.data(), preamble_, preamble_size[static_cast<uint8_t>(packet_type)]); in OnDataReady()
104 …read(fd, packet_.data() + preamble_size[static_cast<uint8_t>(packet_type)] + bytes_read_, bytes_re… in OnDataReady()
Dhci_socket_device.cc116 void HciSocketDevice::SendHci(hci::PacketType packet_type, const std::shared_ptr<std::vector<uint8_… in SendHci() argument
121 uint8_t type = static_cast<uint8_t>(packet_type); in SendHci()
Dhci_socket_device.h46 void SendHci(hci::PacketType packet_type, const std::shared_ptr<std::vector<uint8_t>> packet);
Dhci_packetizer.h32 void OnDataReady(int fd, hci::PacketType packet_type);
/system/bt/packet/avrcp/
Dvendor_packet.h29 CType ctype, CommandPdu pdu, PacketType packet_type,
48 VendorPacketBuilder(CType ctype, CommandPdu pdu, PacketType packet_type) in VendorPacketBuilder() argument
51 packet_type_(packet_type){}; in VendorPacketBuilder()
Dvendor_packet.cc23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder() argument
31 new VendorPacketBuilder(ctype, pdu, packet_type)); in MakeBuilder()
/system/core/debuggerd/tombstoned/
Dtombstoned_client.cpp48 packet.packet_type = CrashPacketType::kDumpRequest; in tombstoned_connect()
87 packet.packet_type = CrashPacketType::kCompletedDump; in tombstoned_notify_completion()
Dtombstoned.cpp227 .packet_type = CrashPacketType::kPerformDump in perform_request()
294 if (request.packet_type != CrashPacketType::kDumpRequest) { in crash_request_cb()
296 << StringPrintf("%#2hhX", request.packet_type); in crash_request_cb()
358 if (request.packet_type != CrashPacketType::kCompletedDump) { in crash_completed_cb()
360 << uint32_t(request.packet_type); in crash_completed_cb()
/system/core/debuggerd/
Dprotocol.h54 CrashPacketType packet_type; member
Ddebuggerd_test.cpp952 packet.packet_type = CrashPacketType::kDumpRequest; in TEST()
/system/bt/hci/src/
Dhci_inject.cc164 hci_packet_t packet_type = (hci_packet_t)buffer[0]; in read_ready() local
176 buf->event = hci_packet_to_event(packet_type); in read_ready()
/system/bt/btif/src/
Dbtif_bqr.cc106 std::string PacketTypeToString(uint8_t packet_type) { in PacketTypeToString() argument
107 switch (packet_type) { in PacketTypeToString()
/system/bt/btif/include/
Dbtif_bqr.h220 std::string PacketTypeToString(uint8_t packet_type);
/system/bt/tools/scripts/
Ddump_hearingaid_audio.py257 packet_type, data = unpack_data(data, 1)
258 if packet_type == 0x02:
261 elif packet_type == 0x04:
/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/
Dlink_layer_packet_builder.cc145 Link::PacketType packet_type = received.GetType(); in ReWrap() local
151 new LinkLayerPacketBuilder(packet_type, std::move(builder), source, dest)); in ReWrap()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Ddual_mode_controller.cc519 uint16_t packet_type = args_itr.extract<uint16_t>(); in HciChangeConnectionPacketType() local
521 hci::Status status = link_layer_controller_.ChangeConnectionPacketType(handle, packet_type); in HciChangeConnectionPacketType()
856 uint16_t packet_type = args_itr.extract<uint16_t>(); in HciCreateConnection() local
862 …link_layer_controller_.CreateConnection(address, packet_type, page_scan_mode, clock_offset, allow_… in HciCreateConnection()
Dlink_layer_controller.h69 …hci::Status CreateConnection(const Address& addr, uint16_t packet_type, uint8_t page_scan_mode, ui…
/system/bt/vendor_libs/test_vendor_lib/packets/hci/
Devent_packet_builder.h186 uint16_t packet_type);
Devent_packet_builder.cc434 … uint16_t packet_type) { in CreateConnectionPacketTypeChangedEvent() argument
439 CHECK(evt_ptr->AddPayloadOctets2(packet_type)); in CreateConnectionPacketTypeChangedEvent()
/system/bt/stack/include/
Dhcimsgs.h456 extern void btsnd_hcic_enhanced_flush(uint16_t handle, uint8_t packet_type);
/system/bt/stack/hcic/
Dhcicmds.cc1262 void btsnd_hcic_enhanced_flush(uint16_t handle, uint8_t packet_type) { in btsnd_hcic_enhanced_flush() argument
1272 UINT8_TO_STREAM(pp, packet_type); in btsnd_hcic_enhanced_flush()