/packages/modules/Bluetooth/system/profile/avrcp/tests/ |
D | avrcp_device_test.cc | 150 AttributeEntry(Attribute::TITLE, "Test Song"), in TEST_F() 151 AttributeEntry(Attribute::ARTIST_NAME, "Test Artist"), in TEST_F() 152 AttributeEntry(Attribute::ALBUM_NAME, "Test Album"), in TEST_F() 153 AttributeEntry(Attribute::TRACK_NUMBER, "1"), in TEST_F() 154 AttributeEntry(Attribute::TOTAL_NUMBER_OF_TRACKS, "2"), in TEST_F() 155 AttributeEntry(Attribute::GENRE, "Test Genre"), in TEST_F() 156 AttributeEntry(Attribute::PLAYING_TIME, "1000"), in TEST_F() 157 AttributeEntry(Attribute::DEFAULT_COVER_ART, "0000001")}}; in TEST_F() 311 AttributeEntry(Attribute::TITLE, "Test Song"), in TEST_F() 312 AttributeEntry(Attribute::ARTIST_NAME, "Test Artist"), in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/packet/tests/ |
D | packet_test_helper.h | 85 inline std::string to_string(const AttributeEntry& entry) { in to_string() 100 inline bool operator==(const AttributeEntry& a, const AttributeEntry& b) { 104 inline bool operator!=(const AttributeEntry& a, const AttributeEntry& b) { return !(a == b); } 118 std::set<AttributeEntry> _control_set; 119 std::list<AttributeEntry> _order_control; 120 std::list<AttributeEntry> _sended_order; 184 void AddAttributeEntry(AttributeEntry entry) { in AddAttributeEntry() 198 void wholeEntry(size_t /*f*/, AttributeEntry&& entry) { in wholeEntry() 207 void fractionEntry(size_t f, AttributeEntry&& entry) { in fractionEntry() 210 auto pushed_entry = AttributeEntry(entry.attribute(), std::string(entry.value(), 0, l_value)); in fractionEntry() [all …]
|
/packages/modules/Bluetooth/system/include/hardware/avrcp/ |
D | avrcp_common.h | 169 class AttributeEntry { 171 AttributeEntry(const Attribute& attribute, const std::string& value) in AttributeEntry() function 174 AttributeEntry(const Attribute& attribute) : attribute_(attribute) {} in AttributeEntry() function 176 AttributeEntry(const AttributeEntry&) = default; 201 bool operator<(const AttributeEntry& rhs) const { return attribute_ < rhs.attribute_; } 275 std::set<AttributeEntry> attributes_; 279 MediaElementItem(uint64_t uid, const std::string& name, std::set<AttributeEntry> attributes) in MediaElementItem() 285 for (AttributeEntry val : attributes) { in MediaElementItem()
|
D | avrcp.h | 33 std::set<AttributeEntry> attributes;
|
/packages/modules/Bluetooth/system/packet/tests/avrcp/ |
D | get_folder_items_packet_test.cc | 109 std::set<AttributeEntry> attributes; in TEST() 110 attributes.insert(AttributeEntry(Attribute::TITLE, "Test Title")); in TEST() 119 std::set<AttributeEntry> attributes; in TEST() 120 attributes.insert(AttributeEntry(Attribute::TITLE, "Test Title")); in TEST() 130 MediaElementItem song1(0x01, "Song 1 that fits", std::set<AttributeEntry>()); in TEST() 131 MediaElementItem song2(0x02, "Song 2 that doesn't fit", std::set<AttributeEntry>()); in TEST() 132 MediaElementItem song3(0x03, "Song 3 that fits", std::set<AttributeEntry>()); in TEST() 188 auto song = MediaElementItem(0x01, "test song", std::set<AttributeEntry>()); in TEST()
|
D | get_item_attributes_packet_test.cc | 54 auto attribute = AttributeEntry(Attribute::TITLE, "1234"); in TEST() 121 std::vector<AttributeEntry> test_data = { in TEST() 147 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST() 150 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize(); in TEST()
|
D | get_element_attributes_packet_test.cc | 103 std::vector<AttributeEntry> test_data = { in TEST() 129 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST() 132 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize(); in TEST() 137 auto attribute = AttributeEntry(Attribute::TITLE, "1234"); in TEST()
|
/packages/modules/Bluetooth/system/packet/tests/fuzzers/ |
D | get_folder_items_res_fuzzer.cc | 33 std::set<AttributeEntry> attributes; in LLVMFuzzerTestOneInput() 36 attributes.insert(AttributeEntry(Attribute::TITLE, s)); in LLVMFuzzerTestOneInput()
|
/packages/modules/Bluetooth/system/packet/avrcp/ |
D | get_element_attributes_packet.h | 72 size_t AddAttributeEntry(AttributeEntry entry); 83 std::set<AttributeEntry> entries_;
|
D | get_item_attributes.h | 36 size_t AddAttributeEntry(AttributeEntry entry); 60 std::set<AttributeEntry> entries_;
|
D | get_element_attributes_packet.cc | 100 size_t GetElementAttributesResponseBuilder::AddAttributeEntry(AttributeEntry entry) { in AddAttributeEntry() 118 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
|
D | get_item_attributes.cc | 34 size_t GetItemAttributesResponseBuilder::AddAttributeEntry(AttributeEntry entry) { in AddAttributeEntry() 52 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
|
D | vendor_packet.h | 44 const AttributeEntry& entry);
|
D | vendor_packet.cc | 65 const AttributeEntry& entry) { in PushAttributeValue()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_avrcp_target.cpp | 41 using bluetooth::avrcp::AttributeEntry; 425 info.attributes.insert(AttributeEntry(Attribute::TITLE, std::string(value))); in getSongInfoFromJavaObj() 433 info.attributes.insert(AttributeEntry(Attribute::ARTIST_NAME, std::string(value))); in getSongInfoFromJavaObj() 441 info.attributes.insert(AttributeEntry(Attribute::ALBUM_NAME, std::string(value))); in getSongInfoFromJavaObj() 449 info.attributes.insert(AttributeEntry(Attribute::TRACK_NUMBER, std::string(value))); in getSongInfoFromJavaObj() 457 info.attributes.insert(AttributeEntry(Attribute::TOTAL_NUMBER_OF_TRACKS, std::string(value))); in getSongInfoFromJavaObj() 465 info.attributes.insert(AttributeEntry(Attribute::GENRE, std::string(value))); in getSongInfoFromJavaObj() 473 info.attributes.insert(AttributeEntry(Attribute::PLAYING_TIME, std::string(value))); in getSongInfoFromJavaObj() 482 info.attributes.insert(AttributeEntry(Attribute::DEFAULT_COVER_ART, imageHandle)); in getSongInfoFromJavaObj()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/btav/ |
D | btav_shim.cc | 96 songInfo_.attributes.emplace(avrcp::AttributeEntry(avrcp::Attribute::TITLE, title)); in SetMetadata() 99 songInfo_.attributes.emplace(avrcp::AttributeEntry(avrcp::Attribute::ARTIST_NAME, artist)); in SetMetadata() 102 songInfo_.attributes.emplace(avrcp::AttributeEntry(avrcp::Attribute::ALBUM_NAME, album)); in SetMetadata()
|
/packages/modules/Bluetooth/system/profile/avrcp/tests/avrcp_device_fuzz/ |
D | avrcp_device_fuzz.cc | 72 sInfo.attributes.insert(AttributeEntry( in GetSongInfo() 93 tempSongInfo.attributes.insert(AttributeEntry( in GetNowPlayingList() 130 tempList.song.attributes.insert(AttributeEntry( in GetFolderItems()
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | device.cc | 1392 static std::set<AttributeEntry> filter_attributes_requested(const SongInfo& song, in filter_attributes_requested() 1394 std::set<AttributeEntry> result; in filter_attributes_requested() 1448 std::set<AttributeEntry>()); in GetVFSListResponse() 1491 MediaElementItem item(i + 1, title, std::set<AttributeEntry>()); in GetNowPlayingListResponse()
|