/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
KeyMapDream.java | 19 import android.view.KeyEvent; 29 KeyEvent.KEYCODE_UNKNOWN, 30 KeyEvent.KEYCODE_SOFT_LEFT, 31 KeyEvent.KEYCODE_SOFT_RIGHT, 32 KeyEvent.KEYCODE_HOME, 33 KeyEvent.KEYCODE_BACK, 34 KeyEvent.KEYCODE_CALL, 35 KeyEvent.KEYCODE_ENDCALL, 36 KeyEvent.KEYCODE_0 | ('\uff09' << SHIFT_FWCH), // ) 37 KeyEvent.KEYCODE_1 | ('\uff01' << SHIFT_FWCH), // [all...] |
EnglishInputProcessor.java | 19 import android.view.KeyEvent; 27 private int mLastKeyCode = KeyEvent.KEYCODE_UNKNOWN; 29 public boolean processKey(InputConnection inputContext, KeyEvent event, 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 [all...] |
/frameworks/base/core/java/android/view/ |
KeyEvent.aidl | 1 /* //device/java/android/android.view.KeyEvent.aidl 20 parcelable KeyEvent;
|
FallbackEventHandler.java | 24 public void preDispatchKeyEvent(KeyEvent event); 25 public boolean dispatchKeyEvent(KeyEvent event);
|
/external/jmonkeyengine/engine/src/desktop/com/jme3/input/awt/ |
AwtKeyInput.java | 39 import java.awt.event.KeyEvent; 84 return KeyEvent.KEY_LAST+1; 105 public void keyTyped(KeyEvent evt) { 108 // KeyInputEvent keyEvent = new KeyInputEvent(code, evt.getKeyChar(), false, true); 109 // keyEvent.setTime(evt.getWhen()); 111 // eventQueue.add(keyEvent); 115 public void keyPressed(KeyEvent evt) { 117 KeyInputEvent keyEvent = new KeyInputEvent(code, evt.getKeyChar(), true, false); 118 keyEvent.setTime(evt.getWhen()); 120 eventQueue.add(keyEvent); [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
KeyEventTest.java | 25 import android.view.KeyEvent; 27 import android.view.KeyEvent.Callback; 32 * Test {@link KeyEvent}. 35 private KeyEvent mKeyEvent; 42 mKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); 49 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0) [all...] |
KeyCharacterMapTest.java | 23 import android.view.KeyEvent; 39 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_UNKNOWN)); 40 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_LEFT)); 41 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_RIGHT)); 42 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_HOME)); 43 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_BACK)); 44 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_CALL)); 45 assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_ENDCALL)); 47 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_0)); 48 assertTrue(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_1)) [all...] |
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
KeyUtils.java | 8 import android.view.KeyEvent; 18 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, 19 KeyEvent.KEYCODE_ENTER)); 20 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, 21 KeyEvent.KEYCODE_ENTER)); 29 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, 30 KeyEvent.KEYCODE_TAB)) [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
KeyUtils.java | 25 import android.view.KeyEvent; 48 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); 49 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); 61 final KeyEvent pushMenuKey = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU) [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardViewBase.java | 29 import android.view.KeyEvent; 96 public boolean dispatchKeyEvent(KeyEvent event) { 110 private boolean interceptMediaKey(KeyEvent event) { 112 if (event.getAction() == KeyEvent.ACTION_DOWN) { 114 case KeyEvent.KEYCODE_MEDIA_PLAY: 115 case KeyEvent.KEYCODE_MEDIA_PAUSE: 116 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: 127 case KeyEvent.KEYCODE_MUTE: 128 case KeyEvent.KEYCODE_HEADSETHOOK: 129 case KeyEvent.KEYCODE_MEDIA_STOP [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/util/ |
KeyNavigationUtil.java | 7 import android.view.KeyEvent; 25 public static boolean isGoDown(KeyEvent event) { 26 return isActionDown(event) && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_DOWN 27 || (!event.isNumLockOn() && event.getKeyCode() == KeyEvent.KEYCODE_NUMPAD_2)); 35 public static boolean isGoUp(KeyEvent event) { 36 return isActionDown(event) && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_UP 37 || (!event.isNumLockOn() && event.getKeyCode() == KeyEvent.KEYCODE_NUMPAD_8)); 45 public static boolean isGoRight(KeyEvent event) { 46 return isActionDown(event) && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_RIGHT 47 || (!event.isNumLockOn() && event.getKeyCode() == KeyEvent.KEYCODE_NUMPAD_6)) [all...] |
/external/chromium_org/ui/views/ime/ |
input_method_delegate.h | 11 class KeyEvent; 25 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) = 0;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
HardwareEventDecoder.java | 19 import android.view.KeyEvent; 25 public Event decodeHardwareKey(final KeyEvent keyEvent);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
KeyboardInterpreter.java | 19 import android.view.KeyEvent; 37 public boolean onKeyDown(int keyCode, KeyEvent event) { 42 case KeyEvent.KEYCODE_ENTER: 43 case KeyEvent.KEYCODE_DPAD_CENTER: 44 case KeyEvent.KEYCODE_ESCAPE: 49 case KeyEvent.KEYCODE_DPAD_RIGHT: 50 case KeyEvent.KEYCODE_L: 57 case KeyEvent.KEYCODE_DPAD_LEFT: 58 case KeyEvent.KEYCODE_H: 74 case KeyEvent.KEYCODE_ENTER [all...] |
/external/chromium_org/chrome/browser/chromeos/ |
keyboard_driven_event_rewriter.h | 11 class KeyEvent; 27 bool RewriteIfKeyboardDrivenOnLoginScreen(ui::KeyEvent* event); 30 bool RewriteForTesting(ui::KeyEvent* event); 33 bool RewriteEvent(ui::KeyEvent* event);
|
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
KeyEventCompatHoneycomb.java | 19 import android.view.KeyEvent; 26 return KeyEvent.normalizeMetaState(metaState); 30 return KeyEvent.metaStateHasModifiers(metaState, modifiers); 34 return KeyEvent.metaStateHasNoModifiers(metaState);
|
/cts/tests/tests/text/src/android/text/method/cts/ |
ArrowKeyMovementMethodTest.java | 30 import android.view.KeyEvent; 183 KeyEvent event = new KeyEvent(0, 0, KeyEvent.ACTION_UP, 184 KeyEvent.KEYCODE_DPAD_UP, 0, KeyEvent.META_ALT_ON | KeyEvent.META_SHIFT_ON); 186 KeyEvent.KEYCODE_DPAD_UP, event)); 194 event = new KeyEvent(0, 0, KeyEvent.ACTION_UP [all...] |
BaseKeyListenerTest.java | 27 import android.view.KeyEvent; 42 final KeyEvent delKeyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); 44 mockBaseKeyListener.backspace(mTextView, content, KeyEvent.KEYCODE_DEL, delKeyEvent); 49 mockBaseKeyListener.backspace(mTextView, content, KeyEvent.KEYCODE_DEL, delKeyEvent); 53 final KeyEvent altDelKeyEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN [all...] |
/external/chromium_org/chrome/test/chromedriver/ |
key_converter.h | 14 struct KeyEvent; 17 // Convenience functions for creating |KeyEvent|s. Used by unittests. 18 KeyEvent CreateKeyDownEvent(ui::KeyboardCode key_code, int modifiers); 19 KeyEvent CreateKeyUpEvent(ui::KeyboardCode key_code, int modifiers); 20 KeyEvent CreateCharEvent(const std::string& unmodified_text, 24 // Converts keys into appropriate |KeyEvent|s. This will do a best effort 32 std::list<KeyEvent>* key_events);
|
/frameworks/support/v4/java/android/support/v4/view/ |
KeyEventCompat.java | 19 import android.view.KeyEvent; 23 * Helper for accessing features in {@link KeyEvent} introduced after 34 public void startTracking(KeyEvent event); 35 public boolean isTracking(KeyEvent event); 37 public boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, 46 KeyEvent.META_SHIFT_ON | KeyEvent.META_SHIFT_LEFT_ON | KeyEvent.META_SHIFT_RIGHT_ON 47 | KeyEvent.META_ALT_ON | KeyEvent.META_ALT_LEFT_ON | KeyEvent.META_ALT_RIGHT_O [all...] |
/cts/tests/src/android/text/method/cts/ |
TextMethodUtils.java | 19 import android.view.KeyEvent; 47 for (int keyCode = KeyEvent.KEYCODE_A; keyCode <= KeyEvent.KEYCODE_Z; keyCode++) { 48 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
|
/frameworks/support/v4/eclair/android/support/v4/view/ |
KeyEventCompatEclair.java | 20 import android.view.KeyEvent; 28 public static boolean dispatch(KeyEvent event, KeyEvent.Callback receiver, Object state, 30 return event.dispatch(receiver, (KeyEvent.DispatcherState)state, target); 33 public static void startTracking(KeyEvent event) { 37 public static boolean isTracking(KeyEvent event) {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ContentViewClient.java | 13 import android.view.KeyEvent; 55 public boolean shouldOverrideKeyEvent(KeyEvent event) { 62 // Note that these are not the same set as KeyEvent.isSystemKey: 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 | [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ContactsFilterInstrumentation.java | 22 import android.view.KeyEvent; 60 sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_M)); 61 sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_M)); 62 sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A)) [all...] |
ContactsSelectInstrumentation.java | 23 import android.view.KeyEvent; 65 sendKeySync(new KeyEvent( 66 KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN)); 67 sendKeySync(new KeyEvent( 68 KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_DOWN)); 69 sendKeySync(new KeyEvent( 70 KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)) [all...] |