Home
last modified time | relevance | path

Searched refs:getMediaSource (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Car/Launcher/libs/car-launcher-common/tests/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItemTest.kt96 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE))) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
101 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK))) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
120 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE))) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
125 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK))) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
147 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE))) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_playbackMediaSrcNotSet()
152 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK))) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_playbackMediaSrcNotSet()
173 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE))) in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_browseMediaSrcSet()
178 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK))) in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_browseMediaSrcSet()
198 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE))) in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_noMediaService_browseMediaSrcNotSet()
203 whenever(carMediaManagerMock.getMediaSource(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK))) in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_noMediaService_browseMediaSrcNotSet()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java234 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testSetMediaSource_ModePlaybackIndependent()
236 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testSetMediaSource_ModePlaybackIndependent()
247 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testSetMediaSource_ModeBrowseIndependent()
249 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testSetMediaSource_ModeBrowseIndependent()
261 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testSetMediaSource_ModePlaybackAndBrowseIndependent()
263 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testSetMediaSource_ModePlaybackAndBrowseIndependent()
274 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testSetMediaSource_Dependent()
276 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testSetMediaSource_Dependent()
281 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testSetMediaSource_Dependent()
283 assertThat(mCarMediaService.getMediaSource(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testSetMediaSource_Dependent()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/
DCarMediaManagerUnitTest.java87 when(mServiceMock.getMediaSource(TEST_MODE, TEST_USER_ID)).thenReturn(mComponentNameMock1); in testGetMediaSource()
89 expectWithMessage("Media source for browse mode").that(mMediaManager.getMediaSource( in testGetMediaSource()
95 doThrow(mRemoteException).when(mServiceMock).getMediaSource(TEST_MODE, TEST_USER_ID); in testGetMediaSource_whenServiceThrowsRemoteException_returnsNull()
98 .that(mMediaManager.getMediaSource(TEST_MODE)).isNull(); in testGetMediaSource_whenServiceThrowsRemoteException_returnsNull()
/packages/services/Car/car-lib/src/android/car/media/
DCarMediaManager.java91 public @NonNull ComponentName getMediaSource(@MediaSourceMode int mode) { in getMediaSource() method in CarMediaManager
93 return mService.getMediaSource(mode, getContext().getUser().getIdentifier()); in getMediaSource()
DICarMedia.aidl30 ComponentName getMediaSource(int mode, int userId); in getMediaSource() method
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/
DPickerSQLConstants.java209 getMediaSource(), in getProjection()
230 private String getMediaSource() { in getMediaSource() method in PickerSQLConstants.MediaResponse
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItem.kt222 val componentName = carMediaManager?.getMediaSource(mode) in <lambda>()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java808 public ComponentName getMediaSource(@CarMediaManager.MediaSourceMode int mode, in getMediaSource() method in CarMediaService
1203 ComponentName mediaSource = getMediaSource(mMediaController.getPackageName(), in onPlaybackStateChanged()
1417 getMediaSource(newPackageName, newClassName, userId); in updatePrimaryMediaSourceWithCurrentlyPlaying()
1502 private ComponentName getMediaSource(String packageName, String className, in getMediaSource() method in CarMediaService
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/
DMediaActuator.java82 onMediaSourceChanged(mCarMediaManager.getMediaSource( in onCreate()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/controlbar/
DControlBarMediaController.java91 MediaSource mediaSource = mDataModel.getMediaSource().getValue(); in ControlBarMediaController()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/media/
DMediaCardController.java122 MediaSource mediaSource = mDataModel.getMediaSource().getValue(); in MediaCardController()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppLauncherUtils.java177 static ComponentName getMediaSource(@NonNull PackageManager packageManager, in getMediaSource() method in AppLauncherUtils
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt230 method TIRAMISU_0 ComponentName getMediaSource(int mode);
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt1754 …anifest.permission.MEDIA_CONTENT_CONTROL) public android.content.ComponentName getMediaSource(int);
/packages/services/Car/car-lib/api/
Dsystem-current.txt1754 …anifest.permission.MEDIA_CONTENT_CONTROL) public android.content.ComponentName getMediaSource(int);
Dtest-current.txt1829 …anifest.permission.MEDIA_CONTENT_CONTROL) public android.content.ComponentName getMediaSource(int);
Dsystem-lint-baseline.txt3374 UnflaggedApi: android.car.media.CarMediaManager#getMediaSource(int):
3375 … API must be flagged with @FlaggedApi: method android.car.media.CarMediaManager.getMediaSource(int)