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

12

/frameworks/base/media/java/android/media/
H A DDataSourceDesc.java238 * @param dsd the {@link DataSourceDesc} object whose data will be reused
241 public Builder(DataSourceDesc dsd) { argument
242 mType = dsd.mType;
243 mMedia2DataSource = dsd.mMedia2DataSource;
244 mFD = dsd.mFD;
245 mFDOffset = dsd.mFDOffset;
246 mFDLength = dsd.mFDLength;
247 mUri = dsd.mUri;
248 mUriHeader = dsd.mUriHeader;
249 mUriCookies = dsd
[all...]
H A DMediaPlayerBase.java183 * @param dsd
185 public abstract void setDataSource(@NonNull DataSourceDesc dsd); argument
189 * @param dsd
191 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); argument
285 * @param dsd the new current data source. null, if no more data sources available.
288 @Nullable DataSourceDesc dsd) { }
293 * @param dsd the data source that the player is prepared to play.
295 public void onMediaPrepared(@NonNull MediaPlayerBase mpb, @NonNull DataSourceDesc dsd) { } argument
308 * @param dsd the data source for which buffering is happening.
312 @NonNull DataSourceDesc dsd,
287 onCurrentDataSourceChanged(@onNull MediaPlayerBase mpb, @Nullable DataSourceDesc dsd) argument
311 onBufferingStateChanged(@onNull MediaPlayerBase mpb, @NonNull DataSourceDesc dsd, @BuffState int state) argument
[all...]
H A DMediaPlayer2.java659 * @param dsd the descriptor of data source you want to play
663 public abstract void setDataSource(@NonNull DataSourceDesc dsd); argument
669 * @param dsd the descriptor of data source you want to play after current one
673 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); argument
1717 * @param dsd the DataSourceDesc of this data source
1721 public void onVideoSizeChanged(MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) { } argument
1727 * @param dsd the DataSourceDesc of this data source
1732 public void onTimedText(MediaPlayer2 mp, DataSourceDesc dsd, TimedText text) { } argument
1749 * @param dsd the DataSourceDesc of this data source
1753 MediaPlayer2 mp, DataSourceDesc dsd, TimedMetaDat
1752 onTimedMetaDataAvailable( MediaPlayer2 mp, DataSourceDesc dsd, TimedMetaData data) argument
1764 onError( MediaPlayer2 mp, DataSourceDesc dsd, @MediaError int what, int extra) argument
1776 onInfo(MediaPlayer2 mp, DataSourceDesc dsd, @MediaInfo int what, int extra) argument
1786 onCallCompleted( MediaPlayer2 mp, DataSourceDesc dsd, @CallCompleted int what, @CallStatus int status) argument
1797 onMediaTimeChanged( MediaPlayer2 mp, DataSourceDesc dsd, MediaTimestamp timestamp) argument
2285 onDrmConfig(MediaPlayer2 mp, DataSourceDesc dsd) argument
2312 onDrmInfo(MediaPlayer2 mp, DataSourceDesc dsd, DrmInfo drmInfo) argument
2322 onDrmPrepared( MediaPlayer2 mp, DataSourceDesc dsd, @PrepareDrmStatusCode int status) argument
[all...]
H A DMediaPlaylistAgent.java344 * Session would throw an exception if this returns {@code null} for {@param dsd} from the
348 * with the {@param dsd}.
350 * @param dsd The dsd to query.
351 * @return A {@link MediaItem2} object in the playlist that matches given {@code dsd}.
352 * @throws IllegalArgumentException if {@code dsd} is null
354 public @Nullable MediaItem2 getMediaItem(@NonNull DataSourceDesc dsd) { argument
355 return mProvider.getMediaItem_impl(dsd);
/frameworks/support/media/src/main/java/androidx/media/
H A DDataSourceDesc.java232 * @param dsd the {@link DataSourceDesc} object whose data will be reused
235 public Builder(@NonNull DataSourceDesc dsd) { argument
236 mType = dsd.mType;
237 mMedia2DataSource = dsd.mMedia2DataSource;
238 mFD = dsd.mFD;
239 mFDOffset = dsd.mFDOffset;
240 mFDLength = dsd.mFDLength;
241 mUri = dsd.mUri;
242 mUriHeader = dsd.mUriHeader;
243 mUriCookies = dsd
[all...]
H A DSessionPlaylistAgentImplBase.java72 @Nullable DataSourceDesc dsd) {
77 if (dsd == null && mCurrent != null) {
87 public DataSourceDesc dsd; field in class:SessionPlaylistAgentImplBase.PlayItem
94 PlayItem(int shuffledIdx, DataSourceDesc dsd) { argument
98 if (dsd == null) {
100 this.dsd = retrieveDataSourceDescLocked(this.mediaItem);
103 this.dsd = dsd;
116 if (dsd == null) {
120 && !mediaItem.getDataSourceDesc().equals(dsd)) {
71 onCurrentDataSourceChanged(@onNull MediaPlayerInterface mpb, @Nullable DataSourceDesc dsd) argument
406 getMediaItem(DataSourceDesc dsd) argument
[all...]
H A DMediaPlayerInterface.java197 * @param dsd
199 public abstract void setDataSource(@NonNull DataSourceDesc dsd); argument
203 * @param dsd
205 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); argument
305 * @param dsd the new current data source. null, if no more data sources available.
308 @Nullable DataSourceDesc dsd) { }
314 * @param dsd the data source that the player is prepared to play.
317 @NonNull DataSourceDesc dsd) { }
331 * @param dsd the data source for which buffering is happening.
335 @NonNull DataSourceDesc dsd,
307 onCurrentDataSourceChanged(@onNull MediaPlayerInterface mpb, @Nullable DataSourceDesc dsd) argument
316 onMediaPrepared(@onNull MediaPlayerInterface mpb, @NonNull DataSourceDesc dsd) argument
334 onBufferingStateChanged(@onNull MediaPlayerInterface mpb, @NonNull DataSourceDesc dsd, @BuffState int state) argument
[all...]
H A DMediaPlayer2.java364 * @param dsd the descriptor of data source you want to play
367 public abstract void setDataSource(@NonNull DataSourceDesc dsd); argument
373 * @param dsd the descriptor of data source you want to play after current one
376 public abstract void setNextDataSource(@NonNull DataSourceDesc dsd); argument
875 * @param dsd the DataSourceDesc of this data source
880 MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) { }
896 * @param dsd the DataSourceDesc of this data source
900 MediaPlayer2 mp, DataSourceDesc dsd, TimedMetaData data) { }
906 * @param dsd the DataSourceDesc of this data source
912 MediaPlayer2 mp, DataSourceDesc dsd,
879 onVideoSizeChanged( MediaPlayer2 mp, DataSourceDesc dsd, int width, int height) argument
899 onTimedMetaDataAvailable( MediaPlayer2 mp, DataSourceDesc dsd, TimedMetaData data) argument
911 onError( MediaPlayer2 mp, DataSourceDesc dsd, @MediaError int what, int extra) argument
923 onInfo(MediaPlayer2 mp, DataSourceDesc dsd, @MediaInfo int what, int extra) argument
933 onCallCompleted( MediaPlayer2 mp, DataSourceDesc dsd, @CallCompleted int what, @CallStatus int status) argument
957 onMediaTimeDiscontinuity( MediaPlayer2 mp, DataSourceDesc dsd, MediaTimestamp timestamp) argument
975 onSubtitleData( MediaPlayer2 mp, DataSourceDesc dsd, @NonNull SubtitleData data) argument
1448 onDrmConfig(MediaPlayer2 mp, DataSourceDesc dsd) argument
1475 onDrmInfo(MediaPlayer2 mp, DataSourceDesc dsd, DrmInfo drmInfo) argument
1485 onDrmPrepared( MediaPlayer2 mp, DataSourceDesc dsd, @PrepareDrmStatusCode int status) argument
[all...]
H A DMediaPlayer2Impl.java389 * @param dsd the descriptor of data source you want to play
391 * @throws NullPointerException if dsd is null
394 public void setDataSource(@NonNull final DataSourceDesc dsd) { argument
398 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null");
401 mPlayer.setFirst(dsd);
413 * @param dsd the descriptor of data source you want to play after current one
415 * @throws NullPointerException if dsd is null
418 public void setNextDataSource(@NonNull final DataSourceDesc dsd) { argument
422 Preconditions.checkNotNull(dsd, "the DataSourceDesc cannot be null");
423 handleDataSourceError(mPlayer.setNext(dsd));
1974 DataSourceError(DataSourceDesc dsd, int what, int extra) argument
1993 MediaPlayerSource(final DataSourceDesc dsd) argument
2022 setFirst(DataSourceDesc dsd) argument
2032 setNext(DataSourceDesc dsd) argument
2495 setDataSource(DataSourceDesc dsd) argument
2500 setNextDataSource(DataSourceDesc dsd) argument
[all...]
H A DMediaItem2.java72 private MediaItem2(@NonNull String mediaId, @Nullable DataSourceDesc dsd, argument
74 this(mediaId, dsd, metadata, flags, null);
77 private MediaItem2(@NonNull String mediaId, @Nullable DataSourceDesc dsd, argument
87 mDataSourceDesc = dsd;
/frameworks/av/packages/MediaComponents/src/com/android/media/
H A DSessionPlaylistAgent.java75 @Nullable DataSourceDesc dsd) {
80 if (dsd == null && mCurrent != null) {
90 DataSourceDesc dsd; field in class:SessionPlaylistAgent.PlayItem
97 PlayItem(int shuffledIdx, DataSourceDesc dsd) { argument
101 if (dsd == null) {
103 this.dsd = retrieveDataSourceDescLocked(this.mediaItem);
106 this.dsd = dsd;
118 if (dsd == null) {
128 && !mediaItem.getDataSourceDesc().equals(dsd)) {
74 onCurrentDataSourceChanged(@onNull MediaPlayerBase mpb, @Nullable DataSourceDesc dsd) argument
[all...]
H A DMediaItem2Impl.java49 public MediaItem2Impl(@NonNull String mediaId, @Nullable DataSourceDesc dsd, argument
51 this(mediaId, dsd, metadata, flags, null);
54 private MediaItem2Impl(@NonNull String mediaId, @Nullable DataSourceDesc dsd, argument
64 mDataSourceDesc = dsd;
H A DMediaPlaylistAgentImpl.java200 public @Nullable MediaItem2 getMediaItem_impl(@NonNull DataSourceDesc dsd) { argument
201 if (dsd == null) {
202 throw new IllegalArgumentException("dsd shouldn't be null");
210 if (item != null && item.getDataSourceDesc() == dsd) {
H A DRoutePlayer.java121 public void openVideo(DataSourceDesc dsd) { argument
122 mClient.play(dsd.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() {
129 playInternal(dsd.getUri());
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMediaPlayer2TestBase.java134 MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
190 MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
342 public void onVideoSizeChanged(MediaPlayer2 mp, DataSourceDesc dsd, int w, int h) {
345 ecb.onVideoSizeChanged(mp, dsd, w, h);
351 public void onTimedMetaDataAvailable(MediaPlayer2 mp, DataSourceDesc dsd,
355 ecb.onTimedMetaDataAvailable(mp, dsd, data);
361 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
364 ecb.onError(mp, dsd, what, extra);
370 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
373 ecb.onInfo(mp, dsd, wha
[all...]
H A DMockPlayer.java163 public void notifyCurrentDataSourceChanged(final DataSourceDesc dsd) { argument
170 callback.onCurrentDataSourceChanged(MockPlayer.this, dsd);
176 public void notifyMediaPrepared(final DataSourceDesc dsd) { argument
183 callback.onMediaPrepared(MockPlayer.this, dsd);
189 public void notifyBufferingStateChanged(final DataSourceDesc dsd, argument
197 callback.onBufferingStateChanged(MockPlayer.this, dsd, buffState);
249 public void setDataSource(@NonNull DataSourceDesc dsd) { argument
254 public void setNextDataSource(@NonNull DataSourceDesc dsd) { argument
H A DMediaPlayer2Test.java114 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) {
156 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
163 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) {
257 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) {
264 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) {
358 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd,
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,
[all...]
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
H A DMockPlayer.java166 public void notifyCurrentDataSourceChanged(final DataSourceDesc dsd) { argument
173 callback.onCurrentDataSourceChanged(MockPlayer.this, dsd);
179 public void notifyMediaPrepared(final DataSourceDesc dsd) { argument
186 callback.onMediaPrepared(MockPlayer.this, dsd);
192 public void notifyBufferingStateChanged(final DataSourceDesc dsd, argument
200 callback.onBufferingStateChanged(MockPlayer.this, dsd, buffState);
252 public void setDataSource(@NonNull DataSourceDesc dsd) { argument
257 public void setNextDataSource(@NonNull DataSourceDesc dsd) { argument
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/androidx/media/test/service/
H A DMockPlayer.java166 public void notifyCurrentDataSourceChanged(final DataSourceDesc dsd) { argument
173 callback.onCurrentDataSourceChanged(MockPlayer.this, dsd);
179 public void notifyMediaPrepared(final DataSourceDesc dsd) { argument
186 callback.onMediaPrepared(MockPlayer.this, dsd);
192 public void notifyBufferingStateChanged(final DataSourceDesc dsd, argument
200 callback.onBufferingStateChanged(MockPlayer.this, dsd, buffState);
252 public void setDataSource(@NonNull DataSourceDesc dsd) { argument
257 public void setNextDataSource(@NonNull DataSourceDesc dsd) { argument
/frameworks/base/media/java/android/media/update/
H A DMediaPlaylistAgentProvider.java54 MediaItem2 getMediaItem_impl(DataSourceDesc dsd); argument
H A DVideoView2Provider.java82 void setDataSource_impl(DataSourceDesc dsd); argument
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DVideoView2Impl.java458 public void setDataSource_impl(DataSourceDesc dsd) { argument
459 mDsd = dsd;
461 openVideo(dsd);
700 private void openVideo(DataSourceDesc dsd) { argument
701 Uri uri = dsd.getUri();
702 Map<String, String> headers = dsd.getUriHeaders();
705 mRoutePlayer.openVideo(dsd);
738 mMediaPlayer.setDataSource(dsd);
763 mMediaPlayer2Callback.onError(mMediaPlayer, dsd,
1141 MediaPlayer2 mp, DataSourceDesc dsd, in
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaPlayer2.cpp304 sp<DataSourceDesc> dsd = new DataSourceDesc(); local
305 dsd->mId = srcId;
306 dsd->mType = DataSourceDesc::TYPE_URL;
307 dsd->mUrl = tmp;
314 env, keys, values, &dsd->mHeaders)) {
322 dsd->mHttpService = httpService;
326 err = mp->setDataSource(dsd);
328 err = mp->prepareNextDataSource(dsd);
378 sp<DataSourceDesc> dsd = new DataSourceDesc(); local
379 dsd
410 sp<DataSourceDesc> dsd = new DataSourceDesc(); local
[all...]
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
H A DVideoView2ImplBase.java896 private void openVideo(DataSourceDesc dsd) { argument
897 Uri uri = dsd.getUri();
898 Map<String, String> headers = dsd.getUriHeaders();
926 mMediaPlayer.setDataSource(dsd);
950 mMediaPlayer2Callback.onError(mMediaPlayer, dsd,
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, extr
[all...]
/frameworks/av/media/libmediaplayer2/nuplayer2/
H A DNuPlayer2.h45 void setDataSourceAsync(const sp<DataSourceDesc> &dsd);
46 void prepareNextDataSourceAsync(const sp<DataSourceDesc> &dsd);
276 status_t createNuPlayer2Source(const sp<DataSourceDesc> &dsd,

Completed in 118 milliseconds

12