Home
last modified time | relevance | path

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

123

/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 …]
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()
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 …]
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()
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/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java25 import android.media.browse.MediaBrowser.MediaItem;
96 public void onQueryByFolder(String parentId, Result<List<MediaItem>> result) { in onQueryByFolder()
101 public void onQueryByAlbum(String parentId, Result<List<MediaItem>> result) { in onQueryByAlbum()
108 .setFlags(MediaItem.FLAG_BROWSABLE) in onQueryByAlbum()
113 public void onQueryByArtist(String parentId, Result<List<MediaItem>> result) { in onQueryByArtist()
120 .setFlags(MediaItem.FLAG_BROWSABLE) in onQueryByArtist()
125 public void onQueryByGenre(String parentId, Result<List<MediaItem>> result) { in onQueryByGenre()
132 .setFlags(MediaItem.FLAG_BROWSABLE) in onQueryByGenre()
137 private void queryInBackground(Result<List<MediaItem>> result, in queryInBackground()
205 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()
161 public void onLoadChildren(String parentId, Result<List<MediaBrowser.MediaItem>> result) { in onLoadChildren()
/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()
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()
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()
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()
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()
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()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedMediaPlayer.java25 import android.media.browse.MediaBrowser.MediaItem;
84 private List<MediaBrowser.MediaItem> mFolderItems = null;
134 public void onChildrenLoaded(String parentId, List<MediaBrowser.MediaItem> children) {
176 public void onChildrenLoaded(String parentId, List<MediaBrowser.MediaItem> children) { in onChildrenLoaded()
185 for (MediaBrowser.MediaItem item : children) { in onChildrenLoaded()
209 private void getItemAttrFilterAttr(@NonNull MediaBrowser.MediaItem mediaItem) { in getItemAttrFilterAttr()
533 private List<MediaBrowser.MediaItem> checkIndexOutofBounds( in checkIndexOutofBounds()
534 byte[] bdaddr, List<MediaBrowser.MediaItem> children, long startItem, long endItem) { in checkIndexOutofBounds()
538 List<MediaBrowser.MediaItem> childrenSubList = in checkIndexOutofBounds()
560 List<MediaBrowser.MediaItem> children, byte scope, long startItem, long endItem) { in getFolderItemsFilterAttr()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DBrowseTree.java20 import android.media.browse.MediaBrowser.MediaItem;
72 mBrowseMap.put(ROOT, new BrowseNode(new MediaItem(mdb.build(), MediaItem.FLAG_BROWSABLE))); in init()
84 MediaItem mItem;
97 Result<List<MediaItem>> mResult = null;
102 BrowseNode(MediaItem item) { in BrowseNode()
117 mItem = new MediaBrowser.MediaItem(mdb.build(), MediaBrowser.MediaItem.FLAG_BROWSABLE); in BrowseNode()
159 synchronized MediaItem getMediaItem() { in getMediaItem()
203 if (child instanceof MediaItem) { in refreshChildren()
204 bnList.add(new BrowseNode((MediaItem) child)); in refreshChildren()
217 List<MediaItem> childrenList = new ArrayList<MediaItem>(); in refreshChildren()
DAvrcpControllerService.java27 import android.media.browse.MediaBrowser.MediaItem;
943 void handleGetFolderItemsRsp(int status, MediaItem[] items) { in handleGetFolderItemsRsp()
959 for (MediaItem item : items) { in handleGetFolderItemsRsp()
964 ArrayList<MediaItem> itemsList = new ArrayList<>(); in handleGetFolderItemsRsp()
965 for (MediaItem item : items) { in handleGetFolderItemsRsp()
993 MediaItem createFromNativeMediaItem( in createFromNativeMediaItem()
1015 return new MediaItem(mdb.build(), MediaItem.FLAG_PLAYABLE); in createFromNativeMediaItem()
1018 MediaItem createFromNativeFolderItem( in createFromNativeFolderItem()
1039 return new MediaItem(mdb.build(), MediaItem.FLAG_BROWSABLE); in createFromNativeFolderItem()
/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/src/com/android/bluetooth/a2dpsink/mbs/
DA2dpMediaBrowserService.java28 import android.media.browse.MediaBrowser.MediaItem;
103 private final Map<String, Result<List<MediaItem>>> mParentIdToRequestMap = new HashMap<>();
104 private static final List<MediaItem> mEmptyList = new ArrayList<MediaItem>();
107 private List<MediaItem> mNowPlayingList = null;
203 final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren()
225 public void onLoadItem(String itemId, Result<MediaBrowser.MediaItem> result) { in onLoadItem()
521 List<MediaItem> folderList = new ArrayList<MediaItem>(); in msgFolderList()
523 folderList.add((MediaItem) p); in msgFolderList()
532 Result<List<MediaItem>> results = mParentIdToRequestMap.remove(id); in msgFolderList()
/packages/apps/Car/Media/src/com/android/car/media/drawer/
DMediaBrowserItemsFetcher.java55 private List<MediaBrowser.MediaItem> mItems = new ArrayList<>();
90 public void onChildrenLoaded(String parentId, List<MediaBrowser.MediaItem> children) {
133 MediaBrowser.MediaItem item = mItems.get(position); in populateViewHolder()
156 MediaBrowser.MediaItem item = mQueueAvailable && position == mItems.size() in onItemClick()
168 private MediaBrowser.MediaItem createPlayQueueMediaItem() { in createPlayQueueMediaItem()
174 return new MediaBrowser.MediaItem(description, MediaBrowser.MediaItem.FLAG_BROWSABLE); in createPlayQueueMediaItem()
/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()

123