/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
HardwareEventDecoder.java | 19 import android.view.KeyEvent; 25 public Event decodeHardwareKey(final KeyEvent keyEvent);
|
HardwareKeyboardEventDecoder.java | 20 import android.view.KeyEvent; 40 public Event decodeHardwareKey(final KeyEvent keyEvent) { 41 // KeyEvent#getUnicodeChar() does not exactly returns a unicode char, but rather a value 43 // hence the name "codePointAndFlags". {@see KeyEvent#getUnicodeChar()} for more info. 44 final int codePointAndFlags = keyEvent.getUnicodeChar(); 45 // The keyCode is the abstraction used by the KeyEvent to represent different keys that 48 final int keyCode = keyEvent.getKeyCode(); 49 if (KeyEvent.KEYCODE_DEL == keyCode) { 52 if (keyEvent.isPrintingKey() || KeyEvent.KEYCODE_SPACE == keyCod [all...] |
/external/chromium_org/third_party/WebKit/Source/core/editing/ |
EditorKeyBindings.cpp | 187 const PlatformKeyboardEvent* keyEvent = evt->keyEvent(); 188 if (!keyEvent) 208 if (keyEvent->shiftKey()) 210 if (keyEvent->altKey()) 212 if (keyEvent->ctrlKey()) 214 if (keyEvent->metaKey()) 217 if (keyEvent->type() == PlatformEvent::RawKeyDown) { 228 const PlatformKeyboardEvent* keyEvent = evt->keyEvent(); [all...] |
/external/chromium_org/chrome/test/functional/gtalk/ |
jsutils.js | 79 var keyEvent = element.ownerDocument.createEvent('TextEvent'); 80 keyEvent.initTextEvent('textInput', true, true, window, text); 81 element.dispatchEvent(keyEvent); 96 var keyEvent = element.ownerDocument.createEvent('Events'); 97 keyEvent.ctrlKey = Boolean(opt_ctrlKey); 98 keyEvent.shiftKey = Boolean(opt_shiftKey); 99 keyEvent.altKey = Boolean(opt_altKey); 100 keyEvent.metaKey = Boolean(opt_metaKey); 101 keyEvent.initEvent(eventType, true, true); 102 keyEvent.keyCode = keycode [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
DialerKeyListenerTest.java | 24 import android.view.KeyEvent; 36 final int[] events = { KeyEvent.KEYCODE_0, KeyEvent.KEYCODE_N, KeyEvent.KEYCODE_A }; 39 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, event); 40 int keyChar = keyEvent.getNumber(); 42 assertEquals(keyChar, mockDialerKeyListener.lookup(keyEvent, span)) [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicIntentReceiver.java | 23 import android.view.KeyEvent; 42 KeyEvent keyEvent = (KeyEvent) intent.getExtras().get(Intent.EXTRA_KEY_EVENT); 43 if (keyEvent.getAction() != KeyEvent.ACTION_DOWN) 46 switch (keyEvent.getKeyCode()) { 47 case KeyEvent.KEYCODE_HEADSETHOOK: 48 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: 51 case KeyEvent.KEYCODE_MEDIA_PLAY [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyKeyEvent.java | 25 import android.view.KeyEvent; 39 private KeyEvent mKeyEvent; 59 public MonkeyKeyEvent(KeyEvent e) { 96 return (getAction() == KeyEvent.ACTION_UP); 103 if (mAction == KeyEvent.ACTION_UP) { 119 KeyEvent keyEvent = mKeyEvent; 120 if (keyEvent == null) { 129 keyEvent = new KeyEvent(downTime, eventTime, mAction, mKeyCode [all...] |
/external/chromium/chrome/browser/ui/cocoa/ |
base_view.h | 30 - (void)keyEvent:(NSEvent *)theEvent;
|
/external/chromium_org/ui/base/cocoa/ |
base_view.h | 33 // Override these methods (mouseEvent, keyEvent) in a subclass. 36 // keyEvent should return kEventHandled if it handled the event, or 38 - (EventHandled)keyEvent:(NSEvent *)theEvent;
|
/packages/apps/Calculator/src/com/android/calculator2/ |
EventListener.java | 20 import android.view.KeyEvent; 77 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { 78 int action = keyEvent.getAction(); 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) { 93 if (keyEvent.getUnicodeChar() == '=') [all...] |
/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 101 KeyEvent* keyEvent = static_cast<KeyEvent*>(event); 103 EXPECT_EQ(deviceId, keyEvent->getDeviceId()); 104 EXPECT_EQ(source, keyEvent->getSource()); 105 EXPECT_EQ(action, keyEvent->getAction()); 106 EXPECT_EQ(flags, keyEvent->getFlags()); 107 EXPECT_EQ(keyCode, keyEvent->getKeyCode()); 108 EXPECT_EQ(scanCode, keyEvent->getScanCode()); 109 EXPECT_EQ(metaState, keyEvent->getMetaState()) [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
OpenWnnEvent.java | 19 import android.view.KeyEvent; 97 * This event processes a {@code keyEvent}. 104 * This event processes a {@code keyEvent}. 271 public KeyEvent keyEvent = null; 341 * Generate {@link OpenWnnEvent} from {@link KeyEvent} 347 public OpenWnnEvent(KeyEvent ev) { 348 if(ev.getAction() != KeyEvent.ACTION_UP){ 353 this.keyEvent = ev; 356 * Generate {@link OpenWnnEvent} from {@link KeyEvent} [all...] |
OpenWnnEN.java | 35 import android.view.KeyEvent; 411 onKeyUpEvent(ev.keyEvent); 467 KeyEvent keyEvent = ev.keyEvent; 469 if (keyEvent != null) { 470 keyCode = keyEvent.getKeyCode(); 474 mInputConnection.sendKeyEvent(keyEvent); 475 mInputConnection.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP [all...] |
OpenWnnJAJP.java | 36 import android.view.KeyEvent; 124 * Private area character code got by {@link KeyEvent#getUnicodeChar()}. 157 put(KeyEvent.KEYCODE_0, DefaultSoftKeyboard.KEYCODE_JP12_0); 158 put(KeyEvent.KEYCODE_1, DefaultSoftKeyboard.KEYCODE_JP12_1); 159 put(KeyEvent.KEYCODE_2, DefaultSoftKeyboard.KEYCODE_JP12_2); 160 put(KeyEvent.KEYCODE_3, DefaultSoftKeyboard.KEYCODE_JP12_3); 161 put(KeyEvent.KEYCODE_4, DefaultSoftKeyboard.KEYCODE_JP12_4); 162 put(KeyEvent.KEYCODE_5, DefaultSoftKeyboard.KEYCODE_JP12_5); 163 put(KeyEvent.KEYCODE_6, DefaultSoftKeyboard.KEYCODE_JP12_6); 164 put(KeyEvent.KEYCODE_7, DefaultSoftKeyboard.KEYCODE_JP12_7) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/photon/ |
SDL_ph_events.c | 115 PhKeyEvent_t* keyEvent; 343 keyEvent = PhGetData(phevent); 345 if (Pk_KF_Key_Down & keyEvent->key_flags) 348 if ((keyEvent->key_cap==Pk_Up) && (keyEvent->key_scan==0) && ((keyEvent->key_flags & Pk_KF_Scan_Valid)==Pk_KF_Scan_Valid)) 353 if ((keyEvent->key_cap==Pk_Down) && (keyEvent->key_scan==0) && ((keyEvent->key_flags & Pk_KF_Scan_Valid)==Pk_KF_Scan_Valid)) 358 posted = SDL_PrivateKeyboard(SDL_PRESSED, ph_TranslateKey(keyEvent, &keysym)) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/ |
EditableDialogCellEditor.java | 27 import org.eclipse.swt.events.KeyEvent; 91 public void keyPressed(KeyEvent e) { 367 * @param keyEvent the key event 370 protected void keyReleaseOccured(KeyEvent keyEvent) { 371 if (keyEvent.character == '\r') { // Return key 382 if ((keyEvent.stateMask & SWT.CTRL) != 0) { 383 super.keyReleaseOccured(keyEvent); 388 super.keyReleaseOccured(keyEvent);
|
/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...] |
/frameworks/base/media/java/android/media/ |
MediaFocusControl.java | 52 import android.view.KeyEvent; 729 * No-op if the key code for keyEvent is not a valid media key 730 * (see {@link #isValidMediaKeyEvent(KeyEvent)}) 731 * @param keyEvent the key event to send 733 protected void dispatchMediaKeyEvent(KeyEvent keyEvent) { 734 filterMediaKeyEvent(keyEvent, false /*needWakeLock*/); 738 * No-op if the key code for keyEvent is not a valid media key 739 * (see {@link #isValidMediaKeyEvent(KeyEvent)}) 740 * @param keyEvent the key event to sen [all...] |
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/ |
braille_display_private_api.h | 41 const api::braille_display_private::KeyEvent& keyEvent) OVERRIDE;
|
/external/chromium_org/chrome/browser/ui/cocoa/autofill/ |
autofill_input_field.h | 33 - (KeyEventHandled)keyEvent:(NSEvent*)event forInput:(id)sender;
|
/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
RichInputConnection.java | 22 import android.view.KeyEvent; 363 public void sendKeyEvent(final KeyEvent keyEvent) { 365 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { 373 switch (keyEvent.getKeyCode()) { 374 case KeyEvent.KEYCODE_ENTER: 378 case KeyEvent.KEYCODE_DEL: 390 case KeyEvent.KEYCODE_UNKNOWN: 391 if (null != keyEvent.getCharacters()) [all...] |
/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...] |
/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 35 private static final String EVENT_TYPE_KEY = "KeyEvent"; 169 if (event instanceof KeyEvent) { 170 final KeyEvent keyEvent = (KeyEvent)event; 171 onKeyEvent(keyEvent, nestingLevel); 193 public void onKeyEvent(KeyEvent event, int nestingLevel) { 206 case KeyEvent.ACTION_DOWN: { 225 case KeyEvent.ACTION_UP: { 234 case KeyEvent.ACTION_MULTIPLE [all...] |
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
SimpleMenu.java | 23 import android.view.KeyEvent; 188 public boolean performShortcut(int i, KeyEvent keyEvent, int i1) { 192 public boolean isShortcutKey(int i, KeyEvent keyEvent) {
|