/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextCursorMovementPerfTest.java | 105 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() 110 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() 111 editText.onKeyDown(LEFT_ARROW_KEY_EVENT.getKeyCode(), LEFT_ARROW_KEY_EVENT); in testCursorMovement()
|
D | EditTextBackspacePerfTest.java | 105 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in prepareTextForBackspace() 121 editText.onKeyDown(BACKSPACE_KEY_EVENT.getKeyCode(), BACKSPACE_KEY_EVENT); in testBackspace()
|
D | EditTextLongTextPerfTest.java | 113 editText.onKeyDown(keyEvent.getKeyCode(), keyEvent); in testEditText()
|
/frameworks/base/core/java/android/hardware/input/ |
D | VirtualKeyboard.java | 58 if (mUnsupportedKeyCode == event.getKeyCode()) { in sendKeyEvent() 60 "Unsupported key code " + event.getKeyCode() in sendKeyEvent()
|
D | VirtualDpad.java | 78 if (!mSupportedKeyCodes.contains(event.getKeyCode())) { in sendKeyEvent() 81 + event.getKeyCode() in sendKeyEvent()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SingleKeyGestureDetector.java | 216 if (mDownKeyCode == KeyEvent.KEYCODE_UNKNOWN || mDownKeyCode != event.getKeyCode()) { in interceptKey() 227 final int keyCode = event.getKeyCode(); in interceptKeyDown() 351 if (event.getKeyCode() == mActiveRule.mKeyCode) { in interceptKeyUp() 362 Log.i(TAG, "press key " + KeyEvent.keyCodeToString(event.getKeyCode())); in interceptKeyUp()
|
D | KeyCombinationManager.java | 159 final int keyCode = event.getKeyCode(); in interceptKeyLocked() 254 return mTriggeredRule != null && mTriggeredRule.shouldInterceptKey(event.getKeyCode()); in isKeyConsumed()
|
D | ModifierShortcutManager.java | 355 final int keyCode = keyEvent.getKeyCode(); in handleIntentShortcut() 424 logEvent, event.getMetaState(), event.getKeyCode()); in handleKeyboardLogging() 439 final int keyCode = event.getKeyCode(); in interceptKey()
|
/frameworks/base/services/core/java/com/android/server/input/debug/ |
D | FocusEventDebugView.java | 253 final var container = KeyEvent.isModifierKey(keyEvent.getKeyCode()) in handleKeyEvent() 262 + KeyEvent.keyCodeToString(keyEvent.getKeyCode()) in handleKeyEvent() 277 Slog.w(TAG, "Got key up for " + KeyEvent.keyCodeToString(keyEvent.getKeyCode()) in handleKeyEvent() 305 switch (event.getKeyCode()) { in getLabel() 360 final var label = KeyEvent.keyCodeToString(event.getKeyCode()); in getLabel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | SystemActionsTest.java | 111 assertThat(keyEvents.get(0).getKeyCode()).isEqualTo(KeyEvent.KEYCODE_HEADSETHOOK); in handleHeadsetHook_callStateIdle_injectsKeyEvents() 113 assertThat(keyEvents.get(1).getKeyCode()).isEqualTo(KeyEvent.KEYCODE_HEADSETHOOK); in handleHeadsetHook_callStateIdle_injectsKeyEvents()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListSetSelection.java | 65 if (event.getKeyCode() == KeyEvent.KEYCODE_S) { in dispatchKeyEvent()
|
/frameworks/base/tests/Input/src/android/hardware/input/ |
D | VirtualKeyEventTest.java | 55 assertWithMessage("Incorrect key code").that(event.getKeyCode()).isEqualTo( in keyEvent_created()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 58 final int shortcutKeyCode = shortcutKeyEvent.getKeyCode(); in chordMenuKey()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | KeyEventTest.java | 269 .that(key2.getKeyCode()).isEqualTo(key1.getKeyCode()); in compareKeys() 303 .that(keyEvent.getKeyCode()).isEqualTo(keyCode); in assertKeyEventFields()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 1730 if (keyEvent == null || !KeyEvent.isMediaSessionKey(keyEvent.getKeyCode())) { in dispatchMediaKeyEvent() 2100 || (keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_UP in dispatchVolumeKeyEvent() 2101 && keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_DOWN in dispatchVolumeKeyEvent() 2102 && keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_MUTE)) { in dispatchVolumeKeyEvent() 2142 switch (keyEvent.getKeyCode()) { in dispatchVolumeKeyEventLocked() 2226 switch (keyEvent.getKeyCode()) { in dispatchVolumeKeyEventToSessionAsSystemService() 2906 .get(keyEvent.getKeyCode()); in handleKeyEventLocked() 2953 mMultiTapKeyCode = keyEvent.getKeyCode(); in handleKeyEventLocked() 2997 && keyEvent.getKeyCode() != mMultiTapKeyCode) { in cancelTrackingIfNeeded() 3006 && mTrackingFirstDownKeyEvent.getKeyCode() == keyEvent.getKeyCode() in cancelTrackingIfNeeded() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/tv/ |
D | TvSplitMenuView.java | 83 if (event.getKeyCode() == KEYCODE_BACK) { in dispatchKeyEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyboardInterceptorTest.java | 209 return (mEventToMatch.getKeyCode() == item.getKeyCode()) in matchesSafely()
|
/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | KeyButtonView.java | 278 handled = ims.onKeyDown(ev.getKeyCode(), ev); in sendEvent() 283 handled = ims.onKeyUp(ev.getKeyCode(), ev); in sendEvent()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | TvPipMenuView.java | 494 if (event.getKeyCode() == KEYCODE_BACK) { in dispatchKeyEvent() 498 switch (event.getKeyCode()) { in dispatchKeyEvent() 505 mListener.onPipMovement(event.getKeyCode()); in dispatchKeyEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyboardInterceptor.java | 149 int keyCode = event.getKeyCode(); in getEventDelay()
|
/frameworks/native/libs/input/tests/ |
D | VerifiedInputEvent_test.cpp | 70 ASSERT_EQ(event.getKeyCode(), verified.keyCode); in TEST()
|
/frameworks/base/core/java/android/service/dreams/ |
D | DreamService.java | 426 if (KeyEvent.isConfirmKey(event.getKeyCode())) { in dispatchKeyEvent() 433 mTrackingConfirmKey = event.getKeyCode(); in dispatchKeyEvent() 437 || mTrackingConfirmKey != event.getKeyCode()) { in dispatchKeyEvent() 472 } else if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { in dispatchKeyEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 185 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable()
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 2742 public final int getKeyCode() { in getKeyCode() method in KeyEvent 3123 mDownKeyCode = event.getKeyCode(); in startTracking() 3132 return mDownKeyCode == event.getKeyCode(); in isTracking() 3142 mActiveLongPresses.put(event.getKeyCode(), 1); in performedLongPress() 3152 final int keyCode = event.getKeyCode(); in handleUpEvent()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | InternalSelectionView.java | 211 switch(event.getKeyCode()) { in onKeyDown()
|