Home
last modified time | relevance | path

Searched refs:validActions (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/session/
DMediaSession.java807 long validActions = state == null ? 0 : state.getActions(); in onMediaButtonEvent() local
819 if ((validActions & PlaybackState.ACTION_SKIP_TO_NEXT) != 0) { in onMediaButtonEvent()
838 if ((validActions & PlaybackState.ACTION_PLAY) != 0) { in onMediaButtonEvent()
844 if ((validActions & PlaybackState.ACTION_PAUSE) != 0) { in onMediaButtonEvent()
850 if ((validActions & PlaybackState.ACTION_SKIP_TO_NEXT) != 0) { in onMediaButtonEvent()
856 if ((validActions & PlaybackState.ACTION_SKIP_TO_PREVIOUS) != 0) { in onMediaButtonEvent()
862 if ((validActions & PlaybackState.ACTION_STOP) != 0) { in onMediaButtonEvent()
868 if ((validActions & PlaybackState.ACTION_FAST_FORWARD) != 0) { in onMediaButtonEvent()
874 if ((validActions & PlaybackState.ACTION_REWIND) != 0) { in onMediaButtonEvent()
892 long validActions = state == null ? 0 : state.getActions(); in handleMediaPlayPauseKeySingleTapIfPending() local
[all …]
/frameworks/support/media/src/main/java/android/support/v4/media/session/
DMediaSessionCompat.java992 long validActions = state == null ? 0 : state.getActions(); in onMediaButtonEvent() local
994 if ((validActions & PlaybackStateCompat.ACTION_SKIP_TO_NEXT) != 0) { in onMediaButtonEvent()
1025 long validActions = state == null ? 0 : state.getActions(); in handleMediaPlayPauseKeySingleTapIfPending() local
1028 boolean canPlay = (validActions & (PlaybackStateCompat.ACTION_PLAY_PAUSE in handleMediaPlayPauseKeySingleTapIfPending()
1030 boolean canPause = (validActions & (PlaybackStateCompat.ACTION_PLAY_PAUSE in handleMediaPlayPauseKeySingleTapIfPending()
3028 long validActions = mState == null ? 0 : mState.getActions(); in onMediaButtonEvent() local
3032 if ((validActions & PlaybackStateCompat.ACTION_PLAY) != 0) { in onMediaButtonEvent()
3038 if ((validActions & PlaybackStateCompat.ACTION_PAUSE) != 0) { in onMediaButtonEvent()
3043 if ((validActions & PlaybackStateCompat.ACTION_SKIP_TO_NEXT) != 0) { in onMediaButtonEvent()
3048 if ((validActions & PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS) != 0) { in onMediaButtonEvent()
[all …]