Home
last modified time | relevance | path

Searched refs:keyEvent (Results 1 – 23 of 23) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEmojiAltPhysicalKeyDetector.java58 public void onKeyDown(@Nonnull final KeyEvent keyEvent) { in onKeyDown() argument
60 Log.d(TAG, "EmojiHotKeys.onKeyDown() - " + mName + " - considering " + keyEvent); in onKeyDown()
64 Pair.create(keyEvent.getKeyCode(), keyEvent.getMetaState()); in onKeyDown()
70 mMetaState = keyEvent.getMetaState(); in onKeyDown()
79 public void onKeyUp(@Nonnull final KeyEvent keyEvent) { in onKeyUp() argument
81 Log.d(TAG, "EmojiHotKeys.onKeyUp() - " + mName + " - considering " + keyEvent); in onKeyUp()
84 final int keyCode = keyEvent.getKeyCode(); in onKeyUp()
85 int metaState = keyEvent.getMetaState(); in onKeyUp()
96 if (!keyEvent.isCanceled()) { in onKeyUp()
149 public void onKeyDown(@Nonnull final KeyEvent keyEvent) { in onKeyDown() argument
[all …]
DRichInputConnection.java510 public void sendKeyEvent(final KeyEvent keyEvent) { in sendKeyEvent() argument
512 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in sendKeyEvent()
520 switch (keyEvent.getKeyCode()) { in sendKeyEvent()
543 if (null != keyEvent.getCharacters()) { in sendKeyEvent()
544 mCommittedTextBeforeComposingText.append(keyEvent.getCharacters()); in sendKeyEvent()
545 mExpectedSelStart += keyEvent.getCharacters().length(); in sendKeyEvent()
550 final String text = StringUtils.newSingleCodePointString(keyEvent.getUnicodeChar()); in sendKeyEvent()
558 mIC.sendKeyEvent(keyEvent); in sendKeyEvent()
DLatinIME.java1690 public boolean onKeyDown(final int keyCode, final KeyEvent keyEvent) { in onKeyDown() argument
1695 mEmojiAltPhysicalKeyDetector.onKeyDown(keyEvent); in onKeyDown()
1697 return super.onKeyDown(keyCode, keyEvent); in onKeyDown()
1700 keyEvent.getDeviceId()).decodeHardwareKey(keyEvent); in onKeyDown()
1711 return super.onKeyDown(keyCode, keyEvent); in onKeyDown()
1715 public boolean onKeyUp(final int keyCode, final KeyEvent keyEvent) { in onKeyUp() argument
1720 mEmojiAltPhysicalKeyDetector.onKeyUp(keyEvent); in onKeyUp()
1722 return super.onKeyUp(keyCode, keyEvent); in onKeyUp()
1724 final long keyIdentifier = keyEvent.getDeviceId() << 32 + keyEvent.getKeyCode(); in onKeyUp()
1728 return super.onKeyUp(keyCode, keyEvent); in onKeyUp()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/
DHardwareKeyboardEventDecoder.java40 public Event decodeHardwareKey(final KeyEvent keyEvent) { in decodeHardwareKey() argument
44 final int codePointAndFlags = keyEvent.getUnicodeChar(); in decodeHardwareKey()
48 final int keyCode = keyEvent.getKeyCode(); in decodeHardwareKey()
49 final boolean isKeyRepeat = (0 != keyEvent.getRepeatCount()); in decodeHardwareKey()
54 if (keyEvent.isPrintingKey() || KeyEvent.KEYCODE_SPACE == keyCode in decodeHardwareKey()
67 if (keyEvent.isShiftPressed()) { in decodeHardwareKey()
DHardwareEventDecoder.java25 public Event decodeHardwareKey(final KeyEvent keyEvent); in decodeHardwareKey() argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnJAJP.java701 onKeyUpEvent(ev.keyEvent); in onEvent()
705 return onKeyLongPressEvent(ev.keyEvent); in onEvent()
807 KeyEvent keyEvent = ev.keyEvent; in onEvent() local
809 if (keyEvent != null) { in onEvent()
810 keyCode = keyEvent.getKeyCode(); in onEvent()
820 mInputConnection.sendKeyEvent(keyEvent); in onEvent()
822 keyEvent.getKeyCode())); in onEvent()
838 …if (keyEvent != null && keyEvent.isPrintingKey() && isTenKeyCode(keyCode) && !keyEvent.isNumLockOn… in onEvent()
884 if (keyEvent != null) { in onEvent()
885 if (keyEvent.isShiftPressed()) { in onEvent()
[all …]
DOpenWnnEN.java411 onKeyUpEvent(ev.keyEvent); in onEvent()
467 KeyEvent keyEvent = ev.keyEvent; in onEvent() local
469 if (keyEvent != null) { in onEvent()
470 keyCode = keyEvent.getKeyCode(); in onEvent()
474 mInputConnection.sendKeyEvent(keyEvent); in onEvent()
476 keyEvent.getKeyCode())); in onEvent()
505 keyCode = ev.keyEvent.getKeyCode(); in onEvent()
510 if (ev.keyEvent.getRepeatCount() == 0) { in onEvent()
519 if (ev.keyEvent.getRepeatCount() == 0) { in onEvent()
529 ret = processKeyEvent(ev.keyEvent); in onEvent()
[all …]
DOpenWnnEvent.java271 public KeyEvent keyEvent = null; field in OpenWnnEvent
353 this.keyEvent = ev; in OpenWnnEvent()
363 this.keyEvent = ev; in OpenWnnEvent()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java490 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY); in startTheMusic() local
491 helper.sendMediaButtonEvent(keyEvent, false); in startTheMusic()
492 keyEvent = new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MEDIA_PLAY); in startTheMusic()
493 helper.sendMediaButtonEvent(keyEvent, false); in startTheMusic()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.java282 public boolean dispatchKeyEvent(@NonNull KeyEvent keyEvent) { in dispatchKeyEvent() argument
284 LogUtils.v(LOGTAG, "dispatchKeyEvent: %s", keyEvent); in dispatchKeyEvent()
286 switch (keyEvent.getKeyCode()) { in dispatchKeyEvent()
294 if (!mAlarmHandled && keyEvent.getAction() == KeyEvent.ACTION_UP) { in dispatchKeyEvent()
308 return super.dispatchKeyEvent(keyEvent); in dispatchKeyEvent()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DKeyboardNavigationController.java32 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway); in onInterceptKeyFromCV() argument
DConversationListFragment.java690 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument
695 if (keyEvent.getAction() == KeyEvent.ACTION_UP) { in onKey()
712 } else if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onKey()
718 keyEvent.getAction() == KeyEvent.ACTION_UP) { in onKey()
DTwoPaneController.java932 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway) { in onInterceptKeyFromCV() argument
935 if (keyEvent.getAction() == KeyEvent.ACTION_UP) { in onInterceptKeyFromCV()
DConversationViewFragment.java1198 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument
1199 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onKey()
1206 final boolean isActionUp = keyEvent.getAction() == KeyEvent.ACTION_UP; in onKey()
1217 if (mNavigationController.onInterceptKeyFromCV(keyCode, keyEvent, navigateAway)) { in onKey()
DMaterialSearchActionView.java231 public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) { in onEditorAction() argument
DOnePaneController.java536 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway) { in onInterceptKeyFromCV() argument
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DCarDrawerLayout.java308 public boolean dispatchKeyEvent(@NonNull KeyEvent keyEvent) { in dispatchKeyEvent() argument
309 int action = keyEvent.getAction(); in dispatchKeyEvent()
310 int keyCode = keyEvent.getKeyCode(); in dispatchKeyEvent()
324 return drawerView.dispatchKeyEvent(keyEvent); in dispatchKeyEvent()
329 return mContentView.dispatchKeyEvent(keyEvent); in dispatchKeyEvent()
/packages/apps/TV/src/com/android/tv/
DMainActivity.java517 KeyEvent keyEvent = (KeyEvent) event; in onCreate()
518 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN && keyEvent.isLongPress()) { in onCreate()
519 if (onKeyLongPress(keyEvent.getKeyCode(), keyEvent)) { in onCreate()
523 if (keyEvent.getAction() == KeyEvent.ACTION_UP) { in onCreate()
524 return onKeyUp(keyEvent.getKeyCode(), keyEvent); in onCreate()
525 } else if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onCreate()
526 return onKeyDown(keyEvent.getKeyCode(), keyEvent); in onCreate()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculator.java130 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
147 if (keyEvent.getAction() != KeyEvent.ACTION_UP) {
163 final int raw = keyEvent.getKeyCharacterMap()
164 .get(keyCode, keyEvent.getMetaState());
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcp.java553 KeyEvent keyEvent = in handleMessage() local
555 mMediaController.dispatchMediaButtonEvent(keyEvent); in handleMessage()
562 KeyEvent keyEvent = in handleMessage() local
564 mMediaController.dispatchMediaButtonEvent(keyEvent); in handleMessage()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java84 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
88 if (keyEvent.getAction() == KeyEvent.ACTION_UP) {
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java1181 public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { in onEditorAction() argument
1192 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java1398 public boolean onEditorAction(TextView view, int action, KeyEvent keyEvent) { in onEditorAction() argument