/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | MediaItem.java | 26 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/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/ |
D | StubMediaBrowserServiceCompat.java | 37 import android.support.v4.media.MediaBrowserCompat.MediaItem; 56 private Result<List<MediaItem>> mPendingLoadChildrenResult; 57 private Result<MediaItem> mPendingLoadItemResult; 86 public void onLoadChildren(final String parentId, final Result<List<MediaItem>> result) { in onLoadChildren() 87 List<MediaItem> mediaItems = new ArrayList<>(); in onLoadChildren() 105 public void onLoadChildren(@NonNull String parentId, @NonNull Result<List<MediaItem>> result, in onLoadChildren() 113 List<MediaItem> mediaItems = new ArrayList<>(); in onLoadChildren() 114 mediaItems.add(new MediaItem(metadata.getDescription(), MediaItem.FLAG_PLAYABLE)); in onLoadChildren() 123 public void onLoadItem(String itemId, Result<MediaItem> result) { in onLoadItem() 148 public void onSearch(String query, Bundle extras, Result<List<MediaItem>> result) { in onSearch() [all …]
|
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/ |
D | StubMediaBrowserServiceCompat.java | 36 import android.support.v4.media.MediaBrowserCompat.MediaItem; 57 private Result<List<MediaItem>> mPendingLoadChildrenResult; 58 private Result<MediaItem> mPendingLoadItemResult; 87 public void onLoadChildren(final String parentId, final Result<List<MediaItem>> result) { in onLoadChildren() 88 List<MediaItem> mediaItems = new ArrayList<>(); in onLoadChildren() 106 public void onLoadChildren(@NonNull String parentId, @NonNull Result<List<MediaItem>> result, in onLoadChildren() 114 List<MediaItem> mediaItems = new ArrayList<>(); in onLoadChildren() 115 mediaItems.add(new MediaItem(metadata.getDescription(), MediaItem.FLAG_PLAYABLE)); in onLoadChildren() 124 public void onLoadItem(String itemId, Result<MediaItem> result) { in onLoadItem() 149 public void onSearch(String query, Bundle extras, Result<List<MediaItem>> result) { in onSearch() [all …]
|
D | StubMediaBrowserServiceCompatWithDelayedMediaSession.java | 58 @NonNull Result<List<MediaBrowserCompat.MediaItem>> result) { in onLoadChildren()
|
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/ |
D | MediaItemTest.java | 24 import android.support.v4.media.MediaBrowserCompat.MediaItem; 48 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_BROWSABLE); in testBrowsableMediaItem() 52 assertEquals(MediaItem.FLAG_BROWSABLE, mediaItem.getFlags()); in testBrowsableMediaItem() 77 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_PLAYABLE); in testPlayableMediaItem() 81 assertEquals(MediaItem.FLAG_PLAYABLE, mediaItem.getFlags()); in testPlayableMediaItem()
|
D | MediaBrowserCompatTest.java | 73 import android.support.v4.media.MediaBrowserCompat.MediaItem; 592 mItemCallback.mLastMediaItem = new MediaItem(new MediaDescriptionCompat.Builder() in testGetItemWhenMediaIdIsInvalid() 593 .setMediaId("dummy_id").build(), MediaItem.FLAG_BROWSABLE); in testGetItemWhenMediaIdIsInvalid() 635 for (MediaItem item : mSearchCallback.mSearchResults) { in testSearch() 858 private volatile List<MediaItem> mLastChildMediaItems; 879 public void onChildrenLoaded(@NonNull String parentId, @NonNull List<MediaItem> children) { in onChildrenLoaded() 887 public void onChildrenLoaded(@NonNull String parentId, @NonNull List<MediaItem> children, in onChildrenLoaded() 912 private volatile MediaItem mLastMediaItem; 921 public void onItemLoaded(MediaItem item) { in onItemLoaded() 941 List<MediaItem> mSearchResults; [all …]
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/ |
D | MediaItemTest.java | 24 import android.support.v4.media.MediaBrowserCompat.MediaItem; 48 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_BROWSABLE); in testBrowsableMediaItem() 52 assertEquals(MediaItem.FLAG_BROWSABLE, mediaItem.getFlags()); in testBrowsableMediaItem() 77 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_PLAYABLE); in testPlayableMediaItem() 81 assertEquals(MediaItem.FLAG_PLAYABLE, mediaItem.getFlags()); in testPlayableMediaItem()
|
D | MediaBrowserCompatTest.java | 76 import android.support.v4.media.MediaBrowserCompat.MediaItem; 641 mItemCallback.mLastMediaItem = new MediaItem(new MediaDescriptionCompat.Builder() in testGetItemWhenMediaIdIsInvalid() 642 .setMediaId("dummy_id").build(), MediaItem.FLAG_BROWSABLE); in testGetItemWhenMediaIdIsInvalid() 684 for (MediaItem item : mSearchCallback.mSearchResults) { in testSearch() 923 private volatile List<MediaItem> mLastChildMediaItems; 944 public void onChildrenLoaded(@NonNull String parentId, @NonNull List<MediaItem> children) { in onChildrenLoaded() 952 public void onChildrenLoaded(@NonNull String parentId, @NonNull List<MediaItem> children, in onChildrenLoaded() 977 private volatile MediaItem mLastMediaItem; 986 public void onItemLoaded(MediaItem item) { in onItemLoaded() 1006 List<MediaItem> mSearchResults; [all …]
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
D | BrowseFragment.java | 64 void onMediaItemSelected(MediaBrowserCompat.MediaItem item); in onMediaItemSelected() 69 private final List<MediaBrowserCompat.MediaItem> mMediaItems = new ArrayList<>(); 79 public void onChildrenLoaded(String parentId, List<MediaBrowserCompat.MediaItem> children, 97 for (MediaBrowserCompat.MediaItem item : children) { 119 public void onChildrenLoaded(String parentId, List<MediaBrowserCompat.MediaItem> children) { 195 MediaBrowserCompat.MediaItem item = mBrowserAdapter.getItem(position); in onCreateView() 257 private static class BrowseAdapter extends ArrayAdapter<MediaBrowserCompat.MediaItem> { 259 public BrowseAdapter(Context context, List<MediaBrowserCompat.MediaItem> mediaItems) { in BrowseAdapter() 287 MediaBrowserCompat.MediaItem item = getItem(position); in getView()
|
D | MediaBrowserServiceSupport.java | 33 import android.support.v4.media.MediaBrowserCompat.MediaItem; 245 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren() 250 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result, in onLoadChildren() 263 result.sendResult(Collections.<MediaItem>emptyList()); in onLoadChildren() 278 final Result<List<MediaItem>> result, final Bundle options) { in loadChildrenImpl() 290 result.sendResult(new ArrayList<MediaItem>()); in loadChildrenImpl() 298 List<MediaItem> mediaItems = new ArrayList<>(); in loadChildrenImpl() 303 mediaItems.add(new MediaItem( in loadChildrenImpl() 310 .build(), MediaItem.FLAG_BROWSABLE)); in loadChildrenImpl() 321 MediaItem item = new MediaItem( in loadChildrenImpl() [all …]
|
/frameworks/support/media/api21/android/support/v4/media/ |
D | MediaBrowserCompatApi21.java | 132 List<MediaBrowser.MediaItem> children) { in onChildrenLoaded() 142 static class MediaItem { class in MediaBrowserCompatApi21 145 return ((MediaBrowser.MediaItem) itemObj).getFlags(); in getFlags() 149 return ((MediaBrowser.MediaItem) itemObj).getDescription(); in getDescription() 152 private MediaItem() { in MediaItem() method in MediaBrowserCompatApi21.MediaItem
|
D | ParceledListSliceAdapterApi21.java | 42 static Object newInstance(List<MediaBrowser.MediaItem> itemList) { in newInstance()
|
/frameworks/support/media/src/main/java/androidx/media/ |
D | MediaBrowserServiceCompat.java | 371 final Result<List<MediaBrowserCompat.MediaItem>> result in onLoadChildren() 372 = new Result<List<MediaBrowserCompat.MediaItem>>(parentId) { in onLoadChildren() 374 void onResultSent(List<MediaBrowserCompat.MediaItem> list) { in onLoadChildren() 378 for (MediaBrowserCompat.MediaItem item : list) { in onLoadChildren() 471 final Result<MediaBrowserCompat.MediaItem> result in onLoadItem() 472 = new Result<MediaBrowserCompat.MediaItem>(itemId) { in onLoadItem() 474 void onResultSent(MediaBrowserCompat.MediaItem item) { in onLoadItem() 506 final Result<List<MediaBrowserCompat.MediaItem>> result in onLoadChildren() 507 = new Result<List<MediaBrowserCompat.MediaItem>>(parentId) { in onLoadChildren() 509 void onResultSent(List<MediaBrowserCompat.MediaItem> list) { in onLoadChildren() [all …]
|
D | MediaBrowser2.java | 29 import android.support.v4.media.MediaBrowserCompat.MediaItem; 324 public void onItemLoaded(final MediaItem item) { in getItem() 363 final List<MediaItem> items) { in search() 402 final List<MediaItem> items) { in getSearchResult() 501 public void onChildrenLoaded(String parentId, List<MediaItem> children) { in onChildrenLoaded() 506 public void onChildrenLoaded(final String parentId, List<MediaItem> children, in onChildrenLoaded() 553 public void onChildrenLoaded(String parentId, List<MediaItem> children) { in onChildrenLoaded() 558 public void onChildrenLoaded(final String parentId, List<MediaItem> children, in onChildrenLoaded()
|
D | MediaUtils2.java | 33 import android.support.v4.media.MediaBrowserCompat.MediaItem; 56 static MediaItem createMediaItem(MediaItem2 item2) { in createMediaItem() 94 return new MediaItem(descCompat, item2.getFlags()); in createMediaItem() 103 static MediaItem2 createMediaItem2(MediaItem item) { in createMediaItem2() 115 static List<MediaItem> fromMediaItem2List(List<MediaItem2> items) { in fromMediaItem2List() 119 List<MediaItem> result = new ArrayList<>(); in fromMediaItem2List() 126 static List<MediaItem2> toMediaItem2List(List<MediaItem> items) { in toMediaItem2List()
|
D | MediaLibraryService2.java | 31 import android.support.v4.media.MediaBrowserCompat.MediaItem; 513 public void onLoadChildren(String parentId, Result<List<MediaItem>> result) { in onLoadChildren() 518 public void onLoadChildren(final String parentId, final Result<List<MediaItem>> result, in onLoadChildren() 559 public void onLoadItem(final String itemId, final Result<MediaItem> result) { in onLoadItem() 578 final Result<List<MediaItem>> result) { in onSearch()
|
D | MediaSessionService2.java | 26 import android.support.v4.media.MediaBrowserCompat.MediaItem; 318 public void onLoadChildren(String parentId, Result<List<MediaItem>> result) { in onLoadChildren()
|
/frameworks/support/media/api21/androidx/media/ |
D | MediaBrowserServiceCompatApi21.java | 74 mResultObj.sendResult(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel)); in sendResult() 86 List<MediaBrowser.MediaItem> parcelListToItemList(List<Parcel> parcelList) { in parcelListToItemList() 90 List<MediaBrowser.MediaItem> items = new ArrayList<>(); in parcelListToItemList() 93 items.add(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel)); in parcelListToItemList() 128 public void onLoadChildren(String parentId, Result<List<MediaBrowser.MediaItem>> result) { in onLoadChildren()
|
/frameworks/support/media/api26/androidx/media/ |
D | MediaBrowserServiceCompatApi26.java | 82 List<MediaBrowser.MediaItem> parcelListToItemList(List<Parcel> parcelList) { in parcelListToItemList() 86 List<MediaBrowser.MediaItem> items = new ArrayList<>(); in parcelListToItemList() 89 items.add(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel)); in parcelListToItemList() 103 public void onLoadChildren(String parentId, Result<List<MediaBrowser.MediaItem>> result, in onLoadChildren()
|
/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowser.java | 463 if (item != null && !(item instanceof MediaItem)) { in getItem() 467 cb.onItemLoaded((MediaItem)item); in getItem() 677 List<MediaItem> data = list == null ? null : list.getList(); in onLoadChildren() 742 public static class MediaItem implements Parcelable { class in MediaBrowser 772 public MediaItem(@NonNull MediaDescription description, @Flags int flags) { in MediaItem() method in MediaBrowser.MediaItem 786 private MediaItem(Parcel in) { in MediaItem() method in MediaBrowser.MediaItem 811 public static final Parcelable.Creator<MediaItem> CREATOR = 812 new Parcelable.Creator<MediaItem>() { 814 public MediaItem createFromParcel(Parcel in) { 815 return new MediaItem(in); [all …]
|
D | MediaBrowser.aidl | 18 parcelable MediaBrowser.MediaItem;
|
/frameworks/base/media/java/android/service/media/ |
D | MediaBrowserService.java | 412 @NonNull Result<List<MediaBrowser.MediaItem>> result); in onLoadChildren() 438 @NonNull Result<List<MediaBrowser.MediaItem>> result, @NonNull Bundle options) { in onLoadChildren() 465 public void onLoadItem(String itemId, Result<MediaBrowser.MediaItem> result) { in onLoadItem() 672 final Result<List<MediaBrowser.MediaItem>> result in performLoadChildren() 673 = new Result<List<MediaBrowser.MediaItem>>(parentId) { in performLoadChildren() 675 void onResultSent(List<MediaBrowser.MediaItem> list, @ResultFlags int flag) { in performLoadChildren() 684 List<MediaBrowser.MediaItem> filteredList = in performLoadChildren() 687 final ParceledListSlice<MediaBrowser.MediaItem> pls = in performLoadChildren() 713 private List<MediaBrowser.MediaItem> applyOptions(List<MediaBrowser.MediaItem> list, in applyOptions() 736 final Result<MediaBrowser.MediaItem> result = in performLoadItem() [all …]
|
/frameworks/support/media/src/main/java/android/support/v4/media/ |
D | MediaBrowserCompat.java | 451 public static class MediaItem implements Parcelable { class in MediaBrowserCompat 486 public static MediaItem fromMediaItem(Object itemObj) { in fromMediaItem() 490 int flags = MediaBrowserCompatApi21.MediaItem.getFlags(itemObj); in fromMediaItem() 493 MediaBrowserCompatApi21.MediaItem.getDescription(itemObj)); in fromMediaItem() 494 return new MediaItem(description, flags); in fromMediaItem() 507 public static List<MediaItem> fromMediaItemList(List<?> itemList) { in fromMediaItemList() 511 List<MediaItem> items = new ArrayList<>(itemList.size()); in fromMediaItemList() 524 public MediaItem(@NonNull MediaDescriptionCompat description, @Flags int flags) { in MediaItem() method in MediaBrowserCompat.MediaItem 538 MediaItem(Parcel in) { in MediaItem() method in MediaBrowserCompat.MediaItem 563 public static final Parcelable.Creator<MediaItem> CREATOR = [all …]
|
/frameworks/support/media/api23/androidx/media/ |
D | MediaBrowserServiceCompatApi23.java | 43 public void onLoadItem(String itemId, Result<MediaBrowser.MediaItem> result) { in onLoadItem()
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/ |
D | SampleMediaRouterActivity.java | 259 mLibraryItems.add(new MediaItem( in onCreate() 271 mLibraryItems.add(new MediaItem("[local] " + filename, in onCreate() 669 private static final class MediaItem { class in SampleMediaRouterActivity 674 public MediaItem(String name, Uri uri, String mime) { in MediaItem() method in SampleMediaRouterActivity.MediaItem 686 private final class LibraryAdapter extends ArrayAdapter<MediaItem> { 700 final MediaItem item = getItem(position); in getView()
|