Home
last modified time | relevance | path

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

12

/packages/apps/Car/Radio/src/com/android/car/radio/widget/
DPlayPauseButton.java37 private static final int[] STATE_PLAYING = {R.attr.state_playing}; field in PlayPauseButton
83 case PlaybackState.STATE_PLAYING: in onClick()
93 switchTo = PlaybackState.STATE_PLAYING; in onClick()
110 case PlaybackState.STATE_PLAYING: in onCreateDrawableState()
111 mergeDrawableStates(drawableState, STATE_PLAYING); in onCreateDrawableState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputUtilsTest.java88 .setState(PlaybackState.STATE_PLAYING, 0, 1) in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
127 .setState(PlaybackState.STATE_PLAYING, 0, 1) in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
153 .setState(PlaybackState.STATE_PLAYING, 0, 1) in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull()
177 .setState(PlaybackState.STATE_PLAYING, 0, 1) in initPlayback()
DMediaOutputIndicatorWorkerTest.java221 .setState(PlaybackState.STATE_PLAYING, 0, 1) in initPlayback()
235 .setState(PlaybackState.STATE_PLAYING, 0, 1) in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
273 .setState(PlaybackState.STATE_PLAYING, 0, 1) in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerListTest.java148 Assert.assertEquals(data.state.getState(), PlaybackState.STATE_PLAYING); in testUpdateMeidaDataForAudioPlaybackWhenAcitvePlayNotPlaying()
163 MediaData currMediaData = prepareMediaData(PlaybackState.STATE_PLAYING); in testUpdateMediaDataForActivePlayerWhenAudioPlaybackIsNotActive()
175 doReturn(prepareMediaData(PlaybackState.STATE_PLAYING)) in testNotUdpateMediaDataForAudioPlaybackWhenActivePlayerIsPlaying()
184 doReturn(prepareMediaData(PlaybackState.STATE_PLAYING)) in testNotUdpateMediaDataForActivePlayerWhenAudioPlaybackIsActive()
DMediaPlayerWrapperTest.java449 mTestState.setState(PlaybackState.STATE_PLAYING, 1000, 1.0f); in testPlaybackStateUpdateSpam()
467 mTestState.setState(PlaybackState.STATE_PLAYING, 1020, 1.0f); in testPlaybackStateUpdateSpam()
472 mTestState.setState(PlaybackState.STATE_PLAYING, 1040, 1.0f); in testPlaybackStateUpdateSpam()
477 mTestState.setState(PlaybackState.STATE_PLAYING, 3000, 1.0f); in testPlaybackStateUpdateSpam()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java140 BluetoothA2dp.STATE_PLAYING); in doQuit()
167 BluetoothA2dp.STATE_PLAYING); in enter()
482 BluetoothA2dp.STATE_PLAYING); in enter()
570 broadcastAudioState(BluetoothA2dp.STATE_PLAYING, in processAudioStateEvent()
582 BluetoothA2dp.STATE_PLAYING); in processAudioStateEvent()
762 case BluetoothA2dp.STATE_PLAYING: in audioStateToString()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java159 mPlaybackState = PlaybackState.STATE_PLAYING; in play()
174 case PlaybackState.STATE_PLAYING: in pause()
242 mPlaybackState = PlaybackState.STATE_PLAYING; in seekTo()
576 mPlaybackState = PlaybackState.STATE_PLAYING; in resumeToWatchedPositionIfNeeded()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java247 boolean weArePlaying = mCurrentPlaybackState == PlaybackState.STATE_PLAYING;
274 .setState(shouldBePlaying ? PlaybackState.STATE_PLAYING
629 if (state.getState() == PlaybackState.STATE_PLAYING in onPlaybackStateChanged()
806 && controller.getPlaybackState().getState() == PlaybackState.STATE_PLAYING) { in updatePrimaryMediaSourceWithCurrentlyPlaying()
1023 == PlaybackState.STATE_PLAYING; in shouldStartPlayback()
1026 return mCurrentPlaybackState == PlaybackState.STATE_PLAYING; in shouldStartPlayback()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/
DMediaPlayerList.java321 && (state == null || state.getState() != PlaybackState.STATE_PLAYING)) { in getCurrentPlayStatus()
323 .setState(PlaybackState.STATE_PLAYING, in getCurrentPlayStatus()
731 && currState.getState() == PlaybackState.STATE_PLAYING) { in updateMediaForAudioPlayback()
738 .setState(PlaybackState.STATE_PLAYING, in updateMediaForAudioPlayback()
800 if (mAudioPlaybackIsActive && (data.state.getState() != PlaybackState.STATE_PLAYING)) {
DBrowsedPlayerWrapper.java347 if (state == null || state.getState() != PlaybackState.STATE_PLAYING) {
379 if (state.getState() == PlaybackState.STATE_PLAYING) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java263 mockPlaybackStateChange(createPlaybackState(PlaybackState.STATE_PLAYING)); in testActiveSessionListener_StatePlayingChangesSource()
276 mockPlaybackStateChange(createPlaybackState(PlaybackState.STATE_PLAYING)); in testActiveSessionListener_IndependentBrowseUnchanged()
291 mockPlaybackStateChange(createPlaybackState(PlaybackState.STATE_PLAYING)); in testActiveSessionListener_DependentBrowseChanged()
/packages/apps/Car/Radio/src/com/android/car/radio/audio/
DAudioStreamController.java223 ? PlaybackState.STATE_PLAYING : PlaybackState.STATE_ERROR); in onTuneCompleted()
243 notifyPlaybackStateLocked(PlaybackState.STATE_PLAYING); in requestMuted()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaMediaEvent.java37 import static android.support.v4.media.session.PlaybackStateCompat.STATE_PLAYING;
63 PLAYING (STATE_PLAYING),
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java1097 PlaybackStateCompat.STATE_PLAYING); in testPlaybackWhileMusicPlaying()
1115 PlaybackStateCompat.STATE_PLAYING); in testPlaybackWhileIdle()
1132 PlaybackStateCompat.STATE_PLAYING); in testPlaybackWhileErrorState()
1152 PlaybackStateCompat.STATE_PLAYING); in testPlaybackWhilePlayingState()
1295 setPlaybackState(PlaybackStateCompat.STATE_PLAYING); in testPlaybackWhileNotActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/helpers/
DPlayStatus.java57 case PlaybackState.STATE_PLAYING: in playbackStateToAvrcpState()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackStateAnnotations.java53 PlaybackState.STATE_PLAYING, PlaybackState.STATE_FAST_FORWARDING,
DPlaybackViewModel.java397 case PlaybackStateCompat.STATE_PLAYING: in getMainAction()
436 return mState.getState() == PlaybackStateCompat.STATE_PLAYING; in isPlaying()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputUtils.java67 if (playbackState.getState() != PlaybackState.STATE_PLAYING) { in getActiveLocalMediaController()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java55 return mDvrPlayer.getPlaybackState() == PlaybackState.STATE_PLAYING; in isPlaying()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DMediaSessionWrapperTest.java88 assertThat(mediaSession.mPlaybackState.getState()).isEqualTo(PlaybackState.STATE_PLAYING); in setPlaybackState_true()
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioController.java199 case PlaybackState.STATE_PLAYING: in onSwitchToPlayState()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DProgressLiveDataTest.java73 when(mPlaybackState.getState()).thenReturn(PlaybackStateCompat.STATE_PLAYING); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java594 BluetoothA2dp.STATE_PLAYING, in testProcessAudioStateChangedCodecConfigChangedEvents()
618 BluetoothA2dp.STATE_PLAYING); in testProcessAudioStateChangedCodecConfigChangedEvents()
621 BluetoothA2dp.STATE_PLAYING, in testProcessAudioStateChangedCodecConfigChangedEvents()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java241 == PlaybackStateCompat.STATE_PLAYING && !inCallFromStreamingDevice()) { in handleMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpPlayer.java121 case PlaybackStateCompat.STATE_PLAYING: in setPlayStatus()

12