HomeSort by relevance Sort by last modified time
    Searched full:keyevent (Results 1 - 25 of 1406) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
  /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...]
  /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/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...]
  /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...]
  /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...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowGallery.java 3 import android.view.KeyEvent;
15 public boolean onKeyDown(int keyCode, KeyEvent event) {
17 case KeyEvent.KEYCODE_DPAD_RIGHT:
18 case KeyEvent.KEYCODE_DPAD_LEFT:
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
GalleryTest.java 3 import android.view.KeyEvent;
20 private KeyEvent event;
27 event = new KeyEvent(1, 2);
32 assertTrue(gallery.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, event));
33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT));
40 assertTrue(gallery.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, event));
41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT));
49 KeyEvent event;
52 public boolean onKey(View view, int keyCode, KeyEvent event) {
  /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...]
  /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/base/policy/src/com/android/internal/policy/impl/
PhoneFallbackEventHandler.java 36 import android.view.KeyEvent;
58 public void preDispatchKeyEvent(KeyEvent event) {
62 public boolean dispatchKeyEvent(KeyEvent event) {
67 if (action == KeyEvent.ACTION_DOWN) {
74 boolean onKeyDown(int keyCode, KeyEvent event) {
79 final KeyEvent.DispatcherState dispatcher = mView.getKeyDispatcherState();
82 case KeyEvent.KEYCODE_VOLUME_UP:
83 case KeyEvent.KEYCODE_VOLUME_DOWN:
84 case KeyEvent.KEYCODE_VOLUME_MUTE: {
90 case KeyEvent.KEYCODE_MEDIA_PLAY
    [all...]
  /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...]
  /frameworks/base/core/jni/
android_view_KeyEvent.h 26 class KeyEvent;
28 /* Obtains an instance of a DVM KeyEvent object as a copy of a native KeyEvent instance.
30 extern jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event);
32 /* Copies the contents of a DVM KeyEvent object to a native KeyEvent instance.
35 KeyEvent* event);
37 /* Recycles a DVM KeyEvent object.
  /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...]
  /packages/apps/Music/tests/src/com/android/music/stress/
AlbumsPlaybackStress.java 28 import android.view.KeyEvent;
64 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT);
65 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_RIGHT);
66 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
67 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
68 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
70 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
71 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
73 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN);
74 inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER)
    [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...]
  /frameworks/base/core/tests/coretests/src/android/widget/gridview/
GridScrollListenerTest.java 24 import android.view.KeyEvent;
65 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN);
72 inst.sendCharacterSync(KeyEvent.KEYCODE_SPACE);
78 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
79 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON);
80 KeyEvent up = new KeyEvent(0, 0, KeyEvent.ACTION_UP,
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/listview/
ListScrollListenerTest.java 23 import android.view.KeyEvent;
64 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN);
70 inst.sendCharacterSync(KeyEvent.KEYCODE_SPACE);
75 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
76 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON);
77 KeyEvent up = new KeyEvent(0, 0, KeyEvent.ACTION_UP,
    [all...]
  /frameworks/base/docs/html/training/keyboard-input/
commands.jd 24 from the {@link android.view.KeyEvent.Callback} interface, such as {@link
25 android.view.KeyEvent.Callback#onKeyDown onKeyDown()} and {@link
26 android.view.KeyEvent.Callback#onKeyMultiple onKeyMultiple()}.</p>
30 {@link android.view.KeyEvent.Callback} interface, so you
35 android.view.KeyEvent} class and related APIs, you should expect that such keyboard
53 public boolean onKeyUp(int keyCode, KeyEvent event) {
55 case KeyEvent.KEYCODE_D:
58 case KeyEvent.KEYCODE_F:
61 case KeyEvent.KEYCODE_J:
64 case KeyEvent.KEYCODE_K
    [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);

Completed in 4380 milliseconds

1 2 3 4 5 6 7 8 91011>>