Lines Matching refs:state
107 public void onPlaybackStateChanged(PlaybackState state) {
108 if (state == null) {
111 LogHelper.d(TAG, "Received playback state change to state ", state.getState());
112 mPlaybackState = state;
113 QueueFragment.this.onPlaybackStateChanged(state);
189 private void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged() argument
190 LogHelper.d(TAG, "onPlaybackStateChanged ", state); in onPlaybackStateChanged()
191 if (state == null) { in onPlaybackStateChanged()
194 mQueueAdapter.setActiveQueueItemId(state.getActiveQueueItemId()); in onPlaybackStateChanged()
198 switch (state.getState()) { in onPlaybackStateChanged()
212 statusBuilder.append("error: ").append(state.getErrorMessage()); in onPlaybackStateChanged()
227 statusBuilder.append(" -- At position: ").append(state.getPosition()); in onPlaybackStateChanged()
237 mSkipPrevious.setEnabled((state.getActions() & PlaybackState.ACTION_SKIP_TO_PREVIOUS) != 0); in onPlaybackStateChanged()
238 mSkipNext.setEnabled((state.getActions() & PlaybackState.ACTION_SKIP_TO_NEXT) != 0); in onPlaybackStateChanged()
248 final int state = mPlaybackState == null ?
252 LogHelper.d(TAG, "Play button pressed, in state " + state);
253 if (state == PlaybackState.STATE_PAUSED ||
254 state == PlaybackState.STATE_STOPPED ||
255 state == PlaybackState.STATE_NONE) {
257 } else if (state == PlaybackState.STATE_PLAYING) {
262 LogHelper.d(TAG, "Start button pressed, in state " + state);