Home
last modified time | relevance | path

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

/cts/tests/tests/media/misc/src/android/media/misc/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 …]
/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/tests/app/app/src/android/app/stubs/
DCommandReceiver.java38 import android.media.session.PlaybackState;
250 PlaybackState.STATE_PLAYING, in onReceive()
256 PlaybackState.STATE_PAUSED, in onReceive()
262 PlaybackState.STATE_STOPPED, in onReceive()
586 setPlaybackState(PlaybackState.STATE_PLAYING, mMediaSession); in doCreateMediaSession()
592 setPlaybackState(PlaybackState.STATE_PAUSED, mMediaSession); in doCreateMediaSession()
598 setPlaybackState(PlaybackState.STATE_STOPPED, mMediaSession); in doCreateMediaSession()
692 final long allActions = PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PAUSE in setPlaybackState()
693 | PlaybackState.ACTION_PLAY_PAUSE | PlaybackState.ACTION_STOP in setPlaybackState()
694 | PlaybackState.ACTION_SKIP_TO_NEXT | PlaybackState.ACTION_SKIP_TO_PREVIOUS in setPlaybackState()
[all …]
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSessionTest.java53 import android.media.session.PlaybackState;
289 PlaybackState state = new PlaybackState.Builder().setActions(TEST_ACTION).build(); in testConfigureSession()
296 PlaybackState stateOut = mCallback.mPlaybackState; in testConfigureSession()
459 setPlaybackState(PlaybackState.STATE_PLAYING); in testSetMediaButtonReceiver_broadcastReceiver()
510 setPlaybackState(PlaybackState.STATE_PLAYING); in testSetMediaButtonReceiver_service()
599 setPlaybackState(PlaybackState.STATE_PLAYING); in testSetMediaButtonBroadcastReceiver_broadcastReceiver()
721 setPlaybackState(PlaybackState.STATE_PLAYING); in testCallbackOnMediaButtonEvent()
771 setPlaybackState(PlaybackState.STATE_PAUSED); in testCallbackOnMediaButtonEvent()
779 setPlaybackState(PlaybackState.STATE_PLAYING); in testCallbackOnMediaButtonEvent()
787 setPlaybackState(PlaybackState.STATE_PLAYING); in testCallbackOnMediaButtonEvent()
[all …]
DMediaSessionManagerTest.java38 import android.media.session.PlaybackState;
221 PlaybackState state = new PlaybackState.Builder() in createMediaKeySession()
222 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in createMediaKeySession()
263 PlaybackState state = new PlaybackState.Builder() in testOnMediaKeyEventDispatchedListener()
264 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testOnMediaKeyEventDispatchedListener()
373 PlaybackState state = in testSetOnMediaKeyListener()
374 new PlaybackState.Builder().setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testSetOnMediaKeyListener()
437 PlaybackState state = in testRemoteUserInfo()
438 new PlaybackState.Builder().setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testRemoteUserInfo()
DMediaControllerTest.java19 import static android.media.session.PlaybackState.STATE_PLAYING;
34 import android.media.session.PlaybackState;
35 import android.media.session.PlaybackState.CustomAction;
111 final long testActions = PlaybackState.ACTION_PLAY | PlaybackState.ACTION_STOP in testGetPlaybackState()
112 | PlaybackState.ACTION_SEEK_TO; in testGetPlaybackState()
122 PlaybackState state = new PlaybackState.Builder() in testGetPlaybackState()
134 PlaybackState stateOut = mController.getPlaybackState(); in testGetPlaybackState()
612 () -> transportControls.sendCustomAction((PlaybackState.CustomAction) null, in testSendCustomActionWithIllegalArgumentsThrowsIAE()
DMediaRouter2Test.java69 import android.media.session.PlaybackState;
702 PlaybackState playbackState = in testVolumeAdjustmentEventsReachOnlyExistingActiveRemoteSession()
703 new PlaybackState.Builder() in testVolumeAdjustmentEventsReachOnlyExistingActiveRemoteSession()
705 PlaybackState.STATE_PLAYING, in testVolumeAdjustmentEventsReachOnlyExistingActiveRemoteSession()
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
DMediaSessionManagerTest.java33 import android.media.session.PlaybackState;
189 PlaybackState state = new PlaybackState.Builder() in createMediaKeySession()
190 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in createMediaKeySession()
/cts/tools/release-parser/tests/resources/
DShell.apk.pb.txt2999 name: "android.media.session.PlaybackState.CustomAction"
3631 name: "android.media.session.PlaybackState"
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt26596 method @Nullable public android.media.session.PlaybackState getPlaybackState();
26617 method public void onPlaybackStateChanged(@Nullable android.media.session.PlaybackState);
26651 …method public void sendCustomAction(@NonNull android.media.session.PlaybackState.CustomAction, @Nu…
26678 method public void setPlaybackState(@Nullable android.media.session.PlaybackState);
26766 public final class PlaybackState implements android.os.Parcelable {
26771 … method public java.util.List<android.media.session.PlaybackState.CustomAction> getCustomActions();
26799 …ull public static final android.os.Parcelable.Creator<android.media.session.PlaybackState> CREATOR;
26816 public static final class PlaybackState.Builder {
26817 ctor public PlaybackState.Builder();
26818 ctor public PlaybackState.Builder(android.media.session.PlaybackState);
[all …]