/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FocusHelper.java | 36 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 37 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey() 46 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 47 return FocusHelper.handleHotseatButtonKeyEvent(v, keyCode, event); in onKey() 56 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 57 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT in onKey() 58 || keyCode == KeyEvent.KEYCODE_PAGE_DOWN || keyCode == KeyEvent.KEYCODE_PAGE_UP) { in onKey() 62 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey() 85 public boolean onKey(View v, int keyCode, KeyEvent e) { in onKey() argument 86 boolean consume = FocusLogic.shouldConsume(keyCode); in onKey() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | FocusManager.java | 109 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument 111 if (mSearchHelper.handleKey(doc, keyCode, event)) { in handleKey() 115 if (Events.isNavigationKeyCode(keyCode)) { in handleKey() 117 int endPos = findTargetPosition(doc.itemView, keyCode, event); in handleKey() 225 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument 226 switch (keyCode) { in findTargetPosition() 233 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition() 238 switch (keyCode) { in findTargetPosition() 250 switch (keyCode) { in findTargetPosition() 304 private int findPagedTargetPosition(View view, int keyCode, KeyEvent event) { in findPagedTargetPosition() argument [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 637 public void showKeypadChannelSwitch(int keyCode) { in showKeypadChannelSwitch() argument 644 mKeypadChannelSwitchView.onNumberKeyUp(keyCode - KeyEvent.KEYCODE_0); in showKeypadChannelSwitch() 974 @KeyHandlerResultType public int onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 980 if (isMediaStartKey(keyCode)) { in onKeyDown() 989 return mKeypadChannelSwitchView.onKeyDown(keyCode, event) ? in onKeyDown() 994 return mSelectInputView.onKeyDown(keyCode, event) ? in onKeyDown() 1004 @KeyHandlerResultType public int onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 1006 if (isMediaStartKey(keyCode)) { in onKeyUp() 1022 switch (keyCode) { in onKeyUp() 1060 if (keyCode == KeyEvent.KEYCODE_I || keyCode == KeyEvent.KEYCODE_TV_INPUT) { 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/Launcher2/src/com/android/launcher2/ |
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 …]
|
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()
|
/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/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiDeviceUtils.java | 88 private static void pressKey(Instrumentation instrumentation, int keyCode, int repeat) { in pressKey() argument 91 assertPressKeyDown(instrumentation, keyCode, false); in pressKey() 93 assertPressKeyUp(instrumentation, keyCode, false); in pressKey() 97 assertPressKeyUp(instrumentation, keyCode, true); in pressKey() 100 private static void assertPressKeyDown(Instrumentation instrumentation, int keyCode, in assertPressKeyDown() argument 102 assertPressKey(instrumentation, KeyEvent.ACTION_DOWN, keyCode, sync); in assertPressKeyDown() 105 private static void assertPressKeyUp(Instrumentation instrumentation, int keyCode, in assertPressKeyUp() argument 107 assertPressKey(instrumentation, KeyEvent.ACTION_UP, keyCode, sync); in assertPressKeyUp() 110 private static void assertPressKey(Instrumentation instrumentation, int action, int keyCode, in assertPressKey() argument 113 KeyEvent event = new KeyEvent(eventTime, eventTime, action, keyCode, 0, 0, -1, 0, 0, in assertPressKey()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
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()
|
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()
|
/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/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 …]
|
/packages/apps/Music/src/com/android/music/ |
D | RepeatingImageButton.java | 84 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 85 switch (keyCode) { in onKeyDown() 90 super.onKeyDown(keyCode, event); in onKeyDown() 93 return super.onKeyDown(keyCode, event); in onKeyDown() 97 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 98 switch (keyCode) { in onKeyUp() 108 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/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/Launcher3/src/com/android/launcher3/util/ |
D | FocusLogic.java | 77 public static boolean shouldConsume(int keyCode) { in shouldConsume() argument 78 return (keyCode == KeyEvent.KEYCODE_DPAD_LEFT || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT || in shouldConsume() 79 keyCode == KeyEvent.KEYCODE_DPAD_UP || keyCode == KeyEvent.KEYCODE_DPAD_DOWN || in shouldConsume() 80 keyCode == KeyEvent.KEYCODE_MOVE_HOME || keyCode == KeyEvent.KEYCODE_MOVE_END || in shouldConsume() 81 keyCode == KeyEvent.KEYCODE_PAGE_UP || keyCode == KeyEvent.KEYCODE_PAGE_DOWN); in shouldConsume() 84 public static int handleKeyEvent(int keyCode, int [][] map, int iconIdx, int pageIndex, in handleKeyEvent() argument 97 switch (keyCode) { in handleKeyEvent()
|
/packages/services/Car/tests/DirectRenderingClusterSample/src/android/car/cluster/sample/ |
D | SampleClusterServiceImpl.java | 163 private void doKeyEvent(int keyCode) { in doKeyEvent() argument 164 Log.i(TAG, "doKeyEvent, keyCode: " + keyCode); in doKeyEvent() 167 KeyEvent event = obtainKeyEvent(keyCode, downTime, eventTime, KeyEvent.ACTION_DOWN); in doKeyEvent() 171 event = obtainKeyEvent(keyCode, downTime, eventTime, KeyEvent.ACTION_UP); in doKeyEvent() 175 private KeyEvent obtainKeyEvent(int keyCode, long downTime, long eventTime, int action) { in obtainKeyEvent() argument 177 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { in obtainKeyEvent() 179 } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) { in obtainKeyEvent() 186 keyCode, in obtainKeyEvent()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | DialpadFragment.java | 95 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 96 Log.d(this, "onKey: keyCode " + keyCode + ", view " + v); in onKey() 98 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) { in onKey() 333 public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) { in backspace() argument 342 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) { in onKeyDown() argument 349 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 370 public boolean onKeyUp(View view, Editable content, int keyCode, KeyEvent event) { in onKeyUp() argument 373 super.onKeyUp(view, content, keyCode, event); in onKeyUp()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | PinDialogFragment.java | 385 mNumberViewHolder.setOnKeyListener((v, keyCode, event) -> { 387 switch (keyCode) { 395 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { 415 switch (keyCode) { 464 int keyCode = event.getKeyCode(); 465 if (keyCode >= KeyEvent.KEYCODE_0 && keyCode <= KeyEvent.KEYCODE_9) { 466 jumpNextValue(keyCode - KeyEvent.KEYCODE_0); 467 } else if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER 468 && keyCode != KeyEvent.KEYCODE_ENTER) {
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/ |
D | InputTestFragment.java | 85 private Button createButton(@StringRes int textResId, int keyCode) { in createButton() argument 92 handleTouchEvent(event, keyCode); in createButton() 99 private void handleTouchEvent(MotionEvent event, int keyCode) { in handleTouchEvent() argument 101 Log.i(TAG, "handleTouchEvent, action:" + androidAction + ",keyCode:" + keyCode); in handleTouchEvent() 105 mCarEmulator.injectKey(keyCode, VehicleHwKeyInputAction.ACTION_DOWN); in handleTouchEvent() 108 mCarEmulator.injectKey(keyCode, VehicleHwKeyInputAction.ACTION_UP); in handleTouchEvent()
|
/packages/apps/TV/src/com/android/tv/ |
D | MainActivity.java | 1885 public boolean onKeyDown(int keyCode, KeyEvent event) { 1887 Log.d(TAG, "onKeyDown(" + keyCode + ", " + event + ")"); 1889 switch (mOverlayManager.onKeyDown(keyCode, event)) { 1891 return super.onKeyDown(keyCode, event); 1901 return super.onKeyDown(keyCode, event); 1907 switch (keyCode) { 1934 return super.onKeyDown(keyCode, event); 1938 public boolean onKeyUp(int keyCode, KeyEvent event) { 1953 Log.d(TAG, "onKeyUp(" + keyCode + ", " + event + ")"); 1963 switch (mOverlayManager.onKeyUp(keyCode, event)) { [all …]
|
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/apps/TV/src/com/android/tv/dialog/ |
D | PinDialogFragment.java | 462 public boolean onKey(View v, int keyCode, KeyEvent event) { 464 switch (keyCode) { 472 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { 484 switch (keyCode) { 568 int keyCode = event.getKeyCode(); 569 if (keyCode >= KeyEvent.KEYCODE_0 && keyCode <= KeyEvent.KEYCODE_9) { 570 mNextValue = adjustValueInValidRange(keyCode - KeyEvent.KEYCODE_0); 572 } else if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER 573 || keyCode == KeyEvent.KEYCODE_ENTER) {
|
/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()
|