Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt116 private var playbackState: PlaybackState? = null variable in com.android.systemui.media.controls.ui.viewmodel.SeekBarViewModel
120 playbackState = state in onPlaybackStateChanged()
121 if (playbackState == null || PlaybackState.STATE_NONE.equals(playbackState)) { in onPlaybackStateChanged()
220 playbackState = null in onSeek()
235 playbackState = controller?.playbackState in updateController()
237 val seekAvailable = ((playbackState?.actions ?: 0L) and PlaybackState.ACTION_SEEK_TO) != 0L in updateController()
238 val position = playbackState?.position?.toInt() in updateController()
242 playbackState?.state ?: PlaybackState.STATE_NONE in updateController()
246 playbackState == null || in updateController()
247 playbackState?.getState() == PlaybackState.STATE_NONE || in updateController()
[all …]
DMediaControlViewModel.kt110 mediaController?.playbackState?.let { it.state == PlaybackState.STATE_PLAYING } ?: false in <lambda>()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DMediaControllerRepositoryImplTest.kt70 `when`(stoppedMediaController.playbackState).thenReturn(stateStopped) in setup()
72 `when`(statelessMediaController.playbackState).thenReturn(stateNone) in setup()
74 `when`(errorMediaController.playbackState).thenReturn(stateError) in setup()
76 `when`(remoteMediaController.playbackState).thenReturn(statePlaying) in setup()
79 `when`(localMediaController.playbackState).thenReturn(statePlaying) in setup()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DUtil.java137 public static String playbackStateToString(PlaybackState playbackState) { in playbackStateToString() argument
138 if (playbackState == null) return null; in playbackStateToString()
139 return playbackStateStateToString(playbackState.getState()) + " " + playbackState; in playbackStateToString()
DMediaSessions.java233 final PlaybackState playbackState = c.getPlaybackState(); in dump() local
239 writer.println(" PlaybackState: " + Util.playbackStateToString(playbackState)); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaOutputInteractor.kt95 it.local?.playbackState?.isActive == true -> it.local.mediaDeviceSession() in <lambda>()
96 it.remote?.playbackState?.isActive == true -> it.remote.mediaDeviceSession() in <lambda>()
170 val isNewControllerActive = newController.playbackState?.isActive == true in <lambda>()
171 val isCurrentControllerActive = currentController.playbackState?.isActive == true in <lambda>()
DMediaDeviceSessionInteractor.kt51 fun playbackState(session: MediaDeviceSession): Flow<PlaybackState?> { in <lambda>() method
53 emit(MediaControllerChangeModel.PlaybackStateChanged(it.playbackState)) in <lambda>()
DMediaOutputComponentInteractor.kt62 mediaDeviceSessionInteractor.playbackState(session).mapNotNull { playback -> in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipMediaController.kt230 val playbackState: PlaybackState = mMediaController!!.playbackState in <lambda>() constant in com.android.wm.shell.common.pip.PipMediaController
233 val isPlaying = playbackState.isActive in <lambda>()
234 val actions = playbackState.actions in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaDeviceSessionInteractorTest.kt83 val state by collectLastValue(underTest.playbackState(session!!)) in playbackState_returnsPlaybackState()
86 assertThat(state).isEqualTo(localMediaController.playbackState) in playbackState_returnsPlaybackState()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/
DMediaControllerKosmos.kt57 whenever(playbackState).thenReturn(localPlaybackStateBuilder.build()) in <lambda>()
87 whenever(playbackState).thenReturn(remotePlaybackStateBuilder.build()) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaTimeoutListenerTest.kt145 whenever(mediaController.playbackState).thenReturn(playingState) in testOnMediaDataLoaded_registersPlaybackListener()
199 whenever(mediaController.playbackState).thenReturn(playingState) in testOnMediaDataLoaded_migratesKeys()
219 whenever(mediaController.playbackState).thenReturn(playingState) in testOnMediaDataLoaded_migratesKeys_noTimeoutExtension()
307 whenever(mediaController.playbackState).thenReturn(playingState) in testSessionDestroyed_thenRestarts_resetsTimeout()
357 whenever(mediaController.playbackState).thenReturn(pausedState) in testOnMediaDataLoaded_pausedToResume_updatesTimeout()
389 whenever(mediaController.playbackState).thenReturn(playingState) in testOnMediaDataLoaded_resumeToActive_updatesTimeout()
687 whenever(mediaController.playbackState).thenReturn(state) in loadMediaDataWithPlaybackState()
DMediaDataProcessorTest.kt1672 whenever(controller.playbackState).thenReturn(null) in testPlaybackActions_noState_usesNotification()
1715 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_hasPrevNext()
1756 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_noPrevNext_usesCustom()
1788 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_connecting()
1814 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_reservedSpace()
1844 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in testPlaybackActions_playPause_hasButton()
1943 whenever(controller.playbackState).thenReturn(state) in testPlaybackState_PauseWhenFlagTrue_keyExists_callsListener()
2005 whenever(controller.playbackState).thenReturn(null) in testPlaybackStateNull_Pause_keyExists_callsListener()
2445 whenever(controller.playbackState).thenReturn(stateBuilder.build()) in addPlaybackStateAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationMediaManager.java480 final PlaybackState playbackState = controller.getPlaybackState(); in getMediaControllerPlaybackState() local
481 if (playbackState != null) { in getMediaControllerPlaybackState()
482 return playbackState.getState(); in getMediaControllerPlaybackState()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/ui/viewmodel/
DMediaOutputViewModelTest.kt81 whenever(localMediaController.playbackState).then { playbackStateBuilder.build() } in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/ui/viewmodel/
DAudioVolumeComponentViewModel.kt72 mediaDeviceSessionInteractor.playbackState(session).map { it?.isActive == true } in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/
DSpatialAudioAvailabilityCriteriaTest.kt82 whenever(localMediaController.playbackState).thenReturn(PlaybackState.Builder().build()) in setup()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java346 MediaSessionRecordImpl record, @Nullable PlaybackState playbackState) { in onSessionActiveStateChanged() argument
372 boolean isUserEngaged = isUserEngaged(record, playbackState); in onSessionActiveStateChanged()
380 + playbackState); in onSessionActiveStateChanged()
387 @Nullable PlaybackState playbackState) { in isUserEngaged() argument
388 if (playbackState == null) { in isUserEngaged()
392 return playbackState.isActive() && record.isActive(); in isUserEngaged()
479 @Nullable PlaybackState playbackState) { in onSessionPlaybackStateChanged() argument
487 boolean isUserEngaged = isUserEngaged(record, playbackState); in onSessionPlaybackStateChanged()
494 + playbackState); in onSessionPlaybackStateChanged()
DMediaSessionRecord.java891 PlaybackState playbackState;
896 playbackState = mPlaybackState;
900 holder -> holder.mCallback.onPlaybackStateChanged(playbackState));
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractorTest.kt101 whenever(localMediaController.playbackState).thenReturn(PlaybackState.Builder().build()) in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaTimeoutListener.kt246 mediaController?.playbackState, in <lambda>()
DMediaDataProcessor.kt855 val isPlaying = mediaController.playbackState?.let { isPlayingState(it.state) } in <lambda>()
1034 val state = controller.playbackState in <lambda>()
DLegacyMediaDataManagerImpl.kt910 val isPlaying = mediaController.playbackState?.let { isPlayingState(it.state) } ?: null in loadMediaDataInBg()
1088 val state = controller.playbackState in createActionsFromState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java1250 public void onPlaybackStateChanged(PlaybackState playbackState) {
1252 playbackState == null ? PlaybackState.STATE_STOPPED : playbackState.getState();
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...