Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DPlaybackStateTest.java20 import android.media.session.PlaybackState;
43 PlaybackState.ACTION_PLAY | PlaybackState.ACTION_STOP | PlaybackState.ACTION_SEEK_TO;
65 PlaybackState state = new PlaybackState.Builder().build(); in testBuilder()
67 assertEquals(new ArrayList<PlaybackState.CustomAction>(), state.getCustomActions()); in testBuilder()
92 PlaybackState state = new PlaybackState.Builder() in testBuilder_setterMethods()
93 .setState(PlaybackState.STATE_PLAYING, TEST_POSITION, TEST_PLAYBACK_SPEED) in testBuilder_setterMethods()
100 assertEquals(PlaybackState.STATE_PLAYING, state.getState()); in testBuilder_setterMethods()
114 PlaybackState state = new PlaybackState.Builder().setState( in testBuilder_setStateWithUpdateTime()
115 PlaybackState.STATE_REWINDING, TEST_POSITION, in testBuilder_setStateWithUpdateTime()
117 assertEquals(PlaybackState.STATE_REWINDING, state.getState()); in testBuilder_setStateWithUpdateTime()
[all …]
DMediaSessionTest.java45 import android.media.session.PlaybackState;
217 PlaybackState state = new PlaybackState.Builder().setActions(TEST_ACTION).build(); in testConfigureSession()
224 PlaybackState stateOut = mCallback.mPlaybackState; in testConfigureSession()
552 setPlaybackState(PlaybackState.STATE_PLAYING); in testCallbackOnMediaButtonEvent()
602 setPlaybackState(PlaybackState.STATE_PAUSED); in testCallbackOnMediaButtonEvent()
610 setPlaybackState(PlaybackState.STATE_PLAYING); in testCallbackOnMediaButtonEvent()
618 setPlaybackState(PlaybackState.STATE_PLAYING); in testCallbackOnMediaButtonEvent()
630 setPlaybackState(PlaybackState.STATE_PAUSED); in testCallbackOnMediaButtonEvent()
641 setPlaybackState(PlaybackState.STATE_PAUSED); in testCallbackOnMediaButtonEvent()
649 assertEquals(PlaybackState.STATE_STOPPED, in testCallbackOnMediaButtonEvent()
[all …]
DMediaSessionManagerTest.java38 import android.media.session.PlaybackState;
120 PlaybackState state = new PlaybackState.Builder() in testOnMediaKeyEventSessionChangedListener()
121 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testOnMediaKeyEventSessionChangedListener()
155 PlaybackState state = new PlaybackState.Builder() in testOnMediaKeyEventDispatchedListener()
156 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testOnMediaKeyEventDispatchedListener()
271 PlaybackState state = new PlaybackState.Builder() in testSetOnMediaKeyListener()
272 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testSetOnMediaKeyListener()
338 PlaybackState state = new PlaybackState.Builder() in testRemoteUserInfo()
339 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testRemoteUserInfo()
DMediaControllerTest.java19 import static android.media.session.PlaybackState.STATE_PLAYING;
30 import android.media.session.PlaybackState;
31 import android.media.session.PlaybackState.CustomAction;
90 final long testActions = PlaybackState.ACTION_PLAY | PlaybackState.ACTION_STOP in testGetPlaybackState()
91 | PlaybackState.ACTION_SEEK_TO; in testGetPlaybackState()
101 PlaybackState state = new PlaybackState.Builder() in testGetPlaybackState()
113 PlaybackState stateOut = mController.getPlaybackState(); in testGetPlaybackState()
618 transportControls.sendCustomAction((PlaybackState.CustomAction) null, in testSendCustomActionWithIllegalArgumentsThrowsIAE()
/cts/tests/tests/systemui/PipTestApp/src/android/systemui/cts/tv/pip/
DPipTestActivity.kt29 import android.media.session.PlaybackState in <lambda>()
30 import android.media.session.PlaybackState.ACTION_PAUSE in <lambda>()
31 import android.media.session.PlaybackState.ACTION_PLAY in <lambda>()
32 import android.media.session.PlaybackState.STATE_PAUSED in <lambda>()
33 import android.media.session.PlaybackState.STATE_PLAYING in <lambda>()
34 import android.media.session.PlaybackState.STATE_STOPPED in <lambda>()
63 private val playbackBuilder = PlaybackState.Builder() in <lambda>()
202 private fun PlaybackState.Builder.setState(state: Int) = apply { in <lambda>() method
/cts/tools/release-parser/tests/resources/
DShell.apk.pb.txt2999 name: "android.media.session.PlaybackState.CustomAction"
3631 name: "android.media.session.PlaybackState"