Home
last modified time | relevance | path

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

12

/frameworks/support/v4/api21/android/support/v4/media/session/
DPlaybackStateCompatApi21.java19 import android.media.session.PlaybackState;
24 return ((PlaybackState)stateObj).getState(); in getState()
28 return ((PlaybackState)stateObj).getPosition(); in getPosition()
32 return ((PlaybackState)stateObj).getBufferedPosition(); in getBufferedPosition()
36 return ((PlaybackState)stateObj).getPlaybackSpeed(); in getPlaybackSpeed()
40 return ((PlaybackState)stateObj).getActions(); in getActions()
44 return ((PlaybackState)stateObj).getErrorMessage(); in getErrorMessage()
48 return ((PlaybackState)stateObj).getLastPositionUpdateTime(); in getLastPositionUpdateTime()
53 PlaybackState.Builder stateObj = new PlaybackState.Builder(); in newInstance()
DMediaSessionCompatApi21.java28 import android.media.session.PlaybackState;
100 ((MediaSession)sessionObj).setPlaybackState((PlaybackState)stateObj); in setPlaybackState()
DMediaControllerCompatApi21.java27 import android.media.session.PlaybackState;
272 public void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java25 import android.media.session.PlaybackState;
51 protected PlaybackState mPlaybackState;
61 PlaybackState.Builder psBob = new PlaybackState.Builder(); in PlayerSession()
62 psBob.setActions(PlaybackState.ACTION_PAUSE | PlaybackState.ACTION_PLAY); in PlayerSession()
139 float rate = newState == PlaybackState.STATE_PLAYING ? 1 : 0; in updateState()
141 PlaybackState.Builder bob = new PlaybackState.Builder(mPlaybackState); in updateState()
159 public void onPlayStateChanged(PlaybackState state); in onPlayStateChanged()
167 PlaybackState.Builder bob = new PlaybackState.Builder(mPlaybackState); in onError()
168 bob.setState(PlaybackState.STATE_ERROR, -1, 0, 0); in onError()
191 pbState = PlaybackState.STATE_STOPPED; in onStateChanged()
[all …]
DOnePlayerActivity.java28 import android.media.session.PlaybackState;
61 private PlaybackState mPlaybackState;
147 if (state == PlaybackState.STATE_PAUSED
148 || state == PlaybackState.STATE_STOPPED) {
150 } else if (state == PlaybackState.STATE_PLAYING) {
177 public void onPlaybackStateChange(PlaybackState state) {
183 case PlaybackState.STATE_PLAYING:
188 case PlaybackState.STATE_PAUSED:
193 case PlaybackState.STATE_STOPPED:
198 case PlaybackState.STATE_ERROR:
[all …]
DNotificationHelper.java19 import android.media.session.PlaybackState;
41 private PlaybackState mPlaybackState;
130 public void onPlaybackStateChanged(PlaybackState state) {
162 case PlaybackState.STATE_PLAYING: in updateNotification()
165 case PlaybackState.STATE_PAUSED: in updateNotification()
168 case PlaybackState.STATE_STOPPED: in updateNotification()
171 case PlaybackState.STATE_ERROR: in updateNotification()
174 case PlaybackState.STATE_BUFFERING: in updateNotification()
177 case PlaybackState.STATE_NONE: in updateNotification()
197 if (state == PlaybackState.STATE_PLAYING) { in updateNotification()
DPlayerService.java22 import android.media.session.PlaybackState;
109 public void onPlayStateChanged(PlaybackState state) {
111 case PlaybackState.STATE_PLAYING:
114 case PlaybackState.STATE_STOPPED:
115 case PlaybackState.STATE_ERROR:
DPlayerController.java23 import android.media.session.PlaybackState;
206 public void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged()
229 public void onPlaybackStateChange(PlaybackState state); in onPlaybackStateChange()
/frameworks/base/media/java/android/media/session/
DPlaybackState.java36 public final class PlaybackState implements Parcelable { class
232 private List<PlaybackState.CustomAction> mCustomActions;
238 private PlaybackState(int state, long position, long updateTime, float speed, in PlaybackState() method in PlaybackState
240 List<PlaybackState.CustomAction> customActions, long activeItemId, in PlaybackState()
254 private PlaybackState(Parcel in) { in PlaybackState() method in PlaybackState
367 public List<PlaybackState.CustomAction> getCustomActions() { in getCustomActions()
565 public static final Parcelable.Creator<PlaybackState> CREATOR =
566 new Parcelable.Creator<PlaybackState>() {
568 public PlaybackState createFromParcel(Parcel in) {
569 return new PlaybackState(in);
[all …]
DMediaSession.java116 private PlaybackState mPlaybackState;
399 public void setPlaybackState(@Nullable PlaybackState state) { in setPlaybackState()
607 case PlaybackState.STATE_FAST_FORWARDING: in isActiveState()
608 case PlaybackState.STATE_REWINDING: in isActiveState()
609 case PlaybackState.STATE_SKIPPING_TO_PREVIOUS: in isActiveState()
610 case PlaybackState.STATE_SKIPPING_TO_NEXT: in isActiveState()
611 case PlaybackState.STATE_BUFFERING: in isActiveState()
612 case PlaybackState.STATE_CONNECTING: in isActiveState()
613 case PlaybackState.STATE_PLAYING: in isActiveState()
729 PlaybackState state = mSession.mPlaybackState; in onMediaButtonEvent()
[all …]
DISessionControllerCallback.aidl21 import android.media.session.PlaybackState;
33 void onPlaybackStateChanged(in PlaybackState state); in onPlaybackStateChanged()
DISession.aidl23 import android.media.session.PlaybackState;
43 void setPlaybackState(in PlaybackState state); in setPlaybackState()
DISessionController.aidl25 import android.media.session.PlaybackState;
67 PlaybackState getPlaybackState(); in getPlaybackState()
DPlaybackState.aidl18 parcelable PlaybackState;
DMediaController.java148 public @Nullable PlaybackState getPlaybackState() { in getPlaybackState()
534 public void onPlaybackStateChanged(@NonNull PlaybackState state) { in onPlaybackStateChanged()
763 public void sendCustomAction(@NonNull PlaybackState.CustomAction customAction, in sendCustomAction()
906 public void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged()
978 mCallback.onPlaybackStateChanged((PlaybackState) msg.obj); in handleMessage()
/frameworks/base/docs/html-intl/intl/ja/training/tv/playback/
Dnow-playing.jd68 long position = PlaybackState.PLAYBACK_POSITION_UNKNOWN;
72 PlaybackState.Builder stateBuilder = new PlaybackState.Builder()
78 long actions = PlaybackState.ACTION_PLAY |
79 PlaybackState.ACTION_PLAY_FROM_MEDIA_ID |
80 PlaybackState.ACTION_PLAY_FROM_SEARCH;
84 if (mState == PlaybackState.STATE_PLAYING) {
85 actions |= PlaybackState.ACTION_PAUSE;
88 actions |= PlaybackState.ACTION_SKIP_TO_PREVIOUS;
91 actions |= PlaybackState.ACTION_SKIP_TO_NEXT;
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java20 import android.media.session.PlaybackState;
37 PlaybackState.STATE_FAST_FORWARDING,
38 PlaybackState.STATE_REWINDING,
39 PlaybackState.STATE_SKIPPING_TO_PREVIOUS,
40 PlaybackState.STATE_SKIPPING_TO_NEXT };
46 PlaybackState.STATE_BUFFERING,
47 PlaybackState.STATE_CONNECTING,
48 PlaybackState.STATE_PLAYING };
DMediaSessionRecord.java40 import android.media.session.PlaybackState;
108 private PlaybackState mPlaybackState;
680 private PlaybackState getStateWithUpdatedPosition() { in getStateWithUpdatedPosition()
681 PlaybackState state; in getStateWithUpdatedPosition()
689 PlaybackState result = null; in getStateWithUpdatedPosition()
691 if (state.getState() == PlaybackState.STATE_PLAYING in getStateWithUpdatedPosition()
692 || state.getState() == PlaybackState.STATE_FAST_FORWARDING in getStateWithUpdatedPosition()
693 || state.getState() == PlaybackState.STATE_REWINDING) { in getStateWithUpdatedPosition()
704 PlaybackState.Builder builder = new PlaybackState.Builder(state); in getStateWithUpdatedPosition()
797 public void setPlaybackState(PlaybackState state) { in setPlaybackState()
[all …]
/frameworks/base/media/java/android/media/
DRemoteControlClient.java24 import android.media.session.PlaybackState;
697 int pbState = PlaybackState.getStateFromRccState(state); in setPlaybackStateInt()
699 : PlaybackState.PLAYBACK_POSITION_UNKNOWN; in setPlaybackStateInt()
701 PlaybackState.Builder bob = new PlaybackState.Builder(mSessionPlaybackState); in setPlaybackStateInt()
765 PlaybackState.Builder bob = new PlaybackState.Builder(mSessionPlaybackState); in setTransportControlFlags()
767 PlaybackState.getActionsFromRccControlFlags(transportControlFlags)); in setTransportControlFlags()
968 private PlaybackState mSessionPlaybackState = null;
DRemoteController.java30 import android.media.session.PlaybackState;
246 PlaybackState state = mCurrentSession.getPlaybackState(); in getEstimatedMediaPosition()
699 public void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged()
775 onNewPlaybackState((PlaybackState) msg.obj); in handleMessage()
999 PlaybackState state = controller.getPlaybackState(); in updateController()
1011 private void onNewPlaybackState(PlaybackState state) { in onNewPlaybackState()
1017 int playstate = state == null ? RemoteControlClient.PLAYSTATE_NONE : PlaybackState in onNewPlaybackState()
1019 if (state == null || state.getPosition() == PlaybackState.PLAYBACK_POSITION_UNKNOWN) { in onNewPlaybackState()
1027 PlaybackState.getRccControlFlagsFromActions(state.getActions())); in onNewPlaybackState()
/frameworks/base/docs/html/training/tv/playback/
Dnow-playing.jd92 long position = PlaybackState.PLAYBACK_POSITION_UNKNOWN;
96 PlaybackState.Builder stateBuilder = new PlaybackState.Builder()
102 long actions = PlaybackState.ACTION_PLAY |
103 PlaybackState.ACTION_PLAY_FROM_MEDIA_ID |
104 PlaybackState.ACTION_PLAY_FROM_SEARCH;
108 if (mState == PlaybackState.STATE_PLAYING) {
109 actions |= PlaybackState.ACTION_PAUSE;
112 actions |= PlaybackState.ACTION_SKIP_TO_PREVIOUS;
115 actions |= PlaybackState.ACTION_SKIP_TO_NEXT;
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
DMusicProvider.java20 import android.media.session.PlaybackState;
202 PlaybackState.ACTION_PLAY in getRootItemCursor()
227 PlaybackState.ACTION_PLAY in getRootItemCursor()
252 PlaybackState.ACTION_PLAY in getRootItemCursor()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java29 import android.media.session.PlaybackState;
194 public void onPlaybackStateChanged(PlaybackState state) { in onPlaybackStateChanged()
/frameworks/base/docs/html/sdk/api_diff/preview-21/
DmissingSinces.txt52 NO DOC BLOCK: android.media.session.PlaybackState.Builder Class
53 NO DOC BLOCK: android.media.session.PlaybackState.CustomAction Class
54 NO DOC BLOCK: android.media.session.PlaybackState.CustomAction.Builder Class
184 NO DOC BLOCK: android.media.session.PlaybackState Method getActiveQueueItemId()
199 NO DOC BLOCK: android.media.session.PlaybackState Method getBufferedPosition()
224 NO DOC BLOCK: android.media.session.PlaybackState Method getCustomActions()
267 NO DOC BLOCK: android.media.session.PlaybackState Method getLastPositionUpdateTime()
297 NO DOC BLOCK: android.media.session.PlaybackState Method getPlaybackSpeed()
531 …oller.TransportControls Method sendCustomAction(android.media.session.PlaybackState.CustomAction, …
702 NO DOC BLOCK: android.media.session.PlaybackState Field ACTION_PLAY_FROM_MEDIA_ID
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java68 import android.media.session.PlaybackState;
463 public void onPlaybackStateChanged(PlaybackState state) {
1771 final PlaybackState state = aController.getPlaybackState();
1774 case PlaybackState.STATE_STOPPED:
1775 case PlaybackState.STATE_ERROR:

12