/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | EmojiAltPhysicalKeyDetector.java | 58 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 …]
|
D | RichInputConnection.java | 510 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()
|
D | LatinIME.java | 1690 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/ |
D | HardwareKeyboardEventDecoder.java | 40 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()
|
D | HardwareEventDecoder.java | 25 public Event decodeHardwareKey(final KeyEvent keyEvent); in decodeHardwareKey() argument
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnJAJP.java | 701 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 …]
|
D | OpenWnnEN.java | 411 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 …]
|
D | OpenWnnEvent.java | 271 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/ |
D | BluetoothPeripheralHandover.java | 490 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/ |
D | AlarmActivity.java | 282 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/ |
D | KeyboardNavigationController.java | 32 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway); in onInterceptKeyFromCV() argument
|
D | ConversationListFragment.java | 690 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()
|
D | TwoPaneController.java | 932 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway) { in onInterceptKeyFromCV() argument 935 if (keyEvent.getAction() == KeyEvent.ACTION_UP) { in onInterceptKeyFromCV()
|
D | ConversationViewFragment.java | 1198 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()
|
D | MaterialSearchActionView.java | 231 public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) { in onEditorAction() argument
|
D | OnePaneController.java | 536 public boolean onInterceptKeyFromCV(int keyCode, KeyEvent keyEvent, boolean navigateAway) { in onInterceptKeyFromCV() argument
|
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
D | CarDrawerLayout.java | 308 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/ |
D | MainActivity.java | 517 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/ |
D | Calculator.java | 130 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/ |
D | Avrcp.java | 553 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/ |
D | Calculator.java | 84 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { 88 if (keyEvent.getAction() == KeyEvent.ACTION_UP) {
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 1181 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/ |
D | ComposeActivity.java | 1398 public boolean onEditorAction(TextView view, int action, KeyEvent keyEvent) { in onEditorAction() argument
|