Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/profile/avrcp/tests/
Davrcp_device_test.cc154 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/
Dpacket_test_helper.h92 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/
Davrcp_common.h170 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()
Davrcp.h33 std::set<AttributeEntry> attributes;
/packages/modules/Bluetooth/system/packet/tests/avrcp/
Dget_folder_items_packet_test.cc111 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()
Dget_item_attributes_packet_test.cc56 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()
Dget_element_attributes_packet_test.cc107 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/
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);
84 std::set<AttributeEntry> entries_;
Dget_item_attributes.h36 size_t AddAttributeEntry(AttributeEntry entry);
61 std::set<AttributeEntry> entries_;
Dget_element_attributes_packet.cc96 AttributeEntry entry) { in AddAttributeEntry()
114 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
Dget_item_attributes.cc31 AttributeEntry entry) { in AddAttributeEntry()
50 return AddAttributeEntry(AttributeEntry(attribute, value)); in AddAttributeEntry()
Dvendor_packet.h46 const AttributeEntry& entry);
Dvendor_packet.cc72 const AttributeEntry& entry) { in PushAttributeValue()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_avrcp_target.cpp418 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/
Dbtav_shim.cc96 …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/
Ddevice.cc1459 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()