/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DataManager.java | 29 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 …]
|
D | MediaSource.java | 25 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/ |
D | MediaSourceViewModel.java | 51 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()
|
D | MediaSourcesProvider.java | 56 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()
|
D | MediaSource.java | 49 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()
|
D | MediaBrowserConnector.java | 90 @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/ |
D | MediaActivity.java | 62 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 …]
|
D | MediaDispatcherActivity.java | 13 import com.android.car.media.common.source.MediaSource; 43 MediaSource mediaSrc = null; in onCreate() 49 mediaSrc = MediaSource.create(this, component); in onCreate()
|
D | ViewControllerBase.java | 42 import com.android.car.media.common.source.MediaSource; 100 CharSequence getAppBarDefaultTitle(@Nullable MediaSource mediaSource) { in getAppBarDefaultTitle() 132 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged()
|
D | ErrorScreenController.java | 11 import com.android.car.media.common.source.MediaSource; 28 void onMediaSourceChanged(@Nullable MediaSource mediaSource) { in onMediaSourceChanged()
|
D | MediaActivityController.java | 48 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/ |
D | MediaTestUtils.java | 27 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/ |
D | MusicFragmentViewModel.java | 26 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/ |
D | MediaSourceViewModelTest.java | 76 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()
|
D | MediaBrowserConnectorTest.java | 68 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()
|
D | MediaSourcesProviderTest.java | 107 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/ |
D | PlaybackFragment.java | 58 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/ |
D | ExoPlayerSampleExtractor.java | 39 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/ |
D | MediaViewModel.java | 41 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/ |
D | MediaViewModelTest.java | 39 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/ |
D | ExoPlayerSampleExtractor.java | 45 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/ |
D | MediaItemsRepository.java | 40 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/ |
D | PicasaSource.java | 28 import com.android.gallery3d.data.MediaSource; 34 public class PicasaSource extends MediaSource {
|
/packages/apps/Car/Media/src/com/android/car/media/widgets/ |
D | AppBarController.java | 14 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/ |
D | RadioActivity.java | 34 import com.android.car.media.common.source.MediaSource; 206 Intent appSelectorIntent = MediaSource.getSourceSelectorIntent(this, false); in updateMenuItems()
|