Lines Matching refs:keyEvent
33 import android.view.KeyEvent;
60 public void preDispatchKeyEvent(KeyEvent event) {
64 public boolean dispatchKeyEvent(KeyEvent event) {
69 if (action == KeyEvent.ACTION_DOWN) {
76 boolean onKeyDown(int keyCode, KeyEvent event) {
81 final KeyEvent.DispatcherState dispatcher = mView.getKeyDispatcherState();
84 case KeyEvent.KEYCODE_VOLUME_UP:
85 case KeyEvent.KEYCODE_VOLUME_DOWN:
86 case KeyEvent.KEYCODE_VOLUME_MUTE: {
93 case KeyEvent.KEYCODE_MEDIA_PLAY:
94 case KeyEvent.KEYCODE_MEDIA_PAUSE:
95 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
101 case KeyEvent.KEYCODE_MUTE:
102 case KeyEvent.KEYCODE_HEADSETHOOK:
103 case KeyEvent.KEYCODE_MEDIA_STOP:
104 case KeyEvent.KEYCODE_MEDIA_NEXT:
105 case KeyEvent.KEYCODE_MEDIA_PREVIOUS:
106 case KeyEvent.KEYCODE_MEDIA_REWIND:
107 case KeyEvent.KEYCODE_MEDIA_RECORD:
108 case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
109 case KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK: {
114 case KeyEvent.KEYCODE_CALL: {
141 case KeyEvent.KEYCODE_CAMERA: {
166 case KeyEvent.KEYCODE_SEARCH: {
205 boolean onKeyUp(int keyCode, KeyEvent event) {
209 final KeyEvent.DispatcherState dispatcher = mView.getKeyDispatcherState();
215 case KeyEvent.KEYCODE_VOLUME_UP:
216 case KeyEvent.KEYCODE_VOLUME_DOWN:
217 case KeyEvent.KEYCODE_VOLUME_MUTE: {
225 case KeyEvent.KEYCODE_HEADSETHOOK:
226 case KeyEvent.KEYCODE_MUTE:
227 case KeyEvent.KEYCODE_MEDIA_PLAY:
228 case KeyEvent.KEYCODE_MEDIA_PAUSE:
229 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
230 case KeyEvent.KEYCODE_MEDIA_STOP:
231 case KeyEvent.KEYCODE_MEDIA_NEXT:
232 case KeyEvent.KEYCODE_MEDIA_PREVIOUS:
233 case KeyEvent.KEYCODE_MEDIA_REWIND:
234 case KeyEvent.KEYCODE_MEDIA_RECORD:
235 case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
236 case KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK: {
241 case KeyEvent.KEYCODE_CAMERA: {
251 case KeyEvent.KEYCODE_CALL: {
313 private void handleMediaKeyEvent(KeyEvent keyEvent) {
314 MediaSessionLegacyHelper.getHelper(mContext).sendMediaButtonEvent(keyEvent, false);