Home
last modified time | relevance | path

Searched refs:PlaybackInfo (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DMediaControllerRepositoryImplTest.kt20 import android.media.session.MediaController.PlaybackInfo
56 @Mock private lateinit var remotePlaybackInfo: PlaybackInfo
57 @Mock private lateinit var localPlaybackInfo: PlaybackInfo
83 `when`(remotePlaybackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in setup()
84 `when`(localPlaybackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_LOCAL) in setup()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/
DMediaControllerKosmos.kt35 MediaController.PlaybackInfo( in <lambda>()
36 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in <lambda>()
65 MediaController.PlaybackInfo( in <lambda>()
66 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DUtil.java23 import android.media.session.MediaController.PlaybackInfo;
78 public static String playbackInfoToString(PlaybackInfo info) { in playbackInfoToString()
91 case PlaybackInfo.PLAYBACK_TYPE_LOCAL: in playbackInfoTypeToString()
93 case PlaybackInfo.PLAYBACK_TYPE_REMOTE: in playbackInfoTypeToString()
DMediaSessions.java28 import android.media.session.MediaController.PlaybackInfo;
160 final PlaybackInfo pi = controller.getPlaybackInfo(); in onActiveSessionsUpdatedH()
187 private static boolean isRemote(PlaybackInfo pi) { in isRemote()
188 return pi != null && pi.getPlaybackType() == PlaybackInfo.PLAYBACK_TYPE_REMOTE; in isRemote()
221 private void updateRemoteH(Token token, String name, PlaybackInfo pi) { in updateRemoteH()
232 final PlaybackInfo pi = c.getPlaybackInfo(); in dump()
281 public void onAudioInfoChanged(@NonNull PlaybackInfo info) { in onAudioInfoChanged()
389 void onRemoteUpdate(Token token, String name, PlaybackInfo pi); in onRemoteUpdate()
/frameworks/base/media/java/android/media/session/
DMediaController.java249 public PlaybackInfo getPlaybackInfo() { in getPlaybackInfo()
612 public void onAudioInfoChanged(@NonNull PlaybackInfo playbackInfo) {} in onAudioInfoChanged()
953 public static final class PlaybackInfo implements Parcelable { class in MediaController
991 public PlaybackInfo( in PlaybackInfo() method in MediaController.PlaybackInfo
1006 PlaybackInfo(Parcel in) { in PlaybackInfo() method in MediaController.PlaybackInfo
1097 public static final @android.annotation.NonNull Parcelable.Creator<PlaybackInfo> CREATOR =
1098 new Parcelable.Creator<PlaybackInfo>() {
1100 public PlaybackInfo createFromParcel(Parcel in) {
1101 return new PlaybackInfo(in);
1105 public PlaybackInfo[] newArray(int size) {
[all …]
DMediaController.aidl18 parcelable MediaController.PlaybackInfo;
DISessionControllerCallback.aidl37 void onVolumeInfoChanged(in MediaController.PlaybackInfo info); in onVolumeInfoChanged()
DISessionController.aidl48 MediaController.PlaybackInfo getVolumeAttributes(); in getVolumeAttributes()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManagerTest.kt29 import android.media.session.MediaController.PlaybackInfo
116 @Mock private lateinit var playbackInfo: PlaybackInfo
155 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_LOCAL) in setUp()
255 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in updateToSessionTokenWithNullRoute()
418 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in onMediaDataLoaded_withRemotePlaybackType_usesNonNullRoutingSessionName()
433 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in onMediaDataLoaded_withRemotePlaybackInfo_noMatchingRoutingSession_setsDisabledDevice()
449 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in onMediaDataLoaded_withRemotePlaybackInfo_noMatchingRoutingSession_returnsOtherDevice()
471 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in onSelectedDeviceStateChanged_withRemotePlaybackInfo_noMatchingRoutingSession_setsDisabledDevice()
492 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in onSelectedDeviceStateChanged_withRemotePlaybackInfo_noMatchingRoutingSession_returnOtherDevice()
515 whenever(playbackInfo.playbackType).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in onDeviceListUpdate_withRemotePlaybackInfo_noMatchingRoutingSession_setsDisabledDevice()
[all …]
DMediaSessionBasedFilterTest.kt20 import android.media.session.MediaController.PlaybackInfo
83 @Mock private lateinit var remotePlaybackInfo: PlaybackInfo
84 @Mock private lateinit var localPlaybackInfo: PlaybackInfo
130 whenever(remotePlaybackInfo.getPlaybackType()).thenReturn(PlaybackInfo.PLAYBACK_TYPE_REMOTE) in setUp()
131 whenever(localPlaybackInfo.getPlaybackType()).thenReturn(PlaybackInfo.PLAYBACK_TYPE_LOCAL) in setUp()
DMediaDataProcessorTest.kt136 @Mock lateinit var playbackInfo: MediaController.PlaybackInfo
293 .thenReturn(MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL) in setup()
835 .thenReturn(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE) in testOnNotificationRemoved_withResumption_butNotLocal()
864 .thenReturn(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE) in testOnNotificationRemoved_withResumption_isRemoteAndRemoteAllowed()
1866 .thenReturn(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE) in testPlaybackLocationChange_isLogged()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputInteractorTest.kt130 MediaController.PlaybackInfo( in activeMediaDeviceSessions_volumeControlFixed_cantAdjustVolume()
131 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in activeMediaDeviceSessions_volumeControlFixed_cantAdjustVolume()
139 MediaController.PlaybackInfo( in activeMediaDeviceSessions_volumeControlFixed_cantAdjustVolume()
140 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in activeMediaDeviceSessions_volumeControlFixed_cantAdjustVolume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/slider/ui/viewmodel/
DCastVolumeSliderViewModel.kt20 import android.media.session.MediaController.PlaybackInfo
63 private fun PlaybackInfo.getCurrentState(): State { in PlaybackInfo() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputInteractor.kt142 val playbackInfo: MediaController.PlaybackInfo = controller.playbackInfo ?: continue in <lambda>()
144 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE -> { in <lambda>()
154 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL -> { in <lambda>()
DMediaControllerInteractor.kt89 override fun onAudioInfoChanged(info: MediaController.PlaybackInfo) { in onAudioInfoChanged()
DMediaDeviceSessionInteractor.kt60 fun playbackInfo(session: MediaDeviceSession): Flow<MediaController.PlaybackInfo> { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/model/
DMediaControllerChangeModel.kt43 data class AudioInfoChanged(val info: MediaController.PlaybackInfo) :
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaSessionBasedFilter.kt22 import android.media.session.MediaController.PlaybackInfo in <lambda>()
120 it.playbackInfo?.playbackType == PlaybackInfo.PLAYBACK_TYPE_REMOTE in <lambda>()
DMediaDeviceManager.kt26 import android.media.session.MediaController.PlaybackInfo in <lambda>()
234 override fun onAudioInfoChanged(info: MediaController.PlaybackInfo) { in <lambda>()
351 if (controller?.playbackInfo?.playbackType == PlaybackInfo.PLAYBACK_TYPE_REMOTE) { in <lambda>()
/frameworks/base/media/java/android/media/
DRemoteController.java77 private PlaybackInfo mLastPlaybackInfo;
663 private static class PlaybackInfo { class in RemoteController
669 PlaybackInfo(int state, long stateChangeTimeMs, long currentPosMs, float speed) { in PlaybackInfo() method in RemoteController.PlaybackInfo
DMediaRouter2Manager.java404 MediaController.PlaybackInfo playbackInfo = mediaController.getPlaybackInfo(); in getRoutingSessionForMediaController()
405 if (playbackInfo.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL) { in getRoutingSessionForMediaController()
958 MediaController.PlaybackInfo playbackInfo = mediaController.getPlaybackInfo(); in areSessionsMatched()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java23 import static android.media.session.MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL;
24 import static android.media.session.MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE;
60 import android.media.session.MediaController.PlaybackInfo;
773 private static String toVolumeTypeString(@PlaybackInfo.PlaybackType int volumeType) { in toVolumeTypeString()
962 PlaybackInfo info;
1069 private PlaybackInfo getVolumeAttributes() {
1073 if (mVolumeType == PlaybackInfo.PLAYBACK_TYPE_REMOTE) {
1075 return new PlaybackInfo(mVolumeType, mVolumeControlType, mMaxVolume, current,
1084 return new PlaybackInfo(
1414 typeChanged = mVolumeType == PlaybackInfo.PLAYBACK_TYPE_REMOTE;
[all …]
DMediaShellCommand.java255 public void onAudioInfoChanged(@NonNull MediaController.PlaybackInfo info) { in onAudioInfoChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java43 import static android.media.session.MediaController.PlaybackInfo;
142 private PlaybackInfo mLastKnownPlaybackInfo;
424 PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getActiveRoutingSession()
425 if (playbackInfo.getPlaybackType() == PlaybackInfo.PLAYBACK_TYPE_LOCAL) { in getActiveRoutingSession()
877 public void onAudioInfoChanged(@NonNull PlaybackInfo info) { in onAudioInfoChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogControllerImpl.java43 import android.media.session.MediaController.PlaybackInfo;
1268 public void onRemoteUpdate(Token token, String name, PlaybackInfo pi) { in onRemoteUpdate()

12