Home
last modified time | relevance | path

Searched refs:getLastMediaSources (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/Launcher/libs/car-launcher-common/tests/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItemTest.kt99 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE)) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_forceStopPackageCalled()
123 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE)) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_browseMediaSrcSet()
150 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE)) in forceStop_activeBrowseMediaSrc_foundLastBrowseSrc_playbackMediaSrcNotSet()
176 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE)) in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_browseMediaSrcSet()
201 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_BROWSE)) in forceStop_activeBrowseMediaSrc_noLastBrowseSrc_noMediaService_browseMediaSrcNotSet()
228 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK)) in forceStop_activePlaybackMediaSrc_lastPlaybackSrcFound_forceStopPackageCalled()
252 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK)) in forceStop_activePlaybackMediaSrc_lastPlaybackSrcFound_playbackMediaSrcSet()
279 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK)) in forceStop_activePlaybackMediaSrc_lastPlaybackSrcFound_browseMediaSrcNotSet()
305 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK)) in forceStop_activePlaybackMediaSrc_noLastPlaybackSrc_playbackMediaSrcSet()
330 carMediaManagerMock.getLastMediaSources(eq(CarMediaManager.MEDIA_SOURCE_MODE_PLAYBACK)) in forceStop_activePlaybackMediaSrc_noLastPlaybackSrc_noMediaService_playbackMediaSrcNotSet()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/
DCarMediaManagerUnitTest.java177 when(mServiceMock.getLastMediaSources(TEST_MODE, TEST_USER_ID)) in testGetLastMediaSources()
180 expectWithMessage("Last media sources").that(mMediaManager.getLastMediaSources( in testGetLastMediaSources()
187 doThrow(mRemoteException).when(mServiceMock).getLastMediaSources(TEST_MODE, TEST_USER_ID); in testGetLastMediaSources_whenServiceThrowsRemoteException_returnsNull()
189 expectWithMessage("Last media sources").that(mMediaManager.getLastMediaSources( in testGetLastMediaSources_whenServiceThrowsRemoteException_returnsNull()
/packages/services/Car/car-lib/src/android/car/media/
DCarMediaManager.java175 public @NonNull List<ComponentName> getLastMediaSources(@MediaSourceMode int mode) { in getLastMediaSources() method in CarMediaManager
177 return mService.getLastMediaSources(mode, getContext().getUser().getIdentifier()); in getLastMediaSources()
DICarMedia.aidl38 List<ComponentName> getLastMediaSources(int mode, int userId); in getLastMediaSources() method
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java583 assertThat(mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testGetLastMediaSources()
592 assertThat(mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testGetLastMediaSources_returnsDefaultWhenNothingIsStored()
594 assertThat(mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testGetLastMediaSources_returnsDefaultWhenNothingIsStored()
605 assertThat(mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testGetLastMediaSources_returnsDefaultWhenSharedPrefNotInitialized()
607 assertThat(mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_BROWSE, TEST_USER_ID)) in testGetLastMediaSources_returnsDefaultWhenSharedPrefNotInitialized()
616 () -> mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_BROWSE, in testGetLastMediaSources_throwsSecurityExceptionWhenUserDoesNotMatch()
626 assertThat(mCarMediaService.getLastMediaSources(MEDIA_SOURCE_MODE_PLAYBACK, TEST_USER_ID)) in testGetLastMediaSources_systemUserCanCallForOtherUser()
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItem.kt208 val mediaSources = carMediaManager?.getLastMediaSources(mode) in <lambda>()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java862 public List<ComponentName> getLastMediaSources(@CarMediaManager.MediaSourceMode int mode, in getLastMediaSources() method in CarMediaService
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt234 method TIRAMISU_0 List<ComponentName> getLastMediaSources(int mode);
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt1753 …DIA_CONTENT_CONTROL) public java.util.List<android.content.ComponentName> getLastMediaSources(int);
/packages/services/Car/car-lib/api/
Dsystem-current.txt1753 …DIA_CONTENT_CONTROL) public java.util.List<android.content.ComponentName> getLastMediaSources(int);
Dtest-current.txt1828 …DIA_CONTENT_CONTROL) public java.util.List<android.content.ComponentName> getLastMediaSources(int);
Dsystem-lint-baseline.txt3372 UnflaggedApi: android.car.media.CarMediaManager#getLastMediaSources(int):
3373 …must be flagged with @FlaggedApi: method android.car.media.CarMediaManager.getLastMediaSources(int)