/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FocusHelper.java | 33 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 34 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey() 43 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 44 return FocusHelper.handleHotseatButtonKeyEvent(v, keyCode, event); in onKey() 53 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 54 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT in onKey() 55 || keyCode == KeyEvent.KEYCODE_PAGE_DOWN || keyCode == KeyEvent.KEYCODE_PAGE_UP) { in onKey() 59 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey() 82 public boolean onKey(View v, int keyCode, KeyEvent e) { in onKey() argument 83 boolean consume = FocusLogic.shouldConsume(keyCode); in onKey() [all …]
|
D | LauncherAppWidgetHostView.java | 202 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 203 if (!mChildrenFocused && keyCode == KeyEvent.KEYCODE_ENTER) { in onKeyDown() 207 return super.onKeyDown(keyCode, event); in onKeyDown() 211 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 213 if (!mChildrenFocused && keyCode == KeyEvent.KEYCODE_ENTER) { in onKeyUp() 239 return super.onKeyUp(keyCode, event); in onKeyUp()
|
D | ExtendedEditText.java | 55 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() argument 57 if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) { in onKeyPreIme() 63 return super.onKeyPreIme(keyCode, event); in onKeyPreIme()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | HardwareKeyboardEventDecoder.java | 48 final int keyCode = keyEvent.getKeyCode(); in decodeHardwareKey() local 50 if (KeyEvent.KEYCODE_DEL == keyCode) { in decodeHardwareKey() 54 if (keyEvent.isPrintingKey() || KeyEvent.KEYCODE_SPACE == keyCode in decodeHardwareKey() 55 || KeyEvent.KEYCODE_ENTER == keyCode) { in decodeHardwareKey() 59 codePointAndFlags & KeyCharacterMap.COMBINING_ACCENT_MASK, keyCode, in decodeHardwareKey() 62 if (KeyEvent.KEYCODE_ENTER == keyCode) { in decodeHardwareKey() 71 return Event.createHardwareKeypressEvent(Constants.CODE_ENTER, keyCode, in decodeHardwareKey() 76 return Event.createHardwareKeypressEvent(codePointAndFlags, keyCode, null /* next */, in decodeHardwareKey()
|
D | Event.java | 114 private Event(final int type, final CharSequence text, final int codePoint, final int keyCode, in Event() argument 120 mKeyCode = keyCode; in Event() 142 public static Event createSoftwareKeypressEvent(final int codePoint, final int keyCode, in createSoftwareKeypressEvent() argument 144 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, x, y, in createSoftwareKeypressEvent() 149 public static Event createHardwareKeypressEvent(final int codePoint, final int keyCode, in createHardwareKeypressEvent() argument 151 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, in createHardwareKeypressEvent() 159 public static Event createDeadEvent(final int codePoint, final int keyCode, final Event next) { in createDeadEvent() argument 161 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, in createDeadEvent() 218 public static Event createSoftwareTextEvent(final CharSequence text, final int keyCode) { in createSoftwareTextEvent() argument 219 return new Event(EVENT_TYPE_SOFTWARE_GENERATED_STRING, text, NOT_A_CODE_POINT, keyCode, in createSoftwareTextEvent()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnn.java | 161 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 166 Keycodeinfo.mKeyCode = keyCode; in onKeyDown() 171 if (KeyActionList.get(i).mKeyCode == keyCode) { in onKeyDown() 179 return super.onKeyDown(keyCode, event); in onKeyDown() 185 @Override public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 190 if (Keycodeinfo.mKeyCode == keyCode) { in onKeyUp() 197 ret = super.onKeyUp(keyCode, event); in onKeyUp() 209 @Override public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument 212 return super.onKeyLongPress(keyCode, event); in onKeyLongPress() 365 protected boolean isThroughKeyCode(int keyCode) { in isThroughKeyCode() argument [all …]
|
D | OpenWnnJAJP.java | 808 int keyCode = 0; in onEvent() local 810 keyCode = keyEvent.getKeyCode(); in onEvent() 817 if (keyCode == KeyEvent.KEYCODE_ENTER) { in onEvent() 838 …if (keyEvent != null && keyEvent.isPrintingKey() && isTenKeyCode(keyCode) && !keyEvent.isNumLockOn… in onEvent() 841 switch (keyCode) { in onEvent() 921 (keyCode != KeyEvent.KEYCODE_SEARCH) && in onEvent() 922 (keyCode != KeyEvent.KEYCODE_ALT_LEFT) && in onEvent() 923 (keyCode != KeyEvent.KEYCODE_ALT_RIGHT) && in onEvent() 924 (keyCode != KeyEvent.KEYCODE_SHIFT_LEFT) && in onEvent() 925 (keyCode != KeyEvent.KEYCODE_SHIFT_RIGHT)) { in onEvent() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 716 @KeyHandlerResultType public int onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 722 if (isMediaStartKey(keyCode)) { in onKeyDown() 731 return mKeypadChannelSwitchView.onKeyDown(keyCode, event) ? in onKeyDown() 736 return mSelectInputView.onKeyDown(keyCode, event) ? in onKeyDown() 746 @KeyHandlerResultType public int onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 748 if (isMediaStartKey(keyCode)) { in onKeyUp() 764 switch (keyCode) { in onKeyUp() 799 if (keyCode == KeyEvent.KEYCODE_I || keyCode == KeyEvent.KEYCODE_TV_INPUT) { in onKeyUp() 801 mSelectInputView.onKeyUp(keyCode, event); in onKeyUp() 813 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyUp() [all …]
|
D | KeypadChannelSwitchView.java | 183 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 185 if (isChannelNumberKey(keyCode)) { in onKeyUp() 186 onNumberKeyUp(keyCode - KeyEvent.KEYCODE_0); in onKeyUp() 189 if (ChannelNumber.isChannelNumberDelimiterKey(keyCode)) { in onKeyUp() 193 return super.onKeyUp(keyCode, event); in onKeyUp() 237 public static boolean isChannelNumberKey(int keyCode) { in isChannelNumberKey() argument 238 return keyCode >= KeyEvent.KEYCODE_0 && keyCode <= KeyEvent.KEYCODE_9; in isChannelNumberKey()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | KeyboardUtils.java | 29 public static boolean isKeycodeDirectionStart(int keyCode, boolean isRtl) { in isKeycodeDirectionStart() argument 30 return (!isRtl && keyCode == KeyEvent.KEYCODE_DPAD_LEFT) || in isKeycodeDirectionStart() 31 (isRtl && keyCode == KeyEvent.KEYCODE_DPAD_RIGHT); in isKeycodeDirectionStart() 38 public static boolean isKeycodeDirectionEnd(int keyCode, boolean isRtl) { in isKeycodeDirectionEnd() argument 39 return (isRtl && keyCode == KeyEvent.KEYCODE_DPAD_LEFT) || in isKeycodeDirectionEnd() 40 (!isRtl && keyCode == KeyEvent.KEYCODE_DPAD_RIGHT); in isKeycodeDirectionEnd()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AccessibleTabView.java | 41 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 42 return FocusHelper.handleTabKeyEvent(this, keyCode, event) in onKeyDown() 43 || super.onKeyDown(keyCode, event); in onKeyDown() 47 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 48 return FocusHelper.handleTabKeyEvent(this, keyCode, event) in onKeyUp() 49 || super.onKeyUp(keyCode, event); in onKeyUp()
|
D | FocusHelper.java | 37 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 38 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey() 46 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 47 return FocusHelper.handleFolderKeyEvent(v, keyCode, event); in onKey() 55 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 57 … return FocusHelper.handleHotseatButtonKeyEvent(v, keyCode, event, configuration.orientation); in onKey() 66 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 67 return FocusHelper.handleAppsCustomizeTabKeyEvent(v, keyCode, event); in onKey() 86 static boolean handleAppsCustomizeTabKeyEvent(View v, int keyCode, KeyEvent e) { in handleAppsCustomizeTabKeyEvent() argument 94 switch (keyCode) { in handleAppsCustomizeTabKeyEvent() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | RepeatingImageButton.java | 85 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 86 switch (keyCode) { in onKeyDown() 91 super.onKeyDown(keyCode, event); in onKeyDown() 94 return super.onKeyDown(keyCode, event); in onKeyDown() 98 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 99 switch (keyCode) { in onKeyUp() 109 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | SettingsDialog.java | 192 public boolean onKeyUp(int keyCode, @NonNull KeyEvent event) { in onKeyUp() argument 194 return super.onKeyUp(keyCode, event); in onKeyUp() 198 return integerSettingHandleKeyCode(keyCode, event); in onKeyUp() 200 return stringSettingHandleKeyCode(keyCode, event); in onKeyUp() 202 return super.onKeyUp(keyCode, event); in onKeyUp() 206 private boolean integerSettingHandleKeyCode(int keyCode, KeyEvent event) { in integerSettingHandleKeyCode() argument 207 switch (keyCode) { in integerSettingHandleKeyCode() 219 return super.onKeyUp(keyCode, event); in integerSettingHandleKeyCode() 233 private boolean stringSettingHandleKeyCode(int keyCode, KeyEvent event) { in stringSettingHandleKeyCode() argument 235 return super.onKeyUp(keyCode, event); in stringSettingHandleKeyCode() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SearchActivityView.java | 367 long suggestionId, int keyCode, KeyEvent event) { in onSuggestionKeyDown() argument 369 if ( keyCode == KeyEvent.KEYCODE_ENTER in onSuggestionKeyDown() 370 || keyCode == KeyEvent.KEYCODE_SEARCH in onSuggestionKeyDown() 371 || keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { in onSuggestionKeyDown() 422 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 427 listView.getSelectedItemId(), keyCode, event)) { in onKey() 431 return forwardKeyToQueryTextView(keyCode, event); in onKey() 484 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 485 return forwardKeyToQueryTextView(keyCode, event); in onKey() 489 private boolean forwardKeyToQueryTextView(int keyCode, KeyEvent event) { in forwardKeyToQueryTextView() argument [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FocusLogic.java | 75 public static boolean shouldConsume(int keyCode) { in shouldConsume() argument 76 return (keyCode == KeyEvent.KEYCODE_DPAD_LEFT || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT || in shouldConsume() 77 keyCode == KeyEvent.KEYCODE_DPAD_UP || keyCode == KeyEvent.KEYCODE_DPAD_DOWN || in shouldConsume() 78 keyCode == KeyEvent.KEYCODE_MOVE_HOME || keyCode == KeyEvent.KEYCODE_MOVE_END || in shouldConsume() 79 keyCode == KeyEvent.KEYCODE_PAGE_UP || keyCode == KeyEvent.KEYCODE_PAGE_DOWN || in shouldConsume() 80 keyCode == KeyEvent.KEYCODE_DEL || keyCode == KeyEvent.KEYCODE_FORWARD_DEL); in shouldConsume() 83 public static int handleKeyEvent(int keyCode, int [][] map, int iconIdx, int pageIndex, in handleKeyEvent() argument 96 switch (keyCode) { in handleKeyEvent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | MoviePlayer.java | 414 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 418 return isMediaKey(keyCode); in onKeyDown() 421 switch (keyCode) { in onKeyDown() 449 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 450 return isMediaKey(keyCode); in onKeyUp() 453 private static boolean isMediaKey(int keyCode) { in isMediaKey() argument 454 return keyCode == KeyEvent.KEYCODE_HEADSETHOOK in isMediaKey() 455 || keyCode == KeyEvent.KEYCODE_MEDIA_PREVIOUS in isMediaKey() 456 || keyCode == KeyEvent.KEYCODE_MEDIA_NEXT in isMediaKey() 457 || keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE in isMediaKey() [all …]
|
D | MovieActivity.java | 253 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 254 return mPlayer.onKeyDown(keyCode, event) in onKeyDown() 255 || super.onKeyDown(keyCode, event); in onKeyDown() 259 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 260 return mPlayer.onKeyUp(keyCode, event) in onKeyUp() 261 || super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | DialpadFragment.java | 144 public boolean backspace(View view, Editable content, int keyCode, in backspace() argument 153 private boolean isAcceptableModifierKey(int keyCode) { in isAcceptableModifierKey() argument 154 switch (keyCode) { in isAcceptableModifierKey() 171 int keyCode, KeyEvent event) { in onKeyDown() argument 178 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 201 int keyCode, KeyEvent event) { in onKeyUp() argument 204 super.onKeyUp(view, content, keyCode, event); in onKeyUp() 365 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 366 Log.d(this, "onKey: keyCode " + keyCode + ", view " + v); in onKey() 368 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) { in onKey()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | KeyboardInterpreter.java | 37 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 41 switch (keyCode) { in onKeyDown() 66 if (DEBUG) Log.d(TAG, "dropped unexpected: " + keyCode); in onKeyDown() 73 switch (keyCode) { in onKeyDown() 112 if (DEBUG) Log.d(TAG, "dropped unexpected: " + keyCode); in onKeyDown()
|
/packages/apps/TV/src/com/android/tv/ |
D | SelectInputActivity.java | 92 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 93 if (keyCode == KeyEvent.KEYCODE_I || keyCode == KeyEvent.KEYCODE_TV_INPUT) { in onKeyUp() 94 mSelectInputView.onKeyUp(keyCode, event); in onKeyUp() 97 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarInputService.java | 134 int keyCode = event.getKeyCode(); in onKeyEvent() local 135 switch (keyCode) { in onKeyEvent() 207 int keyCode = event.getKeyCode(); in handleMainDisplayKey() local 208 int r = nativeInjectKeyEvent(fd, keyCode, isDown); in handleMainDisplayKey() 222 private native int nativeInjectKeyEvent(int fd, int keyCode, boolean isDown); in nativeInjectKeyEvent() argument
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | PinDialogFragment.java | 388 public boolean onKey(View v, int keyCode, KeyEvent event) { 390 switch (keyCode) { 398 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { 418 switch (keyCode) { 468 int keyCode = event.getKeyCode(); 469 if (keyCode >= KeyEvent.KEYCODE_0 && keyCode <= KeyEvent.KEYCODE_9) { 470 setNextValue(keyCode - KeyEvent.KEYCODE_0); 471 } else if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER 472 && keyCode != KeyEvent.KEYCODE_ENTER) {
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ActivityBase.java | 99 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 101 if (keyCode == KeyEvent.KEYCODE_SEARCH in onKeyDown() 102 || keyCode == KeyEvent.KEYCODE_MENU) { in onKeyDown() 106 return super.onKeyDown(keyCode, event); in onKeyDown()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | EmojiAltPhysicalKeyDetector.java | 84 final int keyCode = keyEvent.getKeyCode(); in onKeyUp() local 86 if (KeyEvent.isModifierKey(keyCode)) { in onKeyUp() 93 final Pair<Integer, Integer> key = Pair.create(keyCode, metaState); in onKeyUp() 196 final Integer keyCode = Integer.parseInt(valuePair[0]); in parseHotKeys() local 199 keyCode, KeyEvent.normalizeMetaState(metaState)); in parseHotKeys()
|