/frameworks/av/packages/MediaComponents/src/com/android/media/ |
H A D | MediaPlaylistAgentImpl.java | 200 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 D | RoutePlayer.java | 121 public void openVideo(DataSourceDesc dsd) { argument 122 mClient.play(dsd.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { 129 playInternal(dsd.getUri());
|
H A D | MediaItem2Impl.java | 49 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 D | SessionPlaylistAgent.java | 75 @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 D | MediaSession2Impl.java | 842 public void onCurrentDataSourceChanged(MediaPlayerBase mpb, DataSourceDesc dsd) { argument 844 if (session == null || dsd == null) { 848 MediaItem2 item = getMediaItem(session, dsd); 858 public void onMediaPrepared(MediaPlayerBase mpb, DataSourceDesc dsd) { argument 860 if (session == null || dsd == null) { 864 MediaItem2 item = getMediaItem(session, dsd); 886 public void onBufferingStateChanged(MediaPlayerBase mpb, DataSourceDesc dsd, int state) { argument 888 if (session == null || dsd == null) { 892 MediaItem2 item = getMediaItem(session, dsd); 910 private MediaItem2 getMediaItem(MediaSession2Impl session, DataSourceDesc dsd) { argument [all...] |
/frameworks/base/media/java/android/media/update/ |
H A D | MediaPlaylistAgentProvider.java | 54 MediaItem2 getMediaItem_impl(DataSourceDesc dsd); argument
|
H A D | VideoView2Provider.java | 82 void setDataSource_impl(DataSourceDesc dsd); argument
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | MediaItem2.java | 72 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;
|
H A D | DataSourceDesc.java | 232 * @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 D | MediaPlayerInterface.java | 197 * @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 D | MediaPlaylistAgent.java | 384 * Session would throw an exception if this returns {@code null} for the dsd from the 388 * with the {@param dsd}. 390 * @param dsd The dsd to query 391 * @return A {@link MediaItem2} object in the playlist that matches given {@code dsd}. 392 * @throws IllegalArgumentException if {@code dsd} is null 394 public @Nullable MediaItem2 getMediaItem(@NonNull DataSourceDesc dsd) { argument 395 if (dsd == null) { 396 throw new IllegalArgumentException("dsd shouldn't be null"); 404 if (item != null && item.getDataSourceDesc().equals(dsd)) { [all...] |
H A D | SessionPlaylistAgentImplBase.java | 72 @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 D | MediaPlayer2.java | 364 * @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...] |
/frameworks/base/media/java/android/media/ |
H A D | DataSourceDesc.java | 238 * @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 D | MediaPlayerBase.java | 183 * @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 D | MediaPlaylistAgent.java | 344 * 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/androidTest/java/androidx/media/ |
H A D | MockPlayer.java | 163 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
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/ |
H A D | MockPlayer.java | 166 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 D | MockPlayer.java | 166 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/av/packages/MediaComponents/tests/src/com/android/media/ |
H A D | SessionPlaylistAgentTest.java | 123 .setDataSource(getContext(), Uri.parse("dsd://test")) 174 public void setDataSource(DataSourceDesc dsd) { argument 178 public void setNextDataSource(DataSourceDesc dsd) { argument
|
/frameworks/av/media/libmediaplayer2/ |
H A D | mediaplayer2.cpp | 492 status_t MediaPlayer2::setDataSource(const sp<DataSourceDesc> &dsd) { argument 493 if (dsd == NULL) { 496 ALOGV("setDataSource type(%d), srcId(%lld)", dsd->mType, (long long)dsd->mId); 522 err = player->setDataSource(dsd); 530 mSrcId = dsd->mId; 542 status_t MediaPlayer2::prepareNextDataSource(const sp<DataSourceDesc> &dsd) { argument 543 if (dsd == NULL) { 546 ALOGV("prepareNextDataSource type(%d), srcId(%lld)", dsd->mType, (long long)dsd [all...] |
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | NuPlayer2Driver.cpp | 175 status_t NuPlayer2Driver::setDataSource(const sp<DataSourceDesc> &dsd) { argument 183 mSrcId = dsd->mId; 186 mPlayer->setDataSourceAsync(dsd); 195 status_t NuPlayer2Driver::prepareNextDataSource(const sp<DataSourceDesc> &dsd) { argument 199 mPlayer->prepareNextDataSourceAsync(dsd);
|
H A D | NuPlayer2.cpp | 273 status_t NuPlayer2::createNuPlayer2Source(const sp<DataSourceDesc> &dsd, argument 278 notify->setInt64("srcId", dsd->mId); 280 switch (dsd->mType) { 283 const char *url = dsd->mUrl.c_str(); 286 const sp<MediaHTTPService> &httpService = dsd->mHttpService; 287 KeyedVector<String8, String8> *headers = &(dsd->mHeaders); 333 dsd->mFD, (long long)dsd->mFDOffset, (long long)dsd->mFDLength, 336 err = genericSource->setDataSource(dsd 377 setDataSourceAsync(const sp<DataSourceDesc> &dsd) argument 404 prepareNextDataSourceAsync(const sp<DataSourceDesc> &dsd) argument [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | VideoView2Impl.java | 458 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 D | android_media_MediaPlayer2.cpp | 304 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...] |