/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/ |
D | LeanbackKeyboardController.java | 83 public void onEntry(int type, int keyCode, CharSequence result); in onEntry() argument 278 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 281 if (isEnterKey(keyCode)) { in onKeyDown() 289 return handleKeyDownEvent(keyCode, event.getRepeatCount()); in onKeyDown() 292 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 294 if (isEnterKey(keyCode)) { in onKeyUp() 304 return handleKeyUpEvent(keyCode, event.getEventTime()); in onKeyUp() 417 private boolean handleKeyDownEvent(int keyCode, int eventRepeatCount) { in handleKeyDownEvent() argument 418 keyCode = getSimplifiedKey(keyCode); in handleKeyDownEvent() 421 if (keyCode == KeyEvent.KEYCODE_BACK) { in handleKeyDownEvent() [all …]
|
/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/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | KeyboardQuickSwitchViewController.java | 206 boolean onKeyUp(int keyCode, KeyEvent event, boolean isRTL, boolean allowTraversal) { in onKeyUp() argument 207 if (keyCode != KeyEvent.KEYCODE_TAB in onKeyUp() 208 && keyCode != KeyEvent.KEYCODE_DPAD_RIGHT in onKeyUp() 209 && keyCode != KeyEvent.KEYCODE_DPAD_LEFT in onKeyUp() 210 && keyCode != KeyEvent.KEYCODE_GRAVE in onKeyUp() 211 && keyCode != KeyEvent.KEYCODE_ESCAPE in onKeyUp() 212 && keyCode != KeyEvent.KEYCODE_ENTER) { in onKeyUp() 215 if (keyCode == KeyEvent.KEYCODE_GRAVE || keyCode == KeyEvent.KEYCODE_ESCAPE) { in onKeyUp() 219 if (keyCode == KeyEvent.KEYCODE_ENTER) { in onKeyUp() 226 boolean traverseBackwards = (keyCode == KeyEvent.KEYCODE_TAB && event.isShiftPressed()) in onKeyUp() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | KeyboardShortcutsDelegate.java | 68 la.accessibilityAction.getLabel(), la.keyCode, KeyEvent.META_CTRL_ON))); in onProvideKeyboardShortcuts() 81 public Boolean onKeyShortcut(int keyCode, KeyEvent event) { in onKeyShortcut() argument 83 switch (keyCode) { in onKeyShortcut() 99 if (la.keyCode == keyCode) { in onKeyShortcut() 113 public Boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 115 if (keyCode == KeyEvent.KEYCODE_ESCAPE && event.hasNoModifiers()) { in onKeyDown() 144 public Boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 145 if (keyCode == KeyEvent.KEYCODE_MENU) { in onKeyUp()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | FocusManager.java | 115 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument 117 if (mSearchHelper.handleKey(doc, keyCode, event)) { in handleKey() 121 if (Events.isNavigationKeyCode(keyCode)) { in handleKey() 123 int endPos = findTargetPosition(doc.itemView, keyCode, event); in handleKey() 252 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument 253 switch (keyCode) { in findTargetPosition() 260 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition() 265 switch (keyCode) { in findTargetPosition() 277 switch (keyCode) { in findTargetPosition() 331 private int findPagedTargetPosition(View view, int keyCode, KeyEvent event) { in findPagedTargetPosition() argument [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | SeekBarPreference.java | 95 public boolean onKey(View v, int keyCode, KeyEvent event) { 104 && (keyCode == KeyEvent.KEYCODE_DPAD_LEFT 105 || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT 106 || keyCode == KeyEvent.KEYCODE_DPAD_UP 107 || keyCode == KeyEvent.KEYCODE_DPAD_DOWN)) { 112 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { 118 if (keyCode == KeyEvent.KEYCODE_BACK) { 128 if (KeyEvent.isConfirmKey(keyCode)) { 133 return mSeekBar.onKeyDown(keyCode, event); 135 return mSeekBar.onKeyUp(keyCode, event); [all …]
|
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/service/ |
D | LeanbackImeService.java | 64 public void onEntry(int type, int keyCode, CharSequence result) { 65 handleTextEntry(type, keyCode, result); 191 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 193 && mKeyboardController.onKeyUp(keyCode, event)) { in onKeyUp() 196 return super.onKeyUp(keyCode, event); in onKeyUp() 200 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 202 && mKeyboardController.onKeyDown(keyCode, event)) { in onKeyDown() 205 return super.onKeyDown(keyCode, event); in onKeyDown() 262 private void handleTextEntry(int type, int keyCode, CharSequence c) { in handleTextEntry() argument 298 if (LeanbackUtils.isAlphabet(keyCode)) { in handleTextEntry() [all …]
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | ModifierKeysPreferenceController.java | 209 private static boolean isCtrl(int keyCode) { in isCtrl() argument 210 return keyCode == KeyEvent.KEYCODE_CTRL_LEFT || keyCode == KeyEvent.KEYCODE_CTRL_RIGHT; in isCtrl() 213 private static boolean isMeta(int keyCode) { in isMeta() argument 214 return keyCode == KeyEvent.KEYCODE_META_LEFT || keyCode == KeyEvent.KEYCODE_META_RIGHT; in isMeta() 217 private static boolean isAlt(int keyCode) { in isAlt() argument 218 return keyCode == KeyEvent.KEYCODE_ALT_LEFT || keyCode == KeyEvent.KEYCODE_ALT_RIGHT; in isAlt() 221 private static boolean isCapLock(int keyCode) { in isCapLock() argument 222 return keyCode == KeyEvent.KEYCODE_CAPS_LOCK; in isCapLock()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 642 public void showKeypadChannelSwitch(int keyCode) { in showKeypadChannelSwitch() argument 650 mKeypadChannelSwitchView.onNumberKeyUp(keyCode - KeyEvent.KEYCODE_0); in showKeypadChannelSwitch() 986 public int onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 992 if (isMediaStartKey(keyCode)) { in onKeyDown() 1004 return mKeypadChannelSwitchView.onKeyDown(keyCode, event) in onKeyDown() 1009 return mSelectInputView.onKeyDown(keyCode, event) in onKeyDown() 1018 public int onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 1020 if (isMediaStartKey(keyCode)) { in onKeyUp() 1041 switch (keyCode) { in onKeyUp() 1079 if (keyCode == KeyEvent.KEYCODE_I || keyCode == KeyEvent.KEYCODE_TV_INPUT) { in onKeyUp() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SearchActivityView.kt | 313 keyCode: Int, in onSuggestionKeyDown() 318 keyCode == KeyEvent.KEYCODE_ENTER || in onSuggestionKeyDown() 319 keyCode == KeyEvent.KEYCODE_SEARCH || in onSuggestionKeyDown() 320 keyCode == KeyEvent.KEYCODE_DPAD_CENTER in onSuggestionKeyDown() 362 override fun onKey(v: View, keyCode: Int, event: KeyEvent): Boolean { in onKey() 369 keyCode, in onKey() 376 return forwardKeyToQueryTextView(keyCode, event) in onKey() 424 override fun onKey(v: View?, keyCode: Int, event: KeyEvent): Boolean { in onKey() 425 return forwardKeyToQueryTextView(keyCode, event) in onKey() 429 private fun forwardKeyToQueryTextView(keyCode: Int, event: KeyEvent): Boolean { in forwardKeyToQueryTextView() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | DtmfKeyListener.java | 75 public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) { in backspace() argument 86 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) { in onKeyDown() argument 88 if (!super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 127 public boolean onKeyUp(View view, Editable content, int keyCode, KeyEvent event) { in onKeyUp() argument 129 super.onKeyUp(view, content, keyCode, event); in onKeyUp()
|
/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/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 | 264 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 265 return mPlayer.onKeyDown(keyCode, event) in onKeyDown() 266 || super.onKeyDown(keyCode, event); in onKeyDown() 270 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 271 return mPlayer.onKeyUp(keyCode, event) in onKeyUp() 272 || super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/TV/src/com/android/tv/ |
D | SelectInputActivity.java | 96 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 97 if (keyCode == KeyEvent.KEYCODE_I || keyCode == KeyEvent.KEYCODE_TV_INPUT) { in onKeyUp() 98 mSelectInputView.onKeyUp(keyCode, event); in onKeyUp() 101 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | NavigableAppWidgetHostView.java | 80 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 81 if (!mChildrenFocused && keyCode == KeyEvent.KEYCODE_ENTER) { in onKeyDown() 85 return super.onKeyDown(keyCode, event); in onKeyDown() 89 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 91 if (!mChildrenFocused && keyCode == KeyEvent.KEYCODE_ENTER) { in onKeyUp() 114 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | KeyboardBot.java | 58 public void pressKey(int keyCode) { in pressKey() argument 59 mDevice.pressKeyCode(keyCode); in pressKey() 62 public void pressKey(int keyCode, int metaState) { in pressKey() argument 63 mDevice.pressKeyCode(keyCode, metaState); in pressKey()
|
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/ |
D | QCRowView.java | 88 public boolean onKey(View v, int keyCode, KeyEvent event) { 95 && (keyCode == KeyEvent.KEYCODE_DPAD_LEFT 96 || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT 97 || keyCode == KeyEvent.KEYCODE_DPAD_UP 98 || keyCode == KeyEvent.KEYCODE_DPAD_DOWN)) { 103 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { 115 if (keyCode == KeyEvent.KEYCODE_BACK) { 125 if (KeyEvent.isConfirmKey(keyCode)) { 130 return mSeekBar.onKeyDown(keyCode, event); 132 return mSeekBar.onKeyUp(keyCode, event); [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootsList.java | 57 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 58 switch (keyCode) { in onKeyDown() 63 && super.onKeyDown(keyCode, event); in onKeyDown() 69 return super.onKeyDown(keyCode, event); in onKeyDown()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | DebugHelper.java | 85 public void debugCheck(long time, int keyCode) { in debugCheck() argument 93 if (keyCode == sCode[i][0]) { in debugCheck() 100 if (keyCode == sCode[mCodeIndex][mPosition]) { in debugCheck() 102 } else if (mPosition > 2 || (mPosition == 2 && keyCode != sCode[mCodeIndex][0])) { in debugCheck()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | KeyInputHandler.java | 51 public boolean onKey(@Nullable DocumentItemDetails details, int keyCode, KeyEvent event) { in onKey() argument 59 if (keyCode == KeyEvent.KEYCODE_TAB) { in onKey() 73 if (mCallbacks.onFocusItem(details, keyCode, event)) { in onKey() 109 public abstract boolean onFocusItem(T details, int keyCode, KeyEvent event); in onFocusItem() argument
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
D | LiveChannelsTestController.java | 59 private void assertPressKeyUp(int keyCode, boolean sync) { in assertPressKeyUp() argument 60 assertPressKey(KeyEvent.ACTION_UP, keyCode, sync); in assertPressKeyUp() 63 private void assertPressKey(int action, int keyCode, boolean sync) { in assertPressKey() argument 70 keyCode, in assertPressKey() 216 public void pressKeyCode(int keyCode) { in pressKeyCode() argument 217 mDevice.pressKeyCode(keyCode); in pressKeyCode()
|
/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()
|