Home
last modified time | relevance | path

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

12345678910>>...20

/external/jmonkeyengine/engine/src/desktop/com/jme3/input/awt/
DAwtKeyInput.java39 import java.awt.event.KeyEvent;
84 return KeyEvent.KEY_LAST+1; in getKeyCount()
105 public void keyTyped(KeyEvent evt) { in keyTyped()
115 public void keyPressed(KeyEvent evt) { in keyPressed()
124 public void keyReleased(KeyEvent evt) { in keyReleased()
142 return KeyEvent.VK_ESCAPE; in convertJmeCode()
144 return KeyEvent.VK_1; in convertJmeCode()
146 return KeyEvent.VK_2; in convertJmeCode()
148 return KeyEvent.VK_3; in convertJmeCode()
150 return KeyEvent.VK_4; in convertJmeCode()
[all …]
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
DKeyUtils.java8 import android.view.KeyEvent;
18 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in pressEnter()
19 KeyEvent.KEYCODE_ENTER)); in pressEnter()
20 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in pressEnter()
21 KeyEvent.KEYCODE_ENTER)); in pressEnter()
29 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in pressTab()
30 KeyEvent.KEYCODE_TAB)); in pressTab()
31 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in pressTab()
32 KeyEvent.KEYCODE_TAB)); in pressTab()
40 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in pressBackspace()
[all …]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/util/
DKeyNavigationUtil.java7 import android.view.KeyEvent;
25 public static boolean isGoDown(KeyEvent event) { in isGoDown()
26 return isActionDown(event) && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_DOWN in isGoDown()
27 || (!event.isNumLockOn() && event.getKeyCode() == KeyEvent.KEYCODE_NUMPAD_2)); in isGoDown()
35 public static boolean isGoUp(KeyEvent event) { in isGoUp()
36 return isActionDown(event) && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_UP in isGoUp()
37 || (!event.isNumLockOn() && event.getKeyCode() == KeyEvent.KEYCODE_NUMPAD_8)); in isGoUp()
45 public static boolean isGoRight(KeyEvent event) { in isGoRight()
46 return isActionDown(event) && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_RIGHT in isGoRight()
47 || (!event.isNumLockOn() && event.getKeyCode() == KeyEvent.KEYCODE_NUMPAD_6)); in isGoRight()
[all …]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DContentViewClient.java13 import android.view.KeyEvent;
55 public boolean shouldOverrideKeyEvent(KeyEvent event) { in shouldOverrideKeyEvent()
64 if (keyCode == KeyEvent.KEYCODE_MENU || in shouldOverrideKeyEvent()
65 keyCode == KeyEvent.KEYCODE_HOME || in shouldOverrideKeyEvent()
66 keyCode == KeyEvent.KEYCODE_BACK || in shouldOverrideKeyEvent()
67 keyCode == KeyEvent.KEYCODE_CALL || in shouldOverrideKeyEvent()
68 keyCode == KeyEvent.KEYCODE_ENDCALL || in shouldOverrideKeyEvent()
69 keyCode == KeyEvent.KEYCODE_POWER || in shouldOverrideKeyEvent()
70 keyCode == KeyEvent.KEYCODE_HEADSETHOOK || in shouldOverrideKeyEvent()
71 keyCode == KeyEvent.KEYCODE_CAMERA || in shouldOverrideKeyEvent()
[all …]
DContentVideoView.java14 import android.view.KeyEvent;
406 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey()
407 boolean isKeyCodeSupported = keyCode != KeyEvent.KEYCODE_BACK && in onKey()
408 keyCode != KeyEvent.KEYCODE_VOLUME_UP && in onKey()
409 keyCode != KeyEvent.KEYCODE_VOLUME_DOWN && in onKey()
410 keyCode != KeyEvent.KEYCODE_VOLUME_MUTE && in onKey()
411 keyCode != KeyEvent.KEYCODE_CALL && in onKey()
412 keyCode != KeyEvent.KEYCODE_MENU && in onKey()
413 keyCode != KeyEvent.KEYCODE_SEARCH && in onKey()
414 keyCode != KeyEvent.KEYCODE_ENDCALL; in onKey()
[all …]
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DDesktop.java10 import android.view.KeyEvent;
74 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
75 boolean depressed = event.getAction() == KeyEvent.ACTION_DOWN; in dispatchKeyEvent()
78 case KeyEvent.KEYCODE_AT: in dispatchKeyEvent()
79 JniInterface.keyboardAction(KeyEvent.KEYCODE_SHIFT_LEFT, depressed); in dispatchKeyEvent()
80 JniInterface.keyboardAction(KeyEvent.KEYCODE_2, depressed); in dispatchKeyEvent()
82 case KeyEvent.KEYCODE_POUND: in dispatchKeyEvent()
83 JniInterface.keyboardAction(KeyEvent.KEYCODE_SHIFT_LEFT, depressed); in dispatchKeyEvent()
84 JniInterface.keyboardAction(KeyEvent.KEYCODE_3, depressed); in dispatchKeyEvent()
86 case KeyEvent.KEYCODE_STAR: in dispatchKeyEvent()
[all …]
/external/chromium_org/ui/events/
Devent_unittest.cc21 KeyEvent keyev(ET_KEY_PRESSED, VKEY_SPACE, 0, false); in TEST()
28 KeyEvent keyev(native_event, false); in TEST()
33 KeyEvent keyev(event, false); in TEST()
40 KeyEvent keyev1(ET_KEY_PRESSED, VKEY_RETURN, EF_CONTROL_DOWN, false); in TEST()
43 KeyEvent keyev2(ET_KEY_PRESSED, VKEY_RETURN, 0, false); in TEST()
50 KeyEvent keyev3(event, false); in TEST()
54 KeyEvent keyev4(event, false); in TEST()
101 TEST(EventTest, KeyEvent) { in TEST() argument
177 KeyEvent key(ET_KEY_PRESSED, in TEST()
187 KeyEvent key(ET_KEY_PRESSED, VKEY_UNKNOWN, EF_SHIFT_DOWN, false); in TEST()
[all …]
/external/chromium_org/ash/wm/
Dsticky_keys.h15 class KeyEvent; variable
70 bool HandleKeyEvent(ui::KeyEvent* event);
79 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
131 virtual void DispatchKeyEvent(ui::KeyEvent* event,
162 bool HandleKeyEvent(ui::KeyEvent* event);
185 KeyEventType TranslateKeyEvent(ui::KeyEvent* event);
188 bool HandleDisabledState(ui::KeyEvent* event);
191 bool HandleEnabledState(ui::KeyEvent* event);
194 bool HandleLockedState(ui::KeyEvent* event);
206 void AppendModifier(ui::KeyEvent* event);
[all …]
Dsticky_keys_unittest.cc46 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE { in OnKeyEvent()
47 events_.push_back(new ui::KeyEvent(*event)); in OnKeyEvent()
82 virtual void DispatchKeyEvent(ui::KeyEvent* event, in DispatchKeyEvent()
95 events_.push_back(new ui::KeyEvent(*event)); in DispatchKeyEvent()
164 ui::KeyEvent* GenerateKey(bool is_key_press, ui::KeyboardCode code) { in GenerateKey()
169 ui::KeyEvent* event = new ui::KeyEvent(scoped_xevent_, false); in GenerateKey()
222 ui::KeyEvent* GenerateSynthesizedKeyEvent( in GenerateSynthesizedKeyEvent()
224 ui::KeyEvent* event = new ui::KeyEvent( in GenerateSynthesizedKeyEvent()
246 scoped_ptr<ui::KeyEvent> ev; in SendActivateStickyKeyPattern()
255 scoped_ptr<ui::KeyEvent> ev; in SendActivateStickyKeyPattern()
[all …]
/external/robolectric/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/chromium/chrome/browser/ui/cocoa/
Dnsmenuitem_additions_unittest.mm15 NSEvent* KeyEvent(const NSUInteger modifierFlags, function
96 key = KeyEvent(0x100, @"a", @"a", 0);
99 ExpectKeyDoesntFireItem(KeyEvent(0x20102, @"A", @"A", 0), item);
102 key = KeyEvent(0x100, @"a", @"a", 0);
108 key = KeyEvent(0x20102, @"A", @"A", 0);
111 ExpectKeyDoesntFireItem(KeyEvent(0x100, @"a", @"a", 0), item);
114 key = KeyEvent(0x1a012a, @"\u00c5", @"A", 0);
119 key = KeyEvent(0x18012a, @"\u00e5", @"a", 0);
124 key = KeyEvent(0x100110, @"=", @"=", 0x18);
129 key = KeyEvent(0x12010a, @"=", @"+", 0x18);
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/
Dnsmenuitem_additions_unittest.mm15 NSEvent* KeyEvent(const NSUInteger modifierFlags, function
96 key = KeyEvent(0x100, @"a", @"a", 0);
99 ExpectKeyDoesntFireItem(KeyEvent(0x20102, @"A", @"A", 0), item);
102 key = KeyEvent(0x100, @"a", @"a", 0);
108 key = KeyEvent(0x20102, @"A", @"A", 0);
111 ExpectKeyDoesntFireItem(KeyEvent(0x100, @"a", @"a", 0), item);
114 key = KeyEvent(0x1a012a, @"\u00c5", @"A", 0);
119 key = KeyEvent(0x18012a, @"\u00e5", @"a", 0);
124 key = KeyEvent(0x100110, @"=", @"=", 0x18);
129 key = KeyEvent(0x12010a, @"=", @"+", 0x18);
[all …]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DImeAdapter.java10 import android.view.KeyEvent;
180 if ((metaState & KeyEvent.META_SHIFT_ON) != 0) { in getModifiers()
183 if ((metaState & KeyEvent.META_ALT_ON) != 0) { in getModifiers()
186 if ((metaState & KeyEvent.META_CTRL_ON) != 0) { in getModifiers()
189 if ((metaState & KeyEvent.META_CAPS_LOCK_ON) != 0) { in getModifiers()
192 if ((metaState & KeyEvent.META_NUM_LOCK_ON) != 0) { in getModifiers()
294 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
301 if (text.equals("\n")) return KeyEvent.KEYCODE_ENTER; in shouldSendKeyEventWithKeyCode()
302 else if (text.equals("\t")) return KeyEvent.KEYCODE_TAB; in shouldSendKeyEventWithKeyCode()
308 translateAndSendNativeEvents(new KeyEvent(eventTime, eventTime, in sendKeyEventWithKeyCode()
[all …]
/external/chromium_org/chrome/browser/ui/ash/
Devent_rewriter.h59 void RewriteForTesting(ui::KeyEvent* event);
84 ui::KeyEvent* event) OVERRIDE;
122 bool TopRowKeysAreFunctionKeys(ui::KeyEvent* event) const;
159 void Rewrite(ui::KeyEvent* event);
163 bool RewriteModifiers(ui::KeyEvent* event);
168 bool RewriteFnKey(ui::KeyEvent* event);
172 bool RewriteNumPadKeys(ui::KeyEvent* event);
188 bool RewriteExtendedKeys(ui::KeyEvent* event);
193 bool RewriteFunctionKeys(ui::KeyEvent* event);
199 void OverwriteEvent(ui::KeyEvent* event,
/external/chromium_org/chrome/test/chromedriver/
Dkey_converter_unittest.cc19 KeyEvent expected_events[], in CheckEvents()
24 std::list<KeyEvent> events; in CheckEvents()
29 std::list<KeyEvent>::const_iterator it = events.begin(); in CheckEvents()
44 KeyEvent expected_events[], in CheckEventsReleaseModifiers()
51 KeyEvent expected_events[], in CheckEventsReleaseModifiers()
61 std::list<KeyEvent> events; in CheckNonShiftChar()
66 std::list<KeyEvent>::const_iterator it = events.begin(); in CheckNonShiftChar()
81 std::list<KeyEvent> events; in CheckShiftChar()
86 std::list<KeyEvent>::const_iterator it = events.begin(); in CheckShiftChar()
104 KeyEvent event_array[] = { in TEST()
[all …]
Dkey_converter.h14 struct KeyEvent;
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,
32 std::list<KeyEvent>* key_events);
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DContentViewCoreDpadTest.java9 import android.view.KeyEvent;
25 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
55 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER); in testDpadCenterBringsUpIme()
/external/droiddriver/src/com/google/android/droiddriver/actions/
DPressKeyAction.java20 import android.view.KeyEvent;
48 KeyEvent downEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_DOWN, keyCode); in perform()
49 KeyEvent upEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_UP, keyCode); in perform()
56 return Objects.toStringHelper(this).addValue(KeyEvent.keyCodeToString(keyCode)).toString(); in toString()
DTypeAction.java27 import android.view.KeyEvent;
54 KeyEvent[] events = KEY_CHAR_MAP.getEvents(text.toCharArray()); in perform()
58 for (KeyEvent event : events) { in perform()
64 KeyEvent modifiedEvent = KeyEvent.changeTimeRepeat(event, SystemClock.uptimeMillis(), 0); in perform()
/external/chromium_org/ui/base/ime/
Dinput_method_ibus.h44 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE;
61 virtual void ProcessKeyEventPostIME(const ui::KeyEvent& event,
85 void ProcessFilteredKeyPressEvent(const ui::KeyEvent& event);
88 void ProcessUnfilteredKeyPressEvent(const ui::KeyEvent& event);
92 void ProcessInputMethodResult(const ui::KeyEvent& event, bool filtered);
107 bool ExecuteCharacterComposer(const ui::KeyEvent& event);
120 void ProcessKeyEventDone(uint32 id, ui::KeyEvent* event, bool is_handled);
/external/chromium_org/chrome/browser/chromeos/
Dkeyboard_driven_event_rewriter.h11 class KeyEvent; variable
27 bool RewriteIfKeyboardDrivenOnLoginScreen(ui::KeyEvent* event);
30 bool RewriteForTesting(ui::KeyEvent* event);
33 bool RewriteEvent(ui::KeyEvent* event);
/external/chromium_org/remoting/client/plugin/
Dnormalizing_input_filter_cros.cc100 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE { in InjectKeyEvent()
117 void ProcessKeyDown(const protocol::KeyEvent& event) { in ProcessKeyDown()
156 void ProcessKeyUp(const protocol::KeyEvent& event) { in ProcessKeyUp()
161 deferred_keydown_event_ = protocol::KeyEvent(); in ProcessKeyUp()
179 deferred_keydown_event_ = protocol::KeyEvent(); in SwitchRewritingKeyToModifying()
186 protocol::KeyEvent deferred_keydown_event_;
/external/robolectric/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/chromium_org/chrome/test/chromedriver/chrome/
Dui_events.cc31 KeyEvent::KeyEvent(KeyEventType type, in KeyEvent() function in KeyEvent
42 KeyEvent::~KeyEvent() {} in ~KeyEvent()
/external/robolectric/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()

12345678910>>...20