Home
last modified time | relevance | path

Searched refs:ACTION_PLAY_PAUSE (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DPlaybackControlGlue.java111 public static final int ACTION_PLAY_PAUSE = 0x40; field in PlaybackControlGlue
476 if (action == primaryActionsAdapter.lookup(ACTION_PLAY_PAUSE) in onKey()
647 if ((actions & ACTION_PLAY_PAUSE) != 0 && mPlayPauseAction == null) { in updateControlButtons()
649 primaryActionsAdapter.set(ACTION_PLAY_PAUSE, mPlayPauseAction); in updateControlButtons()
650 } else if ((actions & ACTION_PLAY_PAUSE) == 0 && mPlayPauseAction != null) { in updateControlButtons()
651 primaryActionsAdapter.clear(ACTION_PLAY_PAUSE); in updateControlButtons()
DPlaybackBannerControlGlue.java93 ACTION_PLAY_PAUSE,
123 public static final int ACTION_PLAY_PAUSE = PlaybackBaseControlGlue.ACTION_PLAY_PAUSE; field in PlaybackBannerControlGlue
296 if ((supportedActions & ACTION_PLAY_PAUSE) != 0 && mPlayPauseAction == null) { in onCreatePrimaryActions()
300 } else if ((supportedActions & ACTION_PLAY_PAUSE) == 0 && mPlayPauseAction != null) { in onCreatePrimaryActions()
DMediaControllerAdapter.java20 import static androidx.leanback.media.PlaybackBaseControlGlue.ACTION_PLAY_PAUSE;
289 if ((actionsFromController & PlaybackStateCompat.ACTION_PLAY_PAUSE) != 0) { in getSupportedActions()
290 supportedActions |= ACTION_PLAY_PAUSE; in getSupportedActions()
DMediaControllerGlue.java177 if ((actions & PlaybackStateCompat.ACTION_PLAY_PAUSE) != 0) { in getSupportedActions()
178 result |= ACTION_PLAY_PAUSE; in getSupportedActions()
DPlayerAdapter.java231 return PlaybackBaseControlGlue.ACTION_PLAY_PAUSE; in getSupportedActions()
DMediaPlayerGlue.java310 return PlaybackControlGlue.ACTION_PLAY_PAUSE in getSupportedActions()
DPlaybackBaseControlGlue.java84 public static final int ACTION_PLAY_PAUSE = 0x40; field in PlaybackBaseControlGlue
/frameworks/base/media/java/android/media/session/
DPlaybackState.java47 ACTION_SEEK_TO, ACTION_PLAY_PAUSE, ACTION_PLAY_FROM_MEDIA_ID, ACTION_PLAY_FROM_SEARCH,
121 public static final long ACTION_PLAY_PAUSE = 1 << 9; field in PlaybackState
593 return ACTION_PLAY_PAUSE; in getActionForRccFlag()
621 case (int) ACTION_PLAY_PAUSE: in getRccFlagForAction()
DMediaSession.java895 boolean canPlay = (validActions & (PlaybackState.ACTION_PLAY_PAUSE in handleMediaPlayPauseKeySingleTapIfPending()
897 boolean canPause = (validActions & (PlaybackState.ACTION_PLAY_PAUSE in handleMediaPlayPauseKeySingleTapIfPending()
/frameworks/support/media/src/main/java/android/support/v4/media/session/
DPlaybackStateCompat.java51 ACTION_SEEK_TO, ACTION_PLAY_PAUSE, ACTION_PLAY_FROM_MEDIA_ID, ACTION_PLAY_FROM_SEARCH,
63 ACTION_SKIP_TO_NEXT, ACTION_FAST_FORWARD, ACTION_PLAY_PAUSE})
135 public static final long ACTION_PLAY_PAUSE = 1 << 9; field in PlaybackStateCompat
533 } else if (action == ACTION_PLAY_PAUSE) { in toKeyCode()
DMediaSessionCompat.java1028 boolean canPlay = (validActions & (PlaybackStateCompat.ACTION_PLAY_PAUSE in handleMediaPlayPauseKeySingleTapIfPending()
1030 boolean canPause = (validActions & (PlaybackStateCompat.ACTION_PLAY_PAUSE in handleMediaPlayPauseKeySingleTapIfPending()
2127 if ((actions & PlaybackStateCompat.ACTION_PLAY_PAUSE) != 0) { in getRccTransportControlFlagsFromActions()
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DPlaybackTransportControlGlueSample.java339 } else if ((actionsFromPlayerAdapter & PlaybackBaseControlGlue.ACTION_PLAY_PAUSE) != 0) { in getPlaybackStateActions()
340 supportedActions |= PlaybackStateCompat.ACTION_PLAY_PAUSE; in getPlaybackStateActions()
DPlaybackControlGlue.java180 return PlaybackControlGlue.ACTION_PLAY_PAUSE in getSupportedActions()
DMediaSessionService.java625 | PlaybackStateCompat.ACTION_PLAY_PAUSE in getPlaybackStateActions()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DPlaybackFragmentTest.java103 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testSelectedListener()
170 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testClickedListener()
342 return PlaybackControlGlue.ACTION_PLAY_PAUSE; in onCreate()
DPlaybackSupportFragmentTest.java100 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testSelectedListener()
167 primaryActionsAdapter.lookup(PlaybackControlGlue.ACTION_PLAY_PAUSE); in testClickedListener()
339 return PlaybackControlGlue.ACTION_PLAY_PAUSE; in onCreate()
DPlaybackTestFragment.java283 return ACTION_PLAY_PAUSE | ACTION_FAST_FORWARD | ACTION_REWIND; in getSupportedActions()
DPlaybackTestSupportFragment.java280 return ACTION_PLAY_PAUSE | ACTION_FAST_FORWARD | ACTION_REWIND; in getSupportedActions()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
DMediaRouteControllerDialog.java21 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_PLAY_PAUSE;
1046 return (mState.getActions() & (ACTION_PLAY | ACTION_PLAY_PAUSE)) != 0; in isPlayActionSupported()
1050 return (mState.getActions() & (ACTION_PAUSE | ACTION_PLAY_PAUSE)) != 0; in isPauseActionSupported()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
DMediaRouteControllerDialog.java21 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_PLAY_PAUSE;
1052 return (mState.getActions() & (ACTION_PLAY | ACTION_PLAY_PAUSE)) != 0; in isPlayActionSupported()
1056 return (mState.getActions() & (ACTION_PAUSE | ACTION_PLAY_PAUSE)) != 0; in isPauseActionSupported()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
DMediaControllerAdapterTest.java742 | PlaybackStateCompat.ACTION_PLAY_PAUSE in getPlaybackStateActions()
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/
DMediaSessionCompatCallbackTest.java778 | PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_STOP in setPlaybackState()
/frameworks/support/media/src/main/java/androidx/media/
DMediaSession2ImplBase.java917 | PlaybackStateCompat.ACTION_SEEK_TO | PlaybackStateCompat.ACTION_PLAY_PAUSE in getPlaybackStateCompat()
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/
DMediaSessionCompatCallbackTest.java853 | PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_STOP in setPlaybackState()
/frameworks/support/media/api_legacy/
D26.0.0.txt564 field public static final long ACTION_PLAY_PAUSE = 512L; // 0x200L

123