Home
last modified time | relevance | path

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

1234

/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()
DPhotoPage.java51 import com.android.gallery3d.data.MediaItem;
149 private MediaItem mCurrentPhoto = null;
347 final MediaItem photo = mCurrentPhoto; in onCreate()
506 MediaItem photo = mModel.getMediaItem(0); in onCreate()
518 MediaItem photo = mModel.getMediaItem(0); in onCreate()
536 MediaItem mediaItem = (MediaItem) in onCreate()
590 && (mCurrentPhoto.getSupportedOperations() & MediaItem.SUPPORT_EDIT) != 0 in canDisplayBottomControl()
662 MediaItem current = mModel.getMediaItem(0); in launchTinyPlanet()
679 MediaItem current = mModel.getMediaItem(0); in launchPhotoEditor()
701 MediaItem current = mModel.getMediaItem(0); in launchSimpleEditor()
[all …]
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/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()
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()
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()
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()
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()
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()
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/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/
DBrowseTree.java29 import android.media.browse.MediaBrowser.MediaItem;
139 private List<MediaItem> mRootChildren;
151 @Nullable private List<MediaItem> mProgramListCache;
156 @Nullable private List<MediaItem> mFavoritesCache;
168 private static MediaItem createChild(MediaDescription.Builder descBuilder, in createChild()
176 return new MediaItem(desc, MediaItem.FLAG_PLAYABLE); in createChild()
179 private static MediaItem createFolder(MediaDescription.Builder descBuilder, String mediaId, in createFolder()
189 if (isBrowseable) flags |= MediaItem.FLAG_BROWSABLE; in createFolder()
190 if (isPlayable) flags |= MediaItem.FLAG_PLAYABLE; in createFolder()
191 return new MediaItem(desc, flags); in createFolder()
[all …]
/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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DBrowserPlayerWrapperTest.java29 import android.media.browse.MediaBrowser.MediaItem;
168 private MediaItem getMediaItem(MediaDescription description, int flags) { in getMediaItem()
169 return new MediaItem(description, flags); in getMediaItem()
352 ArrayList<MediaItem> items = new ArrayList<MediaItem>(); in testGetFolderItems()
355 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
358 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
361 items.add(getMediaItem(desc, MediaItem.FLAG_PLAYABLE)); in testGetFolderItems()
364 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
367 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
370 items.add(getMediaItem(desc, MediaItem.FLAG_BROWSABLE)); in testGetFolderItems()
[all …]
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java29 import android.support.v4.media.MediaBrowserCompat.MediaItem;
189 public void onLoadChildren(@NonNull String parentId, @NonNull Result<List<MediaItem>> result) { in onLoadChildren()
203 @NonNull Result<List<MediaItem>> result) { in onSearch()
212 @NonNull Result<List<MediaItem>> result, @Nullable String filter) { in getMediaItemsWithDelay()
228 List<MediaItem> hits = new ArrayList<>(50); in getMediaItemsWithDelay()
235 List<MediaItem> items = new ArrayList<>(childrenCount); in getMediaItemsWithDelay()
266 List<MediaItem> hits, int currentDepth) { in addSearchResults()
275 MediaItem item = child.toMediaItem(); in addSearchResults()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java25 import com.android.gallery3d.data.MediaItem;
48 public MediaItem item;
265 MediaItem item = mSource.get(slotIndex); // item could be null; in prepareSlotContent()
268 ? MediaItem.MEDIA_TYPE_UNKNOWN in prepareSlotContent()
290 private final MediaItem mItem;
292 public ThumbnailLoader(int slotIndex, MediaItem item) { in ThumbnailLoader()
300 mItem.requestImage(MediaItem.TYPE_MICROTHUMBNAIL), this); in submitBitmapTask()

1234