Home
last modified time | relevance | path

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

/packages/apps/Car/Media/src/com/android/car/media/browse/
DLimitedBrowseAdapter.java90 MediaItemMetadata mediaItem = items.get(i).mMediaItem; in validateAnchor() local
91 if (mediaItem != null && mAnchorId.equals(mediaItem.getId())) { in validateAnchor()
112 MediaItemMetadata mediaItem = items.get(anchorIndex).mMediaItem; in computeAnchorIndexWhenRestricting() local
113 mAnchorId = mediaItem != null ? mediaItem.getId() : null; in computeAnchorIndexWhenRestricting()
DBrowseAdapter.java295 private BrowseItemViewType getBrowsableViewType(@Nullable MediaItemMetadata mediaItem) { in getBrowsableViewType() argument
296 if (mediaItem == null) { in getBrowsableViewType()
299 if (mediaItem.getBrowsableContentStyleHint() == 0) { in getBrowsableViewType()
302 return fromMediaHint(mediaItem.getBrowsableContentStyleHint()); in getBrowsableViewType()
305 private BrowseItemViewType getPlayableViewType(@Nullable MediaItemMetadata mediaItem) { in getPlayableViewType() argument
306 if (mediaItem == null) { in getPlayableViewType()
309 if (mediaItem.getPlayableContentStyleHint() == 0) { in getPlayableViewType()
312 return fromMediaHint(mediaItem.getPlayableContentStyleHint()); in getPlayableViewType()
DBrowseViewData.java48 BrowseViewData(MediaItemMetadata mediaItem, @NonNull BrowseItemViewType viewType, in BrowseViewData() argument
50 mMediaItem = mediaItem; in BrowseViewData()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java572 MediaItem mediaItem = item.toMediaItem(); in avrcpItemNoDisplayName_toMediaItem() local
573 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemNoDisplayName_toMediaItem()
575 Assert.assertTrue(mediaItem.isPlayable()); in avrcpItemNoDisplayName_toMediaItem()
576 Assert.assertFalse(mediaItem.isBrowsable()); in avrcpItemNoDisplayName_toMediaItem()
577 Assert.assertEquals(UUID, mediaItem.getMediaId()); in avrcpItemNoDisplayName_toMediaItem()
601 MediaItem mediaItem = item.toMediaItem(); in avrcpItemWithDisplayName_toMediaItem() local
602 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemWithDisplayName_toMediaItem()
604 Assert.assertTrue(mediaItem.isPlayable()); in avrcpItemWithDisplayName_toMediaItem()
605 Assert.assertFalse(mediaItem.isBrowsable()); in avrcpItemWithDisplayName_toMediaItem()
606 Assert.assertEquals(UUID, mediaItem.getMediaId()); in avrcpItemWithDisplayName_toMediaItem()
[all …]
/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/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceController.java220 ToggleButtonActionItem mediaItem = preference.getActionItem(MEDIA_BUTTON); in setButtonsCheckedAndListeners() local
222 mediaItem.setChecked(mediaEnabled); in setButtonsCheckedAndListeners()
223 mediaItem.setOnClickListener(isChecked -> in setButtonsCheckedAndListeners()
252 ToggleButtonActionItem mediaItem = preference.getActionItem(MEDIA_BUTTON); in updateMediaActionItemAvailability() local
253 mediaItem.setEnabled(!isRestricted); in updateMediaActionItemAvailability()
254 mediaItem.setDrawable(getContext(), isRestricted in updateMediaActionItemAvailability()
/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()