Home
last modified time | relevance | path

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

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMusicService.java611 PlaybackState.Builder stateBuilder = new PlaybackState.Builder() in updatePlaybackState() local
614 setCustomAction(stateBuilder); in updatePlaybackState()
621 stateBuilder.setErrorMessage(error); in updatePlaybackState()
624 stateBuilder.setState(state, position, 1.0f, SystemClock.elapsedRealtime()); in updatePlaybackState()
629 stateBuilder.setActiveQueueItemId(item.getQueueId()); in updatePlaybackState()
632 mSession.setPlaybackState(stateBuilder.build()); in updatePlaybackState()
639 private void setCustomAction(PlaybackState.Builder stateBuilder) { in setCustomAction() argument
650 stateBuilder.addCustomAction(CUSTOM_ACTION_THUMBS_UP, getString(R.string.favorite), in setCustomAction()