/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/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
D | SettingsDialog.java | 166 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 168 return super.onKeyUp(keyCode, event); in onKeyUp() 172 return integerSettingHandleKeyCode(keyCode, event); in onKeyUp() 174 return stringSettingHandleKeyCode(keyCode, event); in onKeyUp() 176 return super.onKeyUp(keyCode, event); in onKeyUp() 180 private boolean integerSettingHandleKeyCode(int keyCode, KeyEvent event) { in integerSettingHandleKeyCode() argument 181 switch (keyCode) { in integerSettingHandleKeyCode() 193 return super.onKeyUp(keyCode, event); in integerSettingHandleKeyCode() 207 private boolean stringSettingHandleKeyCode(int keyCode, KeyEvent event) { in stringSettingHandleKeyCode() argument 209 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/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | Event.java | 109 private Event(final int type, final CharSequence text, final int codePoint, final int keyCode, in Event() argument 115 mKeyCode = keyCode; in Event() 136 public static Event createSoftwareKeypressEvent(final int codePoint, final int keyCode, in createSoftwareKeypressEvent() argument 138 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, x, y, in createSoftwareKeypressEvent() 142 public static Event createHardwareKeypressEvent(final int codePoint, final int keyCode, in createHardwareKeypressEvent() argument 144 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, in createHardwareKeypressEvent() 150 public static Event createDeadEvent(final int codePoint, final int keyCode, final Event next) { in createDeadEvent() argument 152 return new Event(EVENT_TYPE_INPUT_KEYPRESS, null /* text */, codePoint, keyCode, in createDeadEvent() 205 public static Event createSoftwareTextEvent(final CharSequence text, final int keyCode) { in createSoftwareTextEvent() argument 206 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() 77 return Event.createHardwareKeypressEvent(codePointAndFlags, keyCode, null /* next */, in decodeHardwareKey()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FocusHelper.java | 34 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 35 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey() 43 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 44 return FocusHelper.handleFolderKeyEvent(v, keyCode, event); in onKey() 52 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 54 … return FocusHelper.handleHotseatButtonKeyEvent(v, keyCode, event, configuration.orientation); in onKey() 75 static boolean handleAppsCustomizeKeyEvent(View v, int keyCode, KeyEvent e) { in handleAppsCustomizeKeyEvent() argument 109 switch (keyCode) { in handleAppsCustomizeKeyEvent() 245 static boolean handleHotseatButtonKeyEvent(View v, int keyCode, KeyEvent e, int orientation) { in handleHotseatButtonKeyEvent() argument 255 switch (keyCode) { in handleHotseatButtonKeyEvent() [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 …]
|
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/Browser/src/com/android/browser/ |
D | BrowserActivity.java | 237 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 238 return mController.onKeyDown(keyCode, event) || in onKeyDown() 239 super.onKeyDown(keyCode, event); in onKeyDown() 243 public boolean onKeyLongPress(int keyCode, KeyEvent event) { in onKeyLongPress() argument 244 return mController.onKeyLongPress(keyCode, event) || in onKeyLongPress() 245 super.onKeyLongPress(keyCode, event); in onKeyLongPress() 249 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 250 return mController.onKeyUp(keyCode, event) || in onKeyUp() 251 super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | DialpadFragment.java | 169 public boolean backspace(View view, Editable content, int keyCode, in backspace() argument 178 private boolean isAcceptableModifierKey(int keyCode) { in isAcceptableModifierKey() argument 179 switch (keyCode) { in isAcceptableModifierKey() 196 int keyCode, KeyEvent event) { in onKeyDown() argument 203 if (event.getRepeatCount() == 0 && super.onKeyDown(view, content, keyCode, event)) { in onKeyDown() 226 int keyCode, KeyEvent event) { in onKeyUp() argument 229 super.onKeyUp(view, content, keyCode, event); in onKeyUp() 387 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 388 Log.d(this, "onKey: keyCode " + keyCode + ", view " + v); in onKey() 390 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { in onKey()
|
D | InCallActivity.java | 355 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 360 } else if (keyCode == KeyEvent.KEYCODE_CALL) { in onKeyUp() 364 return super.onKeyUp(keyCode, event); in onKeyUp() 368 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 369 switch (keyCode) { in onKeyDown() 417 if (event.getRepeatCount() == 0 && handleDialerKeyDown(keyCode, event)) { in onKeyDown() 421 return super.onKeyDown(keyCode, event); in onKeyDown() 424 private boolean handleDialerKeyDown(int keyCode, KeyEvent event) { in handleDialerKeyDown() argument 425 Log.v(this, "handleDialerKeyDown: keyCode " + keyCode + ", event " + event + "..."); in handleDialerKeyDown()
|
/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()
|
D | MediaPlaybackActivity.java | 699 private boolean seekMethod1(int keyCode) in seekMethod1() argument 704 if(keyboard[y][x] == keyCode) { in seekMethod1() 735 private boolean seekMethod2(int keyCode) in seekMethod2() argument 739 if(keyboard[0][i] == keyCode) { in seekMethod2() 753 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 755 switch(keyCode) in onKeyUp() 798 return super.onKeyUp(keyCode, event); in onKeyUp() 811 public boolean onKeyDown(int keyCode, KeyEvent event) in onKeyDown() argument 816 if((seekmethod==0)?seekMethod1(keyCode):seekMethod2(keyCode)) in onKeyDown() 819 switch(keyCode) in onKeyDown() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | PinDialogFragment.java | 368 public boolean onKey(View v, int keyCode, KeyEvent event) { 370 switch (keyCode) { 378 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { 398 switch (keyCode) { 448 int keyCode = event.getKeyCode(); 449 if (keyCode >= KeyEvent.KEYCODE_0 && keyCode <= KeyEvent.KEYCODE_9) { 450 setNextValue(keyCode - KeyEvent.KEYCODE_0); 451 } else if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER 452 && keyCode != KeyEvent.KEYCODE_ENTER) {
|
/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/Mms/src/com/android/mms/ui/ |
D | WarnOfStorageLimitsActivity.java | 111 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 112 if (mAlert.onKeyDown(keyCode, event)) return true; in onKeyDown() 113 return super.onKeyDown(keyCode, event); in onKeyDown() 117 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 118 if (mAlert.onKeyUp(keyCode, event)) return true; in onKeyUp() 119 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | DefaultSoftKeyboardJAJP.java | 1032 private int getTableIndex(int keyCode) { in getTableIndex() argument 1034 (keyCode == KEYCODE_JP12_1) ? 0 : in getTableIndex() 1035 (keyCode == KEYCODE_JP12_2) ? 1 : in getTableIndex() 1036 (keyCode == KEYCODE_JP12_3) ? 2 : in getTableIndex() 1037 (keyCode == KEYCODE_JP12_4) ? 3 : in getTableIndex() 1038 (keyCode == KEYCODE_JP12_5) ? 4 : in getTableIndex() 1039 (keyCode == KEYCODE_JP12_6) ? 5 : in getTableIndex() 1040 (keyCode == KEYCODE_JP12_7) ? 6 : in getTableIndex() 1041 (keyCode == KEYCODE_JP12_8) ? 7 : in getTableIndex() 1042 (keyCode == KEYCODE_JP12_9) ? 8 : in getTableIndex() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | ActivityBase.java | 251 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 253 if (keyCode == KeyEvent.KEYCODE_SEARCH in onKeyDown() 254 || keyCode == KeyEvent.KEYCODE_MENU) { in onKeyDown() 257 if (keyCode == KeyEvent.KEYCODE_MENU && mShowCameraAppView) { in onKeyDown() 261 return super.onKeyDown(keyCode, event); in onKeyDown() 265 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 266 if (keyCode == KeyEvent.KEYCODE_MENU && mShowCameraAppView) { in onKeyUp() 269 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyDialer.java | 301 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 302 switch (keyCode) { in onKeyDown() 317 return super.onKeyDown(keyCode, event); in onKeyDown() 320 private void keyPressed(int keyCode) { in keyPressed() argument 322 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in keyPressed() 323 mDigits.onKeyDown(keyCode, event); in keyPressed() 327 public boolean onKey(View view, int keyCode, KeyEvent event) { in onKey() argument 332 if (keyCode == KeyEvent.KEYCODE_ENTER in onKey()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpControllerService.java | 156 public void sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) { in sendPassThroughCmd() argument 158 Log.v(TAG, "keyCode: " + keyCode + " keyState: " + keyState); in sendPassThroughCmd() 164 keyCode, keyState, device); in sendPassThroughCmd() 212 public void sendPassThroughCmd(BluetoothDevice device, int keyCode, int keyState) { in sendPassThroughCmd() argument 216 service.sendPassThroughCmd(device, keyCode, keyState); in sendPassThroughCmd() 276 private native boolean sendPassThroughCommandNative(byte[] address, int keyCode, int keyState); in sendPassThroughCommandNative() argument
|
/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/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 94 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 95 if (keyCode == KeyEvent.KEYCODE_BACK in onKeyDown() 100 return super.onKeyDown(keyCode, event); in onKeyDown() 104 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 105 if (keyCode == KeyEvent.KEYCODE_BACK && event.isTracking() in onKeyUp() 114 return super.onKeyUp(keyCode, event); in onKeyUp()
|