/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/ |
D | MediaViewModel.java | 148 MediaSource mediaSource = mSourceViewModel.getPrimaryMediaSource().getValue(); in updateModel() local 150 if (mediaSource == null) { in updateModel() 156 mAppName = mediaSource.getDisplayName(); in updateModel() 157 mAppIcon = mediaSource.getIcon(); in updateModel() 213 MediaSource mediaSource = mSourceViewModel.getPrimaryMediaSource().getValue(); in mediaSourceChanged() local 214 if (mediaSource == null && (mAppName != null | mAppIcon != null)) { in mediaSourceChanged() 217 if (mediaSource != null && (mAppName != mediaSource.getDisplayName() in mediaSourceChanged() 218 || mAppIcon != mediaSource.getIcon())) { in mediaSourceChanged()
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | ViewControllerBase.java | 100 CharSequence getAppBarDefaultTitle(@Nullable MediaSource mediaSource) { in getAppBarDefaultTitle() argument 101 return (mediaSource != null) ? mediaSource.getDisplayName() in getAppBarDefaultTitle() 132 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged() argument 137 if (mediaSource != null) { in onMediaSourceChanged() 140 icon = new BitmapDrawable(res, mediaSource.getCroppedPackageIcon()); in onMediaSourceChanged() 141 searchIcon = new BitmapDrawable(res, mediaSource.getCroppedPackageIcon()); in onMediaSourceChanged() 142 packageName = mediaSource.getPackageName(); in onMediaSourceChanged()
|
D | ErrorScreenController.java | 28 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged() argument 29 super.onMediaSourceChanged(mediaSource); in onMediaSourceChanged() 32 mAppBarController.setTitle(getAppBarDefaultTitle(mediaSource)); in onMediaSourceChanged()
|
D | MediaActivityController.java | 194 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged() argument 195 super.onMediaSourceChanged(mediaSource); in onMediaSourceChanged() 197 updateTabs((mediaSource != null) ? null : new ArrayList<>()); in onMediaSourceChanged() 634 MediaSource mediaSource = mMediaSourceVM.getPrimaryMediaSource().getValue(); in updateAppBarTitle() local 635 title = getAppBarDefaultTitle(mediaSource); in updateAppBarTitle()
|
D | MediaActivity.java | 261 MediaSource mediaSource = getInnerViewModel().getMediaSourceValue(); in getErrorController() local 262 mErrorController.onMediaSourceChanged(mediaSource); in getErrorController() 590 void saveBrowsedMediaSource(MediaSource mediaSource) { in saveBrowsedMediaSource() argument 593 Log.i(TAG, "MediaSource changed from " + oldSource + " to " + mediaSource); in saveBrowsedMediaSource() 595 mBrowsedMediaSource.setValue(FutureData.newLoadedData(oldSource, mediaSource)); in saveBrowsedMediaSource()
|
D | BrowseViewController.java | 319 MediaSource mediaSource = mViewModel.getMediaSourceValue(); in getErrorMessage() local 322 mediaSource != null in getErrorMessage() 323 ? mediaSource.getDisplayName() in getErrorMessage()
|
D | PlaybackFragment.java | 491 mediaSourceViewModel.getPrimaryMediaSource().observe(this, mediaSource -> in onViewCreated() 492 mAppBarController.setLogo(mediaSource != null in onViewCreated() 493 ? new BitmapDrawable(getResources(), mediaSource.getCroppedPackageIcon()) in onViewCreated()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
D | MediaSourcesProvider.java | 116 .filter(mediaSource -> { in getList() 117 if (mediaSource == null) { in getList() 121 ComponentName srcComp = mediaSource.getBrowseServiceComponentName(); in getList() 124 preferredSources[preferredComps.get(srcComp)] = mediaSource; in getList() 131 mediaSource -> mediaSource.getDisplayName().toString())) in getList()
|
D | MediaBrowserConnector.java | 95 public BrowsingState(@NonNull MediaSource mediaSource, @NonNull MediaBrowserCompat browser, in BrowsingState() argument 97 mMediaSource = Preconditions.checkNotNull(mediaSource, "source can't be null"); in BrowsingState() 220 public void connectTo(@Nullable MediaSource mediaSource) { in connectTo() argument 230 mMediaSource = mediaSource; in connectTo() 255 protected MediaBrowserCompat createMediaBrowser(@NonNull MediaSource mediaSource, in createMediaBrowser() argument 259 ComponentName browseService = mediaSource.getBrowseServiceComponentName(); in createMediaBrowser()
|
D | MediaSourceColors.java | 92 public MediaSourceColors extractColors(@Nullable MediaSource mediaSource) { in extractColors() argument 93 if (mediaSource == null) { in extractColors() 96 return extractColors(mediaSource.getPackageName()); in extractColors()
|
D | MediaSourceViewModel.java | 162 public void setPrimaryMediaSource(@NonNull MediaSource mediaSource, int mode) { in setPrimaryMediaSource() argument 163 mCarMediaManager.setMediaSource(mediaSource.getBrowseServiceComponentName(), mode); in setPrimaryMediaSource()
|
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/ |
D | MediaSourceViewModelTest.java | 94 protected MediaBrowserCompat createMediaBrowser(MediaSource mediaSource, in initializeViewModel() 96 mRequestedSource = mediaSource; in initializeViewModel() 97 MediaBrowserCompat bro = super.createMediaBrowser(mediaSource, callback); in initializeViewModel() 98 Log.i(TAG, "createMediaBrowser: " + idHash(bro) + " for: " + mediaSource); in initializeViewModel()
|
D | MediaBrowserConnectorTest.java | 91 protected MediaBrowserCompat createMediaBrowser(@NonNull MediaSource mediaSource, in setUp() 94 return mBrowsers.get(mediaSource); in setUp()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 631 ComponentName mediaSource = getMediaSource(mMediaController.getPackageName(), in onPlaybackStateChanged() local 633 if (mediaSource != null in onPlaybackStateChanged() 634 && !mediaSource.equals(mPrimaryMediaComponents[MEDIA_SOURCE_MODE_PLAYBACK]) in onPlaybackStateChanged() 637 + mediaSource.flattenToString()); in onPlaybackStateChanged() 639 setPrimaryMediaSource(mediaSource, MEDIA_SOURCE_MODE_PLAYBACK); in onPlaybackStateChanged() 811 ComponentName mediaSource = getMediaSource(newPackageName, newClassName); in updatePrimaryMediaSourceWithCurrentlyPlaying() local 813 if (mediaSource != null) { in updatePrimaryMediaSourceWithCurrentlyPlaying() 816 + mediaSource.flattenToString()); in updatePrimaryMediaSourceWithCurrentlyPlaying() 826 setPrimaryMediaSource(mediaSource, MEDIA_SOURCE_MODE_PLAYBACK); in updatePrimaryMediaSourceWithCurrentlyPlaying()
|
/packages/services/Car/car-lib/src/android/car/media/ |
D | ICarMedia.aidl | 32 void setMediaSource(in ComponentName mediaSource, int mode); in setMediaSource() argument
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | MpegTsPlayerV2.java | 228 public void prepare(TsDataSource dataSource, MediaSource mediaSource) { in prepare() argument 230 mPlayer.prepare(mediaSource, false, false); in prepare()
|
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/ |
D | ZappingTimeTestExoV2.java | 238 MediaSource mediaSource = new MpegTsMediaSource(extractor); in handleMessageStartPlayback() local 239 mPlayer.prepare(source, mediaSource); in handleMessageStartPlayback()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerSessionWorkerExoV2.java | 1701 MediaSource mediaSource; in preparePlayback() local 1725 mediaSource = new MpegTsMediaSource(extractor); in preparePlayback() 1726 player.prepare(source, mediaSource); in preparePlayback()
|