Home
last modified time | relevance | path

Searched refs:mMediaMetadata (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaMediaItem.java77 private final MediaMetadataCompat mMediaMetadata; field in TmaMediaItem
103 mMediaMetadata = metadata; in TmaMediaItem()
148 return mMediaMetadata.getString(METADATA_KEY_MEDIA_ID); in getMediaId()
153 long result = mMediaMetadata.getLong(METADATA_KEY_DURATION); in getDuration()
162 return new TmaMediaItem(mFlags, mPlayableStyle, mBrowsableStyle, mMediaMetadata, in append()
167 session.setMetadata(mMediaMetadata); in updateSessionMetadata()
196 MediaDescriptionCompat metadataDescription = mMediaMetadata.getDescription(); in buildDescription()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java73 public MediaMetadataCompat mMediaMetadata; field in PlaybackViewModelTest
91 when(mMediaMetadata.getDescription()).thenReturn(mMediaDescriptionCompat); in setUp()
103 mCapturedCallback.getValue().onMetadataChanged(mMediaMetadata); in testGetMetadata()
108 assertThat(observedValue).isEqualTo(new MediaItemMetadata(mMediaMetadata)); in testGetMetadata()
118 mCapturedCallback.getValue().onMetadataChanged(mMediaMetadata); in testGetPlaybackState()
193 when(mMediaController.getMetadata()).thenReturn(mMediaMetadata); in testChangeMediaSource_consistentController()
195 deliverValuesToCallbacks(mCapturedCallback, mMediaMetadata, mPlaybackState); in testChangeMediaSource_consistentController()
214 if (mPlaybackViewModel.getMediaMetadata() == mMediaMetadata) { in testChangeMediaSource_consistentController()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java218 return mMediaControllerCallback.mMediaMetadata; in getMediaMetadata()
225 private MediaMetadataCompat mMediaMetadata; field in PlaybackViewModel.MediaControllerCallback
238 mMediaMetadata = null; in onMediaControllerChanged()
277 mMediaMetadata = null; in onMetadataChanged()
279 mMediaMetadata = mmdCompat; in onMetadataChanged()
282 (mMediaMetadata != null) ? new MediaItemMetadata(mMediaMetadata) : null; in onMetadataChanged()
314 new PlaybackStateWrapper(mMediaController, mMediaMetadata, mPlaybackState)); in updatePlaybackStatus()