/frameworks/base/core/tests/coretests/src/android/webkit/ |
D | AccessibilityInjectorTest.java | 30 import android.view.KeyEvent; 56 private static final int META_STATE_ALT_LEFT_ON = KeyEvent.META_ALT_ON 57 | KeyEvent.META_ALT_LEFT_ON; 160 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, META_STATE_ALT_LEFT_ON); in testNavigationByCharacter() 164 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, META_STATE_ALT_LEFT_ON); in testNavigationByCharacter() 168 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, 0); in testNavigationByCharacter() 172 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, 0); in testNavigationByCharacter() 176 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, 0); in testNavigationByCharacter() 180 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, 0); in testNavigationByCharacter() 184 sendKeyEvent(webView, KeyEvent.KEYCODE_DPAD_DOWN, 0); in testNavigationByCharacter() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
D | KeyguardViewBase.java | 31 import android.view.KeyEvent; 144 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() 155 private boolean shouldEventKeepScreenOnWhileKeyguardShowing(KeyEvent event) { in shouldEventKeepScreenOnWhileKeyguardShowing() 156 if (event.getAction() != KeyEvent.ACTION_DOWN) { in shouldEventKeepScreenOnWhileKeyguardShowing() 160 case KeyEvent.KEYCODE_DPAD_DOWN: in shouldEventKeepScreenOnWhileKeyguardShowing() 161 case KeyEvent.KEYCODE_DPAD_LEFT: in shouldEventKeepScreenOnWhileKeyguardShowing() 162 case KeyEvent.KEYCODE_DPAD_RIGHT: in shouldEventKeepScreenOnWhileKeyguardShowing() 163 case KeyEvent.KEYCODE_DPAD_UP: in shouldEventKeepScreenOnWhileKeyguardShowing() 177 private boolean interceptMediaKey(KeyEvent event) { in interceptMediaKey() 179 if (event.getAction() == KeyEvent.ACTION_DOWN) { in interceptMediaKey() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 25 import android.view.KeyEvent; 48 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); in tapMenuKey() 49 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in tapMenuKey() 61 final KeyEvent pushMenuKey = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU); in chordMenuKey() 63 final KeyEvent shortcutKeyEvent = keyCharMap.getEvents(new char[] { shortcutKey })[0]; in chordMenuKey() 67 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, shortcutKeyCode)); in chordMenuKey() 68 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, shortcutKeyCode)); in chordMenuKey() 69 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in chordMenuKey() 80 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick() 86 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
D | KeyguardViewBase.java | 34 import android.view.KeyEvent; 148 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() 162 private boolean interceptMediaKey(KeyEvent event) { in interceptMediaKey() 164 if (event.getAction() == KeyEvent.ACTION_DOWN) { in interceptMediaKey() 166 case KeyEvent.KEYCODE_MEDIA_PLAY: in interceptMediaKey() 167 case KeyEvent.KEYCODE_MEDIA_PAUSE: in interceptMediaKey() 168 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: in interceptMediaKey() 179 case KeyEvent.KEYCODE_MUTE: in interceptMediaKey() 180 case KeyEvent.KEYCODE_HEADSETHOOK: in interceptMediaKey() 181 case KeyEvent.KEYCODE_MEDIA_STOP: in interceptMediaKey() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PhoneFallbackEventHandler.java | 36 import android.view.KeyEvent; 58 public void preDispatchKeyEvent(KeyEvent event) { in preDispatchKeyEvent() 62 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() 67 if (action == KeyEvent.ACTION_DOWN) { in dispatchKeyEvent() 74 boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() 79 final KeyEvent.DispatcherState dispatcher = mView.getKeyDispatcherState(); in onKeyDown() 82 case KeyEvent.KEYCODE_VOLUME_UP: in onKeyDown() 83 case KeyEvent.KEYCODE_VOLUME_DOWN: in onKeyDown() 84 case KeyEvent.KEYCODE_VOLUME_MUTE: { in onKeyDown() 90 case KeyEvent.KEYCODE_MEDIA_PLAY: in onKeyDown() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | KeyEventCompat.java | 19 import android.view.KeyEvent; 40 KeyEvent.META_SHIFT_ON | KeyEvent.META_SHIFT_LEFT_ON | KeyEvent.META_SHIFT_RIGHT_ON 41 | KeyEvent.META_ALT_ON | KeyEvent.META_ALT_LEFT_ON | KeyEvent.META_ALT_RIGHT_ON 42 | KeyEvent.META_SYM_ON; 67 if ((metaState & (KeyEvent.META_SHIFT_LEFT_ON | KeyEvent.META_SHIFT_RIGHT_ON)) != 0) { in normalizeMetaState() 68 metaState |= KeyEvent.META_SHIFT_ON; in normalizeMetaState() 70 if ((metaState & (KeyEvent.META_ALT_LEFT_ON | KeyEvent.META_ALT_RIGHT_ON)) != 0) { in normalizeMetaState() 71 metaState |= KeyEvent.META_ALT_ON; in normalizeMetaState() 80 … KeyEvent.META_SHIFT_ON, KeyEvent.META_SHIFT_LEFT_ON, KeyEvent.META_SHIFT_RIGHT_ON); in metaStateHasModifiers() 82 KeyEvent.META_ALT_ON, KeyEvent.META_ALT_LEFT_ON, KeyEvent.META_ALT_RIGHT_ON); in metaStateHasModifiers() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | BaseMovementMethod.java | 22 import android.view.KeyEvent; 40 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event) { in onKeyDown() 51 public boolean onKeyOther(TextView widget, Spannable text, KeyEvent event) { in onKeyOther() 54 if (keyCode != KeyEvent.KEYCODE_UNKNOWN in onKeyOther() 55 && event.getAction() == KeyEvent.ACTION_MULTIPLE) { in onKeyOther() 74 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event) { in onKeyUp() 99 if ((event.getMetaState() & KeyEvent.META_SHIFT_ON) != 0) { in onGenericMotionEvent() 136 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { in getMovementMetaState() 140 return KeyEvent.normalizeMetaState(metaState) & ~KeyEvent.META_SHIFT_MASK; in getMovementMetaState() 161 int keyCode, int movementMetaState, KeyEvent event) { in handleMovementKey() [all …]
|
D | MetaKeyKeyListener.java | 23 import android.view.KeyEvent; 78 public static final int META_SHIFT_ON = KeyEvent.META_SHIFT_ON; 83 public static final int META_ALT_ON = KeyEvent.META_ALT_ON; 88 public static final int META_SYM_ON = KeyEvent.META_SYM_ON; 93 public static final int META_CAP_LOCKED = KeyEvent.META_CAP_LOCKED; 97 public static final int META_ALT_LOCKED = KeyEvent.META_ALT_LOCKED; 101 public static final int META_SYM_LOCKED = KeyEvent.META_SYM_LOCKED; 106 public static final int META_SELECTING = KeyEvent.META_SELECTING; 266 public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) { in onKeyDown() 267 if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT) { in onKeyDown() [all …]
|
D | BaseKeyListener.java | 19 import android.view.KeyEvent; 48 public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) { in backspace() 60 public boolean forwardDelete(View view, Editable content, int keyCode, KeyEvent event) { in forwardDelete() 65 KeyEvent event, boolean isForwardDelete) { in backspaceOrForwardDelete() 67 if (!KeyEvent.metaStateHasNoModifiers(event.getMetaState() in backspaceOrForwardDelete() 68 & ~(KeyEvent.META_SHIFT_MASK | KeyEvent.META_ALT_MASK))) { in backspaceOrForwardDelete() 151 int keyCode, KeyEvent event) { in onKeyDown() 154 case KeyEvent.KEYCODE_DEL: in onKeyDown() 157 case KeyEvent.KEYCODE_FORWARD_DEL: in onKeyDown() 176 public boolean onKeyOther(View view, Editable content, KeyEvent event) { in onKeyOther() [all …]
|
D | MultiTapKeyListener.java | 19 import android.view.KeyEvent; 47 sRecs.put(KeyEvent.KEYCODE_1, ".,1!@#$%^&*:/?'=()"); in sRecs.put() 48 sRecs.put(KeyEvent.KEYCODE_2, "abc2ABC"); in sRecs.put() 49 sRecs.put(KeyEvent.KEYCODE_3, "def3DEF"); in sRecs.put() 50 sRecs.put(KeyEvent.KEYCODE_4, "ghi4GHI"); in sRecs.put() 51 sRecs.put(KeyEvent.KEYCODE_5, "jkl5JKL"); in sRecs.put() 52 sRecs.put(KeyEvent.KEYCODE_6, "mno6MNO"); in sRecs.put() 53 sRecs.put(KeyEvent.KEYCODE_7, "pqrs7PQRS"); in sRecs.put() 54 sRecs.put(KeyEvent.KEYCODE_8, "tuv8TUV"); in sRecs.put() 55 sRecs.put(KeyEvent.KEYCODE_9, "wxyz9WXYZ"); in sRecs.put() [all …]
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | WebViewEventSender.java | 21 import android.view.KeyEvent; 56 KeyEvent modifier = null; in keyDown() 60 modifier = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in keyDown() 65 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in keyDown() 107 return KeyEvent.KEYCODE_0 + offset; in keyMapper() 113 return KeyEvent.KEYCODE_A + offset; in keyMapper() 119 return KeyEvent.KEYCODE_STAR; in keyMapper() 121 return KeyEvent.KEYCODE_POUND; in keyMapper() 123 return KeyEvent.KEYCODE_COMMA; in keyMapper() 125 return KeyEvent.KEYCODE_PERIOD; in keyMapper() [all …]
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 83 public class KeyEvent extends InputEvent implements Parcelable { class 1266 private static KeyEvent gRecyclerTop; 1268 private KeyEvent mNext; 1296 boolean onKeyDown(int keyCode, KeyEvent event); in onKeyDown() 1312 boolean onKeyLongPress(int keyCode, KeyEvent event); in onKeyLongPress() 1323 boolean onKeyUp(int keyCode, KeyEvent event); in onKeyUp() 1336 boolean onKeyMultiple(int keyCode, int count, KeyEvent event); in onKeyMultiple() 1343 private KeyEvent() { in KeyEvent() method in KeyEvent 1353 public KeyEvent(int action, int code) { in KeyEvent() method in KeyEvent 1373 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() method in KeyEvent [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 27 import android.view.KeyEvent; 91 Assert.assertTrue(mMenu.isShortcutKey(KeyEvent.KEYCODE_A, in testIsShortcutWithAlpha() 92 makeKeyEvent(KeyEvent.KEYCODE_A, 0))); in testIsShortcutWithAlpha() 93 Assert.assertFalse(mMenu.isShortcutKey(KeyEvent.KEYCODE_B, in testIsShortcutWithAlpha() 94 makeKeyEvent(KeyEvent.KEYCODE_B, 0))); in testIsShortcutWithAlpha() 101 Assert.assertTrue(mMenu.isShortcutKey(KeyEvent.KEYCODE_2, in testIsShortcutWithNumeric() 102 makeKeyEvent(KeyEvent.KEYCODE_2, 0))); in testIsShortcutWithNumeric() 103 Assert.assertFalse(mMenu.isShortcutKey(KeyEvent.KEYCODE_A, in testIsShortcutWithNumeric() 104 makeKeyEvent(KeyEvent.KEYCODE_A, 0))); in testIsShortcutWithNumeric() 111 Assert.assertTrue(mMenu.isShortcutKey(KeyEvent.KEYCODE_A, in testIsShortcutWithAlt() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListOfShortShortTallShortShortTest.java | 22 import android.view.KeyEvent; 55 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeTopTwoItemsOut() 56 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeTopTwoItemsOut() 59 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeTopTwoItemsOut() 73 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems() 74 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems() 77 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems() 81 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems() 96 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testFadeOutBottomTwoItems() 97 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testFadeOutBottomTwoItems() [all …]
|
D | ListOfItemsShorterThanScreenTest.java | 21 import android.view.KeyEvent; 59 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveDownToOnScreenNextItem() 70 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveUpToOnScreenItem() 71 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testMoveUpToOnScreenItem() 84 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveDownToItemRequiringScrolling() 110 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveUpToItemRequiringScrolling() 113 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testMoveUpToItemRequiringScrolling() 124 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testPressUpWhenAlreadyAtTop() 133 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testPressDownWhenAlreadyAtBottom() 137 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testPressDownWhenAlreadyAtBottom() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListScrollListenerTest.java | 23 import android.view.KeyEvent; 64 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling() 70 inst.sendCharacterSync(KeyEvent.KEYCODE_SPACE); in testKeyScrolling() 75 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() 76 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling() 77 KeyEvent up = new KeyEvent(0, 0, KeyEvent.ACTION_UP, in testKeyScrolling() 78 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridScrollListenerTest.java | 24 import android.view.KeyEvent; 65 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling() 72 inst.sendCharacterSync(KeyEvent.KEYCODE_SPACE); in testKeyScrolling() 78 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() 79 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling() 80 KeyEvent up = new KeyEvent(0, 0, KeyEvent.ACTION_UP, in testKeyScrolling() 81 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotTest.java | 25 import android.view.KeyEvent; 104 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in takeScreenshot() 105 KeyEvent.KEYCODE_POWER)); in takeScreenshot() 106 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, in takeScreenshot() 107 KeyEvent.KEYCODE_VOLUME_DOWN)); in takeScreenshot() 114 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in takeScreenshot() 115 KeyEvent.KEYCODE_VOLUME_DOWN)); in takeScreenshot() 116 getInstrumentation().sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, in takeScreenshot() 117 KeyEvent.KEYCODE_POWER)); in takeScreenshot()
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
D | EventSenderImpl.java | 24 import android.view.KeyEvent; 176 executeKeyEvent(KeyEvent.ACTION_DOWN, 180 executeKeyEvent(KeyEvent.ACTION_DOWN, 318 mask = KeyEvent.META_ALT_ON; 320 mask = KeyEvent.META_SHIFT_ON; 322 mask = KeyEvent.META_SYM_ON; 500 KeyEvent event = new KeyEvent(action, keyCode); in executeKeyEvent() 511 return KeyEvent.KEYCODE_0 + offset; in charToKeyCode() 517 return KeyEvent.KEYCODE_A + offset; in charToKeyCode() 523 return KeyEvent.KEYCODE_STAR; in charToKeyCode() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListOfButtonsTest.java | 27 import android.view.KeyEvent; 70 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testNavigateToButtonAbove() 78 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testNavigateToSecondItem() 90 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testNavigateUpAboveAndBackOut() 91 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testNavigateUpAboveAndBackOut() 104 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in TODO_testNavigateThroughAllButtonsAndBack() 118 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in TODO_testNavigateThroughAllButtonsAndBack() 133 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in TODO_testNavigateThroughAllButtonsAndBack() 145 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testGoInAndOutOfListWithItemsFocusable() 149 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testGoInAndOutOfListWithItemsFocusable() [all …]
|
D | FocusAfterRemovalTest.java | 26 import android.view.KeyEvent; 76 sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); in testFocusLeavesWhenParentLayoutIsGone() 88 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFocusLeavesWhenParentLayoutInvisible() 92 sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); in testFocusLeavesWhenParentLayoutInvisible() 104 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusLeavesWhenFocusedViewBecomesGone() 108 sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); in testFocusLeavesWhenFocusedViewBecomesGone() 119 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusLeavesWhenFocusedViewBecomesInvisible() 120 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFocusLeavesWhenFocusedViewBecomesInvisible() 124 sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); in testFocusLeavesWhenFocusedViewBecomesInvisible()
|
/frameworks/base/docs/html/training/keyboard-input/ |
D | 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 …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
D | AdjacentListsWithAdjacentISVsInsideTest.java | 24 import android.view.KeyEvent; 64 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal() 67 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal() 72 sendKeys(KeyEvent.KEYCODE_DPAD_LEFT); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal() 79 … sendKeys(KeyEvent.KEYCODE_DPAD_DOWN, KeyEvent.KEYCODE_DPAD_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal() 85 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
|
/frameworks/base/include/android_runtime/ |
D | android_app_NativeActivity.h | 92 void dispatchEvent(android::KeyEvent* event); 96 android::KeyEvent* consumeUnhandledEvent(); 97 android::KeyEvent* consumePreDispatchingEvent(int* outSeq); 99 android::KeyEvent* createKeyEvent(); 104 void doUnhandledKey(android::KeyEvent* keyEvent); 105 bool preDispatchKey(android::KeyEvent* keyEvent); 135 android::Vector<android::KeyEvent*> mUnhandledKeys; 139 android::Vector<android::KeyEvent*> mDispatchingKeys;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 36 import android.view.KeyEvent; 66 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); 220 sendEvent(KeyEvent.ACTION_DOWN, 0, mDownTime); in onTouchEvent() 241 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent() 252 sendEvent(KeyEvent.ACTION_UP, 0); in onTouchEvent() 256 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent() 278 final int repeatCount = (flags & KeyEvent.FLAG_LONG_PRESS) != 0 ? 1 : 0; in sendEvent() 279 final KeyEvent ev = new KeyEvent(mDownTime, when, action, mCode, repeatCount, in sendEvent() 281 flags | KeyEvent.FLAG_FROM_SYSTEM | KeyEvent.FLAG_VIRTUAL_HARD_KEY, in sendEvent()
|