/packages/inputmethods/OpenWnn/res/xml/ |
debug_tool_onevent.xml | 22 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase001_onEvent()_Q" displayValue = "Q" keyValue = "Q" keyCode= ""/> 23 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase002_onEvent()_W" displayValue = "W" keyValue = "W" keyCode= ""/> 24 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase003_onEvent()_E" displayValue = "E" keyValue = "E" keyCode= ""/> 25 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase004_onEvent()_R" displayValue = "R" keyValue = "R" keyCode= ""/> 26 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase005_onEvent()_T" displayValue = "T" keyValue = "T" keyCode= ""/> 27 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase006_onEvent()_Y" displayValue = "Y" keyValue = "Y" keyCode= ""/> 28 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase007_onEvent()_U" displayValue = "U" keyValue = "U" keyCode= ""/> 29 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase008_onEvent()_I" displayValue = "I" keyValue = "I" keyCode= ""/> 30 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase009_onEvent()_O" displayValue = "O" keyValue = "O" keyCode= ""/> 31 <key targetTest = "OpenWnnEN_Test" testName = "EN_TestCase010_onEvent()_P" displayValue = "P" keyValue = "P" 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...] |
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/replicaisland/src/com/replica/replicaisland/ |
InputKeyboard.java | 34 public void press(float currentTime, int keycode) { 35 assert keycode >= 0 && keycode < mKeys.length; 36 if (keycode >= 0 && keycode < mKeys.length){ 37 mKeys[keycode].press(currentTime, 1.0f); 41 public void release(int keycode) { 42 assert keycode >= 0 && keycode < mKeys.length; 43 if (keycode >= 0 && keycode < mKeys.length) [all...] |
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...] |
/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...] |
/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/skia/include/utils/android/ |
AndroidKeyToSkKey.h | 16 // Convert an Android keycode to an SkKey. This is an incomplete list, only 18 SkKey AndroidKeycodeToSkKey(int keycode) { 19 switch (keycode) {
|
/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);
|
/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...] |
/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...] |
/sdk/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);
|
/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 | 41 jfieldID keyCode; 116 jint keyCode, jint metaState) { 118 return map->getMap()->getCharacter(keyCode, metaState); 121 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jint ptr, jint keyCode, 126 bool result = map->getMap()->getFallbackAction(keyCode, metaState, &fallbackAction); 128 env->SetIntField(fallbackActionObj, gFallbackActionClassInfo.keyCode, 129 fallbackAction.keyCode); 136 static jchar nativeGetNumber(JNIEnv *env, jobject clazz, jint ptr, jint keyCode) { 138 return map->getMap()->getNumber(keyCode); 141 static jchar nativeGetMatch(JNIEnv *env, jobject clazz, jint ptr, jint keyCode, [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...] |
/frameworks/base/libs/androidfw/ |
KeyCharacterMap.cpp | 174 int32_t keyCode = overlay->mKeys.keyAt(i); 176 ssize_t oldIndex = map->mKeys.indexOfKey(keyCode); 181 map->mKeys.add(keyCode, new Key(*key)); 205 char16_t KeyCharacterMap::getDisplayLabel(int32_t keyCode) const { 208 if (getKey(keyCode, &key)) { 212 ALOGD("getDisplayLabel: keyCode=%d ~ Result %d.", keyCode, result); 217 char16_t KeyCharacterMap::getNumber(int32_t keyCode) const { 220 if (getKey(keyCode, &key)) { 224 ALOGD("getNumber: keyCode=%d ~ Result %d.", keyCode, result) [all...] |
/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...] |
/prebuilts/gcc/linux-x86/host/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...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/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...] |