/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...] |
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/webkit/Tools/DumpRenderTree/qt/ |
TextInputControllerQt.cpp | 45 int keycode = 0; local 48 keycode = Qt::Key_Left; 50 keycode = Qt::Key_Down; 53 keycode = Qt::Key_Down; 55 keycode = Qt::Key_Right; 58 keycode = Qt::Key_Right; 60 keycode = Qt::Key_Left; 63 keycode = Qt::Key_Left; 65 keycode = Qt::Key_Right; 68 keycode = Qt::Key_Right [all...] |
/external/webkit/Source/WebCore/manual-tests/qt/ |
numpad-enter-key.html | 7 out.innerHTML = 'keyCode: ' + e.keyCode + ' (should be 13)'; 8 if (e.keyCode == 13)
|
/external/qemu/distrib/sdl-1.2.12/src/video/dga/ |
SDL_dgaevents.c | 41 extern SDLKey X11_TranslateKeycode(Display *display, KeyCode kc); 80 KeyCode keycode; local 84 keycode = xkey.keycode; 86 printf("KeyPress (X11 keycode = 0x%X)\n", xkey.keycode); 89 keysym.scancode = keycode; 90 keysym.sym = X11_TranslateKeycode(DGA_Display, keycode); 116 KeyCode keycode local [all...] |
/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);
|
FolderEditText.java | 29 public boolean onKeyPreIme(int keyCode, KeyEvent event) { 34 return super.onKeyPreIme(keyCode, event);
|
/external/qemu/ |
curses.c | 166 int chr, nextchr, keysym, keycode; local 206 keycode = curses2keycode[chr]; 207 if (keycode == -1) 211 if (keycode == 1) { 215 keycode = curses2keycode[nextchr]; 217 if (keycode == -1) 220 keycode |= ALT; 223 if (keycode >= QEMU_KEY_CONSOLE0 && 224 keycode < QEMU_KEY_CONSOLE0 + 9) { 227 console_select(keycode - QEMU_KEY_CONSOLE0) 304 int i, keycode, keysym; local [all...] |
keymaps.c | 2 * QEMU keysym to keycode conversion using rdesktop keymaps 129 int keycode = strtol(rest, &rest2, 0); local 132 add_to_key_range(&k->keypad_range, keycode); 134 //fprintf(stderr, "keypad keysym %04x keycode %d\n", keysym, keycode); 137 /* if(keycode&0x80) 138 keycode=(keycode<<8)^0x80e0; */ 140 //fprintf(stderr,"Setting keysym %s (%d) to %d\n",line,keysym,keycode); 141 k->keysym2keycode[keysym] = keycode; [all...] |
/external/skia/include/utils/android/ |
AndroidKeyToSkKey.h | 23 // Convert an Android keycode to an SkKey. This is an incomplete list, only 25 SkKey AndroidKeycodeToSkKey(int keycode) { 26 switch (keycode) {
|
/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);
|
/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/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...] |
/development/tools/emulator/opengl/tests/event_injector/ |
EventInjector.cpp | 68 void EventInjector::sendKeyDown( int keycode ) 70 emulatorConsole_sendKey(mPrivate->mConsole, keycode, 1); 73 void EventInjector::sendKeyUp( int keycode ) 75 emulatorConsole_sendKey(mPrivate->mConsole, keycode, 0);
|
EventInjector.h | 36 void sendKeyDown( int keycode ); 37 void sendKeyUp( int keycode ); 39 /* Keycode values expected by the Linux kernel, and the emulator */
|
/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/base/core/jni/ |
android_view_KeyCharacterMap.cpp | 33 jfieldID keyCode; 58 jint keyCode, jint metaState) { 60 return map->getCharacter(keyCode, metaState); 63 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jint ptr, jint keyCode, 68 bool result = map->getFallbackAction(keyCode, metaState, &fallbackAction); 70 env->SetIntField(fallbackActionObj, gFallbackActionClassInfo.keyCode, 71 fallbackAction.keyCode); 78 static jchar nativeGetNumber(JNIEnv *env, jobject clazz, jint ptr, jint keyCode) { 80 return map->getNumber(keyCode); 83 static jchar nativeGetMatch(JNIEnv *env, jobject clazz, jint ptr, jint keyCode, [all...] |
/frameworks/base/libs/ui/ |
KeyCharacterMap.cpp | 142 char16_t KeyCharacterMap::getDisplayLabel(int32_t keyCode) const { 145 if (getKey(keyCode, &key)) { 149 LOGD("getDisplayLabel: keyCode=%d ~ Result %d.", keyCode, result); 154 char16_t KeyCharacterMap::getNumber(int32_t keyCode) const { 157 if (getKey(keyCode, &key)) { 161 LOGD("getNumber: keyCode=%d ~ Result %d.", keyCode, result); 166 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const { 170 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) [all...] |
/external/quake/src/com/android/quake/ |
QuakeView.java | 78 public boolean onKeyDown(int keyCode, KeyEvent event) { 79 if (!weWantThisKeyCode(keyCode)) { 80 return super.onKeyDown(keyCode, event); 82 switch (keyCode) { 93 keyCodeToQuakeCode(keyCode)); 98 public boolean onKeyUp(int keyCode, KeyEvent event) { 99 if (!weWantThisKeyCode(keyCode)) { 100 return super.onKeyUp(keyCode, event); 102 switch (keyCode) { 112 keyCodeToQuakeCode(keyCode)); [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
CallLogActivity.java | 62 public boolean onKeyDown(int keyCode, KeyEvent event) { 63 switch (keyCode) { 78 return super.onKeyDown(keyCode, event); 82 public boolean onKeyUp(int keyCode, KeyEvent event) { 83 switch (keyCode) { 99 return super.onKeyUp(keyCode, event);
|
/external/webkit/Tools/DumpRenderTree/mac/ |
EventSendingController.mm | 575 unsigned short keyCode = 0; 579 keyCode = 0x7B; 583 keyCode = 0x7C; 587 keyCode = 0x7E; 591 keyCode = 0x7D; 595 keyCode = 0x74; 599 keyCode = 0x79; 603 keyCode = 0x73; 607 keyCode = 0x77; 611 keyCode = 0x72 [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/X11/extensions/ |
XKBproto.h | 37 #define KeyCode CARD8 276 KeyCode key; 305 KeyCode firstKeySym; 307 KeyCode firstKeyAct; 309 KeyCode firstKeyBehavior; 312 KeyCode firstKeyExplicit; 314 KeyCode firstModMapKey; 316 KeyCode firstVModMapKey; 328 KeyCode minKeyCode; 329 KeyCode maxKeyCode 1100 KeyCode keycode; member in struct:_xkbStateNotify 1118 KeyCode keycode; member in struct:_xkbControlsNotify 1209 KeyCode keycode; member in struct:_xkbActionMessage 1227 KeyCode keycode; member in struct:_xkbAccessXNotify [all...] |
/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);
|
/external/chromium/chrome/browser/chromeos/ |
system_key_event_listener.cc | 97 int32 keycode = xevent->xkey.keycode; local 98 if (keycode) { 101 if ((keycode == listener->key_f8_) || 102 (keycode == listener->key_volume_mute_)) { 103 if (keycode == listener->key_f8_) 107 } else if ((keycode == listener->key_f9_) || 108 keycode == listener->key_volume_down_) { 109 if (keycode == listener->key_f9_) 113 } else if ((keycode == listener->key_f10_) | [all...] |
/external/qemu/android/protocol/ |
user-events-protocol.h | 24 /* Keycode event. */ 46 /* Formats keycode event message (AUSER_EVENT_KEYCODE) */ 48 int keycode; member in struct:UserEventKeycode
|