/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
D | KeyUtils.java | 8 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/ |
D | KeyNavigationUtil.java | 7 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/ |
D | ContentViewClient.java | 12 import android.view.KeyEvent; 54 public boolean shouldOverrideKeyEvent(KeyEvent event) { in shouldOverrideKeyEvent() 61 keyCode == KeyEvent.KEYCODE_TAB || in shouldOverrideKeyEvent() 62 keyCode == KeyEvent.KEYCODE_W || in shouldOverrideKeyEvent() 63 keyCode == KeyEvent.KEYCODE_F4)) { in shouldOverrideKeyEvent() 196 if (keyCode == KeyEvent.KEYCODE_MENU || in shouldPropagateKey() 197 keyCode == KeyEvent.KEYCODE_HOME || in shouldPropagateKey() 198 keyCode == KeyEvent.KEYCODE_BACK || in shouldPropagateKey() 199 keyCode == KeyEvent.KEYCODE_CALL || in shouldPropagateKey() 200 keyCode == KeyEvent.KEYCODE_ENDCALL || in shouldPropagateKey() [all …]
|
/external/chromium_org/ui/events/ |
D | event_unittest.cc | 21 KeyEvent keyev(ET_KEY_PRESSED, VKEY_SPACE, EF_NONE); in TEST() 28 KeyEvent keyev(native_event); in TEST() 33 KeyEvent keyev(event); in TEST() 40 KeyEvent keyev1(ET_KEY_PRESSED, VKEY_RETURN, EF_CONTROL_DOWN); in TEST() 43 KeyEvent keyev2(ET_KEY_PRESSED, VKEY_RETURN, EF_NONE); in TEST() 50 KeyEvent keyev3(event); in TEST() 54 KeyEvent keyev4(event); in TEST() 163 TEST(EventTest, KeyEvent) { in TEST() argument 239 KeyEvent key(ET_KEY_PRESSED, in TEST() 248 KeyEvent key(0x1234U, ui::VKEY_UNKNOWN, ui::EF_NONE); in TEST() [all …]
|
D | event.cc | 118 return scoped_ptr<Event>(new KeyEvent(static_cast<const KeyEvent&>(event))); in Clone() 579 KeyEvent* KeyEvent::last_key_event_ = NULL; 582 bool KeyEvent::IsRepeated(const KeyEvent& event) { in IsRepeated() 600 last_key_event_ = new KeyEvent(event); in IsRepeated() 610 last_key_event_ = new KeyEvent(event); in IsRepeated() 614 KeyEvent::KeyEvent(const base::NativeEvent& native_event) in KeyEvent() function in ui::KeyEvent 636 KeyEvent::KeyEvent(EventType type, in KeyEvent() function in ui::KeyEvent 646 KeyEvent::KeyEvent(EventType type, in KeyEvent() function in ui::KeyEvent 658 KeyEvent::KeyEvent(base::char16 character, KeyboardCode key_code, int flags) in KeyEvent() function in ui::KeyEvent 667 KeyEvent::KeyEvent(const KeyEvent& rhs) in KeyEvent() function in ui::KeyEvent [all …]
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
D | Desktop.java | 13 import android.view.KeyEvent; 200 KeyEvent.KEYCODE_CTRL_LEFT, in onOptionsItemSelected() 201 KeyEvent.KEYCODE_ALT_LEFT, in onOptionsItemSelected() 202 KeyEvent.KEYCODE_FORWARD_DEL, in onOptionsItemSelected() 225 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() 229 if (keyCode == KeyEvent.KEYCODE_BACK) { in dispatchKeyEvent() 240 if (event.getAction() == KeyEvent.ACTION_MULTIPLE) { in dispatchKeyEvent() 245 boolean pressed = event.getAction() == KeyEvent.ACTION_DOWN; in dispatchKeyEvent() 249 int unicode = keyCode != KeyEvent.KEYCODE_ENTER ? event.getUnicodeChar() : 0; in dispatchKeyEvent() 268 case KeyEvent.KEYCODE_AT: in dispatchKeyEvent() [all …]
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/input/ |
D | ImeTest.java | 16 import android.view.KeyEvent; 355 KeyEvent ev = ImeAdapter.getTypedKeyEventGuess(before, after); in getTypedKeycodeGuess() 364 assertEquals(KeyEvent.KEYCODE_X, getTypedKeycodeGuess(null, "x")); in testGuessedKeyCodeFromTyping() 368 assertEquals(KeyEvent.KEYCODE_DEL, getTypedKeycodeGuess("abc", "")); in testGuessedKeyCodeFromTyping() 370 assertEquals(KeyEvent.KEYCODE_H, getTypedKeycodeGuess("", "h")); in testGuessedKeyCodeFromTyping() 371 assertEquals(KeyEvent.KEYCODE_DEL, getTypedKeycodeGuess("h", "")); in testGuessedKeyCodeFromTyping() 372 assertEquals(KeyEvent.KEYCODE_E, getTypedKeycodeGuess("h", "he")); in testGuessedKeyCodeFromTyping() 373 assertEquals(KeyEvent.KEYCODE_L, getTypedKeycodeGuess("he", "hel")); in testGuessedKeyCodeFromTyping() 374 assertEquals(KeyEvent.KEYCODE_O, getTypedKeycodeGuess("hel", "helo")); in testGuessedKeyCodeFromTyping() 375 assertEquals(KeyEvent.KEYCODE_DEL, getTypedKeycodeGuess("helo", "hel")); in testGuessedKeyCodeFromTyping() [all …]
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
D | GamepadMappings.java | 7 import android.view.KeyEvent; 44 float a = rawButtons[KeyEvent.KEYCODE_BUTTON_A]; in mapCommonXYABButtons() 45 float b = rawButtons[KeyEvent.KEYCODE_BUTTON_B]; in mapCommonXYABButtons() 46 float x = rawButtons[KeyEvent.KEYCODE_BUTTON_X]; in mapCommonXYABButtons() 47 float y = rawButtons[KeyEvent.KEYCODE_BUTTON_Y]; in mapCommonXYABButtons() 56 float start = rawButtons[KeyEvent.KEYCODE_BUTTON_START]; in mapCommonStartSelectMetaButtons() 57 float select = rawButtons[KeyEvent.KEYCODE_BUTTON_SELECT]; in mapCommonStartSelectMetaButtons() 58 float mode = rawButtons[KeyEvent.KEYCODE_BUTTON_MODE]; in mapCommonStartSelectMetaButtons() 65 float thumbL = rawButtons[KeyEvent.KEYCODE_BUTTON_THUMBL]; in mapCommonThumbstickButtons() 66 float thumbR = rawButtons[KeyEvent.KEYCODE_BUTTON_THUMBR]; in mapCommonThumbstickButtons() [all …]
|
D | ImeAdapter.java | 16 import android.view.KeyEvent; 226 if ((metaState & KeyEvent.META_SHIFT_ON) != 0) { in getModifiers() 229 if ((metaState & KeyEvent.META_ALT_ON) != 0) { in getModifiers() 232 if ((metaState & KeyEvent.META_CTRL_ON) != 0) { in getModifiers() 235 if ((metaState & KeyEvent.META_CAPS_LOCK_ON) != 0) { in getModifiers() 238 if ((metaState & KeyEvent.META_NUM_LOCK_ON) != 0) { in getModifiers() 340 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() 347 if (text.equals("\n")) return KeyEvent.KEYCODE_ENTER; in shouldSendKeyEventWithKeyCode() 348 else if (text.equals("\t")) return KeyEvent.KEYCODE_TAB; in shouldSendKeyEventWithKeyCode() 357 private static KeyEvent androidKeyEventForCharacter(char chr) { in androidKeyEventForCharacter() [all …]
|
D | AdapterInputConnection.java | 13 import android.view.KeyEvent; 256 ImeAdapter.sEventTypeRawKeyDown, timeStampMs, KeyEvent.KEYCODE_TAB, 0, 0); in performEditorAction() 258 mImeAdapter.sendKeyEventWithKeyCode(KeyEvent.KEYCODE_ENTER, in performEditorAction() 259 KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE in performEditorAction() 260 | KeyEvent.FLAG_EDITOR_ACTION); in performEditorAction() 343 int keyCode = KeyEvent.KEYCODE_UNKNOWN; in deleteSurroundingText() 345 keyCode = KeyEvent.KEYCODE_DEL; in deleteSurroundingText() 347 keyCode = KeyEvent.KEYCODE_FORWARD_DEL; in deleteSurroundingText() 350 if (keyCode == KeyEvent.KEYCODE_UNKNOWN) { in deleteSurroundingText() 358 keyCode, KeyEvent.FLAG_SOFT_KEYBOARD | KeyEvent.FLAG_KEEP_TOUCH_MODE); in deleteSurroundingText() [all …]
|
/external/droiddriver/src/com/google/android/droiddriver/actions/ |
D | SingleKeyAction.java | 21 import android.view.KeyEvent; 38 public static final SingleKeyAction MENU = new SingleKeyAction(KeyEvent.KEYCODE_MENU); 39 public static final SingleKeyAction SEARCH = new SingleKeyAction(KeyEvent.KEYCODE_SEARCH); 40 public static final SingleKeyAction BACK = new SingleKeyAction(KeyEvent.KEYCODE_BACK); 41 public static final SingleKeyAction DELETE = new SingleKeyAction(KeyEvent.KEYCODE_DEL); 62 KeyEvent downEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_DOWN, keyCode); in perform() 63 KeyEvent upEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_UP, keyCode); in perform() 72 : KeyEvent.keyCodeToString(keyCode); in toString()
|
D | TextAction.java | 22 import android.view.KeyEvent; 59 KeyEvent[] events = KEY_CHAR_MAP.getEvents(text.toCharArray()); 63 for (KeyEvent event : events) { 69 KeyEvent modifiedEvent = KeyEvent.changeTimeRepeat(event, SystemClock.uptimeMillis(), 0);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | GalleryTest.java | 3 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_org/chrome/browser/ui/cocoa/ |
D | nsmenuitem_additions_unittest.mm | 15 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/test/chromedriver/ |
D | key_converter_unittest.cc | 19 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 …]
|
D | key_converter.h | 14 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/ash/accelerators/ |
D | key_hold_detector.h | 13 class KeyEvent; variable 29 virtual bool ShouldProcessEvent(const ui::KeyEvent* event) const = 0; 32 virtual bool IsStartEvent(const ui::KeyEvent* event) const = 0; 35 virtual void OnKeyHold(const ui::KeyEvent* event) = 0; 38 virtual void OnKeyUnhold(const ui::KeyEvent* event) = 0; 45 virtual void OnKeyEvent(ui::KeyEvent* key_event) OVERRIDE;
|
D | magnifier_key_scroller.h | 14 class KeyEvent; variable 42 virtual bool ShouldProcessEvent(const ui::KeyEvent* event) const OVERRIDE; 43 virtual bool IsStartEvent(const ui::KeyEvent* event) const OVERRIDE; 44 virtual void OnKeyHold(const ui::KeyEvent* event) OVERRIDE; 45 virtual void OnKeyUnhold(const ui::KeyEvent* event) OVERRIDE;
|
D | spoken_feedback_toggler.h | 14 class KeyEvent; variable 42 virtual bool ShouldProcessEvent(const ui::KeyEvent* event) const OVERRIDE; 43 virtual bool IsStartEvent(const ui::KeyEvent* event) const OVERRIDE; 44 virtual void OnKeyHold(const ui::KeyEvent* event) OVERRIDE; 45 virtual void OnKeyUnhold(const ui::KeyEvent* event) OVERRIDE;
|
/external/chromium_org/ash/sticky_keys/ |
D | sticky_keys_controller.h | 18 class KeyEvent; variable 90 ui::EventRewriteStatus RewriteKeyEvent(const ui::KeyEvent& event, 116 bool HandleKeyEvent(const ui::KeyEvent& event, 194 bool HandleKeyEvent(const ui::KeyEvent& event, 237 bool HandleDisabledState(const ui::KeyEvent& event, 242 bool HandleEnabledState(const ui::KeyEvent& event, 249 bool HandleLockedState(const ui::KeyEvent& event, 272 scoped_ptr<ui::KeyEvent> modifier_up_event_;
|
/external/chromium_org/ui/base/ime/ |
D | input_method_chromeos.h | 35 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE; 51 virtual void ProcessKeyEventPostIME(const ui::KeyEvent& event, 75 void ProcessFilteredKeyPressEvent(const ui::KeyEvent& event); 78 void ProcessUnfilteredKeyPressEvent(const ui::KeyEvent& event); 82 void ProcessInputMethodResult(const ui::KeyEvent& event, bool filtered); 100 bool ExecuteCharacterComposer(const ui::KeyEvent& event); 113 void ProcessKeyEventDone(uint32 id, ui::KeyEvent* event, bool is_handled);
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/appmenu/ |
D | AppMenuTest.java | 10 import android.view.KeyEvent; 195 pressKey(KeyEvent.KEYCODE_ENTER); in hitEnterAndAssertAppMenuDismissed() 210 pressKey(towardsTop ? KeyEvent.KEYCODE_DPAD_UP : KeyEvent.KEYCODE_DPAD_DOWN); in moveToBoundary() 223 pressKey(towardsTop ? KeyEvent.KEYCODE_DPAD_UP : KeyEvent.KEYCODE_DPAD_DOWN); in moveToBoundary() 242 view.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, keycode)); in pressKey() 243 view.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, keycode)); in pressKey()
|
/external/chromium_org/remoting/client/plugin/ |
D | normalizing_input_filter_cros.h | 29 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; 33 void ProcessKeyDown(const protocol::KeyEvent& event); 34 void ProcessKeyUp(const protocol::KeyEvent& event); 42 protocol::KeyEvent deferred_keydown_event_;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowGallery.java | 3 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/ui/events/ozone/ |
D | events_ozone.cc | 52 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); in KeyboardCodeFromNative() 58 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); in CodeFromNative() 64 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); in PlatformKeycodeFromNative() 70 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); in IsCharFromNative() 185 ui::KeyEvent key_event(native_event); in DispatchEventFromNativeUiEvent()
|