Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
DMediaControllerAdapterTest.java672 PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder(); in createPlaybackStatePlaying() local
675 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStatePlaying()
678 mSession.setPlaybackState(playbackStateBuilder.build()); in createPlaybackStatePlaying()
687 PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder(); in createPlaybackStateNotPlaying() local
690 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStateNotPlaying()
693 mSession.setPlaybackState(playbackStateBuilder.build()); in createPlaybackStateNotPlaying()
705 PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder(); in createPlaybackStatePlayingWithBufferedPosition() local
708 playbackStateBuilder.setState(playState, currentPosition, (float) 1.0).setActions( in createPlaybackStatePlayingWithBufferedPosition()
711 playbackStateBuilder.setBufferedPosition(bufferedPosition); in createPlaybackStatePlayingWithBufferedPosition()
712 mSession.setPlaybackState(playbackStateBuilder.build()); in createPlaybackStatePlayingWithBufferedPosition()
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DMediaSessionService.java595 PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder(); in createPlaybackStateBuilder() local
607 playbackStateBuilder.setState(playState, currentPosition, playbackSpeed in createPlaybackStateBuilder()
611 return playbackStateBuilder; in createPlaybackStateBuilder()