Home
last modified time | relevance | path

Searched refs:dsd (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/media/java/android/media/
DDataSourceDesc.java241 public Builder(DataSourceDesc dsd) { in Builder() argument
242 mType = dsd.mType; in Builder()
243 mMedia2DataSource = dsd.mMedia2DataSource; in Builder()
244 mFD = dsd.mFD; in Builder()
245 mFDOffset = dsd.mFDOffset; in Builder()
246 mFDLength = dsd.mFDLength; in Builder()
247 mUri = dsd.mUri; in Builder()
248 mUriHeader = dsd.mUriHeader; in Builder()
249 mUriCookies = dsd.mUriCookies; in Builder()
250 mUriContext = dsd.mUriContext; in Builder()
[all …]
DMediaPlayerBase.java185 public abstract void setDataSource(@NonNull DataSourceDesc dsd); in setDataSource() argument
191 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); in setNextDataSource() argument
288 @Nullable DataSourceDesc dsd) { } in onCurrentDataSourceChanged() argument
295 public void onMediaPrepared(@NonNull MediaPlayerBase mpb, @NonNull DataSourceDesc dsd) { } in onMediaPrepared() argument
312 @NonNull DataSourceDesc dsd, @BuffState int state) { } in onBufferingStateChanged() argument
DMediaPlayer2.java663 public abstract void setDataSource(@NonNull DataSourceDesc dsd); in setDataSource() argument
673 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); in setNextDataSource() argument
1721 … public void onVideoSizeChanged(MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) { } in onVideoSizeChanged() argument
1732 public void onTimedText(MediaPlayer2 mp, DataSourceDesc dsd, TimedText text) { } in onTimedText() argument
1753 MediaPlayer2 mp, DataSourceDesc dsd, TimedMetaData data) { } in onTimedMetaDataAvailable() argument
1765 MediaPlayer2 mp, DataSourceDesc dsd, @MediaError int what, int extra) { } in onError() argument
1776 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, @MediaInfo int what, int extra) { } in onInfo() argument
1787 MediaPlayer2 mp, DataSourceDesc dsd, @CallCompleted int what, in onCallCompleted() argument
1798 MediaPlayer2 mp, DataSourceDesc dsd, MediaTimestamp timestamp) { } in onMediaTimeChanged() argument
2285 public void onDrmConfig(MediaPlayer2 mp, DataSourceDesc dsd); in onDrmConfig() argument
[all …]
DMediaPlayer2Impl.java391 public void setDataSource(@NonNull DataSourceDesc dsd) { in setDataSource() argument
395 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null"); in setDataSource()
398 mCurrentDSD = dsd; in setDataSource()
401 handleDataSource(true /* isCurrent */, dsd, mCurrentSrcId); in setDataSource()
418 public void setNextDataSource(@NonNull DataSourceDesc dsd) { in setNextDataSource() argument
422 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null"); in setNextDataSource()
425 mNextDSDs.add(dsd); in setNextDataSource()
455 for (DataSourceDesc dsd : dsds) { in setNextDataSources()
456 if (dsd == null) { in setNextDataSources()
809 private void handleDataSource(boolean isCurrent, @NonNull DataSourceDesc dsd, long srcId) in handleDataSource() argument
[all …]
DMediaPlaylistAgent.java354 public @Nullable MediaItem2 getMediaItem(@NonNull DataSourceDesc dsd) { in getMediaItem() argument
355 return mProvider.getMediaItem_impl(dsd); in getMediaItem()
/frameworks/support/media/src/main/java/androidx/media/
DDataSourceDesc.java235 public Builder(@NonNull DataSourceDesc dsd) { in Builder() argument
236 mType = dsd.mType; in Builder()
237 mMedia2DataSource = dsd.mMedia2DataSource; in Builder()
238 mFD = dsd.mFD; in Builder()
239 mFDOffset = dsd.mFDOffset; in Builder()
240 mFDLength = dsd.mFDLength; in Builder()
241 mUri = dsd.mUri; in Builder()
242 mUriHeader = dsd.mUriHeader; in Builder()
243 mUriCookies = dsd.mUriCookies; in Builder()
244 mUriContext = dsd.mUriContext; in Builder()
[all …]
DSessionPlaylistAgentImplBase.java72 @Nullable DataSourceDesc dsd) { in onCurrentDataSourceChanged() argument
77 if (dsd == null && mCurrent != null) { in onCurrentDataSourceChanged()
87 public DataSourceDesc dsd; field in SessionPlaylistAgentImplBase.PlayItem
94 PlayItem(int shuffledIdx, DataSourceDesc dsd) { in PlayItem() argument
98 if (dsd == null) { in PlayItem()
100 this.dsd = retrieveDataSourceDescLocked(this.mediaItem); in PlayItem()
103 this.dsd = dsd; in PlayItem()
116 if (dsd == null) { in isValid()
120 && !mediaItem.getDataSourceDesc().equals(dsd)) { in isValid()
406 public MediaItem2 getMediaItem(DataSourceDesc dsd) { in getMediaItem() argument
[all …]
DMediaPlayer2.java367 public abstract void setDataSource(@NonNull DataSourceDesc dsd); in setDataSource() argument
376 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); in setNextDataSource() argument
880 MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) { } in onVideoSizeChanged() argument
900 MediaPlayer2 mp, DataSourceDesc dsd, TimedMetaData data) { } in onTimedMetaDataAvailable() argument
912 MediaPlayer2 mp, DataSourceDesc dsd, @MediaError int what, int extra) { } in onError() argument
923 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, @MediaInfo int what, int extra) { } in onInfo() argument
934 MediaPlayer2 mp, DataSourceDesc dsd, @CallCompleted int what, in onCallCompleted() argument
958 MediaPlayer2 mp, DataSourceDesc dsd, MediaTimestamp timestamp) { } in onMediaTimeDiscontinuity() argument
976 MediaPlayer2 mp, DataSourceDesc dsd, @NonNull SubtitleData data) { } in onSubtitleData() argument
1448 void onDrmConfig(MediaPlayer2 mp, DataSourceDesc dsd); in onDrmConfig() argument
[all …]
DMediaPlayer2Impl.java394 public void setDataSource(@NonNull final DataSourceDesc dsd) { in setDataSource() argument
398 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null"); in setDataSource()
401 mPlayer.setFirst(dsd); in setDataSource()
418 public void setNextDataSource(@NonNull final DataSourceDesc dsd) { in setNextDataSource() argument
422 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null"); in setNextDataSource()
423 handleDataSourceError(mPlayer.setNext(dsd)); in setNextDataSource()
443 for (DataSourceDesc dsd : dsds) { in setNextDataSources()
444 if (dsd == null) { in setNextDataSources()
657 final DataSourceDesc dsd = src.getDSD(); in handleDataSource() local
658 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null"); in handleDataSource()
[all …]
DMediaPlayerInterface.java199 public abstract void setDataSource(@NonNull DataSourceDesc dsd); in setDataSource() argument
205 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); in setNextDataSource() argument
308 @Nullable DataSourceDesc dsd) { } in onCurrentDataSourceChanged() argument
317 @NonNull DataSourceDesc dsd) { } in onMediaPrepared() argument
335 @NonNull DataSourceDesc dsd, @BuffState int state) { } in onBufferingStateChanged() argument
DMediaItem2.java72 private MediaItem2(@NonNull String mediaId, @Nullable DataSourceDesc dsd, in MediaItem2() argument
74 this(mediaId, dsd, metadata, flags, null); in MediaItem2()
77 private MediaItem2(@NonNull String mediaId, @Nullable DataSourceDesc dsd, in MediaItem2() argument
87 mDataSourceDesc = dsd; in MediaItem2()
DMediaPlaylistAgent.java394 public @Nullable MediaItem2 getMediaItem(@NonNull DataSourceDesc dsd) { in getMediaItem() argument
395 if (dsd == null) { in getMediaItem()
404 if (item != null && item.getDataSourceDesc().equals(dsd)) { in getMediaItem()
DMediaSession2ImplBase.java1174 final DataSourceDesc dsd) { in onCurrentDataSourceChanged() argument
1183 if (dsd == null) { in onCurrentDataSourceChanged()
1188 item = MyPlayerEventCallback.this.getMediaItem(session, dsd); in onCurrentDataSourceChanged()
1190 Log.w(TAG, "Cannot obtain media item from the dsd=" + dsd); in onCurrentDataSourceChanged()
1207 public void onMediaPrepared(final MediaPlayerInterface mpb, final DataSourceDesc dsd) { in onMediaPrepared() argument
1209 if (session == null || dsd == null) { in onMediaPrepared()
1215 MediaItem2 item = MyPlayerEventCallback.this.getMediaItem(session, dsd); in onMediaPrepared()
1292 final DataSourceDesc dsd, final int state) { in onBufferingStateChanged() argument
1294 if (session == null || dsd == null) { in onBufferingStateChanged()
1300 final MediaItem2 item = MyPlayerEventCallback.this.getMediaItem(session, dsd); in onBufferingStateChanged()
[all …]
/frameworks/av/packages/MediaComponents/src/com/android/media/
DSessionPlaylistAgent.java75 @Nullable DataSourceDesc dsd) { in onCurrentDataSourceChanged() argument
80 if (dsd == null && mCurrent != null) { in onCurrentDataSourceChanged()
90 DataSourceDesc dsd; field in SessionPlaylistAgent.PlayItem
97 PlayItem(int shuffledIdx, DataSourceDesc dsd) { in PlayItem() argument
101 if (dsd == null) { in PlayItem()
103 this.dsd = retrieveDataSourceDescLocked(this.mediaItem); in PlayItem()
106 this.dsd = dsd; in PlayItem()
118 if (dsd == null) { in isValid()
128 && !mediaItem.getDataSourceDesc().equals(dsd)) { in isValid()
401 DataSourceDesc dsd = item.getDataSourceDesc(); in retrieveDataSourceDescLocked() local
[all …]
DMediaItem2Impl.java49 public MediaItem2Impl(@NonNull String mediaId, @Nullable DataSourceDesc dsd, in MediaItem2Impl() argument
51 this(mediaId, dsd, metadata, flags, null); in MediaItem2Impl()
54 private MediaItem2Impl(@NonNull String mediaId, @Nullable DataSourceDesc dsd, in MediaItem2Impl() argument
64 mDataSourceDesc = dsd; in MediaItem2Impl()
DRoutePlayer.java121 public void openVideo(DataSourceDesc dsd) { in openVideo() argument
122 mClient.play(dsd.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { in openVideo()
129 playInternal(dsd.getUri()); in openVideo()
DMediaPlaylistAgentImpl.java200 public @Nullable MediaItem2 getMediaItem_impl(@NonNull DataSourceDesc dsd) { in getMediaItem_impl() argument
201 if (dsd == null) { in getMediaItem_impl()
210 if (item != null && item.getDataSourceDesc() == dsd) { in getMediaItem_impl()
/frameworks/support/media/src/androidTest/java/androidx/media/
DMediaPlayer2TestBase.java134 MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in createMediaPlayer2()
190 MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in createMediaPlayer2()
342 public void onVideoSizeChanged(MediaPlayer2 mp, DataSourceDesc dsd, int w, int h) { in setUpMP2ECb()
345 ecb.onVideoSizeChanged(mp, dsd, w, h); in setUpMP2ECb()
351 public void onTimedMetaDataAvailable(MediaPlayer2 mp, DataSourceDesc dsd, in setUpMP2ECb()
355 ecb.onTimedMetaDataAvailable(mp, dsd, data); in setUpMP2ECb()
361 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in setUpMP2ECb()
364 ecb.onError(mp, dsd, what, extra); in setUpMP2ECb()
370 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in setUpMP2ECb()
373 ecb.onInfo(mp, dsd, what, extra); in setUpMP2ECb()
[all …]
DMockPlayer.java163 public void notifyCurrentDataSourceChanged(final DataSourceDesc dsd) { in notifyCurrentDataSourceChanged() argument
170 callback.onCurrentDataSourceChanged(MockPlayer.this, dsd); in notifyCurrentDataSourceChanged()
176 public void notifyMediaPrepared(final DataSourceDesc dsd) { in notifyMediaPrepared() argument
183 callback.onMediaPrepared(MockPlayer.this, dsd); in notifyMediaPrepared()
189 public void notifyBufferingStateChanged(final DataSourceDesc dsd, in notifyBufferingStateChanged() argument
197 callback.onBufferingStateChanged(MockPlayer.this, dsd, buffState); in notifyBufferingStateChanged()
249 public void setDataSource(@NonNull DataSourceDesc dsd) { in setDataSource() argument
254 public void setNextDataSource(@NonNull DataSourceDesc dsd) { in setNextDataSource() argument
DMediaPlayer2Test.java114 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) { in testPlayNullSourcePath()
156 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in testPlayAudioFromDataURI()
163 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) { in testPlayAudioFromDataURI()
257 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
264 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) {
420 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd,
429 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd,
478 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
485 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd,
667 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) {
[all …]
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
DMockPlayer.java166 public void notifyCurrentDataSourceChanged(final DataSourceDesc dsd) { in notifyCurrentDataSourceChanged() argument
173 callback.onCurrentDataSourceChanged(MockPlayer.this, dsd); in notifyCurrentDataSourceChanged()
179 public void notifyMediaPrepared(final DataSourceDesc dsd) { in notifyMediaPrepared() argument
186 callback.onMediaPrepared(MockPlayer.this, dsd); in notifyMediaPrepared()
192 public void notifyBufferingStateChanged(final DataSourceDesc dsd, in notifyBufferingStateChanged() argument
200 callback.onBufferingStateChanged(MockPlayer.this, dsd, buffState); in notifyBufferingStateChanged()
252 public void setDataSource(@NonNull DataSourceDesc dsd) { in setDataSource() argument
257 public void setNextDataSource(@NonNull DataSourceDesc dsd) { in setNextDataSource() argument
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/androidx/media/test/service/
DMockPlayer.java166 public void notifyCurrentDataSourceChanged(final DataSourceDesc dsd) { in notifyCurrentDataSourceChanged() argument
173 callback.onCurrentDataSourceChanged(MockPlayer.this, dsd); in notifyCurrentDataSourceChanged()
179 public void notifyMediaPrepared(final DataSourceDesc dsd) { in notifyMediaPrepared() argument
186 callback.onMediaPrepared(MockPlayer.this, dsd); in notifyMediaPrepared()
192 public void notifyBufferingStateChanged(final DataSourceDesc dsd, in notifyBufferingStateChanged() argument
200 callback.onBufferingStateChanged(MockPlayer.this, dsd, buffState); in notifyBufferingStateChanged()
252 public void setDataSource(@NonNull DataSourceDesc dsd) { in setDataSource() argument
257 public void setNextDataSource(@NonNull DataSourceDesc dsd) { in setNextDataSource() argument
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DVideoView2Impl.java458 public void setDataSource_impl(DataSourceDesc dsd) { in setDataSource_impl() argument
459 mDsd = dsd; in setDataSource_impl()
461 openVideo(dsd); in setDataSource_impl()
700 private void openVideo(DataSourceDesc dsd) { in openVideo() argument
701 Uri uri = dsd.getUri(); in openVideo()
702 Map<String, String> headers = dsd.getUriHeaders(); in openVideo()
705 mRoutePlayer.openVideo(dsd); in openVideo()
738 mMediaPlayer.setDataSource(dsd); in openVideo()
763 mMediaPlayer2Callback.onError(mMediaPlayer, dsd, in openVideo()
1141 MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) {
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer2.cpp304 sp<DataSourceDesc> dsd = new DataSourceDesc(); in android_media_MediaPlayer2_handleDataSourceUrl() local
305 dsd->mId = srcId; in android_media_MediaPlayer2_handleDataSourceUrl()
306 dsd->mType = DataSourceDesc::TYPE_URL; in android_media_MediaPlayer2_handleDataSourceUrl()
307 dsd->mUrl = tmp; in android_media_MediaPlayer2_handleDataSourceUrl()
314 env, keys, values, &dsd->mHeaders)) { in android_media_MediaPlayer2_handleDataSourceUrl()
322 dsd->mHttpService = httpService; in android_media_MediaPlayer2_handleDataSourceUrl()
326 err = mp->setDataSource(dsd); in android_media_MediaPlayer2_handleDataSourceUrl()
328 err = mp->prepareNextDataSource(dsd); in android_media_MediaPlayer2_handleDataSourceUrl()
378 sp<DataSourceDesc> dsd = new DataSourceDesc(); in android_media_MediaPlayer2_handleDataSourceFD() local
379 dsd->mId = srcId; in android_media_MediaPlayer2_handleDataSourceFD()
[all …]
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
DVideoView2ImplBase.java896 private void openVideo(DataSourceDesc dsd) { in openVideo() argument
897 Uri uri = dsd.getUri(); in openVideo()
898 Map<String, String> headers = dsd.getUriHeaders(); in openVideo()
926 mMediaPlayer.setDataSource(dsd); in openVideo()
950 mMediaPlayer2Callback.onError(mMediaPlayer, dsd, in openVideo()
1275 MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) {
1292 MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
1296 this.onPrepared(mp, dsd);
1298 this.onCompletion(mp, dsd);
1300 this.onBufferingUpdate(mp, dsd, extra);
[all …]

12