/packages/modules/Bluetooth/system/packet/tests/avrcp/ |
D | get_element_attributes_packet_test.cc | 37 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 …]
|
D | get_item_attributes_packet_test.cc | 33 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 …]
|
D | get_folder_items_packet_test.cc | 112 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/ |
D | avrcp_device_test.cc | 115 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/ |
D | get_element_attributes_res_packet_fuzzer.cc | 33 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()
|
D | get_item_attributes_res_fuzzer.cc | 37 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()
|
D | get_folder_items_res_fuzzer.cc | 36 attributes.insert(AttributeEntry(Attribute::TITLE, s)); in LLVMFuzzerTestOneInput()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeSaPayload.java | 1003 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/ |
D | avrcp_logging_helper.h | 135 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 …]
|
D | avrcp_common.h | 87 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/ |
D | LauncherAppWidgetInfo.java | 255 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()
|
D | FolderInfo.java | 23 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/ |
D | packet_test_helper.h | 69 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/ |
D | get_element_attributes_packet.cc | 36 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()
|
D | get_item_attributes.cc | 49 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()
|
D | get_folder_items.h | 91 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_;
|
D | get_folder_items.cc | 257 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()
|
D | get_element_attributes_packet.h | 53 std::vector<Attribute> GetAttributesRequested() const; 73 size_t AddAttributeEntry(Attribute attribute, const std::string& value);
|
D | get_item_attributes.h | 37 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/ |
D | IkeSaPayloadTest.java | 58 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/ |
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/pandora/server/bumble_experimental/ |
D | gatt.py | 19 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/ |
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/gd/rust/linux/docs/ |
D | glossary.md | 27 ### Attribute Profile 49 ### Generic Attribute Profile
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | device.cc | 96 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()
|