Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DEditTextInputActivity.java23 import android.view.KeyEvent;
79 KeyEvent.KEYCODE_A, in onCreate()
80 KeyEvent.KEYCODE_B, in onCreate()
81 KeyEvent.KEYCODE_C, in onCreate()
82 KeyEvent.KEYCODE_D, in onCreate()
83 KeyEvent.KEYCODE_E, in onCreate()
84 KeyEvent.KEYCODE_F, in onCreate()
85 KeyEvent.KEYCODE_G, in onCreate()
86 KeyEvent.KEYCODE_H, in onCreate()
87 KeyEvent.KEYCODE_I, in onCreate()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DDatePickerFocusTest.java23 import android.view.KeyEvent;
66 sendKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
68 sendKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
70 sendKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
72 sendKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
74 sendShiftKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
76 sendShiftKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
78 sendShiftKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
80 sendShiftKey(KeyEvent.KEYCODE_TAB); in testFocusTravel()
100 final KeyEvent shiftDown = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_SHIFT_LEFT); in sendShiftKey()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java31 import android.view.KeyEvent;
74 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in whenNonspecialKeyArrives_withNothingInQueue_eventGoesToAms()
81 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_DOWN); in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms()
90 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped()
100 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
117 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_DOWN); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
134 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDelayed_allEventsStillInOrder()
135 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP), in whenSomeEventsGetDelayed_allEventsStillInOrder()
136 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A), in whenSomeEventsGetDelayed_allEventsStillInOrder()
137 new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP), in whenSomeEventsGetDelayed_allEventsStillInOrder()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecKeycode.java19 import android.view.KeyEvent;
240 new KeycodeEntry(KeyEvent.KEYCODE_DPAD_CENTER, CEC_KEYCODE_SELECT),
241 new KeycodeEntry(KeyEvent.KEYCODE_DPAD_UP, CEC_KEYCODE_UP),
242 new KeycodeEntry(KeyEvent.KEYCODE_DPAD_DOWN, CEC_KEYCODE_DOWN),
243 new KeycodeEntry(KeyEvent.KEYCODE_DPAD_LEFT, CEC_KEYCODE_LEFT),
244 new KeycodeEntry(KeyEvent.KEYCODE_DPAD_RIGHT, CEC_KEYCODE_RIGHT),
256 new KeycodeEntry(KeyEvent.KEYCODE_HOME, CEC_KEYCODE_ROOT_MENU),
257 new KeycodeEntry(KeyEvent.KEYCODE_MENU, CEC_KEYCODE_ROOT_MENU),
258 new KeycodeEntry(KeyEvent.KEYCODE_SETTINGS, CEC_KEYCODE_SETUP_MENU),
259 new KeycodeEntry(KeyEvent.KEYCODE_TV_CONTENTS_MENU, CEC_KEYCODE_CONTENTS_MENU, false),
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java22 import android.view.KeyEvent;
42 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); in tapMenuKey()
43 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in tapMenuKey()
55 final KeyEvent pushMenuKey = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU); in chordMenuKey()
57 final KeyEvent shortcutKeyEvent = keyCharMap.getEvents(new char[] { shortcutKey })[0]; in chordMenuKey()
61 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, shortcutKeyCode)); in chordMenuKey()
62 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, shortcutKeyCode)); in chordMenuKey()
63 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in chordMenuKey()
74 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
80 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
[all …]
/frameworks/base/core/java/android/view/
DKeyEvent.java86 public class KeyEvent extends InputEvent implements Parcelable { class
1263 private static KeyEvent gRecyclerTop;
1265 private KeyEvent mNext;
1305 boolean onKeyDown(int keyCode, KeyEvent event); in onKeyDown()
1321 boolean onKeyLongPress(int keyCode, KeyEvent event); in onKeyLongPress()
1332 boolean onKeyUp(int keyCode, KeyEvent event); in onKeyUp()
1346 boolean onKeyMultiple(int keyCode, int count, KeyEvent event); in onKeyMultiple()
1352 private KeyEvent() { in KeyEvent() method in KeyEvent
1362 public KeyEvent(int action, int code) { in KeyEvent() method in KeyEvent
1382 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() method in KeyEvent
[all …]
DMenu.java80 static final int SUPPORTED_MODIFIERS_MASK = KeyEvent.META_META_ON | KeyEvent.META_CTRL_ON
81 | KeyEvent.META_ALT_ON | KeyEvent.META_SHIFT_ON | KeyEvent.META_SYM_ON
82 | KeyEvent.META_FUNCTION_ON;
423 public boolean performShortcut(int keyCode, KeyEvent event, int flags); in performShortcut()
430 boolean isShortcutKey(int keyCode, KeyEvent event); in isShortcutKey()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java34 import android.view.KeyEvent;
64 public void preDispatchKeyEvent(KeyEvent event) { in preDispatchKeyEvent()
68 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
73 if (action == KeyEvent.ACTION_DOWN) { in dispatchKeyEvent()
81 boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown()
86 final KeyEvent.DispatcherState dispatcher = mView.getKeyDispatcherState(); in onKeyDown()
89 case KeyEvent.KEYCODE_VOLUME_UP: in onKeyDown()
90 case KeyEvent.KEYCODE_VOLUME_DOWN: in onKeyDown()
91 case KeyEvent.KEYCODE_VOLUME_MUTE: { in onKeyDown()
97 case KeyEvent.KEYCODE_MEDIA_PLAY: in onKeyDown()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListenerTest.java22 import android.view.KeyEvent;
67 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling()
73 KeyEvent upDown = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling()
74 KeyEvent.KEYCODE_DPAD_UP, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
75 KeyEvent upUp = new KeyEvent(0, 0, KeyEvent.ACTION_UP, in testKeyScrolling()
76 KeyEvent.KEYCODE_DPAD_UP, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
83 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling()
84 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
85 KeyEvent up = new KeyEvent(0, 0, KeyEvent.ACTION_UP, in testKeyScrolling()
86 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcuts.java50 import android.view.KeyEvent;
92 KeyEvent.META_META_ON, KeyEvent.META_CTRL_ON, KeyEvent.META_ALT_ON,
93 KeyEvent.META_SHIFT_ON, KeyEvent.META_SYM_ON, KeyEvent.META_FUNCTION_ON
183 KeyEvent.KEYCODE_HOME, context.getString(R.string.keyboard_key_home)); in loadResources()
185 KeyEvent.KEYCODE_BACK, context.getString(R.string.keyboard_key_back)); in loadResources()
187 KeyEvent.KEYCODE_DPAD_UP, context.getString(R.string.keyboard_key_dpad_up)); in loadResources()
189 KeyEvent.KEYCODE_DPAD_DOWN, context.getString(R.string.keyboard_key_dpad_down)); in loadResources()
191 KeyEvent.KEYCODE_DPAD_LEFT, context.getString(R.string.keyboard_key_dpad_left)); in loadResources()
193 KeyEvent.KEYCODE_DPAD_RIGHT, context.getString(R.string.keyboard_key_dpad_right)); in loadResources()
195 KeyEvent.KEYCODE_DPAD_CENTER, context.getString(R.string.keyboard_key_dpad_center)); in loadResources()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java22 import android.view.KeyEvent;
67 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling()
74 KeyEvent upDown = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling()
75 KeyEvent.KEYCODE_DPAD_UP, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
76 KeyEvent upUp = new KeyEvent(0, 0, KeyEvent.ACTION_UP, in testKeyScrolling()
77 KeyEvent.KEYCODE_DPAD_UP, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
85 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling()
86 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
87 KeyEvent up = new KeyEvent(0, 0, KeyEvent.ACTION_UP, in testKeyScrolling()
88 KeyEvent.KEYCODE_DPAD_DOWN, 0, KeyEvent.META_ALT_ON); in testKeyScrolling()
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java22 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 …]
DMetaKeyKeyListener.java25 import android.view.KeyEvent;
79 public static final int META_SHIFT_ON = KeyEvent.META_SHIFT_ON;
84 public static final int META_ALT_ON = KeyEvent.META_ALT_ON;
89 public static final int META_SYM_ON = KeyEvent.META_SYM_ON;
94 public static final int META_CAP_LOCKED = KeyEvent.META_CAP_LOCKED;
98 public static final int META_ALT_LOCKED = KeyEvent.META_ALT_LOCKED;
102 public static final int META_SYM_LOCKED = KeyEvent.META_SYM_LOCKED;
107 public static final int META_SELECTING = KeyEvent.META_SELECTING;
181 public static final int getMetaState(final CharSequence text, final KeyEvent event) { in getMetaState()
232 final KeyEvent event) { in getMetaState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardHostView.java31 import android.view.KeyEvent;
310 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
324 public boolean interceptMediaKey(KeyEvent event) { in interceptMediaKey()
326 if (event.getAction() == KeyEvent.ACTION_DOWN) { in interceptMediaKey()
328 case KeyEvent.KEYCODE_MEDIA_PLAY: in interceptMediaKey()
329 case KeyEvent.KEYCODE_MEDIA_PAUSE: in interceptMediaKey()
330 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: in interceptMediaKey()
341 case KeyEvent.KEYCODE_MUTE: in interceptMediaKey()
342 case KeyEvent.KEYCODE_HEADSETHOOK: in interceptMediaKey()
343 case KeyEvent.KEYCODE_MEDIA_STOP: in interceptMediaKey()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfShortShortTallShortShortTest.java21 import android.view.KeyEvent;
58 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeTopTwoItemsOut()
59 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeTopTwoItemsOut()
62 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeTopTwoItemsOut()
77 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems()
78 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems()
81 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems()
85 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFadeInTwoBottomItems()
100 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testFadeOutBottomTwoItems()
101 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testFadeOutBottomTwoItems()
[all …]
DListOfItemsShorterThanScreenTest.java20 import android.view.KeyEvent;
61 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveDownToOnScreenNextItem()
72 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveUpToOnScreenItem()
73 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testMoveUpToOnScreenItem()
87 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveDownToItemRequiringScrolling()
114 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testMoveUpToItemRequiringScrolling()
117 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testMoveUpToItemRequiringScrolling()
128 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testPressUpWhenAlreadyAtTop()
137 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testPressDownWhenAlreadyAtBottom()
141 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testPressDownWhenAlreadyAtBottom()
[all …]
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java38 import android.view.KeyEvent;
116 private void sendMediaKey(KeyEvent event) { in sendMediaKey()
157 keycode = KeyEvent.KEYCODE_MEDIA_PLAY; in runDispatch()
159 keycode = KeyEvent.KEYCODE_MEDIA_PAUSE; in runDispatch()
161 keycode = KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE; in runDispatch()
163 keycode = KeyEvent.KEYCODE_MUTE; in runDispatch()
165 keycode = KeyEvent.KEYCODE_HEADSETHOOK; in runDispatch()
167 keycode = KeyEvent.KEYCODE_MEDIA_STOP; in runDispatch()
169 keycode = KeyEvent.KEYCODE_MEDIA_NEXT; in runDispatch()
171 keycode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; in runDispatch()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java24 import android.view.KeyEvent;
244 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown()
246 || (keyCode == KeyEvent.KEYCODE_DEL) in onKeyDown()
251 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { in onKeyMultiple()
253 || (keyCode == KeyEvent.KEYCODE_DEL) in onKeyMultiple()
258 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp()
264 if (keyCode == KeyEvent.KEYCODE_DEL) { in handleKeyUp()
305 return keyCode == KeyEvent.KEYCODE_0 || keyCode == KeyEvent.KEYCODE_1 in isKeyCodeNumeric()
306 || keyCode == KeyEvent.KEYCODE_2 || keyCode == KeyEvent.KEYCODE_3 in isKeyCodeNumeric()
307 || keyCode == KeyEvent.KEYCODE_4 || keyCode == KeyEvent.KEYCODE_5 in isKeyCodeNumeric()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfButtonsTest.java20 import android.view.KeyEvent;
72 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testNavigateToButtonAbove()
80 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testNavigateToSecondItem()
92 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testNavigateUpAboveAndBackOut()
93 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testNavigateUpAboveAndBackOut()
106 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in TODO_testNavigateThroughAllButtonsAndBack()
120 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in TODO_testNavigateThroughAllButtonsAndBack()
135 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in TODO_testNavigateThroughAllButtonsAndBack()
147 sendKeys(KeyEvent.KEYCODE_DPAD_UP); in testGoInAndOutOfListWithItemsFocusable()
151 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testGoInAndOutOfListWithItemsFocusable()
[all …]
DFocusAfterRemovalTest.java20 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonView.java20 import static android.view.KeyEvent.KEYCODE_UNKNOWN;
44 import android.view.KeyEvent;
94 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS);
200 sendEvent(KeyEvent.ACTION_DOWN, 0, SystemClock.uptimeMillis()); in performAccessibilityActionInternal()
201 sendEvent(KeyEvent.ACTION_UP, 0); in performAccessibilityActionInternal()
206 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); in performAccessibilityActionInternal()
207 sendEvent(KeyEvent.ACTION_UP, 0); in performAccessibilityActionInternal()
237 sendEvent(KeyEvent.ACTION_DOWN, 0, mDownTime); in onTouchEvent()
263 sendEvent(KeyEvent.ACTION_UP, KeyEvent.FLAG_CANCELED); in onTouchEvent()
284 sendEvent(KeyEvent.ACTION_UP, 0); in onTouchEvent()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DEditTextTypeActivity.java23 import android.view.KeyEvent;
75 int codes[] = { KeyEvent.KEYCODE_H, KeyEvent.KEYCODE_E, KeyEvent.KEYCODE_L, in onCreate()
76 KeyEvent.KEYCODE_L, KeyEvent.KEYCODE_O, KeyEvent.KEYCODE_SPACE }; in onCreate()
87 if (i % 100 == 99) code = KeyEvent.KEYCODE_ENTER; in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DAdjacentListsWithAdjacentISVsInsideTest.java21 import android.view.KeyEvent;
65 sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
68 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
73 sendKeys(KeyEvent.KEYCODE_DPAD_LEFT); in testFocusedRectAndFocusHintWorkWithinListItemHorizontal()
81 … sendKeys(KeyEvent.KEYCODE_DPAD_DOWN, KeyEvent.KEYCODE_DPAD_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
87 sendKeys(KeyEvent.KEYCODE_DPAD_RIGHT); in testFocusTransfersOutsideOfListWhenNoCandidateInsideHorizontal()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextCursorMovementPerfTest.java23 import android.view.KeyEvent;
65 private static final KeyEvent LEFT_ARROW_KEY_EVENT =
66 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT);
67 private static final KeyEvent RIGHT_ARROW_KEY_EVENT =
68 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT);
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java35 private static final int ACTION = KeyEvent.ACTION_DOWN;
36 private static final int KEYCODE = KeyEvent.KEYCODE_0;
47 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtain()
65 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainFromKeyEvent()
67 KeyEvent keyEvent2 = KeyEvent.obtain(keyEvent); in testObtainFromKeyEvent()
85 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainWithDisplayId()

12345678910>>...14