diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-11-11 21:12:17 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-11-11 21:12:17 +0000 |
commit | 26c16a1b9143ffb09457b869f6ab35f20921153a (patch) | |
tree | eefe3d610d4a5baac107fd5a4af17acc37c65d02 | |
parent | 15f2933d81afa6552983f84fc7ae44cef6beba72 (diff) | |
parent | 62a4ce19dede2f7c5fef12e0d52f9b128972e980 (diff) | |
download | tests-android10-mainline-networking-release.tar.gz |
Snap for 6001391 from 62a4ce19dede2f7c5fef12e0d52f9b128972e980 to qt-aml-networking-releaseandroid-mainline-10.0.0_r6android10-mainline-networking-release
Change-Id: I2446c464d30e03e4d404b4d2137ab9595630d684
3 files changed, 30 insertions, 1 deletions
diff --git a/TestMediaApp/assets/media_items/untagged.json b/TestMediaApp/assets/media_items/untagged.json new file mode 100644 index 0000000..fd8f5f5 --- /dev/null +++ b/TestMediaApp/assets/media_items/untagged.json @@ -0,0 +1,27 @@ +{ + "FLAGS": "browsable", + + "METADATA": { + "MEDIA_ID": "untagged", + "DISPLAY_TITLE": "Untagged media items" + }, + + "CHILDREN": [ + { + "METADATA": { + "MEDIA_ID": "untagged normal 10s song", + "DISPLAY_TITLE": "A normal 10s song with a long title. A normal 10s song with a long title. A normal 10s song with a long title. ", + "DURATION": 10000 + } + }, + { + "METADATA": { + "MEDIA_ID": "untagged normal 1H song", + "DISPLAY_TITLE": "A normal 1H song", + "ARTIST": "Artist", + "ALBUM":"Album", + "DURATION": 3600000 + } + } + ] +} diff --git a/TestMediaApp/src/com/android/car/media/testmediaapp/TmaLibrary.java b/TestMediaApp/src/com/android/car/media/testmediaapp/TmaLibrary.java index 8bda24d..327a2b6 100644 --- a/TestMediaApp/src/com/android/car/media/testmediaapp/TmaLibrary.java +++ b/TestMediaApp/src/com/android/car/media/testmediaapp/TmaLibrary.java @@ -53,6 +53,7 @@ class TmaLibrary { mRootAssetPaths.put(TmaBrowseNodeType.NODE_CHILDREN, "media_items/only_nodes.json"); mRootAssetPaths.put(TmaBrowseNodeType.LEAF_CHILDREN, "media_items/simple_leaves.json"); mRootAssetPaths.put(TmaBrowseNodeType.MIXED_CHILDREN, "media_items/mixed.json"); + mRootAssetPaths.put(TmaBrowseNodeType.UNTAGGED, "media_items/untagged.json"); } @Nullable diff --git a/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/TmaEnumPrefs.java b/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/TmaEnumPrefs.java index 347e52c..3702929 100644 --- a/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/TmaEnumPrefs.java +++ b/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/TmaEnumPrefs.java @@ -87,7 +87,8 @@ public class TmaEnumPrefs { SINGLE_TAB("Single browse-able tab", "single-tab"), NODE_CHILDREN("Only browse-able content", "nodes"), LEAF_CHILDREN("Only playable content (basic working and error cases)", "leaves"), - MIXED_CHILDREN("Mixed content (apps are not supposed to do that)", "mixed"); + MIXED_CHILDREN("Mixed content (apps are not supposed to do that)", "mixed"), + UNTAGGED("Untagged media items (not playable or browsable)", "untagged"); private final PrefValueImpl mPrefValue; |