/packages/modules/Bluetooth/system/profile/avrcp/tests/ |
D | avrcp_device_test.cc | 154 AttributeEntry(Attribute::TITLE, "Test Song"), in TEST_F() 155 AttributeEntry(Attribute::ARTIST_NAME, "Test Artist"), in TEST_F() 156 AttributeEntry(Attribute::ALBUM_NAME, "Test Album"), in TEST_F() 157 AttributeEntry(Attribute::TRACK_NUMBER, "1"), in TEST_F() 158 AttributeEntry(Attribute::TOTAL_NUMBER_OF_TRACKS, "2"), in TEST_F() 159 AttributeEntry(Attribute::GENRE, "Test Genre"), in TEST_F() 160 AttributeEntry(Attribute::PLAYING_TIME, "1000"), in TEST_F() 161 AttributeEntry(Attribute::DEFAULT_COVER_ART, "0000001")}}; in TEST_F() 353 AttributeEntry(Attribute::TITLE, "Test Song"), in TEST_F() 354 AttributeEntry(Attribute::ARTIST_NAME, "Test Artist"), in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/packet/tests/ |
D | packet_test_helper.h | 92 inline std::string to_string(const AttributeEntry& entry) { in to_string() 107 inline bool operator==(const AttributeEntry& a, const AttributeEntry& b) { 111 inline bool operator!=(const AttributeEntry& a, const AttributeEntry& b) { 127 std::set<AttributeEntry> _control_set; 128 std::list<AttributeEntry> _order_control; 129 std::list<AttributeEntry> _sended_order; 194 void AddAttributeEntry(AttributeEntry entry) { in AddAttributeEntry() 208 void wholeEntry(size_t f, AttributeEntry&& entry) { in wholeEntry() 218 void fractionEntry(size_t f, AttributeEntry&& entry) { in fractionEntry() 221 auto pushed_entry = AttributeEntry( in fractionEntry() [all …]
|
/packages/modules/Bluetooth/system/include/hardware/avrcp/ |
D | avrcp_common.h | 170 class AttributeEntry { 172 AttributeEntry(const Attribute& attribute, const std::string& value) in AttributeEntry() function 175 AttributeEntry(const Attribute& attribute) : attribute_(attribute) {} in AttributeEntry() function 177 AttributeEntry(const AttributeEntry&) = default; 202 bool operator<(const AttributeEntry& rhs) const { 282 std::set<AttributeEntry> attributes_; 287 std::set<AttributeEntry> attributes) in MediaElementItem() 293 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 | 111 std::set<AttributeEntry> attributes; in TEST() 112 attributes.insert(AttributeEntry(Attribute::TITLE, "Test Title")); in TEST() 121 std::set<AttributeEntry> attributes; in TEST() 122 attributes.insert(AttributeEntry(Attribute::TITLE, "Test Title")); in TEST() 132 MediaElementItem song1(0x01, "Song 1 that fits", std::set<AttributeEntry>()); in TEST() 134 std::set<AttributeEntry>()); in TEST() 135 MediaElementItem song3(0x03, "Song 3 that fits", std::set<AttributeEntry>()); in TEST() 193 auto song = MediaElementItem(0x01, "test song", std::set<AttributeEntry>()); in TEST()
|
D | get_item_attributes_packet_test.cc | 56 auto attribute = AttributeEntry(Attribute::TITLE, "1234"); in TEST() 130 std::vector<AttributeEntry> test_data = { in TEST() 165 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST() 168 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize(); in TEST()
|
D | get_element_attributes_packet_test.cc | 107 std::vector<AttributeEntry> test_data = { in TEST() 140 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST() 143 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize(); in TEST() 148 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); 84 std::set<AttributeEntry> entries_;
|
D | get_item_attributes.h | 36 size_t AddAttributeEntry(AttributeEntry entry); 61 std::set<AttributeEntry> entries_;
|
D | get_element_attributes_packet.cc | 96 AttributeEntry entry) { in AddAttributeEntry() 114 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
|
D | get_item_attributes.cc | 31 AttributeEntry entry) { in AddAttributeEntry() 50 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
|
D | vendor_packet.h | 46 const AttributeEntry& entry);
|
D | vendor_packet.cc | 72 const AttributeEntry& entry) { in PushAttributeValue()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_avrcp_target.cpp | 418 AttributeEntry(Attribute::TITLE, std::string(value))); in getSongInfoFromJavaObj() 427 AttributeEntry(Attribute::ARTIST_NAME, std::string(value))); in getSongInfoFromJavaObj() 436 AttributeEntry(Attribute::ALBUM_NAME, std::string(value))); in getSongInfoFromJavaObj() 445 AttributeEntry(Attribute::TRACK_NUMBER, std::string(value))); in getSongInfoFromJavaObj() 454 AttributeEntry(Attribute::TOTAL_NUMBER_OF_TRACKS, std::string(value))); in getSongInfoFromJavaObj() 463 AttributeEntry(Attribute::GENRE, std::string(value))); in getSongInfoFromJavaObj() 472 AttributeEntry(Attribute::PLAYING_TIME, std::string(value))); in getSongInfoFromJavaObj() 482 AttributeEntry(Attribute::DEFAULT_COVER_ART, imageHandle)); in getSongInfoFromJavaObj()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/btav/ |
D | btav_shim.cc | 96 …if (title.length()) songInfo_.attributes.emplace(avrcp::AttributeEntry(avrcp::Attribute::TITLE, ti… in SetMetadata() 97 …if (artist.length()) songInfo_.attributes.emplace(avrcp::AttributeEntry(avrcp::Attribute::ARTIST_N… in SetMetadata() 98 …if (album.length()) songInfo_.attributes.emplace(avrcp::AttributeEntry(avrcp::Attribute::ALBUM_NAM… in SetMetadata()
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | device.cc | 1459 std::set<AttributeEntry> filter_attributes_requested( in filter_attributes_requested() 1461 std::set<AttributeEntry> result; in filter_attributes_requested() 1517 std::set<AttributeEntry>()); in GetVFSListResponse() 1560 MediaElementItem item(i + 1, title, std::set<AttributeEntry>()); in GetNowPlayingListResponse()
|