Home
last modified time | relevance | path

Searched refs:Attribute (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/Bluetooth/system/packet/tests/avrcp/
Dget_element_attributes_packet_test.cc37 ASSERT_EQ(attribute_list[0], Attribute::TITLE); in TEST()
48 ASSERT_EQ(attribute_list[0], Attribute::TITLE); in TEST()
49 ASSERT_EQ(attribute_list[1], Attribute::ARTIST_NAME); in TEST()
50 ASSERT_EQ(attribute_list[2], Attribute::ALBUM_NAME); in TEST()
51 ASSERT_EQ(attribute_list[3], Attribute::TRACK_NUMBER); in TEST()
52 ASSERT_EQ(attribute_list[4], Attribute::PLAYING_TIME); in TEST()
53 ASSERT_EQ(attribute_list[5], Attribute::TOTAL_NUMBER_OF_TRACKS); in TEST()
54 ASSERT_EQ(attribute_list[6], Attribute::GENRE); in TEST()
83 builder->AddAttributeEntry(Attribute::TITLE, "test"); in TEST()
85 builder->AddAttributeEntry(Attribute::ARTIST_NAME, "test"); in TEST()
[all …]
Dget_item_attributes_packet_test.cc33 builder->AddAttributeEntry(Attribute::TITLE, "Test Song"); in TEST()
36 builder->AddAttributeEntry(Attribute::ARTIST_NAME, "Test Artist"); in TEST()
39 builder->AddAttributeEntry(Attribute::ALBUM_NAME, "Test Album"); in TEST()
46 builder->AddAttributeEntry(Attribute::TITLE, "Test Song"); in TEST()
47 builder->AddAttributeEntry(Attribute::ARTIST_NAME, "Test Artist"); in TEST()
48 builder->AddAttributeEntry(Attribute::ALBUM_NAME, "Test Album"); in TEST()
56 auto attribute = AttributeEntry(Attribute::TITLE, "1234"); in TEST()
64 truncated_builder->AddAttributeEntry(Attribute::TITLE, "1234truncated")); in TEST()
67 ASSERT_FALSE(truncated_builder->AddAttributeEntry(Attribute::ARTIST_NAME, in TEST()
101 std::vector<Attribute> attrs_requested = {Attribute::TITLE, in TEST()
[all …]
Dget_folder_items_packet_test.cc112 attributes.insert(AttributeEntry(Attribute::TITLE, "Test Title")); in TEST()
122 attributes.insert(AttributeEntry(Attribute::TITLE, "Test Title")); in TEST()
236 std::vector<Attribute> attribute_list = {Attribute::TITLE}; in TEST()
252 {Attribute::TITLE}); in TEST()
/packages/modules/Bluetooth/system/profile/avrcp/tests/
Davrcp_device_test.cc115 if (it->attribute() == Attribute::DEFAULT_COVER_ART) { in FilterCoverArt()
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()
[all …]
/packages/modules/Bluetooth/system/packet/tests/fuzzers/
Dget_element_attributes_res_packet_fuzzer.cc33 builder->AddAttributeEntry(Attribute::TITLE, s); in LLVMFuzzerTestOneInput()
34 builder->AddAttributeEntry(Attribute::ARTIST_NAME, s); in LLVMFuzzerTestOneInput()
35 builder->AddAttributeEntry(Attribute::ALBUM_NAME, s); in LLVMFuzzerTestOneInput()
36 builder->AddAttributeEntry(Attribute::TRACK_NUMBER, s); in LLVMFuzzerTestOneInput()
37 builder->AddAttributeEntry(Attribute::TOTAL_NUMBER_OF_TRACKS, s); in LLVMFuzzerTestOneInput()
38 builder->AddAttributeEntry(Attribute::GENRE, s); in LLVMFuzzerTestOneInput()
39 builder->AddAttributeEntry(Attribute::PLAYING_TIME, s); in LLVMFuzzerTestOneInput()
Dget_item_attributes_res_fuzzer.cc37 builder->AddAttributeEntry(Attribute::TITLE, s); in LLVMFuzzerTestOneInput()
38 builder->AddAttributeEntry(Attribute::ARTIST_NAME, s); in LLVMFuzzerTestOneInput()
39 builder->AddAttributeEntry(Attribute::ALBUM_NAME, s); in LLVMFuzzerTestOneInput()
Dget_folder_items_res_fuzzer.cc36 attributes.insert(AttributeEntry(Attribute::TITLE, s)); in LLVMFuzzerTestOneInput()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java1003 List<Attribute> decodeAttributes(int length, ByteBuffer inputBuffer) in decodeAttributes()
1064 protected Transform(int type, int id, List<Attribute> attributeList) { in Transform()
1091 List<Attribute> attributeList = sAttributeDecoder.decodeAttributes(length, inputBuffer); in readFrom()
1113 public List<Attribute> decodeAttributes(int length, ByteBuffer inputBuffer) in decodeAttributes()
1115 List<Attribute> list = new LinkedList<>(); in decodeAttributes()
1118 Pair<Attribute, Integer> pair = Attribute.readFrom(inputBuffer); in decodeAttributes()
1140 private static void validateAttributeUniqueness(List<Attribute> attributeList) in validateAttributeUniqueness()
1143 for (Attribute attr : attributeList) { in validateAttributeUniqueness()
1152 protected abstract boolean hasUnrecognizedAttribute(List<Attribute> attributeList); in hasUnrecognizedAttribute()
1252 protected EncryptionTransform(int id, List<Attribute> attributeList) in EncryptionTransform()
[all …]
/packages/modules/Bluetooth/system/include/hardware/avrcp/
Davrcp_logging_helper.h135 inline std::string AttributeText(const Attribute& attr) { in AttributeText()
137 CASE_RETURN_TEXT(Attribute::TITLE); in AttributeText()
138 CASE_RETURN_TEXT(Attribute::ARTIST_NAME); in AttributeText()
139 CASE_RETURN_TEXT(Attribute::ALBUM_NAME); in AttributeText()
140 CASE_RETURN_TEXT(Attribute::TRACK_NUMBER); in AttributeText()
141 CASE_RETURN_TEXT(Attribute::TOTAL_NUMBER_OF_TRACKS); in AttributeText()
142 CASE_RETURN_TEXT(Attribute::GENRE); in AttributeText()
143 CASE_RETURN_TEXT(Attribute::PLAYING_TIME); in AttributeText()
144 CASE_RETURN_TEXT(Attribute::DEFAULT_COVER_ART); in AttributeText()
150 inline std::ostream& operator<<(std::ostream& os, const Attribute& attr) {
[all …]
Davrcp_common.h87 enum class Attribute : uint32_t { enum
172 AttributeEntry(const Attribute& attribute, const std::string& value) in AttributeEntry()
175 AttributeEntry(const Attribute& attribute) : attribute_(attribute) {} in AttributeEntry()
179 Attribute attribute() const { return attribute_; } in attribute()
207 Attribute attribute_;
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DLauncherAppWidgetInfo.java255 public static LauncherAtom.Attribute getAttribute(int container) { in getAttribute()
258 return LauncherAtom.Attribute.WIDGETS; in getAttribute()
260 return LauncherAtom.Attribute.WIDGETS_BOTTOM_TRAY; in getAttribute()
262 return LauncherAtom.Attribute.PINITEM; in getAttribute()
264 return LauncherAtom.Attribute.WIDGETS_TRAY_PREDICTION; in getAttribute()
266 return LauncherAtom.Attribute.ALL_APPS_SEARCH_RESULT_WIDGETS; in getAttribute()
268 return LauncherAtom.Attribute.UNKNOWN; in getAttribute()
DFolderInfo.java23 import static com.android.launcher3.logger.LauncherAtom.Attribute.EMPTY_LABEL;
24 import static com.android.launcher3.logger.LauncherAtom.Attribute.MANUAL_LABEL;
25 import static com.android.launcher3.logger.LauncherAtom.Attribute.SUGGESTED_LABEL;
35 import com.android.launcher3.logger.LauncherAtom.Attribute;
77 UNLABELED(Attribute.UNLABELED),
89 private final LauncherAtom.Attribute mLogAttribute;
91 LabelState(Attribute logAttribute) { in LabelState()
/packages/modules/Bluetooth/system/packet/tests/
Dpacket_test_helper.h69 inline std::string to_string(const Attribute& a) { in to_string()
71 case Attribute::TITLE: in to_string()
73 case Attribute::ARTIST_NAME: in to_string()
75 case Attribute::ALBUM_NAME: in to_string()
77 case Attribute::TRACK_NUMBER: in to_string()
79 case Attribute::TOTAL_NUMBER_OF_TRACKS: in to_string()
81 case Attribute::GENRE: in to_string()
83 case Attribute::PLAYING_TIME: in to_string()
85 case Attribute::DEFAULT_COVER_ART: in to_string()
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_element_attributes_packet.cc36 std::vector<Attribute> GetElementAttributesRequest::GetAttributesRequested() in GetAttributesRequested()
42 std::vector<Attribute> attribute_list; in GetAttributesRequested()
45 attribute_list.push_back((Attribute)it.extractBE<uint32_t>()); in GetAttributesRequested()
60 return (num_attributes * sizeof(Attribute)) == (size_t)(end() - attr_start); in IsValid()
113 Attribute attribute, const std::string& value) { in AddAttributeEntry()
Dget_item_attributes.cc49 Attribute attribute, const std::string& value) { in AddAttributeEntry()
107 std::vector<Attribute> GetItemAttributesRequest::GetAttributesRequested() in GetAttributesRequested()
112 std::vector<Attribute> attribute_list; in GetAttributesRequested()
114 attribute_list.push_back((Attribute)it.extractBE<uint32_t>()); in GetAttributesRequested()
126 return (GetNumAttributes() * sizeof(Attribute)) == (size() - kMinSize()); in IsValid()
Dget_folder_items.h91 std::vector<Attribute> GetAttributesRequested() const;
106 const std::set<Attribute>& requested_attrs);
115 const std::set<Attribute>& requested_attrs) in GetFolderItemsRequestBuilder()
125 std::set<Attribute> requested_attrs_;
Dget_folder_items.cc257 std::vector<Attribute> GetFolderItemsRequest::GetAttributesRequested() const { in GetAttributesRequested()
261 std::vector<Attribute> attribute_list; in GetAttributesRequested()
271 attribute_list.push_back((Attribute)it.extractBE<uint32_t>()); in GetAttributesRequested()
291 return (attr_count * sizeof(Attribute)) == (size_t)(end() - attr_start); in IsValid()
312 const std::set<Attribute>& requested_attrs) { in MakeBuilder()
322 len += requested_attrs_.size() * sizeof(Attribute); in size()
Dget_element_attributes_packet.h53 std::vector<Attribute> GetAttributesRequested() const;
73 size_t AddAttributeEntry(Attribute attribute, const std::string& value);
Dget_item_attributes.h37 size_t AddAttributeEntry(Attribute, const std::string&);
94 std::vector<Attribute> GetAttributesRequested() const;
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayloadTest.java58 import com.android.internal.net.ipsec.test.ike.message.IkeSaPayload.Attribute;
155 private List<Attribute> mAttributeListWithKeyLength128;
278 Pair<Attribute, Integer> pair = Attribute.readFrom(inputBuffer); in testDecodeAttribute()
279 Attribute attribute = pair.first; in testDecodeAttribute()
282 assertEquals(Attribute.ATTRIBUTE_TYPE_KEY_LENGTH, attribute.type); in testDecodeAttribute()
317 List<Attribute> attributeList = new ArrayList<>(); in testDecodeEncryptionTransformWithInvalidKeyLength()
318 Attribute keyLengAttr = new KeyLengthAttribute(SaProposal.KEY_LEN_AES_128 + 1); in testDecodeEncryptionTransformWithInvalidKeyLength()
363 doReturn(new ArrayList<Attribute>()) in testDecodePrfTransform()
398 doReturn(new ArrayList<Attribute>()) in testDecodeIntegrityTransform()
449 doReturn(new ArrayList<Attribute>()) in testDecodeDhGroupTransform()
[all …]
/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/pandora/server/bumble_experimental/
Dgatt.py19 from bumble.att import Attribute
276 permissions=Attribute.Permissions(characteristicParam.permissions),
281 permissions=Attribute.Permissions(descParam.permissions),
/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/gd/rust/linux/docs/
Dglossary.md27 ### Attribute Profile
49 ### Generic Attribute Profile
/packages/modules/Bluetooth/system/profile/avrcp/
Ddevice.cc96 if (it->attribute() == Attribute::DEFAULT_COVER_ART) { in filter_cover_art()
1392 builder->AddAttributeEntry(Attribute::TITLE, item_requested.folder.name); in GetItemAttributesVFSResponse()
1395 if (attr == Attribute::TITLE) { in GetItemAttributesVFSResponse()
1396 builder->AddAttributeEntry(Attribute::TITLE, in GetItemAttributesVFSResponse()
1460 const SongInfo& song, const std::vector<Attribute>& attrs) { in filter_attributes_requested()
1513 song.attributes.find(Attribute::TITLE) != song.attributes.end() in GetVFSListResponse()
1514 ? song.attributes.find(Attribute::TITLE)->value() in GetVFSListResponse()
1556 auto title = song.attributes.find(Attribute::TITLE) != song.attributes.end() in GetNowPlayingListResponse()
1557 ? song.attributes.find(Attribute::TITLE)->value() in GetNowPlayingListResponse()

12