/frameworks/support/v4/java/android/support/v4/media/ |
TransportMediator.java | 111 static boolean isMediaKey(int keyCode) { 112 switch (keyCode) { 132 public boolean onKeyDown(int keyCode, KeyEvent event) { 133 return isMediaKey(keyCode) ? mCallbacks.onMediaButtonDown(keyCode, event) : false; 136 public boolean onKeyLongPress(int keyCode, KeyEvent event) { 141 public boolean onKeyUp(int keyCode, KeyEvent event) { 142 return isMediaKey(keyCode) ? mCallbacks.onMediaButtonUp(keyCode, event) : false; 146 public boolean onKeyMultiple(int keyCode, int count, KeyEvent event) [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
OpenWnn.java | 161 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 166 Keycodeinfo.mKeyCode = keyCode; 171 if (KeyActionList.get(i).mKeyCode == keyCode) { 179 return super.onKeyDown(keyCode, event); 185 @Override public boolean onKeyUp(int keyCode, KeyEvent event) { 190 if (Keycodeinfo.mKeyCode == keyCode) { 197 ret = super.onKeyUp(keyCode, event); 209 @Override public boolean onKeyLongPress(int keyCode, KeyEvent event) { 212 return super.onKeyLongPress(keyCode, event); 362 * @param keyCode check key code [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
KeyMapDream.java | 101 static public char getChineseLabel(int keyCode) { 102 if (keyCode <= 0 || keyCode >= KeyEvent.getMaxKeyCode()) return 0; 103 assert ((mKeyMap[keyCode] & 0x000000ff) == keyCode); 104 return (char) (mKeyMap[keyCode] >> SHIFT_FWCH);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Sweep.java | 82 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 83 switch (keyCode) { 93 return super.onKeyDown(keyCode, event);
|
UnicodeChart.java | 101 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 102 switch (keyCode) { 116 return super.onKeyDown(keyCode, event);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
ShortcutManager.java | 96 * Gets the shortcut intent for a given keycode+modifier. Make sure you 105 * @param keyCode The key code. 110 public Intent getIntent(KeyCharacterMap kcm, int keyCode, int metaState) { 113 // First try the exact keycode (with modifiers). 114 int shortcut = kcm.get(keyCode, metaState); 121 shortcut = Character.toLowerCase(kcm.getDisplayLabel(keyCode));
|
/packages/apps/Browser/src/com/android/browser/stub/ |
NullController.java | 96 public boolean onKeyDown(int keyCode, KeyEvent event) { 101 public boolean onKeyLongPress(int keyCode, KeyEvent event) { 106 public boolean onKeyUp(int keyCode, KeyEvent event) {
|
/packages/apps/Mms/src/com/android/mms/ui/ |
ConfirmRateLimitActivity.java | 103 public boolean onKeyDown(int keyCode, KeyEvent event) { 104 if ((keyCode == KeyEvent.KEYCODE_BACK) 108 return super.onKeyDown(keyCode, event);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
WebSearchSuggestionView.java | 77 public boolean onKey(View v, int keyCode, KeyEvent event) { 80 if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && v != mIcon2) { 82 } else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT && v == mIcon2) {
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyKeyEvent.java | 41 public MonkeyKeyEvent(int action, int keyCode) { 42 this(-1, -1, action, keyCode, 0, 0, KeyCharacterMap.VIRTUAL_KEYBOARD, 0); 46 int keyCode, int repeatCount, int metaState, 52 mKeyCode = keyCode;
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
SoftKeyboard.java | 311 private boolean translateKeyDown(int keyCode, KeyEvent event) { 313 keyCode, event); 348 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 349 switch (keyCode) { 381 if (keyCode == KeyEvent.KEYCODE_SPACE 401 if (mPredictionOn && translateKeyDown(keyCode, event)) { 407 return super.onKeyDown(keyCode, event); 415 @Override public boolean onKeyUp(int keyCode, KeyEvent event) { 422 keyCode, event); 426 return super.onKeyUp(keyCode, event) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
KeyboardConfigDialogPreference.java | 139 protected String getKeyLabel(int keycode) { 145 if (keycode > 0 && keycode < mKeyLabels.length) { 146 result = mKeyLabels[keycode - 1]; 211 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { 217 mLeftText.setText(getKeyLabel(keyCode)); 218 mLeftKeyCode = keyCode; 221 mRightText.setText(getKeyLabel(keyCode)); 222 mRightKeyCode = keyCode; 225 mJumpText.setText(getKeyLabel(keyCode)); [all...] |
/frameworks/av/media/libmediaplayerservice/ |
MidiMetadataRetriever.h | 38 virtual const char* extractMetadata(int keyCode);
|
/frameworks/base/core/java/android/content/ |
DialogInterface.java | 151 * @param keyCode The code for the physical key that was pressed 156 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event);
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
WebViewEventSender.java | 59 int keyCode = modifierMapper(withModifiers[i]); 60 modifier = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 64 int keyCode = keyMapper(character.toLowerCase().toCharArray()[0]); 65 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
|
/packages/apps/Browser/src/com/android/browser/ |
BrowserActivity.java | 237 public boolean onKeyDown(int keyCode, KeyEvent event) { 238 return mController.onKeyDown(keyCode, event) || 239 super.onKeyDown(keyCode, event); 243 public boolean onKeyLongPress(int keyCode, KeyEvent event) { 244 return mController.onKeyLongPress(keyCode, event) || 245 super.onKeyLongPress(keyCode, event); 249 public boolean onKeyUp(int keyCode, KeyEvent event) { 250 return mController.onKeyUp(keyCode, event) || 251 super.onKeyUp(keyCode, event);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
ActivityBase.java | 99 public boolean onKeyDown(int keyCode, KeyEvent event) { 101 if (keyCode == KeyEvent.KEYCODE_SEARCH 102 || keyCode == KeyEvent.KEYCODE_MENU) { 106 return super.onKeyDown(keyCode, event);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
TimePickerDialog.java | 416 * @param keyCode the pressed key. 419 private boolean processKeyUp(int keyCode) { 420 if (keyCode == KeyEvent.KEYCODE_ESCAPE || keyCode == KeyEvent.KEYCODE_BACK) { 423 } else if (keyCode == KeyEvent.KEYCODE_TAB) { 430 } else if (keyCode == KeyEvent.KEYCODE_ENTER) { 443 } else if (keyCode == KeyEvent.KEYCODE_DEL) { 460 } else if (keyCode == KeyEvent.KEYCODE_0 || keyCode == KeyEvent.KEYCODE_1 461 || keyCode == KeyEvent.KEYCODE_2 || keyCode == KeyEvent.KEYCODE_ [all...] |
/development/samples/LunarLander/src/com/example/android/lunarlander/ |
LunarView.java | 543 * @param keyCode the key that was pressed 547 boolean doKeyDown(int keyCode, KeyEvent msg) { 550 if (keyCode == KeyEvent.KEYCODE_DPAD_UP) okStart = true; 551 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) okStart = true; 552 if (keyCode == KeyEvent.KEYCODE_S) okStart = true; 565 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER 566 || keyCode == KeyEvent.KEYCODE_SPACE) { 570 } else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT 571 || keyCode == KeyEvent.KEYCODE_Q) { 575 } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGH [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameControllerInput.java | 260 final int keyCode = event.getKeyCode(); 261 if (isGameKey(keyCode)) { 263 final String symbolicName = KeyEvent.keyCodeToString(keyCode); 264 mKeys.put(keyCode, 1); 273 final int keyCode = event.getKeyCode(); 274 if (isGameKey(keyCode)) { 275 int index = mKeys.indexOfKey(keyCode); 277 final String symbolicName = KeyEvent.keyCodeToString(keyCode); 278 mKeys.put(keyCode, 0); 314 private static boolean isGameKey(int keyCode) { [all...] |
List12.java | 70 public boolean onKey(View v, int keyCode, KeyEvent event) { 72 switch (keyCode) {
|
/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 204 final int keyCode = event.getKeyCode(); 207 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); 221 addKeyState(deviceId, source, keyCode); 226 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true); 533 final int keyCode = keyEvent.getKeyCode(); 534 final KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); 668 private KeyState findKeyState(int deviceId, int source, int keyCode, boolean remove) { 673 && state.keyCode == keyCode) { 690 private void addKeyState(int deviceId, int source, int keyCode) { [all...] |
/cts/tests/src/android/view/cts/ |
WindowStubActivity.java | 55 public boolean onKeyDown(int keyCode, KeyEvent event) { 57 return super.onKeyDown(keyCode, event);
|
/external/webkit/Source/WebCore/dom/ |
UIEvent.idl | 34 readonly attribute long keyCode;
|
/external/webkit/Source/WebCore/inspector/front-end/ |
KeyboardShortcut.js | 90 * Creates a number encoding keyCode in the lower 8 bits and modifiers mask in the higher 8 bits. 92 * keyCode is the Code of the key, or a character "a-z" which is converted to a keyCode value. 95 WebInspector.KeyboardShortcut.makeKey = function(keyCode, optModifiers) 97 if (typeof keyCode === "string") 98 keyCode = keyCode.charCodeAt(0) - 32; 102 return WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers(keyCode, modifiers); 116 return WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers(keyboardEvent.keyCode, modifiers); 145 WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers = function(keyCode, modifiers [all...] |