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.java37 public class TmaMediaItem { class
78 final List<TmaMediaItem> mChildren;
80 private final List<TmaMediaItem> mPlayableChildren;
88 private @Nullable TmaMediaItem mParent;
92 public TmaMediaItem(int flags, ContentStyle playableStyle, ContentStyle browsableStyle, in TmaMediaItem() method in TmaMediaItem
95 List<TmaMediaItem> children, String include) { in TmaMediaItem()
104 List<TmaMediaItem> playableChildren = new ArrayList<>(children.size()); in TmaMediaItem()
105 for (TmaMediaItem child: mChildren) { in TmaMediaItem()
114 private void setParent(@Nullable TmaMediaItem parent) { in setParent()
119 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);
60 TmaMediaItem getRoot(TmaBrowseNodeType rootType) { in getRoot()
66 TmaMediaItem getMediaItemById(String mediaId) { in getMediaItemById()
67 TmaMediaItem result = mMediaItemsByMediaId.get(mediaId); in getMediaItemById()
75 private TmaMediaItem loadAssetFile(String filePath) { in loadAssetFile()
76 TmaMediaItem result = mCachedFilesByPath.get(filePath); in loadAssetFile()
89 private void cacheMediaItem(TmaMediaItem item) { in cacheMediaItem()
92 for (TmaMediaItem child : item.mChildren) { in cacheMediaItem()
DTmaPlayer.java48 import com.android.car.media.testmediaapp.TmaMediaItem.TmaCustomAction;
77 private TmaMediaItem mActiveItem;
129 private void playItem(@Nullable TmaMediaItem item) { in playItem()
150 TmaMediaItem item = mLibrary.getMediaItemById(mediaId); in onPrepareFromMediaId()
162 TmaMediaItem root = mLibrary.getRoot(mPrefs.mRootNodeType.getValue()); in onPrepare()
169 void prepareMediaItem(@Nullable TmaMediaItem item) { in prepareMediaItem()
DTmaBrowser.java171 TmaMediaItem queue = mLibrary.getRoot(LEAF_CHILDREN); in onLoadChildren()
190 TmaMediaItem node; in getMediaItemsWithDelay()
208 for (TmaMediaItem child : node.mChildren) { in getMediaItemsWithDelay()
222 private void addSearchResults(@Nullable TmaMediaItem node, Matcher matcher, in addSearchResults()
228 for (TmaMediaItem child : node.mChildren) { in addSearchResults()
/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()