Home
last modified time | relevance | path

Searched refs:TmaMediaItem (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaMediaItem.java43 public class TmaMediaItem { class
82 final List<TmaMediaItem> mChildren;
84 private final List<TmaMediaItem> mPlayableChildren;
92 private @Nullable TmaMediaItem mParent;
96 public TmaMediaItem(@Flags int flags, ContentStyle playableStyle, ContentStyle browsableStyle, in TmaMediaItem() method in TmaMediaItem
99 List<TmaMediaItem> children, String include) { in TmaMediaItem()
108 List<TmaMediaItem> playableChildren = new ArrayList<>(children.size()); in TmaMediaItem()
109 for (TmaMediaItem child: mChildren) { in TmaMediaItem()
118 private void setParent(@Nullable TmaMediaItem parent) { in setParent()
123 TmaMediaItem getParent() { in getParent()
[all …]
DTmaLibrary.java42 private final Map<String, TmaMediaItem> mCachedFilesByPath = new HashMap<>(50);
45 private final Map<String, TmaMediaItem> mMediaItemsByMediaId = new HashMap<>(500);
57 TmaMediaItem getRoot(TmaBrowseNodeType rootType) { in getRoot()
63 TmaMediaItem getMediaItemById(String mediaId) { in getMediaItemById()
64 TmaMediaItem result = mMediaItemsByMediaId.get(mediaId); in getMediaItemById()
72 private TmaMediaItem loadAssetFile(String filePath) { in loadAssetFile()
73 TmaMediaItem result = mCachedFilesByPath.get(filePath); in loadAssetFile()
86 private void cacheMediaItem(TmaMediaItem item) { in cacheMediaItem()
89 for (TmaMediaItem child : item.mChildren) { in cacheMediaItem()
DTmaPlayer.java49 import com.android.car.media.testmediaapp.TmaMediaItem.TmaCustomAction;
78 private TmaMediaItem mActiveItem;
130 private void playItem(@Nullable TmaMediaItem item) { in playItem()
DTmaBrowser.java144 TmaMediaItem node; in getMediaItemsWithDelay()
157 for (TmaMediaItem child : node.mChildren) { in getMediaItemsWithDelay()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/loader/
DTmaMediaItemReader.java34 import com.android.car.media.testmediaapp.TmaMediaItem.TmaCustomAction;
35 import com.android.car.media.testmediaapp.TmaMediaItem;
36 import com.android.car.media.testmediaapp.TmaMediaItem.ContentStyle;
83 mCustomActions = enumNamesToValues(TmaMediaItem.TmaCustomAction.values()); in TmaMediaItemReader()
90 TmaMediaItem fromJson(@Nullable JSONObject json) { in fromJson()
107 List<TmaMediaItem> mediaItems = new ArrayList<>(childrenCount); in fromJson()
113 return new TmaMediaItem(TmaLoaderUtils.parseFlags(getString(json, Keys.FLAGS), mFlags), in fromJson()
DTmaLoader.java21 import com.android.car.media.testmediaapp.TmaMediaItem;
32 public TmaMediaItem loadAssetFile(String filePath) { in loadAssetFile()