Home
last modified time | relevance | path

Searched refs:MediaSource (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java29 import com.android.gallery3d.data.MediaSource.PathId;
108 private HashMap<String, MediaSource> mSourceMap =
109 new LinkedHashMap<String, MediaSource>();
130 for (MediaSource source : mSourceMap.values()) { in initializeSourceMap()
150 void addSource(MediaSource source) { in addSource()
171 MediaSource source = mSourceMap.get(path.getPrefix()); in getMediaObject()
238 MediaSource source = mSourceMap.get(prefix); in mapMediaItems()
270 for (MediaSource source : mSourceMap.values()) { in findPathByUri()
278 MediaSource source = mSourceMap.get(item.getPrefix()); in getDefaultSetOf()
285 for (MediaSource source : mSourceMap.values()) { in getTotalUsedCacheSize()
[all …]
DMediaSource.java25 public abstract class MediaSource { class
29 protected MediaSource(String prefix) { in MediaSource() method in MediaSource
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSourceViewModel.java51 private final MutableLiveData<MediaSource> mPrimaryMediaSource = dataOf(null);
71 MediaSource getMediaSource(ComponentName componentName); in getMediaSource()
107 public MediaSource getMediaSource(ComponentName componentName) { in MediaSourceViewModel()
108 return componentName == null ? null : MediaSource.create(application, in MediaSourceViewModel()
155 public LiveData<MediaSource> getPrimaryMediaSource() { in getPrimaryMediaSource()
162 public void setPrimaryMediaSource(@NonNull MediaSource mediaSource, int mode) { in setPrimaryMediaSource()
174 private void updateModelState(MediaSource newMediaSource) { in updateModelState()
175 MediaSource oldMediaSource = mPrimaryMediaSource.getValue(); in updateModelState()
DMediaSourcesProvider.java56 private List<MediaSource> mMediaSources;
98 public List<MediaSource> getList() { in getList()
112 MediaSource[] preferredSources = new MediaSource[preferredFlats.length]; in getList()
113 List<MediaSource> sortedSources = getComponentNames().stream() in getList()
115 .map(componentName -> MediaSource.create(mAppContext, componentName)) in getList()
DMediaSource.java49 public class MediaSource { class
65 public static MediaSource create(@NonNull Context context, in create()
81 return new MediaSource(browseService, displayName, icon, new IconCropper(context)); in create()
89 public MediaSource(@NonNull ComponentName browseService, @NonNull CharSequence displayName, in MediaSource() method in MediaSource
202 MediaSource that = (MediaSource) o; in equals()
DMediaBrowserConnector.java90 @NonNull public final MediaSource mMediaSource;
95 public BrowsingState(@NonNull MediaSource mediaSource, @NonNull MediaBrowserCompat browser, in BrowsingState()
128 @Nullable private MediaSource mMediaSource;
220 public void connectTo(@Nullable MediaSource mediaSource) { in connectTo()
255 protected MediaBrowserCompat createMediaBrowser(@NonNull MediaSource mediaSource, in createMediaBrowser()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaActivity.java62 import com.android.car.media.common.source.MediaSource;
261 MediaSource mediaSource = getInnerViewModel().getMediaSourceValue(); in getErrorController()
325 private void onMediaSourceChanged(FutureData<MediaSource> futureSource) { in onMediaSourceChanged()
327 MediaSource newMediaSource = FutureData.getData(futureSource); in onMediaSourceChanged()
328 MediaSource oldMediaSource = FutureData.getPastData(futureSource); in onMediaSourceChanged()
524 private final MutableLiveData<FutureData<MediaSource>> mBrowsedMediaSource =
526 private final Map<MediaSource, MediaServiceState> mStates = new HashMap<>();
554 MediaSource getMediaSourceValue() { in getMediaSourceValue()
559 MediaSource source = getMediaSourceValue(); in getSavedState()
590 void saveBrowsedMediaSource(MediaSource mediaSource) { in saveBrowsedMediaSource()
[all …]
DMediaDispatcherActivity.java13 import com.android.car.media.common.source.MediaSource;
43 MediaSource mediaSrc = null; in onCreate()
49 mediaSrc = MediaSource.create(this, component); in onCreate()
DViewControllerBase.java42 import com.android.car.media.common.source.MediaSource;
100 CharSequence getAppBarDefaultTitle(@Nullable MediaSource mediaSource) { in getAppBarDefaultTitle()
132 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged()
DErrorScreenController.java11 import com.android.car.media.common.source.MediaSource;
28 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged()
DMediaActivityController.java48 import com.android.car.media.common.source.MediaSource;
194 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged()
634 MediaSource mediaSource = mMediaSourceVM.getPrimaryMediaSource().getValue(); in updateAppBarTitle()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/
DMediaTestUtils.java27 import com.android.car.media.common.source.MediaSource;
35 public static MediaSource newFakeMediaSource(@NonNull String pkg, @NonNull String cls) { in newFakeMediaSource()
40 public static MediaSource newFakeMediaSource(@NonNull ComponentName browseService) { in newFakeMediaSource()
44 return new MediaSource(browseService, displayName, icon, iconCropper); in newFakeMediaSource()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DMusicFragmentViewModel.java26 import com.android.car.media.common.source.MediaSource;
34 private LiveData<MediaSource> mMediaSource;
50 mAppName = mapNonNull(mMediaSource, MediaSource::getDisplayName); in init()
51 mAppIcon = mapNonNull(mMediaSource, MediaSource::getCroppedPackageIcon); in init()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaSourceViewModelTest.java76 private MediaSource mRequestedSource;
77 private MediaSource mMediaSource;
94 protected MediaBrowserCompat createMediaBrowser(MediaSource mediaSource, in initializeViewModel()
115 public MediaSource getMediaSource(ComponentName componentName) { in initializeViewModel()
124 CaptureObserver<MediaSource> observer = new CaptureObserver<>(); in testGetSelectedMediaSource_none()
DMediaBrowserConnectorTest.java68 private final MediaSource mMediaSource1 = newFakeMediaSource("mediaService1", "className1");
69 private final MediaSource mMediaSource2 = newFakeMediaSource("mediaService2", "className2");
71 private final Map<MediaSource, MediaBrowserCompat> mBrowsers = new HashMap<>(2);
91 protected MediaBrowserCompat createMediaBrowser(@NonNull MediaSource mediaSource, in setUp()
DMediaSourcesProviderTest.java107 List<MediaSource> observedValue = mMediaSources.getList(); in testGetAppsOnActive()
130 List<MediaSource> observedValue = mMediaSources.getList(); in testGetAppsOnPackageAdded()
153 List<MediaSource> observedValue = mMediaSources.getList(); in testGetAppsOnPackageRemoved()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DPlaybackFragment.java58 import com.android.car.media.common.source.MediaSource;
94 mAppSelectorIntent = MediaSource.getSourceSelectorIntent(getContext(), true); in onCreateView()
213 private void onMediaSourceChanged(MediaSource source) { in onMediaSourceChanged()
222 private LiveData<MediaSource> mMediaSource;
248 mAppName = mapNonNull(mMediaSource, MediaSource::getDisplayName); in init()
249 mAppIcon = mapNonNull(mMediaSource, MediaSource::getCroppedPackageIcon); in init()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DExoPlayerSampleExtractor.java39 import com.google.android.exoplayer2.source.MediaSource;
181 private final MediaSource mSampleSource;
182 private final MediaSource.SourceInfoRefreshListener mSampleSourceListener;
191 SourceReaderWorker(MediaSource sampleSource) { in SourceReaderWorker()
271 new MediaSource.MediaPeriodId(0), in handleMessage()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/
DMediaViewModel.java41 import com.android.car.media.common.source.MediaSource;
148 MediaSource mediaSource = mSourceViewModel.getPrimaryMediaSource().getValue(); in updateModel()
213 MediaSource mediaSource = mSourceViewModel.getPrimaryMediaSource().getValue(); in mediaSourceChanged()
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DMediaViewModelTest.java39 import com.android.car.media.common.source.MediaSource;
60 private MutableLiveData<MediaSource> mLiveMediaSource = new MutableLiveData<>();
68 private MediaSource mMediaSource;
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java45 import com.google.android.exoplayer2.source.MediaSource;
181 private final MediaSource mSampleSource;
182 private final MediaSource.SourceInfoRefreshListener mSampleSourceListener;
192 public SourceReaderWorker(MediaSource sampleSource) { in SourceReaderWorker()
315 new MediaSource.MediaPeriodId(0), in handleMessage()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/
DMediaItemsRepository.java40 import com.android.car.media.common.source.MediaSource;
115 private final Map<MediaSource, PerMediaSourceCache> mCaches = new HashMap<>();
181 private MediaSource getMediaSource() { in getMediaSource()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
DPicasaSource.java28 import com.android.gallery3d.data.MediaSource;
34 public class PicasaSource extends MediaSource {
/packages/apps/Car/Media/src/com/android/car/media/widgets/
DAppBarController.java14 import com.android.car.media.common.source.MediaSource;
90 mAppSelectorIntent = MediaSource.getSourceSelectorIntent(context, false); in AppBarController()
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioActivity.java34 import com.android.car.media.common.source.MediaSource;
206 Intent appSelectorIntent = MediaSource.getSourceSelectorIntent(this, false); in updateMenuItems()

12