/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerSession.java | 51 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 …]
|
D | NotificationHelper.java | 41 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()
|
D | OnePlayerActivity.java | 61 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/ |
D | MediaNotificationManager.java | 62 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 …]
|
D | QueueFragment.java | 54 private PlaybackStateCompat mPlaybackState; field in QueueFragment 78 mPlaybackState = mMediaController.getPlaybackState(); 87 onPlaybackStateChanged(mPlaybackState); 120 mPlaybackState = state; 233 statusBuilder.append(mPlaybackState); in onPlaybackStateChanged() 258 final int state = mPlaybackState == null ? 259 PlaybackStateCompat.STATE_NONE : mPlaybackState.getState();
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | PlaylistItem.java | 36 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/ |
D | MediaSessionRecord.java | 100 private PlaybackState mPlaybackState; field in MediaSessionRecord 328 return mPlaybackState; in getPlaybackState() 337 int state = mPlaybackState == null ? PlaybackState.STATE_NONE : mPlaybackState.getState(); in isPlaybackActive() 445 pw.println(indent + "state=" + (mPlaybackState == null ? null : mPlaybackState.toString())); in dump() 503 holder.mCallback.onPlaybackStateChanged(mPlaybackState); in pushPlaybackStateUpdate() 659 state = mPlaybackState; in getStateWithUpdatedPosition() 817 int oldState = mPlaybackState == null in setPlaybackState() 818 ? PlaybackState.STATE_NONE : mPlaybackState.getState(); in setPlaybackState() 822 mPlaybackState = state; in setPlaybackState()
|
/frameworks/base/media/java/android/media/ |
D | RemoteControlClient.java | 662 if ((mPlaybackState != state) || (mPlaybackPositionMs != timeInMs) in setPlaybackStateInt() 665 mPlaybackState = state; in setPlaybackStateInt() 846 private int mPlaybackState = PLAYSTATE_NONE; field in RemoteControlClient
|
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/ |
D | MediaSessionCompatTest.java | 313 PlaybackStateCompat stateOut = mCallback.mPlaybackState; in testSetPlaybackState() 810 private volatile PlaybackStateCompat mPlaybackState; field in MediaSessionCompatTest.MediaControllerCallback 835 mPlaybackState = null; in resetLocked() 851 mPlaybackState = state; in onPlaybackStateChanged()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSession.java | 122 private PlaybackState mPlaybackState; field in MediaSession 406 mPlaybackState = state; in setPlaybackState() 773 PlaybackState state = mSession.mPlaybackState; in onMediaButtonEvent()
|
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
D | MediaSessionCompat.java | 3182 private PlaybackStateCompat mPlaybackState; field in MediaSessionCompat.MediaSessionImplApi21 3267 mPlaybackState = state; in setPlaybackState() 3283 return mPlaybackState; in getPlaybackState() 3626 return getStateWithUpdatedPosition(mPlaybackState, mMetadata); in getPlaybackState()
|