/external/jmonkeyengine/engine/src/core/com/jme3/input/controls/ |
TouchTrigger.java | 36 * Class to trigger TouchEvents, keycode can be TouchInput.ALL(=0) or TouchInput.KEYCODE_* 42 private final int keyCode; 46 * @param keyCode can be zero to get all events or TouchInput.KEYCODE_* 48 public TouchTrigger(int keyCode) { 50 this.keyCode = keyCode; 55 if (keyCode != 0) 58 return "TouchInput KeyCode " + keyCode; 61 public static int touchHash(int keyCode){ [all...] |
KeyTrigger.java | 44 private final int keyCode; 47 * Create a new <code>KeyTrigger</code> for the given keycode. 49 * @param keyCode the code for the key, see constants in {@link KeyInput}. 51 public KeyTrigger(int keyCode){ 52 this.keyCode = keyCode; 56 return "KeyCode " + keyCode; 60 return keyCode; 63 public static int keyHash(int keyCode){ [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
EnglishInputProcessor.java | 33 int keyCode = event.getKeyCode(); 40 if (keyCode >= KeyEvent.KEYCODE_A && keyCode <= KeyEvent.KEYCODE_Z) { 41 keyChar = keyCode - KeyEvent.KEYCODE_A + 'a'; 45 } else if (keyCode >= KeyEvent.KEYCODE_0 46 && keyCode <= KeyEvent.KEYCODE_9) 47 keyChar = keyCode - KeyEvent.KEYCODE_0 + '0'; 48 else if (keyCode == KeyEvent.KEYCODE_COMMA) 50 else if (keyCode == KeyEvent.KEYCODE_PERIOD) 52 else if (keyCode == KeyEvent.KEYCODE_APOSTROPHE [all...] |
PinyinIME.java | 237 public boolean onKeyDown(int keyCode, KeyEvent event) { 239 return super.onKeyDown(keyCode, event); 243 public boolean onKeyUp(int keyCode, KeyEvent event) { 245 return super.onKeyUp(keyCode, event); 251 int keyCode = event.getKeyCode(); 254 if (KeyEvent.KEYCODE_SPACE == keyCode && event.isShiftPressed()) { 274 if (processFunctionKeys(keyCode, realAction)) { 279 if (keyCode >= KeyEvent.KEYCODE_A && keyCode <= KeyEvent.KEYCODE_Z) { 280 keyChar = keyCode - KeyEvent.KEYCODE_A + 'a' [all...] |
SkbTemplate.java | 28 int keyCode; 125 public void addDefaultKeyIcons(int keyCode, Drawable icon, 132 iconRecord.keyCode = keyCode; 137 if (mKeyIconRecords.get(pos).keyCode >= keyCode) break; 143 public Drawable getDefaultKeyIcon(int keyCode) { 148 if (iconRecord.keyCode < keyCode) { 152 if (iconRecord.keyCode == keyCode) [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/input/event/ |
KeyInputEvent.java | 44 private int keyCode; 49 public KeyInputEvent(int keyCode, char keyChar, boolean pressed, boolean repeating) { 50 this.keyCode = keyCode; 73 return keyCode; 105 String str = "Key(CODE="+keyCode;
|
TouchEvent.java | 55 * Virtual keyboard or hardware key event down, fields: keyCode, characters 59 * Virtual keyboard or hardware key event up, fields: keyCode, characters 101 private int keyCode; 127 keyCode = 0; 179 return keyCode; 182 public void setKeyCode(int keyCode) { 183 this.keyCode = keyCode;
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ContentViewClient.java | 56 int keyCode = event.getKeyCode(); 64 if (keyCode == KeyEvent.KEYCODE_MENU || 65 keyCode == KeyEvent.KEYCODE_HOME || 66 keyCode == KeyEvent.KEYCODE_BACK || 67 keyCode == KeyEvent.KEYCODE_CALL || 68 keyCode == KeyEvent.KEYCODE_ENDCALL || 69 keyCode == KeyEvent.KEYCODE_POWER || 70 keyCode == KeyEvent.KEYCODE_HEADSETHOOK || 71 keyCode == KeyEvent.KEYCODE_CAMERA || 72 keyCode == KeyEvent.KEYCODE_FOCUS | [all...] |
/cts/tests/src/android/text/method/cts/ |
TextMethodUtils.java | 47 for (int keyCode = KeyEvent.KEYCODE_A; keyCode <= KeyEvent.KEYCODE_Z; keyCode++) { 48 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 50 return keyCode;
|
/frameworks/support/v4/java/android/support/v4/media/ |
TransportPerformer.java | 115 * @param keyCode The code of the media key. 126 public boolean onMediaButtonDown(int keyCode, KeyEvent event) { 127 switch (keyCode) { 152 * @param keyCode The code of the media key. 163 public boolean onMediaButtonUp(int keyCode, KeyEvent event) { 188 int keyCode = 0; 193 keyCode = TransportMediator.KEYCODE_MEDIA_PAUSE; 196 if (keyCode != 0) { 198 onMediaButtonDown(keyCode, new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 0)) [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/speak_selection/ |
keycodes.js | 77 if (evt.keyCode >= 48 && evt.keyCode <= 90) { 78 tokens.push(String.fromCharCode(evt.keyCode)); 79 } else if (KEY_MAP[evt.keyCode]) { 80 tokens.push(KEY_MAP[evt.keyCode]); 89 keyCode: 83, // 's'
|
/frameworks/base/core/java/com/android/internal/app/ |
AlertActivity.java | 78 public boolean onKeyDown(int keyCode, KeyEvent event) { 79 if (mAlert.onKeyDown(keyCode, event)) return true; 80 return super.onKeyDown(keyCode, event); 84 public boolean onKeyUp(int keyCode, KeyEvent event) { 85 if (mAlert.onKeyUp(keyCode, event)) return true; 86 return super.onKeyUp(keyCode, event);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
AccessibleTabView.java | 41 public boolean onKeyDown(int keyCode, KeyEvent event) { 42 return FocusHelper.handleTabKeyEvent(this, keyCode, event) 43 || super.onKeyDown(keyCode, event); 47 public boolean onKeyUp(int keyCode, KeyEvent event) { 48 return FocusHelper.handleTabKeyEvent(this, keyCode, event) 49 || super.onKeyUp(keyCode, event);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
AccessibleTabView.java | 41 public boolean onKeyDown(int keyCode, KeyEvent event) { 42 return FocusHelper.handleTabKeyEvent(this, keyCode, event) 43 || super.onKeyDown(keyCode, event); 47 public boolean onKeyUp(int keyCode, KeyEvent event) { 48 return FocusHelper.handleTabKeyEvent(this, keyCode, event) 49 || super.onKeyUp(keyCode, event);
|
/external/droiddriver/src/com/google/android/droiddriver/actions/ |
PressKeyAction.java | 31 private final int keyCode; 36 public PressKeyAction(int keyCode) { 37 this(keyCode, 0L); 40 public PressKeyAction(int keyCode, long timeoutMillis) { 42 this.keyCode = keyCode; 48 KeyEvent downEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_DOWN, keyCode); 49 KeyEvent upEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_UP, keyCode); 56 return Objects.toStringHelper(this).addValue(KeyEvent.keyCodeToString(keyCode)).toString();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
HardwareKeyboardEventDecoder.java | 45 // The keyCode is the abstraction used by the KeyEvent to represent different keys that 48 final int keyCode = keyEvent.getKeyCode(); 49 if (KeyEvent.KEYCODE_DEL == keyCode) { 52 if (keyEvent.isPrintingKey() || KeyEvent.KEYCODE_SPACE == keyCode 53 || KeyEvent.KEYCODE_ENTER == keyCode) { 59 if (KeyEvent.KEYCODE_ENTER == keyCode) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowGallery.java | 15 public boolean onKeyDown(int keyCode, KeyEvent event) { 16 switch (keyCode) { 20 onKeyListener.onKey(gallery, keyCode, event);
|
/cts/tests/src/android/app/cts/ |
KeyguardManagerActivity.java | 30 public int keyCode; 54 public boolean onKeyDown(int keyCode, KeyEvent event) { 55 this.keyCode = keyCode; 56 if (keyCode == KeyEvent.KEYCODE_0 && mKeyLock != null) { 66 return super.onKeyDown(keyCode, event);
|
/packages/apps/Calculator/src/com/android/calculator2/ |
EventListener.java | 77 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { 80 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT || 81 keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) { 82 boolean eat = mHandler.eatHorizontalMove(keyCode == KeyEvent.KEYCODE_DPAD_LEFT); 87 if (action == KeyEvent.ACTION_MULTIPLE && keyCode == KeyEvent.KEYCODE_UNKNOWN) { 91 //Calculator.log("KEY " + keyCode + "; " + action); 100 if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER && 101 keyCode != KeyEvent.KEYCODE_DPAD_UP && 102 keyCode != KeyEvent.KEYCODE_DPAD_DOWN && 103 keyCode != KeyEvent.KEYCODE_ENTER) [all...] |
/packages/apps/Music/src/com/android/music/ |
RepeatingImageButton.java | 85 public boolean onKeyDown(int keyCode, KeyEvent event) { 86 switch (keyCode) { 91 super.onKeyDown(keyCode, event); 94 return super.onKeyDown(keyCode, event); 98 public boolean onKeyUp(int keyCode, KeyEvent event) { 99 switch (keyCode) { 109 return super.onKeyUp(keyCode, event);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
GalleryTest.java | 33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); 41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); 48 int keyCode; 52 public boolean onKey(View view, int keyCode, KeyEvent event) { 54 this.keyCode = keyCode;
|
/packages/apps/Mms/src/com/android/mms/ui/ |
WarnOfStorageLimitsActivity.java | 113 public boolean onKeyDown(int keyCode, KeyEvent event) { 114 if (mAlert.onKeyDown(keyCode, event)) return true; 115 return super.onKeyDown(keyCode, event); 119 public boolean onKeyUp(int keyCode, KeyEvent event) { 120 if (mAlert.onKeyUp(keyCode, event)) return true; 121 return super.onKeyUp(keyCode, event);
|
/development/samples/JetBoy/src/com/example/android/jetboy/ |
JetBoy.java | 135 public boolean onKeyDown(int keyCode, KeyEvent msg) { 136 if (keyCode == KeyEvent.KEYCODE_BACK) { 137 return super.onKeyDown(keyCode, msg); 139 return mJetBoyThread.doKeyDown(keyCode, msg); 147 public boolean onKeyUp(int keyCode, KeyEvent msg) { 148 if (keyCode == KeyEvent.KEYCODE_BACK) { 149 return super.onKeyUp(keyCode, msg); 151 return mJetBoyThread.doKeyUp(keyCode, msg);
|
/frameworks/av/include/media/ |
MediaMetadataRetrieverInterface.h | 41 virtual const char* extractMetadata(int keyCode) = 0; 53 virtual const char* extractMetadata(int keyCode) { return NULL; }
|
/frameworks/base/core/java/android/text/method/ |
KeyListener.java | 64 int keyCode, KeyEvent event); 72 int keyCode, KeyEvent event);
|