Lines Matching refs:keyEvent
23 import android.view.KeyEvent;
42 KeyEvent keyEvent = (KeyEvent) intent.getExtras().get(Intent.EXTRA_KEY_EVENT);
43 if (keyEvent.getAction() != KeyEvent.ACTION_DOWN)
46 switch (keyEvent.getKeyCode()) {
47 case KeyEvent.KEYCODE_HEADSETHOOK:
48 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
51 case KeyEvent.KEYCODE_MEDIA_PLAY:
54 case KeyEvent.KEYCODE_MEDIA_PAUSE:
57 case KeyEvent.KEYCODE_MEDIA_STOP:
60 case KeyEvent.KEYCODE_MEDIA_NEXT:
63 case KeyEvent.KEYCODE_MEDIA_PREVIOUS: