/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/main/java/com/example/android/supportv4/media/ |
D | MediaNotificationManager.java | 63 private PlaybackStateCompat mPlaybackState; field in MediaNotificationManager 109 mPlaybackState = mController.getPlaybackState(); in startNotification() 202 mPlaybackState = state; 235 if (mMetadata == null || mPlaybackState == null) { in createNotification() 242 if ((mPlaybackState.getActions() & PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS) != 0) { in createNotification() 250 if ((mPlaybackState.getActions() & PlaybackStateCompat.ACTION_SKIP_TO_NEXT) != 0) { in createNotification() 296 if (mPlaybackState.getState() == PlaybackStateCompat.STATE_PLAYING) { in addPlayPauseAction() 309 Log.d(TAG, "updateNotificationPlaybackState. mPlaybackState=" + mPlaybackState); in setNotificationPlaybackState() 310 if (mPlaybackState == null || !mStarted) { in setNotificationPlaybackState() 315 if (mPlaybackState.getState() == PlaybackStateCompat.STATE_PLAYING in setNotificationPlaybackState() [all …]
|
D | QueueFragment.java | 55 private PlaybackStateCompat mPlaybackState; field in QueueFragment 79 mPlaybackState = mMediaController.getPlaybackState(); 88 onPlaybackStateChanged(mPlaybackState); 121 mPlaybackState = state; 234 statusBuilder.append(mPlaybackState); in onPlaybackStateChanged() 259 final int state = mPlaybackState == null ? 260 PlaybackStateCompat.STATE_NONE : mPlaybackState.getState();
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/ |
D | PlaylistItem.java | 37 private int mPlaybackState = MediaItemStatus.PLAYBACK_STATE_PENDING; field in PlaylistItem 59 mPlaybackState = state; in setState() 99 return mPlaybackState; in getState() 115 return new MediaItemStatus.Builder(mPlaybackState) in getStatus() 136 + state[mPlaybackState] + "] " + mTitle + ": " + mUri.toString(); in toString()
|
/frameworks/support/media-widget/src/main/java/androidx/media/widget/ |
D | MediaControlView2.java | 234 private PlaybackStateCompat mPlaybackState; field in MediaControlView2 380 mPlaybackState = mController.getPlaybackState(); in setController() 615 if (mPlaybackState != null) { in isPlaying() 616 return mPlaybackState.getState() == PlaybackStateCompat.STATE_PLAYING; in isPlaying() 622 mPlaybackState = mController.getPlaybackState(); in getCurrentPosition() 623 if (mPlaybackState != null) { in getCurrentPosition() 624 return (int) mPlaybackState.getPosition(); in getCurrentPosition() 633 mPlaybackState = mController.getPlaybackState(); in getBufferPercentage() 634 if (mPlaybackState != null) { in getBufferPercentage() 635 long bufferedPos = mPlaybackState.getBufferedPosition(); in getBufferPercentage() [all …]
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
D | MediaControlView2Impl.java | 128 private PlaybackState mPlaybackState; field in MediaControlView2Impl 257 mPlaybackState = mController.getPlaybackState(); in setController_impl() 468 if (mPlaybackState != null) { in isPlaying() 469 return mPlaybackState.getState() == PlaybackState.STATE_PLAYING; in isPlaying() 475 mPlaybackState = mController.getPlaybackState(); in getCurrentPosition() 476 if (mPlaybackState != null) { in getCurrentPosition() 477 return (int) mPlaybackState.getPosition(); in getCurrentPosition() 486 mPlaybackState = mController.getPlaybackState(); in getBufferPercentage() 487 if (mPlaybackState != null) { in getBufferPercentage() 488 long bufferedPos = mPlaybackState.getBufferedPosition(); in getBufferPercentage() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionRecord.java | 100 private PlaybackState mPlaybackState; field in MediaSessionRecord 334 return mPlaybackState; in getPlaybackState() 343 int state = mPlaybackState == null ? PlaybackState.STATE_NONE : mPlaybackState.getState(); in isPlaybackActive() 450 pw.println(indent + "state=" + (mPlaybackState == null ? null : mPlaybackState.toString())); in dump() 515 holder.mCallback.onPlaybackStateChanged(mPlaybackState); in pushPlaybackStateUpdate() 672 state = mPlaybackState; in getStateWithUpdatedPosition() 810 int oldState = mPlaybackState == null in setPlaybackState() 811 ? PlaybackState.STATE_NONE : mPlaybackState.getState(); in setPlaybackState() 815 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/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/ |
D | MediaControllerCompatCallbackTest.java | 300 PlaybackStateCompat stateOut = mMediaControllerCallback.mPlaybackState; in testSetPlaybackState() 621 private volatile PlaybackStateCompat mPlaybackState; field in MediaControllerCompatCallbackTest.MediaControllerCallback 644 mPlaybackState = null; in resetLocked() 659 mPlaybackState = state; in onPlaybackStateChanged()
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/ |
D | MediaControllerCompatCallbackTest.java | 301 PlaybackStateCompat stateOut = mMediaControllerCallback.mPlaybackState; in testSetPlaybackState() 622 private volatile PlaybackStateCompat mPlaybackState; field in MediaControllerCompatCallbackTest.MediaControllerCallback 645 mPlaybackState = null; in resetLocked() 660 mPlaybackState = state; in onPlaybackStateChanged()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSession.java | 137 private PlaybackState mPlaybackState; field in MediaSession 418 mPlaybackState = state; in setPlaybackState() 806 PlaybackState state = mSession.mPlaybackState; in onMediaButtonEvent() 891 PlaybackState state = mSession.mPlaybackState; in handleMediaPlayPauseKeySingleTapIfPending()
|
/frameworks/support/media/src/main/java/android/support/v4/media/session/ |
D | MediaSessionCompat.java | 3242 private PlaybackStateCompat mPlaybackState; field in MediaSessionCompat.MediaSessionImplApi21 3326 mPlaybackState = state; in setPlaybackState() 3342 return mPlaybackState; in getPlaybackState() 3679 return getStateWithUpdatedPosition(mPlaybackState, mMetadata); in getPlaybackState()
|