/packages/apps/Phone/src/com/android/phone/ |
DTMFTwelveKeyDialerView.java | 70 int keyCode = event.getKeyCode(); 72 switch (keyCode) { 75 return event.isDown() ? mDialer.onKeyDown(keyCode, event) : 76 mDialer.onKeyUp(keyCode, event);
|
IccPanel.java | 86 public boolean onKeyDown(int keyCode, KeyEvent event) { 87 if (keyCode == KeyEvent.KEYCODE_BACK) { 91 return super.onKeyDown(keyCode, event);
|
/external/skia/legacy/src/animator/ |
SkDisplayEvents.cpp | 51 int keyCode = state ? state->fCode : 0; 60 if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) 62 evt->fLastCode = (SkKey) keyCode; 98 int keyCode = state ? state->fCode : 0; 105 if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode)
|
/external/skia/src/animator/ |
SkDisplayEvents.cpp | 51 int keyCode = state ? state->fCode : 0; 60 if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) 62 evt->fLastCode = (SkKey) keyCode; 98 int keyCode = state ? state->fCode : 0; 105 if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode)
|
/frameworks/base/core/java/android/text/method/ |
MetaKeyKeyListener.java | 266 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) { 267 if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT) { 272 if (keyCode == KeyEvent.KEYCODE_ALT_LEFT || keyCode == KeyEvent.KEYCODE_ALT_RIGHT 273 || keyCode == KeyEvent.KEYCODE_NUM) { 278 if (keyCode == KeyEvent.KEYCODE_SYM) { 321 public boolean onKeyUp(View view, Editable content, int keyCode, KeyEvent event) { 322 if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT) [all...] |
BaseKeyListener.java | 48 public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) { 49 return backspaceOrForwardDelete(view, content, keyCode, event, false); 60 public boolean forwardDelete(View view, Editable content, int keyCode, KeyEvent event) { 61 return backspaceOrForwardDelete(view, content, keyCode, event, true); 64 private boolean backspaceOrForwardDelete(View view, Editable content, int keyCode, 151 int keyCode, KeyEvent event) { 153 switch (keyCode) { 155 handled = backspace(view, content, keyCode, event); 158 handled = forwardDelete(view, content, keyCode, event); 169 return super.onKeyDown(view, content, keyCode, event) [all...] |
MovementMethod.java | 37 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); 38 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
GlobalKeyManager.java | 49 private static final String ATTR_KEY_CODE = "keyCode"; 62 * Broadcasts an intent if the keycode is part of the global key mapping. 65 * @param keyCode keyCode which triggered this function 69 boolean handleGlobalKey(Context context, int keyCode, KeyEvent event) { 71 ComponentName component = mKeyMapping.get(keyCode); 86 boolean shouldHandleGlobalKey(int keyCode, KeyEvent event) { 87 return mKeyMapping.get(keyCode) != null; 106 int keyCode = KeyEvent.keyCodeFromString(keyCodeName); 107 if (keyCode != KeyEvent.KEYCODE_UNKNOWN) [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
KeyboardInterpreter.java | 37 public boolean onKeyDown(int keyCode, KeyEvent event) { 41 switch (keyCode) { 66 if (DEBUG) Log.d(TAG, "dropped unexpected: " + keyCode); 73 switch (keyCode) { 112 if (DEBUG) Log.d(TAG, "dropped unexpected: " + keyCode);
|
/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...] |
/external/webkit/Source/WebCore/platform/android/ |
KeyEventAndroid.cpp | 41 static int windowsKeyCodeForKeyEvent(unsigned int keyCode) 44 switch (keyCode) { 169 static String keyIdentifierForAndroidKeyCode(int keyCode) 173 switch (keyCode) { 194 sprintf(upper, "U+%04X", windowsKeyCodeForKeyEvent(keyCode)); 213 PlatformKeyboardEvent::PlatformKeyboardEvent(int keyCode, UChar32 unichar, 218 , m_keyIdentifier(keyIdentifierForAndroidKeyCode(keyCode)) 220 , m_windowsVirtualKeyCode(windowsKeyCodeForKeyEvent(keyCode)) 221 , m_nativeVirtualKeyCode(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...] |
/frameworks/base/core/java/android/webkit/ |
PluginFullScreenHolder.java | 100 public boolean onKeyDown(int keyCode, KeyEvent event) { 102 return super.onKeyDown(keyCode, event); 104 mWebView.onKeyDown(keyCode, event); 110 public boolean onKeyUp(int keyCode, KeyEvent event) { 112 return super.onKeyUp(keyCode, event); 114 mWebView.onKeyUp(keyCode, event);
|
/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/Source/WebKit/chromium/src/ |
WebInputEvent.cpp | 46 static const char* staticKeyIdentifiers(unsigned short keyCode) 48 switch (keyCode) {
|
/packages/apps/Camera/src/com/android/camera/ |
CameraModule.java | 49 public boolean onKeyDown(int keyCode, KeyEvent event); 51 public boolean onKeyUp(int keyCode, KeyEvent event);
|
/packages/apps/Gallery2/src/com/android/camera/ |
CameraModule.java | 49 public boolean onKeyDown(int keyCode, KeyEvent event); 51 public boolean onKeyUp(int keyCode, KeyEvent event);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
FolderEditText.java | 29 public boolean onKeyPreIme(int keyCode, KeyEvent event) { 34 return super.onKeyPreIme(keyCode, event);
|
/external/webkit/Source/WebCore/platform/haiku/ |
PlatformKeyboardEventHaiku.cpp | 43 static String keyIdentifierForHaikuKeyCode(char singleByte, int keyCode) 48 switch (keyCode) { 113 static int windowsKeyCodeForKeyEvent(char singleByte, int keyCode) 117 switch (keyCode) {
|
/frameworks/base/core/java/android/view/ |
KeyCharacterMap.java | 291 private static native char nativeGetCharacter(int ptr, int keyCode, int metaState); 292 private static native boolean nativeGetFallbackAction(int ptr, int keyCode, int metaState, 294 private static native char nativeGetNumber(int ptr, int keyCode); 295 private static native char nativeGetMatch(int ptr, int keyCode, char[] chars, int metaState); 296 private static native char nativeGetDisplayLabel(int ptr, int keyCode); 362 * @param keyCode The key code. 366 public int get(int keyCode, int metaState) { 368 char ch = nativeGetCharacter(mPtr, keyCode, metaState); 389 * @param keyCode The key code. 395 public FallbackAction getFallbackAction(int keyCode, int metaState) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
GridDelete.java | 55 public boolean onKeyDown(int keyCode, KeyEvent event) { 56 if (keyCode == KeyEvent.KEYCODE_DEL) { 61 return super.onKeyDown(keyCode, event);
|
/packages/apps/Browser/src/com/android/browser/ |
ActivityController.java | 50 boolean onKeyDown(int keyCode, KeyEvent event); 52 boolean onKeyLongPress(int keyCode, KeyEvent event); 54 boolean onKeyUp(int keyCode, KeyEvent event);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageListView.java | 37 public boolean onKeyShortcut(int keyCode, KeyEvent event) { 38 switch (keyCode) { 54 return super.onKeyShortcut(keyCode, event);
|
/frameworks/base/include/androidfw/ |
KeyCharacterMap.h | 67 int32_t keyCode; 90 char16_t getDisplayLabel(int32_t keyCode) const; 96 char16_t getNumber(int32_t keyCode) const; 101 char16_t getCharacter(int32_t keyCode, int32_t metaState) const; 107 bool getFallbackAction(int32_t keyCode, int32_t metaState, 114 char16_t getMatch(int32_t keyCode, const char16_t* chars, 152 /* The fallback keycode if the key is not handled. */ 225 bool getKey(int32_t keyCode, const Key** outKey) const; 226 bool getKeyBehavior(int32_t keyCode, int32_t metaState, 235 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) [all...] |
/external/webkit/Source/WebKit/chromium/tests/ |
KeyboardTest.cpp | 66 char keyCode, 69 keyboardEvent->windowsKeyCode = keyCode; 72 keyboardEvent->text[0] = keyCode; 76 // Like interpretKeyEvent, but with pressing down OSModifier+|keyCode|. 79 const char* interpretOSModifierKeyPress(char keyCode) 87 setupKeyDownEvent(&keyboardEvent, keyCode, osModifier); 91 // Like interpretKeyEvent, but with pressing down ctrl+|keyCode|. 92 const char* interpretCtrlKeyPress(char keyCode) 95 setupKeyDownEvent(&keyboardEvent, keyCode, WebInputEvent::ControlKey);
|