Home
last modified time | relevance | path

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

1234

/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/
DTvMediaOutputController.java38 import com.android.systemui.media.dialog.MediaItem;
130 protected List<MediaItem> buildMediaItems(List<MediaItem> oldMediaItems, in buildMediaItems()
140 private List<MediaItem> buildInitialList(List<MediaDevice> devices) { in buildInitialList()
143 List<MediaItem> finalMediaItems = new ArrayList<>(); in buildInitialList()
151 finalMediaItems.add(MediaItem.createDeviceMediaItem(device)); in buildInitialList()
162 private List<MediaItem> buildBetterSubsequentList(List<MediaItem> previousMediaItems, in buildBetterSubsequentList()
165 final List<MediaItem> targetMediaItems = new ArrayList<>(); in buildBetterSubsequentList()
167 List<MediaItem> oldMediaItems = previousMediaItems.stream() in buildBetterSubsequentList()
178 private void addItemsBasedOnConnection(List<MediaItem> targetMediaItems, in addItemsBasedOnConnection()
179 List<MediaItem> oldMediaItems, List<MediaDevice> devices, boolean isConnected) { in addItemsBasedOnConnection()
[all …]
DTvMediaOutputAdapter.java38 import com.android.systemui.media.dialog.MediaItem;
56 protected List<MediaItem> mMediaItemList = new CopyOnWriteArrayList<>();
80 return MediaItem.MediaItemType.TYPE_GROUP_DIVIDER; in getItemViewType()
88 .inflate(MediaItem.getMediaLayoutId(viewType), parent, false); in onCreateViewHolder()
91 case MediaItem.MediaItemType.TYPE_GROUP_DIVIDER: in onCreateViewHolder()
93 case MediaItem.MediaItemType.TYPE_PAIR_NEW_DEVICE: in onCreateViewHolder()
94 case MediaItem.MediaItemType.TYPE_DEVICE: in onCreateViewHolder()
108 MediaItem currentMediaItem = mMediaItemList.get(position); in onBindViewHolder()
110 case MediaItem.MediaItemType.TYPE_GROUP_DIVIDER -> in onBindViewHolder()
112 case MediaItem.MediaItemType.TYPE_PAIR_NEW_DEVICE -> in onBindViewHolder()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DClusterAlbum.java28 private MediaItem mCover;
38 public void setCoverMediaItem(MediaItem cover) { in setCoverMediaItem()
43 public MediaItem getCoverMediaItem() { in getCoverMediaItem()
70 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
74 public static ArrayList<MediaItem> getMediaItemFromPath( in getMediaItemFromPath()
78 return new ArrayList<MediaItem>(); in getMediaItemFromPath()
82 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItemFromPath()
85 public void consume(int index, MediaItem item) { in getMediaItemFromPath()
90 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItemFromPath()
130 public void consume(int index, MediaItem item) { in delete()
DLocalMergeAlbum.java41 private final Comparator<MediaItem> mComparator;
52 Path path, Comparator<MediaItem> comparator, MediaSet[] sources, int bucketId) { in LocalMergeAlbum()
74 int supported = mSources.length == 0 ? 0 : MediaItem.SUPPORT_ALL; in updateData()
120 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
126 MediaItem[] slot = new MediaItem[mSources.length]; in getMediaItem()
135 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
215 private SoftReference<ArrayList<MediaItem>> mCacheRef;
226 public MediaItem getItem(int index) { in getItem()
228 ArrayList<MediaItem> cache = null; in getItem()
241 mCacheRef = new SoftReference<ArrayList<MediaItem>>(cache); in getItem()
DSingleItemAlbum.java24 private final MediaItem mItem;
27 public SingleItemAlbum(Path path, MediaItem item) { in SingleItemAlbum()
39 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
40 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); in getMediaItem()
50 public MediaItem getItem() { in getItem()
DMediaSet.java72 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
73 return new ArrayList<MediaItem>(); in getMediaItem()
76 public MediaItem getCoverMediaItem() { in getCoverMediaItem()
77 ArrayList<MediaItem> items = getMediaItem(0, 1); in getCoverMediaItem()
80 MediaItem cover = getSubMediaSet(i).getCoverMediaItem(); in getCoverMediaItem()
124 ArrayList<MediaItem> list = getMediaItem( in getIndexOfItem()
141 protected int getIndexOf(Path path, ArrayList<MediaItem> list) { in getIndexOf()
196 void consume(int index, MediaItem item); in consume()
207 ArrayList<MediaItem> items = getMediaItem(start, count); in enumerateMediaItems()
209 MediaItem item = items.get(i); in enumerateMediaItems()
DSecureAlbum.java53 private MediaItem mUnlockItem;
56 public SecureAlbum(Path path, GalleryApp application, MediaItem unlock) { in SecureAlbum()
87 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
90 return new ArrayList<MediaItem>(); in getMediaItem()
98 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItem()
101 public void consume(int index, MediaItem item) { in getMediaItem()
106 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItem()
DImageCacheRequest.java48 ((mType == MediaItem.TYPE_THUMBNAIL) ? "THUMB" : in debugTag()
49 (mType == MediaItem.TYPE_MICROTHUMBNAIL) ? "MICROTHUMB" : "?"); in debugTag()
56 BytesBuffer buffer = MediaItem.getBytesBufferPool().get(); in run()
64 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
77 MediaItem.getBytesBufferPool().recycle(buffer); in run()
87 if (mType == MediaItem.TYPE_MICROTHUMBNAIL) { in run()
DFilterEmptyPromptSet.java25 private ArrayList<MediaItem> mEmptyItem;
28 public FilterEmptyPromptSet(Path path, MediaSet baseSet, MediaItem emptyItem) { in FilterEmptyPromptSet()
30 mEmptyItem = new ArrayList<MediaItem>(1); in FilterEmptyPromptSet()
47 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
DLocalAlbum.java115 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
119 ArrayList<MediaItem> list = new ArrayList<MediaItem>(); in getMediaItem()
134 MediaItem item = loadOrUpdateItem(childPath, cursor, in getMediaItem()
144 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, in loadOrUpdateItem()
162 public static MediaItem[] getMediaItemById( in getMediaItemById()
165 MediaItem[] result = new MediaItem[ids.size()]; in getMediaItemById()
212 MediaItem item = loadOrUpdateItem(childPath, cursor, dataManager, in getMediaItemById()
DFaceClustering.java39 MediaItem mCoverItem;
47 public void add(MediaItem item, int faceIndex) { in add()
73 public MediaItem getCover() { in getCover()
98 public void consume(int index, MediaItem item) { in run()
139 public MediaItem getClusterCover(int index) { in getClusterCover()
DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem()
43 ArrayList<MediaItem> items = new ArrayList<MediaItem>(); in getMediaItem()
49 ArrayList<MediaItem> fetchItems = set.getMediaItem(start, fetchCount); in getMediaItem()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java25 import android.media.browse.MediaBrowser.MediaItem;
92 public void onQueryByFolder(String parentId, Result<List<MediaItem>> result) { in onQueryByFolder()
97 public void onQueryByAlbum(String parentId, Result<List<MediaItem>> result) { in onQueryByAlbum()
104 .setFlags(MediaItem.FLAG_BROWSABLE) in onQueryByAlbum()
109 public void onQueryByArtist(String parentId, Result<List<MediaItem>> result) { in onQueryByArtist()
116 .setFlags(MediaItem.FLAG_BROWSABLE) in onQueryByArtist()
121 public void onQueryByGenre(String parentId, Result<List<MediaItem>> result) { in onQueryByGenre()
128 .setFlags(MediaItem.FLAG_BROWSABLE) in onQueryByGenre()
133 private void queryInBackground(Result<List<MediaItem>> result, in queryInBackground()
201 public void onQueryByKey(String lastCategory, String parentId, Result<List<MediaItem>> result) { in onQueryByKey()
[all …]
DLocalMediaBrowserService.java49 List<MediaBrowser.MediaItem> mRootItems = new ArrayList<>();
88 mRootItems.add(new MediaBrowser.MediaItem(folders, MediaBrowser.MediaItem.FLAG_BROWSABLE)); in addRootItems()
95 mRootItems.add(new MediaBrowser.MediaItem(albums, MediaBrowser.MediaItem.FLAG_BROWSABLE)); in addRootItems()
102 mRootItems.add(new MediaBrowser.MediaItem(artists, MediaBrowser.MediaItem.FLAG_BROWSABLE)); in addRootItems()
109 mRootItems.add(new MediaBrowser.MediaItem(genres, MediaBrowser.MediaItem.FLAG_BROWSABLE)); in addRootItems()
153 public void onLoadChildren(String parentId, Result<List<MediaBrowser.MediaItem>> result) { in onLoadChildren()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java28 import com.android.gallery3d.data.MediaItem;
114 private final MediaItem mData[] = new MediaItem[DATA_CACHE_SIZE];
221 private MediaItem getItemInternal(int index) { in getItemInternal()
230 MediaItem item = getItemInternal(index); in getVersion()
236 MediaItem item = getItemInternal(index); in getPath()
385 private MediaItem getItem(int index) { in getItem()
400 MediaItem item = mData[index % DATA_CACHE_SIZE]; in updateCurrentIndex()
418 MediaItem item = getItem(index); in uploadScreenNail()
451 MediaItem item = getItem(index); in getScreenNail()
469 MediaItem item = getItem(mCurrentIndex + offset); in getImageSize()
[all …]
DSinglePhotoDataAdapter.java28 import com.android.gallery3d.data.MediaItem;
46 private MediaItem mItem;
57 AbstractGalleryActivity activity, PhotoView view, MediaItem item) { in SinglePhotoDataAdapter()
60 MediaItem.SUPPORT_FULL_IMAGE) != 0; in SinglePhotoDataAdapter()
158 mItem.requestImage(MediaItem.TYPE_THUMBNAIL), in resume()
226 return mItem.getMediaType() == MediaItem.MEDIA_TYPE_VIDEO; in isVideo()
231 return (mItem.getSupportedOperations() & MediaItem.SUPPORT_DELETE) != 0; in isDeletable()
235 public MediaItem getMediaItem(int offset) { in getMediaItem()
DSlideshowPage.java30 import com.android.gallery3d.data.MediaItem;
69 public MediaItem item;
72 public Slide(MediaItem item, int index, Bitmap bitmap) { in Slide()
226 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem()
235 ArrayList<MediaItem> list = mediaSet.getMediaItem(index, 1); in findMediaItem()
259 public MediaItem getMediaItem(int index) { in getMediaItem()
263 MediaItem item = findMediaItem(mMediaSet, mLastIndex); in getMediaItem()
312 private ArrayList<MediaItem> mData = new ArrayList<MediaItem>();
329 public MediaItem getMediaItem(int index) { in getMediaItem()
DAlbumDataLoader.java25 import com.android.gallery3d.data.MediaItem;
49 private final MediaItem[] mData;
81 mData = new MediaItem[DATA_CACHE_SIZE]; in AlbumDataLoader()
121 public MediaItem get(int index) { in get()
144 MediaItem item = mData[i % DATA_CACHE_SIZE]; in findItem()
241 public ArrayList<MediaItem> items;
293 ArrayList<MediaItem> items = info.items; in call()
309 MediaItem updateItem = items.get(i - info.reloadStart); in call()
DSlideshowDataAdapter.java23 import com.android.gallery3d.data.MediaItem;
45 public MediaItem getMediaItem(int index); in getMediaItem()
77 private MediaItem loadItem() { in loadItem()
112 MediaItem item = loadItem(); in run()
131 .requestImage(MediaItem.TYPE_THUMBNAIL) in run()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java30 import com.android.gallery3d.data.MediaItem;
62 private SparseArray<MediaItem> mMediaItems;
113 final SparseArray<MediaItem> mediaItems = new SparseArray<MediaItem>(); in loadInBackground()
116 public void consume(int index, MediaItem item) { in loadInBackground()
125 if (rawMediaType == MediaItem.MEDIA_TYPE_IMAGE) { in loadInBackground()
127 } else if (rawMediaType == MediaItem.MEDIA_TYPE_VIDEO) { in loadInBackground()
157 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getThumbnailSize()
163 MediaItem mi = mMediaItems.get(index); in uriForItem()
183 MediaItem mi = mMediaItems.get(index); in getPathForItem()
DBitmapJobDrawable.java28 import com.android.gallery3d.data.MediaItem;
39 private MediaItem mItem;
48 public void setMediaItem(MediaItem item) { in setMediaItem()
130 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getIntrinsicWidth()
135 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getIntrinsicHeight()
171 mParent.mItem.requestImage(MediaItem.TYPE_MICROTHUMBNAIL), this); in submitBitmapTask()
DMediaSetLoader.java28 import com.android.gallery3d.data.MediaItem;
60 private ArrayList<MediaItem> mCoverItems;
112 ArrayList<MediaItem> coverItems = new ArrayList<MediaItem>(count); in loadInBackground()
120 MediaItem coverItem = m.getCoverMediaItem(); in loadInBackground()
147 return MediaItem.getTargetSize(MediaItem.TYPE_MICROTHUMBNAIL); in getThumbnailSize()
165 public void consume(int index, MediaItem item) { in urisForSubItems()
/packages/modules/Bluetooth/android/pandora/server/src/
DMediaPlayerBrowserService.kt23 import android.support.v4.media.MediaBrowserCompat.MediaItem
42 private val mediaIdToChildren = mutableMapOf<String, MutableList<MediaItem>>()
172 val mediaItem = MediaItem(metaData.description, MediaItem.FLAG_PLAYABLE) in updateQueue()
233 override fun onLoadChildren(parentId: String, result: Result<MutableList<MediaItem>>) { in onLoadChildren()
248 var mediaItems = mutableListOf<MediaItem>() in initMediaItems()
265 val mediaItem = MediaItem(metaData.description, MediaItem.FLAG_PLAYABLE) in initMediaItems()
274 val mediaItem = MediaItem(value.description, MediaItem.FLAG_PLAYABLE) in initQueue()
292 MediaItem(emptyFolderMetaData.description, MediaItem.FLAG_BROWSABLE) in initBrowseFolderList()
306 val playlistsMediaItem = MediaItem(playlistMetaData.description, MediaItem.FLAG_BROWSABLE) in initBrowseFolderList()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DBrowserPlayerWrapperTest.java28 import android.media.browse.MediaBrowser.MediaItem;
173 private MediaItem getMediaItem(MediaDescription description, int flags) { in getMediaItem()
174 return new MediaItem(description, flags); in getMediaItem()
356 ArrayList<MediaItem> items = new ArrayList<MediaItem>(); in testGetFolderItems()
360 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
363 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
366 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
369 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
372 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
375 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
[all …]
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient/src/com/android/sdksandboxclient/
DAppVideoView.java28 import androidx.media3.common.MediaItem;
53 private MediaItem mCurrentMediaItem;
112 final MediaItem.LocalConfiguration configuration = mCurrentMediaItem.localConfiguration; in savePlaybackParams()
132 mCurrentMediaItem = MediaItem.fromUri(mediaItemUri); in restorePlaybackParams()
140 mCurrentMediaItem = MediaItem.fromUri(Uri.parse(videoUrl)); in startVideo()

1234