Home
last modified time | relevance | path

Searched refs:MediaItem (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DMediaItem.java26 public class MediaItem implements Parcelable { class
29 public MediaItem() { in MediaItem() method in MediaItem
33 private MediaItem(Parcel in) { in MediaItem() method in MediaItem
63 public static final Parcelable.Creator<MediaItem> CREATOR
64 = new Parcelable.Creator<MediaItem>() {
65 public MediaItem createFromParcel(Parcel in) {
66 return new MediaItem(in);
69 public MediaItem[] newArray(int size) {
70 return new MediaItem[size];
/frameworks/support/media-compat/tests/src/android/support/v4/media/
DStubMediaBrowserServiceCompat.java20 import android.support.v4.media.MediaBrowserCompat.MediaItem;
60 private Result<List<MediaItem>> mPendingLoadChildrenResult;
61 private Result<MediaItem> mPendingLoadItemResult;
83 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren()
84 List<MediaItem> mediaItems = new ArrayList<>(); in onLoadChildren()
102 public void onLoadItem(String itemId, Result<MediaItem> result) { in onLoadItem()
127 public void onSearch(String query, Bundle extras, Result<List<MediaItem>> result) { in onSearch()
129 result.sendResult(Collections.<MediaItem>emptyList()); in onSearch()
133 List<MediaItem> items = new ArrayList<>(); in onSearch()
157 mPendingLoadChildrenResult.sendResult(Collections.<MediaItem>emptyList()); in sendDelayedNotifyChildrenChanged()
[all …]
DMediaItemTest.java24 import android.support.v4.media.MediaBrowserCompat.MediaItem;
47 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_BROWSABLE); in testBrowsableMediaItem()
51 assertEquals(MediaItem.FLAG_BROWSABLE, mediaItem.getFlags()); in testBrowsableMediaItem()
76 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_PLAYABLE); in testPlayableMediaItem()
80 assertEquals(MediaItem.FLAG_PLAYABLE, mediaItem.getFlags()); in testPlayableMediaItem()
DStubRemoteMediaBrowserServiceCompat.java20 import android.support.v4.media.MediaBrowserCompat.MediaItem;
58 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren()
59 List<MediaItem> mediaItems = new ArrayList<>(); in onLoadChildren()
69 private MediaItem createMediaItem(String id) { in createMediaItem()
70 return new MediaItem(new MediaDescriptionCompat.Builder() in createMediaItem()
72 MediaItem.FLAG_BROWSABLE); in createMediaItem()
DMediaBrowserServiceCompatTest.java33 import android.support.v4.media.MediaBrowserCompat.MediaItem;
221 for (MediaItem item : mSearchCallback.mSearchResults) { in testSearch()
418 private void assertRootHints(MediaItem item) { in assertRootHints()
444 public void onChildrenLoaded(String parentId, List<MediaItem> children) { in onChildrenLoaded()
448 for (MediaItem item : children) { in onChildrenLoaded()
457 public void onChildrenLoaded(String parentId, List<MediaItem> children, Bundle options) { in onChildrenLoaded()
461 for (MediaItem item : children) { in onChildrenLoaded()
479 public void onItemLoaded(MediaItem item) { in onItemLoaded()
495 List<MediaItem> mSearchResults;
498 public void onSearchResult(String query, Bundle extras, List<MediaItem> items) { in onSearchResult()
DMediaBrowserCompatTest.java35 import android.support.v4.media.MediaBrowserCompat.MediaItem;
529 mItemCallback.mLastMediaItem = new MediaItem(new MediaDescriptionCompat.Builder() in testGetItemWhenMediaIdIsInvalid()
530 .setMediaId("dummy_id").build(), MediaItem.FLAG_BROWSABLE); in testGetItemWhenMediaIdIsInvalid()
609 private volatile List<MediaItem> mLastChildMediaItems;
621 public void onChildrenLoaded(String parentId, List<MediaItem> children) { in onChildrenLoaded()
631 public void onChildrenLoaded(String parentId, List<MediaItem> children, Bundle options) { in onChildrenLoaded()
661 private volatile MediaItem mLastMediaItem;
670 public void onItemLoaded(MediaItem item) { in onItemLoaded()
DStubMediaBrowserServiceCompatWithDelayedMediaSession.java55 @NonNull Result<List<MediaBrowserCompat.MediaItem>> result) { in onLoadChildren()
/frameworks/support/media-compat/java/android/support/v4/media/
DMediaBrowserServiceCompat.java353 final Result<List<MediaBrowserCompat.MediaItem>> result in onLoadChildren()
354 = new Result<List<MediaBrowserCompat.MediaItem>>(parentId) { in onLoadChildren()
356 void onResultSent(List<MediaBrowserCompat.MediaItem> list) { in onLoadChildren()
360 for (MediaBrowserCompat.MediaItem item : list) { in onLoadChildren()
391 final Result<MediaBrowserCompat.MediaItem> result in onLoadItem()
392 = new Result<MediaBrowserCompat.MediaItem>(itemId) { in onLoadItem()
394 void onResultSent(MediaBrowserCompat.MediaItem item) { in onLoadItem()
437 final Result<List<MediaBrowserCompat.MediaItem>> result in onLoadChildren()
438 = new Result<List<MediaBrowserCompat.MediaItem>>(parentId) { in onLoadChildren()
440 void onResultSent(List<MediaBrowserCompat.MediaItem> list) { in onLoadChildren()
[all …]
DMediaBrowserCompat.java431 public static class MediaItem implements Parcelable { class in MediaBrowserCompat
466 public static MediaItem fromMediaItem(Object itemObj) { in fromMediaItem()
470 int flags = MediaBrowserCompatApi21.MediaItem.getFlags(itemObj); in fromMediaItem()
473 MediaBrowserCompatApi21.MediaItem.getDescription(itemObj)); in fromMediaItem()
474 return new MediaItem(description, flags); in fromMediaItem()
487 public static List<MediaItem> fromMediaItemList(List<?> itemList) { in fromMediaItemList()
491 List<MediaItem> items = new ArrayList<>(itemList.size()); in fromMediaItemList()
504 public MediaItem(@NonNull MediaDescriptionCompat description, @Flags int flags) { in MediaItem() method in MediaBrowserCompat.MediaItem
518 MediaItem(Parcel in) { in MediaItem() method in MediaBrowserCompat.MediaItem
543 public static final Parcelable.Creator<MediaItem> CREATOR =
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DBrowseFragment.java63 void onMediaItemSelected(MediaBrowserCompat.MediaItem item); in onMediaItemSelected()
68 private final List<MediaBrowserCompat.MediaItem> mMediaItems = new ArrayList<>();
78 public void onChildrenLoaded(String parentId, List<MediaBrowserCompat.MediaItem> children,
96 for (MediaBrowserCompat.MediaItem item : children) {
118 public void onChildrenLoaded(String parentId, List<MediaBrowserCompat.MediaItem> children) {
194 MediaBrowserCompat.MediaItem item = mBrowserAdapter.getItem(position); in onCreateView()
256 private static class BrowseAdapter extends ArrayAdapter<MediaBrowserCompat.MediaItem> {
258 public BrowseAdapter(Context context, List<MediaBrowserCompat.MediaItem> mediaItems) { in BrowseAdapter()
286 MediaBrowserCompat.MediaItem item = getItem(position); in getView()
DMediaBrowserServiceSupport.java33 import android.support.v4.media.MediaBrowserCompat.MediaItem;
244 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren()
249 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result, in onLoadChildren()
262 result.sendResult(Collections.<MediaItem>emptyList()); in onLoadChildren()
277 final Result<List<MediaItem>> result, final Bundle options) { in loadChildrenImpl()
289 result.sendResult(new ArrayList<MediaItem>()); in loadChildrenImpl()
297 List<MediaItem> mediaItems = new ArrayList<>(); in loadChildrenImpl()
302 mediaItems.add(new MediaItem( in loadChildrenImpl()
309 .build(), MediaItem.FLAG_BROWSABLE)); in loadChildrenImpl()
320 MediaItem item = new MediaItem( in loadChildrenImpl()
[all …]
DMediaBrowserSupport.java44 public void onMediaItemSelected(MediaBrowserCompat.MediaItem item) { in onMediaItemSelected()
/frameworks/support/media-compat/api21/android/support/v4/media/
DMediaBrowserServiceCompatApi21.java73 mResultObj.sendResult(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel)); in sendResult()
85 List<MediaBrowser.MediaItem> parcelListToItemList(List<Parcel> parcelList) { in parcelListToItemList()
89 List<MediaBrowser.MediaItem> items = new ArrayList<>(); in parcelListToItemList()
92 items.add(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel)); in parcelListToItemList()
127 public void onLoadChildren(String parentId, Result<List<MediaBrowser.MediaItem>> result) { in onLoadChildren()
DMediaBrowserCompatApi21.java131 List<MediaBrowser.MediaItem> children) { in onChildrenLoaded()
141 static class MediaItem { class in MediaBrowserCompatApi21
144 return ((MediaBrowser.MediaItem) itemObj).getFlags(); in getFlags()
148 return ((MediaBrowser.MediaItem) itemObj).getDescription(); in getDescription()
DParceledListSliceAdapterApi21.java41 static Object newInstance(List<MediaBrowser.MediaItem> itemList) { in newInstance()
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java391 @NonNull Result<List<MediaBrowser.MediaItem>> result); in onLoadChildren()
417 @NonNull Result<List<MediaBrowser.MediaItem>> result, @NonNull Bundle options) { in onLoadChildren()
444 public void onLoadItem(String itemId, Result<MediaBrowser.MediaItem> result) { in onLoadItem()
635 final Result<List<MediaBrowser.MediaItem>> result in performLoadChildren()
636 = new Result<List<MediaBrowser.MediaItem>>(parentId) { in performLoadChildren()
638 void onResultSent(List<MediaBrowser.MediaItem> list, @ResultFlags int flag) { in performLoadChildren()
647 List<MediaBrowser.MediaItem> filteredList = in performLoadChildren()
650 final ParceledListSlice<MediaBrowser.MediaItem> pls = in performLoadChildren()
676 private List<MediaBrowser.MediaItem> applyOptions(List<MediaBrowser.MediaItem> list, in applyOptions()
699 final Result<MediaBrowser.MediaItem> result = in performLoadItem()
[all …]
/frameworks/base/media/java/android/media/browse/
DMediaBrowser.java454 if (item != null && !(item instanceof MediaItem)) { in getItem()
458 cb.onItemLoaded((MediaItem)item); in getItem()
667 List<MediaItem> data = list == null ? null : list.getList(); in onLoadChildren()
732 public static class MediaItem implements Parcelable { class in MediaBrowser
762 public MediaItem(@NonNull MediaDescription description, @Flags int flags) { in MediaItem() method in MediaBrowser.MediaItem
776 private MediaItem(Parcel in) { in MediaItem() method in MediaBrowser.MediaItem
801 public static final Parcelable.Creator<MediaItem> CREATOR =
802 new Parcelable.Creator<MediaItem>() {
804 public MediaItem createFromParcel(Parcel in) {
805 return new MediaItem(in);
[all …]
DMediaBrowser.aidl18 parcelable MediaBrowser.MediaItem;
/frameworks/support/media-compat/api24/android/support/v4/media/
DMediaBrowserServiceCompatApi24.java81 List<MediaBrowser.MediaItem> parcelListToItemList(List<Parcel> parcelList) { in parcelListToItemList()
85 List<MediaBrowser.MediaItem> items = new ArrayList<>(); in parcelListToItemList()
88 items.add(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel)); in parcelListToItemList()
102 public void onLoadChildren(String parentId, Result<List<MediaBrowser.MediaItem>> result, in onLoadChildren()
DMediaBrowserCompatApi24.java57 List<MediaBrowser.MediaItem> children, @NonNull Bundle options) { in onChildrenLoaded()
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/
DBrowserService.java126 final Result<List<MediaBrowser.MediaItem>> result) { in onLoadChildren()
129 final ArrayList<MediaBrowser.MediaItem> list = new ArrayList(); in onLoadChildren()
137 list.add(new MediaBrowser.MediaItem(bob.build(), in onLoadChildren()
138 MediaBrowser.MediaItem.FLAG_BROWSABLE)); in onLoadChildren()
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
DBrowserListFragment.java59 final MediaBrowser.MediaItem media;
61 Item(MediaBrowser.MediaItem m) { in Item()
133 List<MediaBrowser.MediaItem> children) {
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DSampleMediaRouterActivity.java250 mLibraryItems.add(new MediaItem( in onCreate()
262 mLibraryItems.add(new MediaItem("[local] " + filename, in onCreate()
660 private static final class MediaItem { class in SampleMediaRouterActivity
665 public MediaItem(String name, Uri uri, String mime) { in MediaItem() method in SampleMediaRouterActivity.MediaItem
677 private final class LibraryAdapter extends ArrayAdapter<MediaItem> {
691 final MediaItem item = getItem(position); in getView()
/frameworks/support/media-compat/api23/android/support/v4/media/
DMediaBrowserServiceCompatApi23.java43 public void onLoadItem(String itemId, Result<MediaBrowser.MediaItem> result) { in onLoadItem()
DMediaBrowserCompatApi23.java48 public void onItemLoaded(MediaBrowser.MediaItem item) { in onItemLoaded()

12