/packages/apps/Launcher2/src/com/android/launcher2/ |
HandleView.java | 74 private static boolean isDirectionKey(int keyCode) { 75 return keyCode == KeyEvent.KEYCODE_DPAD_DOWN || keyCode == KeyEvent.KEYCODE_DPAD_LEFT || 76 keyCode == KeyEvent.KEYCODE_DPAD_RIGHT || keyCode == KeyEvent.KEYCODE_DPAD_UP;
|
/external/webkit/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+%06X", windowsKeyCodeForKeyEvent(keyCode)); 213 PlatformKeyboardEvent::PlatformKeyboardEvent(int keyCode, UChar32 unichar, 218 , m_keyIdentifier(keyIdentifierForAndroidKeyCode(keyCode)) 220 , m_windowsVirtualKeyCode(windowsKeyCodeForKeyEvent(keyCode)) 221 , m_nativeVirtualKeyCode(keyCode)
|
/development/samples/BrowserPlugin/jni/form/ |
FormPlugin.h | 62 bool handleNavigation(ANPKeyCode keyCode); 63 void handleTextInput(TextInput* input, ANPKeyCode keyCode, int32_t unichar);
|
/external/webkit/WebKit/chromium/src/ |
WebInputEvent.cpp | 46 static const char* staticKeyIdentifiers(unsigned short keyCode) 48 switch (keyCode) {
|
/frameworks/base/core/java/android/text/method/ |
MovementMethod.java | 27 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); 28 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event);
|
/frameworks/base/include/media/ |
MediaMetadataRetrieverInterface.h | 39 virtual const char* extractMetadata(int keyCode) = 0; 72 virtual const char* extractMetadata(int keyCode) { return NULL; }
|
PVMetadataRetriever.h | 41 virtual const char* extractMetadata(int keyCode);
|
/frameworks/base/media/libmediaplayerservice/ |
MidiMetadataRetriever.h | 36 virtual const char* extractMetadata(int keyCode);
|
/development/simulator/app/ |
PhoneWindow.cpp | 116 int32_t keyCode = (*iter).GetKeyCode(); 117 GetDeviceManager()->SendKeyEvent(keyCode, false); 569 int32_t keyCode; 571 keyCode = ConvertKeyCode(event.GetKeyCode()); 572 if (keyCode != AKEYCODE_UNKNOWN) { 573 if (!IsKeyPressed(keyCode)) { 574 //printf("PW: down: key %d\n", keyCode); 575 GetDeviceManager()->SendKeyEvent(keyCode, true); 576 AddPressedKey(keyCode); 589 int32_t keyCode; [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/Phone/src/com/android/phone/ |
IccPanel.java | 86 public boolean onKeyDown(int keyCode, KeyEvent event) { 87 if (keyCode == KeyEvent.KEYCODE_BACK) { 91 return super.onKeyDown(keyCode, event);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
KeyguardViewBase.java | 88 * @param keyCode The wake key, which may be relevant for configuring the 91 abstract public void wakeWhenReadyTq(int keyCode); 142 final int keyCode = event.getKeyCode(); 144 switch (keyCode) { 180 keyCode == KeyEvent.KEYCODE_VOLUME_UP 190 switch (keyCode) {
|
ShortcutManager.java | 95 * Gets the shortcut intent for a given keycode+modifier. Make sure you 103 * @param keyCode The keycode of the key pushed. 108 public Intent getIntent(int keyCode, int modifiers) { 110 // First try the exact keycode (with modifiers) 111 int shortcut = kcm.get(keyCode, modifiers); 115 // Next try the keycode without modifiers (the primary character on that key) 116 shortcut = Character.toLowerCase(kcm.get(keyCode, 0));
|
/external/webkit/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);
|
/frameworks/base/core/java/android/view/ |
KeyCharacterMap.java | 108 public int get(int keyCode, int meta) 119 if (get_native(mPointer, keyCode, KeyEvent.META_SHIFT_ON) == 120 get_native(mPointer, keyCode, KeyEvent.META_ALT_ON)) { 125 int ret = get_native(mPointer, keyCode, meta); 140 public char getNumber(int keyCode) 142 return getNumber_native(mPointer, keyCode); 146 * The same as {@link #getMatch(int,char[],int) getMatch(keyCode, chars, 0)}. 148 public char getMatch(int keyCode, char[] chars) 150 return getMatch(keyCode, chars, 0); 154 * If one of the chars in the array can be generated by keyCode, [all...] |
/frameworks/base/core/jni/ |
android_view_KeyEvent.cpp | 70 jint keyCode = env->GetIntField(eventObj, gKeyEventClassInfo.mKeyCode); 77 event->initialize(deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, 82 static jboolean native_isSystemKey(JNIEnv* env, jobject clazz, jint keyCode) { 83 return KeyEvent::isSystemKey(keyCode); 86 static jboolean native_hasDefaultAction(JNIEnv* env, jobject clazz, jint keyCode) { 87 return KeyEvent::hasDefaultAction(keyCode);
|
/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 | 87 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 88 switch (keyCode) { 98 return super.onKeyDown(keyCode, event);
|
UnicodeChart.java | 102 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 103 switch (keyCode) { 117 return super.onKeyDown(keyCode, event);
|
/external/webkit/WebCore/platform/haiku/ |
PlatformKeyboardEventHaiku.cpp | 41 static String keyIdentifierForHaikuKeyCode(char singleByte, int keyCode) 46 switch (keyCode) { 108 return String::format("U+%04X", toASCIIUpper(keyCode));
|
/development/samples/BrowserPlugin/jni/navigation/ |
NavigationPlugin.h | 53 bool handleNavigation(ANPKeyCode keyCode);
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
SoftKeyboard.java | 300 private boolean translateKeyDown(int keyCode, KeyEvent event) { 302 keyCode, event); 337 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 338 switch (keyCode) { 370 if (keyCode == KeyEvent.KEYCODE_SPACE 390 if (mPredictionOn && translateKeyDown(keyCode, event)) { 396 return super.onKeyDown(keyCode, event); 404 @Override public boolean onKeyUp(int keyCode, KeyEvent event) { 411 keyCode, event); 415 return super.onKeyUp(keyCode, event) [all...] |
/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/core/java/com/android/internal/view/menu/ |
MenuDialogHelper.java | 89 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { 90 if (keyCode == KeyEvent.KEYCODE_MENU || keyCode == KeyEvent.KEYCODE_BACK) { 121 return mMenu.performShortcut(keyCode, event, 0);
|
/frameworks/base/media/libstagefright/include/ |
StagefrightMetadataRetriever.h | 40 virtual const char *extractMetadata(int keyCode);
|