Home
last modified time | relevance | path

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

/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java51 protected PlaybackState mPlaybackState; field in PlayerSession
63 mPlaybackState = psBob.build(); in PlayerSession()
80 mSession.setPlaybackState(mPlaybackState); in createSession()
141 PlaybackState.Builder bob = new PlaybackState.Builder(mPlaybackState); in updateState()
144 mPlaybackState = bob.build(); in updateState()
145 mSession.setPlaybackState(mPlaybackState); in updateState()
167 PlaybackState.Builder bob = new PlaybackState.Builder(mPlaybackState); in onError()
172 mPlaybackState = bob.build(); in onError()
173 mSession.setPlaybackState(mPlaybackState); in onError()
175 mListener.onPlayStateChanged(mPlaybackState); in onError()
[all …]
DNotificationHelper.java41 private PlaybackState mPlaybackState; field in NotificationHelper
90 mPlaybackState = mController.getPlaybackState(); in onStart()
131 mPlaybackState = state;
150 if (mPlaybackState == null) { in updateNotification()
160 final int state = mPlaybackState.getState(); in updateNotification()
205 final long pos = mPlaybackState.getPosition(); in updateNotification()
DOnePlayerActivity.java61 private PlaybackState mPlaybackState; field in OnePlayerActivity
143 final int state = mPlaybackState.getState();
178 mPlaybackState = state;
182 switch (mPlaybackState.getState()) {
212 statusBuilder.append(mPlaybackState);
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaNotificationManager.java62 private PlaybackStateCompat mPlaybackState; field in MediaNotificationManager
108 mPlaybackState = mController.getPlaybackState(); in startNotification()
201 mPlaybackState = state;
234 if (mMetadata == null || mPlaybackState == null) { in createNotification()
241 if ((mPlaybackState.getActions() & PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS) != 0) { in createNotification()
249 if ((mPlaybackState.getActions() & PlaybackStateCompat.ACTION_SKIP_TO_NEXT) != 0) { in createNotification()
295 if (mPlaybackState.getState() == PlaybackStateCompat.STATE_PLAYING) { in addPlayPauseAction()
308 Log.d(TAG, "updateNotificationPlaybackState. mPlaybackState=" + mPlaybackState); in setNotificationPlaybackState()
309 if (mPlaybackState == null || !mStarted) { in setNotificationPlaybackState()
314 if (mPlaybackState.getState() == PlaybackStateCompat.STATE_PLAYING in setNotificationPlaybackState()
[all …]
DQueueFragment.java53 private PlaybackStateCompat mPlaybackState; field in QueueFragment
77 mPlaybackState = mMediaController.getPlaybackState();
86 onPlaybackStateChanged(mPlaybackState);
119 mPlaybackState = state;
232 statusBuilder.append(mPlaybackState); in onPlaybackStateChanged()
257 final int state = mPlaybackState == null ?
258 PlaybackStateCompat.STATE_NONE : mPlaybackState.getState();
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DPlaylistItem.java36 private int mPlaybackState = MediaItemStatus.PLAYBACK_STATE_PENDING; field in PlaylistItem
58 mPlaybackState = state; in setState()
98 return mPlaybackState; in getState()
114 return new MediaItemStatus.Builder(mPlaybackState) in getStatus()
135 + state[mPlaybackState] + "] " + mTitle + ": " + mUri.toString(); in toString()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java106 private PlaybackState mPlaybackState; field in MediaSessionRecord
329 int state = mPlaybackState == null ? 0 : mPlaybackState.getState(); in isPlaybackActive()
333 if (includeRecentlyActive && state == mPlaybackState.STATE_PAUSED) { in isPlaybackActive()
446 pw.println(indent + "state=" + (mPlaybackState == null ? null : mPlaybackState.toString())); in dump()
498 cb.onPlaybackStateChanged(mPlaybackState); in pushPlaybackStateUpdate()
650 state = mPlaybackState; in getStateWithUpdatedPosition()
791 int oldState = mPlaybackState == null ? 0 : mPlaybackState.getState(); in setPlaybackState()
797 mPlaybackState = state; in setPlaybackState()
/frameworks/base/media/java/android/media/
DRemoteControlClient.java662 if ((mPlaybackState != state) || (mPlaybackPositionMs != timeInMs) in setPlaybackStateInt()
665 mPlaybackState = state; in setPlaybackStateInt()
846 private int mPlaybackState = PLAYSTATE_NONE; field in RemoteControlClient
/frameworks/base/media/java/android/media/session/
DMediaSession.java116 private PlaybackState mPlaybackState; field in MediaSession
400 mPlaybackState = state; in setPlaybackState()
765 PlaybackState state = mSession.mPlaybackState; in onMediaButtonEvent()