Home
last modified time | relevance | path

Searched refs:CommandPdu (Results 1 – 18 of 18) sorted by relevance

/system/bt/packet/tests/avrcp/
Dvendor_packet_test.cc72 CType::STATUS, CommandPdu::GET_CAPABILITIES, PacketType::SINGLE, in TEST()
82 using TestParam = std::tuple<std::vector<uint8_t>, CommandPdu>;
86 CommandPdu GetCommandPdu() { return std::get<1>(GetParam()); } in GetCommandPdu()
92 std::make_tuple(get_capabilities_request, CommandPdu::GET_CAPABILITIES),
94 CommandPdu::GET_CAPABILITIES),
96 CommandPdu::GET_CAPABILITIES),
98 CommandPdu::GET_ELEMENT_ATTRIBUTES),
100 CommandPdu::GET_ELEMENT_ATTRIBUTES),
102 CommandPdu::GET_ELEMENT_ATTRIBUTES),
103 std::make_tuple(get_play_status_request, CommandPdu::GET_PLAY_STATUS),
[all …]
Davrcp_reject_packet_test.cc30 CommandPdu::LIST_APPLICATION_SETTING_ATTRIBUTES, Status::INVALID_COMMAND); in TEST()
/system/bt/packet/avrcp/
Dvendor_packet.h29 CType ctype, CommandPdu pdu, PacketType packet_type,
37 CommandPdu pdu_;
48 VendorPacketBuilder(CType ctype, CommandPdu pdu, PacketType packet_type) in VendorPacketBuilder()
76 CommandPdu GetCommandPdu() const;
Davrcp_reject_packet.h28 static std::unique_ptr<RejectBuilder> MakeBuilder(CommandPdu pdu,
38 RejectBuilder(CommandPdu pdu, Status reason) in RejectBuilder()
Dvendor_packet.cc23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder()
86 CommandPdu VendorPacket::GetCommandPdu() const { in GetCommandPdu()
88 return static_cast<CommandPdu>(value); in GetCommandPdu()
Dcapabilities_packet.h41 : VendorPacketBuilder(CType::STATUS, CommandPdu::GET_CAPABILITIES, in GetCapabilitiesRequestBuilder()
100 : VendorPacketBuilder(CType::STABLE, CommandPdu::GET_CAPABILITIES, in GetCapabilitiesResponseBuilder()
Dregister_notification_packet.h94 CommandPdu::REGISTER_NOTIFICATION, in RegisterNotificationResponseBuilder()
149 : VendorPacketBuilder(CType::NOTIFY, CommandPdu::REGISTER_NOTIFICATION, in RegisterNotificationRequestBuilder()
Davrcp_reject_packet.cc22 std::unique_ptr<RejectBuilder> RejectBuilder::MakeBuilder(CommandPdu pdu, in MakeBuilder()
Dset_addressed_player.h39 : VendorPacketBuilder(CType::ACCEPTED, CommandPdu::SET_ADDRESSED_PLAYER, in SetAddressedPlayerResponseBuilder()
Dset_absolute_volume.h45 : VendorPacketBuilder(CType::CONTROL, CommandPdu::SET_ABSOLUTE_VOLUME, in SetAbsoluteVolumeRequestBuilder()
Dplay_item.h38 : VendorPacketBuilder(CType::ACCEPTED, CommandPdu::PLAY_ITEM, in PlayItemResponseBuilder()
Dget_play_status_packet.h72 : VendorPacketBuilder(CType::STABLE, CommandPdu::GET_PLAY_STATUS, in GetPlayStatusResponseBuilder()
Dget_element_attributes_packet.h80 : VendorPacketBuilder(CType::STABLE, CommandPdu::GET_ELEMENT_ATTRIBUTES, in GetElementAttributesResponseBuilder()
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h69 inline std::string CommandPduText(const CommandPdu& pdu) { in CommandPduText()
71 CASE_RETURN_TEXT(CommandPdu::GET_CAPABILITIES); in CommandPduText()
72 CASE_RETURN_TEXT(CommandPdu::LIST_APPLICATION_SETTING_ATTRIBUTES); in CommandPduText()
73 CASE_RETURN_TEXT(CommandPdu::GET_ELEMENT_ATTRIBUTES); in CommandPduText()
74 CASE_RETURN_TEXT(CommandPdu::GET_PLAY_STATUS); in CommandPduText()
75 CASE_RETURN_TEXT(CommandPdu::REGISTER_NOTIFICATION); in CommandPduText()
76 CASE_RETURN_TEXT(CommandPdu::SET_ABSOLUTE_VOLUME); in CommandPduText()
77 CASE_RETURN_TEXT(CommandPdu::SET_ADDRESSED_PLAYER); in CommandPduText()
78 CASE_RETURN_TEXT(CommandPdu::PLAY_ITEM); in CommandPduText()
84 inline std::ostream& operator<<(std::ostream& os, const CommandPdu& pdu) {
Davrcp_common.h51 enum class CommandPdu : uint8_t { enum
/system/bt/packet/tests/fuzzers/
Dvendor_packet_fuzzer.cc32 using TestParam = std::tuple<std::vector<uint8_t>, CommandPdu>;
36 CommandPdu GetCommandPdu() { return std::get<1>(GetParam()); } in GetCommandPdu()
/system/bt/profile/avrcp/
Ddevice.cc85 auto response = RejectBuilder::MakeBuilder(static_cast<CommandPdu>(0), Status::INVALID_COMMAND); in VendorPacketHandler()
98 case CommandPdu::REGISTER_NOTIFICATION: { in VendorPacketHandler()
123 case CommandPdu::SET_ABSOLUTE_VOLUME: in VendorPacketHandler()
137 case CommandPdu::GET_CAPABILITIES: { in VendorPacketHandler()
142 case CommandPdu::REGISTER_NOTIFICATION: { in VendorPacketHandler()
147 case CommandPdu::GET_ELEMENT_ATTRIBUTES: { in VendorPacketHandler()
159 case CommandPdu::GET_PLAY_STATUS: { in VendorPacketHandler()
165 case CommandPdu::PLAY_ITEM: { in VendorPacketHandler()
169 case CommandPdu::SET_ADDRESSED_PLAYER: { in VendorPacketHandler()
190 (CommandPdu)pkt->GetCommandPdu(), Status::INVALID_COMMAND); in VendorPacketHandler()
[all …]
/system/bt/profile/avrcp/tests/
Davrcp_device_test.cc488 CommandPdu::REGISTER_NOTIFICATION, Status::ADDRESSED_PLAYER_CHANGED); in TEST_F()
1017 CommandPdu::SET_ADDRESSED_PLAYER, Status::INVALID_PLAYER_ID); in TEST_F()
1296 CommandPdu::GET_CAPABILITIES, Status::INVALID_PARAMETER); in TEST_F()
1352 CommandPdu::REGISTER_NOTIFICATION, Status::INVALID_PARAMETER); in TEST_F()
1367 auto rsp = RejectBuilder::MakeBuilder(static_cast<CommandPdu>(0), Status::INVALID_COMMAND); in TEST_F()
1379 auto rsp = RejectBuilder::MakeBuilder(CommandPdu::GET_CAPABILITIES, Status::INVALID_PARAMETER); in TEST_F()
1391 …auto rsp = RejectBuilder::MakeBuilder(CommandPdu::GET_ELEMENT_ATTRIBUTES, Status::INVALID_PARAMETE… in TEST_F()
1403 auto rsp = RejectBuilder::MakeBuilder(CommandPdu::PLAY_ITEM, Status::INVALID_PARAMETER); in TEST_F()
1415 …auto rsp = RejectBuilder::MakeBuilder(CommandPdu::SET_ADDRESSED_PLAYER, Status::INVALID_PARAMETER); in TEST_F()