Home
last modified time | relevance | path

Searched refs:getKeyCode (Results 1 – 25 of 98) sorted by relevance

1234

/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextCursorMovementPerfTest.java105 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()
DEditTextBackspacePerfTest.java105 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()
DEditTextLongTextPerfTest.java113 editText.onKeyDown(keyEvent.getKeyCode(), keyEvent); in testEditText()
/frameworks/base/core/java/android/hardware/input/
DVirtualKeyboard.java58 if (mUnsupportedKeyCode == event.getKeyCode()) { in sendKeyEvent()
60 "Unsupported key code " + event.getKeyCode() in sendKeyEvent()
DVirtualDpad.java78 if (!mSupportedKeyCodes.contains(event.getKeyCode())) { in sendKeyEvent()
81 + event.getKeyCode() in sendKeyEvent()
/frameworks/base/services/core/java/com/android/server/policy/
DSingleKeyGestureDetector.java216 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()
DKeyCombinationManager.java159 final int keyCode = event.getKeyCode(); in interceptKeyLocked()
254 return mTriggeredRule != null && mTriggeredRule.shouldInterceptKey(event.getKeyCode()); in isKeyConsumed()
DModifierShortcutManager.java355 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/
DFocusEventDebugView.java253 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/
DSystemActionsTest.java111 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/
DListSetSelection.java65 if (event.getKeyCode() == KeyEvent.KEYCODE_S) { in dispatchKeyEvent()
/frameworks/base/tests/Input/src/android/hardware/input/
DVirtualKeyEventTest.java55 assertWithMessage("Incorrect key code").that(event.getKeyCode()).isEqualTo( in keyEvent_created()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java58 final int shortcutKeyCode = shortcutKeyEvent.getKeyCode(); in chordMenuKey()
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java269 .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/
DMediaSessionService.java1730 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/
DTvSplitMenuView.java83 if (event.getKeyCode() == KEYCODE_BACK) { in dispatchKeyEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java209 return (mEventToMatch.getKeyCode() == item.getKeyCode()) in matchesSafely()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonView.java278 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/
DTvPipMenuView.java494 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/
DKeyboardInterceptor.java149 int keyCode = event.getKeyCode(); in getEventDelay()
/frameworks/native/libs/input/tests/
DVerifiedInputEvent_test.cpp70 ASSERT_EQ(event.getKeyCode(), verified.keyCode); in TEST()
/frameworks/base/core/java/android/service/dreams/
DDreamService.java426 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/
DSearchablesTest.java185 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable()
/frameworks/base/core/java/android/view/
DKeyEvent.java2742 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/
DInternalSelectionView.java211 switch(event.getKeyCode()) { in onKeyDown()

1234