Home
last modified time | relevance | path

Searched refs:KeyEvent (Results 1 – 25 of 86) sorted by relevance

1234

/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DTerminalKeyListener.java24 import android.view.KeyEvent;
102 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey()
109 if (event.getAction() == KeyEvent.ACTION_UP) { in onKey()
121 if (keyCode == KeyEvent.KEYCODE_ALT_RIGHT && (metaState & META_SLASH) != 0) { in onKey()
125 } else if (keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT && (metaState & META_TAB) != 0) { in onKey()
131 if (keyCode == KeyEvent.KEYCODE_ALT_LEFT && (metaState & META_SLASH) != 0) { in onKey()
135 } else if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT && (metaState & META_TAB) != 0) { in onKey()
145 if (keyCode == KeyEvent.KEYCODE_BACK && transport != null) { in onKey()
151 if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { in onKey()
154 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { in onKey()
[all …]
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/
DLwjglAWTInput.java63 class KeyEvent { class in LwjglAWTInput
90 Pool<KeyEvent> usedKeyEvents = new Pool<KeyEvent>(16, 1000) {
91 protected KeyEvent newObject () {
92 return new KeyEvent();
103 List<KeyEvent> keyEvents = new ArrayList<KeyEvent>();
328 KeyEvent e = keyEvents.get(i); in processEvents()
331 case KeyEvent.KEY_DOWN: in processEvents()
336 case KeyEvent.KEY_UP: in processEvents()
339 case KeyEvent.KEY_TYPED: in processEvents()
551 public void keyPressed (java.awt.event.KeyEvent e) { in keyPressed()
[all …]
DLwjglInput.java63 List<KeyEvent> keyEvents = new ArrayList<KeyEvent>();
80 Pool<KeyEvent> usedKeyEvents = new Pool<KeyEvent>(16, 1000) {
81 protected KeyEvent newObject () {
82 return new KeyEvent();
308 KeyEvent e = keyEvents.get(i); in processEvents()
311 case KeyEvent.KEY_DOWN: in processEvents()
314 case KeyEvent.KEY_UP: in processEvents()
317 case KeyEvent.KEY_TYPED: in processEvents()
864 KeyEvent event = usedKeyEvents.obtain(); in updateKeyboard()
867 event.type = KeyEvent.KEY_TYPED; in updateKeyboard()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DMediaButtonCallback.java22 import android.view.KeyEvent;
32 private void handleKeyEvent(KeyEvent event) { in handleKeyEvent()
36 if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY) { in handleKeyEvent()
38 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PAUSE) { in handleKeyEvent()
40 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE) { in handleKeyEvent()
42 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP) { in handleKeyEvent()
44 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_NEXT) { in handleKeyEvent()
46 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PREVIOUS) { in handleKeyEvent()
48 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_FAST_FORWARD) { in handleKeyEvent()
50 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_REWIND) { in handleKeyEvent()
[all …]
DMediaSessionFacade.java32 import android.view.KeyEvent;
130 keyCode = KeyEvent.KEYCODE_MEDIA_PLAY; in mediaDispatchMediaKeyEvent()
132 keyCode = KeyEvent.KEYCODE_MEDIA_PAUSE; in mediaDispatchMediaKeyEvent()
134 keyCode = KeyEvent.KEYCODE_MEDIA_STOP; in mediaDispatchMediaKeyEvent()
136 keyCode = KeyEvent.KEYCODE_MEDIA_NEXT; in mediaDispatchMediaKeyEvent()
138 keyCode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; in mediaDispatchMediaKeyEvent()
140 keyCode = KeyEvent.KEYCODE_MEDIA_FAST_FORWARD; in mediaDispatchMediaKeyEvent()
142 keyCode = KeyEvent.KEYCODE_MEDIA_REWIND; in mediaDispatchMediaKeyEvent()
147 KeyEvent keyDown = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in mediaDispatchMediaKeyEvent()
148 KeyEvent keyUp = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in mediaDispatchMediaKeyEvent()
/external/droiddriver/src/io/appium/droiddriver/actions/
DSingleKeyAction.java22 import android.view.KeyEvent;
37 public static final SingleKeyAction MENU = new SingleKeyAction(KeyEvent.KEYCODE_MENU);
38 public static final SingleKeyAction SEARCH = new SingleKeyAction(KeyEvent.KEYCODE_SEARCH);
39 public static final SingleKeyAction BACK = new SingleKeyAction(KeyEvent.KEYCODE_BACK);
40 public static final SingleKeyAction DELETE = new SingleKeyAction(KeyEvent.KEYCODE_DEL);
44 KeyEvent.KEYCODE_MOVE_HOME, KeyEvent.META_CTRL_LEFT_ON);
48 KeyEvent.KEYCODE_MOVE_END, KeyEvent.META_CTRL_LEFT_ON);
84 : KeyEvent.keyCodeToString(keyCode); in toString()
DTextAction.java23 import android.view.KeyEvent;
61 KeyEvent[] events = KEY_CHAR_MAP.getEvents(text.toCharArray());
65 for (KeyEvent event : events) {
71 KeyEvent modifiedEvent = KeyEvent.changeTimeRepeat(event, SystemClock.uptimeMillis(), 0);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DGalleryTest.java3 import android.view.KeyEvent;
20 private KeyEvent event;
27 event = new KeyEvent(1, 2); in setUp()
32 assertTrue(gallery.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, event)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight()
33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight()
40 assertTrue(gallery.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, event)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener()
41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener()
49 KeyEvent event;
52 public boolean onKey(View view, int keyCode, KeyEvent event) { in onKey()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/
DTransliteratorInputMethod.java22 import java.awt.event.KeyEvent;
373 case KeyEvent.KEY_TYPED: { in dispatchEvent()
375 KeyEvent ke = (KeyEvent)event; in dispatchEvent()
387 case KeyEvent.KEY_PRESSED: { in dispatchEvent()
389 KeyEvent ke = (KeyEvent)event; in dispatchEvent()
397 case KeyEvent.KEY_RELEASED: { in dispatchEvent()
399 KeyEvent ke = (KeyEvent)event; in dispatchEvent()
400 if (ke.getKeyCode() == KeyEvent.VK_SPACE && ke.isControlDown()) { in dispatchEvent()
627 case KeyEvent.VK_PAGE_UP: in handlePressed()
628 case KeyEvent.VK_UP: in handlePressed()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/input/
DRemoteInput.java56 class KeyEvent { class in RemoteInput
81 KeyEvent keyEvent;
83 public EventTrigger (TouchEvent touchEvent, KeyEvent keyEvent) { in EventTrigger()
119 case KeyEvent.KEY_DOWN: in run()
128 case KeyEvent.KEY_UP: in run()
135 case KeyEvent.KEY_TYPED: in run()
153 if (keyEvent.type == KeyEvent.KEY_DOWN) { in run()
161 if (keyEvent.type == KeyEvent.KEY_UP) { in run()
244 KeyEvent keyEvent = null; in run()
267 keyEvent = new KeyEvent(); in run()
[all …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/indic/
DIndicInputMethod.java12 import java.awt.event.KeyEvent;
58 if (event instanceof KeyEvent) { in dispatchEvent()
59 KeyEvent keyEvent = (KeyEvent) event; in dispatchEvent()
60 if (event.getID() == KeyEvent.KEY_TYPED) { in dispatchEvent()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowGallery.java3 import android.view.KeyEvent;
15 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown()
17 case KeyEvent.KEYCODE_DPAD_RIGHT: in onKeyDown()
18 case KeyEvent.KEYCODE_DPAD_LEFT: in onKeyDown()
/external/droiddriver/src/io/appium/droiddriver/util/
DEvents.java25 import android.view.KeyEvent;
76 private static KeyEvent newKeyEvent(long downTime, long eventTime, int action, int keyCode, in newKeyEvent()
78 KeyEvent event = new KeyEvent(downTime, eventTime, action, keyCode, 0 /* repeat */, metaState); in newKeyEvent()
125 KeyEvent downEvent = newKeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, metaState); in keyDown()
132 newKeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, keyCode, metaState)); in keyUp()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestWindow.java9 import android.view.KeyEvent;
86 @Override public void openPanel(int featureId, KeyEvent event) { in openPanel()
92 @Override public void togglePanel(int featureId, KeyEvent event) { in togglePanel()
95 …@Override public boolean performPanelShortcut(int featureId, int keyCode, KeyEvent event, int flag… in performPanelShortcut()
136 @Override public boolean superDispatchKeyEvent(KeyEvent event) { in superDispatchKeyEvent()
172 @Override public boolean isShortcutKey(int keyCode, KeyEvent event) { in isShortcutKey()
190 @Override public boolean superDispatchKeyShortcutEvent(KeyEvent event) { in superDispatchKeyShortcutEvent()
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
DAndroidInput.java59 static class KeyEvent { class in AndroidInput
86 Pool<KeyEvent> usedKeyEvents = new Pool<KeyEvent>(16, 1000) {
87 protected KeyEvent newObject () {
88 return new KeyEvent();
102 ArrayList<KeyEvent> keyEvents = new ArrayList();
352 KeyEvent e = keyEvents.get(i); in processEvents()
355 case KeyEvent.KEY_DOWN: in processEvents()
360 case KeyEvent.KEY_UP: in processEvents()
363 case KeyEvent.KEY_TYPED: in processEvents()
476 public boolean onKey (View v, int keyCode, android.view.KeyEvent e) { in onKey()
[all …]
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/surfaceview/
DGLSurfaceView20.java27 import android.view.KeyEvent;
95 sendDownUpKeyEventForBackwardCompatibility(KeyEvent.KEYCODE_DEL); in onCreateInputConnection()
105 super.sendKeyEvent(new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, code, 0, 0, in onCreateInputConnection()
106 …KeyCharacterMap.VIRTUAL_KEYBOARD, 0, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE)); in onCreateInputConnection()
107 …super.sendKeyEvent(new KeyEvent(SystemClock.uptimeMillis(), eventTime, KeyEvent.ACTION_UP, code, 0… in onCreateInputConnection()
108 …KeyCharacterMap.VIRTUAL_KEYBOARD, 0, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE)); in onCreateInputConnection()
DGLSurfaceView20API18.java27 import android.view.KeyEvent;
87 sendDownUpKeyEventForBackwardCompatibility(KeyEvent.KEYCODE_DEL); in onCreateInputConnection()
97 super.sendKeyEvent(new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, code, 0, 0, in onCreateInputConnection()
98 …KeyCharacterMap.VIRTUAL_KEYBOARD, 0, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE)); in onCreateInputConnection()
99 …super.sendKeyEvent(new KeyEvent(SystemClock.uptimeMillis(), eventTime, KeyEvent.ACTION_UP, code, 0… in onCreateInputConnection()
100 …KeyCharacterMap.VIRTUAL_KEYBOARD, 0, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE)); in onCreateInputConnection()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/
DNumberPickerButton.java21 import android.view.KeyEvent;
63 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp()
64 if ((keyCode == KeyEvent.KEYCODE_DPAD_CENTER) || (keyCode == KeyEvent.KEYCODE_ENTER)) { in onKeyUp()
/external/skia/platform_tools/android/apps/visualbenchsdl/src/main/java/org/libsdl/app/
DSDLActivity.java300 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
308 if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || in dispatchKeyEvent()
309 keyCode == KeyEvent.KEYCODE_VOLUME_UP || in dispatchKeyEvent()
310 keyCode == KeyEvent.KEYCODE_CAMERA || in dispatchKeyEvent()
913 mapping.put(KeyEvent.KEYCODE_ENTER, button); in onCreateDialog()
957 public boolean onKey(DialogInterface d, int keyCode, KeyEvent event) { in onCreateDialog()
960 if (event.getAction() == KeyEvent.ACTION_UP) { in onCreateDialog()
1191 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey()
1198 if (event.getAction() == KeyEvent.ACTION_DOWN) { in onKey()
1202 } else if (event.getAction() == KeyEvent.ACTION_UP) { in onKey()
[all …]
/external/droiddriver/src/io/appium/droiddriver/instrumentation/
DInstrumentationInputInjector.java21 import android.view.KeyEvent;
38 } else if (event instanceof KeyEvent) { in injectInputEvent()
39 instrumentation.sendKeySync((KeyEvent) event); in injectInputEvent()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/
DOISKeyboard.h183 class _OISExport KeyEvent : public EventArg
186 KeyEvent(Object* obj, KeyCode kc, unsigned int txt) : EventArg(obj), key(kc), text(txt) {} in KeyEvent() function
187 virtual ~KeyEvent() {} in ~KeyEvent()
203 virtual bool keyPressed(const KeyEvent &arg) = 0;
204 virtual bool keyReleased(const KeyEvent &arg) = 0;
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
DDumbTextComponent.java27 import java.awt.event.KeyEvent;
183 public void keyPressed(KeyEvent e) { in keyPressed()
193 case KeyEvent.VK_Q: in keyPressed()
198 case KeyEvent.VK_V: in keyPressed()
206 case KeyEvent.VK_C: in keyPressed()
210 case KeyEvent.VK_X: in keyPressed()
219 case KeyEvent.VK_A: in keyPressed()
224 case KeyEvent.VK_RIGHT: in keyPressed()
230 case KeyEvent.VK_LEFT: in keyPressed()
236 case KeyEvent.VK_UP: // LIU: Add support for up arrow in keyPressed()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DKeyboardConfigDialogPreference.java28 import android.view.KeyEvent;
95 mLeftKeyCode = mSharedPrefs.getInt(mLeftPrefKey, KeyEvent.KEYCODE_DPAD_LEFT); in onBindDialogView()
96 mRightKeyCode = mSharedPrefs.getInt(mRightPrefKey, KeyEvent.KEYCODE_DPAD_RIGHT); in onBindDialogView()
97 mJumpKeyCode = mSharedPrefs.getInt(mJumpPrefKey, KeyEvent.KEYCODE_SPACE); in onBindDialogView()
98 mAttackKeyCode = mSharedPrefs.getInt(mAttackPrefKey, KeyEvent.KEYCODE_SHIFT_LEFT); in onBindDialogView()
211 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey()
DInputGameInterface.java19 import android.view.KeyEvent;
43 private int mLeftKeyCode = KeyEvent.KEYCODE_DPAD_LEFT;
44 private int mRightKeyCode = KeyEvent.KEYCODE_DPAD_RIGHT;
45 private int mJumpKeyCode = KeyEvent.KEYCODE_SPACE;
46 private int mAttackKeyCode = KeyEvent.KEYCODE_SHIFT_LEFT;
226 final InputButton clickButton = keys[KeyEvent.KEYCODE_DPAD_CENTER]; // special case in update()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/mac/
DCocoaKeyboard.h45 Cocoa_KeyStackEvent( KeyEvent event, MacEventType type ) : Event(event), Type(type) {}
47 const KeyEvent event() { return Event; }
50 KeyEvent Event;

1234