Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/profile/avrcp/tests/
Davrcp_device_test.cc150 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/
Dpacket_test_helper.h85 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/
Davrcp_common.h169 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()
Davrcp.h33 std::set<AttributeEntry> attributes;
/packages/modules/Bluetooth/system/packet/tests/avrcp/
Dget_folder_items_packet_test.cc109 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()
Dget_item_attributes_packet_test.cc54 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()
Dget_element_attributes_packet_test.cc103 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/
Dget_folder_items_res_fuzzer.cc33 std::set<AttributeEntry> attributes; in LLVMFuzzerTestOneInput()
36 attributes.insert(AttributeEntry(Attribute::TITLE, s)); in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_element_attributes_packet.h72 size_t AddAttributeEntry(AttributeEntry entry);
83 std::set<AttributeEntry> entries_;
Dget_item_attributes.h36 size_t AddAttributeEntry(AttributeEntry entry);
60 std::set<AttributeEntry> entries_;
Dget_element_attributes_packet.cc100 size_t GetElementAttributesResponseBuilder::AddAttributeEntry(AttributeEntry entry) { in AddAttributeEntry()
118 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
Dget_item_attributes.cc34 size_t GetItemAttributesResponseBuilder::AddAttributeEntry(AttributeEntry entry) { in AddAttributeEntry()
52 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
Dvendor_packet.h44 const AttributeEntry& entry);
Dvendor_packet.cc65 const AttributeEntry& entry) { in PushAttributeValue()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_avrcp_target.cpp41 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/
Dbtav_shim.cc96 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/
Davrcp_device_fuzz.cc72 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/
Ddevice.cc1392 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()