/system/bt/packet/tests/avrcp/ |
D | vendor_packet_test.cc | 72 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 …]
|
D | avrcp_reject_packet_test.cc | 30 CommandPdu::LIST_APPLICATION_SETTING_ATTRIBUTES, Status::INVALID_COMMAND); in TEST()
|
/system/bt/packet/avrcp/ |
D | vendor_packet.h | 29 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;
|
D | avrcp_reject_packet.h | 28 static std::unique_ptr<RejectBuilder> MakeBuilder(CommandPdu pdu, 38 RejectBuilder(CommandPdu pdu, Status reason) in RejectBuilder()
|
D | vendor_packet.cc | 23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder() 86 CommandPdu VendorPacket::GetCommandPdu() const { in GetCommandPdu() 88 return static_cast<CommandPdu>(value); in GetCommandPdu()
|
D | capabilities_packet.h | 41 : VendorPacketBuilder(CType::STATUS, CommandPdu::GET_CAPABILITIES, in GetCapabilitiesRequestBuilder() 100 : VendorPacketBuilder(CType::STABLE, CommandPdu::GET_CAPABILITIES, in GetCapabilitiesResponseBuilder()
|
D | register_notification_packet.h | 94 CommandPdu::REGISTER_NOTIFICATION, in RegisterNotificationResponseBuilder() 149 : VendorPacketBuilder(CType::NOTIFY, CommandPdu::REGISTER_NOTIFICATION, in RegisterNotificationRequestBuilder()
|
D | avrcp_reject_packet.cc | 22 std::unique_ptr<RejectBuilder> RejectBuilder::MakeBuilder(CommandPdu pdu, in MakeBuilder()
|
D | set_addressed_player.h | 39 : VendorPacketBuilder(CType::ACCEPTED, CommandPdu::SET_ADDRESSED_PLAYER, in SetAddressedPlayerResponseBuilder()
|
D | set_absolute_volume.h | 45 : VendorPacketBuilder(CType::CONTROL, CommandPdu::SET_ABSOLUTE_VOLUME, in SetAbsoluteVolumeRequestBuilder()
|
D | play_item.h | 38 : VendorPacketBuilder(CType::ACCEPTED, CommandPdu::PLAY_ITEM, in PlayItemResponseBuilder()
|
D | get_play_status_packet.h | 72 : VendorPacketBuilder(CType::STABLE, CommandPdu::GET_PLAY_STATUS, in GetPlayStatusResponseBuilder()
|
D | get_element_attributes_packet.h | 80 : VendorPacketBuilder(CType::STABLE, CommandPdu::GET_ELEMENT_ATTRIBUTES, in GetElementAttributesResponseBuilder()
|
/system/bt/include/hardware/avrcp/ |
D | avrcp_logging_helper.h | 69 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) {
|
D | avrcp_common.h | 51 enum class CommandPdu : uint8_t { enum
|
/system/bt/packet/tests/fuzzers/ |
D | vendor_packet_fuzzer.cc | 32 using TestParam = std::tuple<std::vector<uint8_t>, CommandPdu>; 36 CommandPdu GetCommandPdu() { return std::get<1>(GetParam()); } in GetCommandPdu()
|
/system/bt/profile/avrcp/ |
D | device.cc | 85 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/ |
D | avrcp_device_test.cc | 488 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()
|