Home
last modified time | relevance | path

Searched refs:mediaItem (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java364 MediaItem mediaItem = item.toMediaItem(); in avrcpItemNoDisplayName_toMediaItem() local
365 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemNoDisplayName_toMediaItem()
367 Assert.assertTrue(mediaItem.isPlayable()); in avrcpItemNoDisplayName_toMediaItem()
368 Assert.assertFalse(mediaItem.isBrowsable()); in avrcpItemNoDisplayName_toMediaItem()
369 Assert.assertEquals(UUID, mediaItem.getMediaId()); in avrcpItemNoDisplayName_toMediaItem()
393 MediaItem mediaItem = item.toMediaItem(); in avrcpItemWithDisplayName_toMediaItem() local
394 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemWithDisplayName_toMediaItem()
396 Assert.assertTrue(mediaItem.isPlayable()); in avrcpItemWithDisplayName_toMediaItem()
397 Assert.assertFalse(mediaItem.isBrowsable()); in avrcpItemWithDisplayName_toMediaItem()
398 Assert.assertEquals(UUID, mediaItem.getMediaId()); in avrcpItemWithDisplayName_toMediaItem()
[all …]
/packages/apps/Car/Media/src/com/android/car/media/browse/
DBrowseAdapter.java298 private BrowseItemViewType getBrowsableViewType(@Nullable MediaItemMetadata mediaItem) {
299 if (mediaItem == null) {
302 if (mediaItem.getBrowsableContentStyleHint() == 0) {
305 return fromMediaHint(mediaItem.getBrowsableContentStyleHint());
308 private BrowseItemViewType getPlayableViewType(@Nullable MediaItemMetadata mediaItem) {
309 if (mediaItem == null) {
312 if (mediaItem.getPlayableContentStyleHint() == 0) {
315 return fromMediaHint(mediaItem.getPlayableContentStyleHint());
DBrowseViewData.java48 BrowseViewData(MediaItemMetadata mediaItem, @NonNull BrowseItemViewType viewType, in BrowseViewData() argument
50 mMediaItem = mediaItem; in BrowseViewData()
/packages/apps/Camera2/src/com/android/camera/burst/
DBurstResultsSaver.java142 BurstMediaItem mediaItem, in saveBurstMediaItem() argument
152 artifactType, artifactIndex, index, mediaItem.getTimestamp()); in saveBurstMediaItem()
153 String mimeType = mediaItem.getMimeType(); in saveBurstMediaItem()
155 stackSaver.saveStackedImage(mediaItem.getFilePath(), in saveBurstMediaItem()
157 mediaItem.getWidth(), in saveBurstMediaItem()
158 mediaItem.getHeight(), in saveBurstMediaItem()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DVideoPlayerActivity.java105 UriMediaItem mediaItem = new UriMediaItem.Builder(uri).build(); in handleIntent() local
106 mMediaPlayer.setMediaItem(mediaItem) in handleIntent()
DAudioPlayerActivity.java151 UriMediaItem mediaItem = new UriMediaItem.Builder(uri).build(); in handleIntent() local
152 mMediaPlayer.setMediaItem(mediaItem); in handleIntent()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java744 private boolean isTemporaryItem(MediaItem mediaItem) { in isTemporaryItem() argument
748 if (!(mediaItem instanceof LocalMediaItem)) return false; in isTemporaryItem()
749 LocalMediaItem item = (LocalMediaItem) mediaItem; in isTemporaryItem()
DPhotoPage.java536 MediaItem mediaItem = (MediaItem) in onCreate() local
538 mModel = new SinglePhotoDataAdapter(mActivity, mPhotoView, mediaItem); in onCreate()
540 updateCurrentPhoto(mediaItem); in onCreate()