Home
last modified time | relevance | path

Searched refs:getKeyCode (Results 1 – 25 of 79) 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/tests/coretests/src/android/view/
DKeyEventTest.java62 assertEquals(KEYCODE, keyEvent.getKeyCode()); in testObtain()
89 assertEquals(KEYCODE, keyEvent.getKeyCode()); in testObtainWithDisplayId()
176 assertEquals(key1.getKeyCode(), key2.getKeyCode()); in compareKeys()
/frameworks/base/services/core/java/com/android/server/policy/
DSingleKeyGestureDetector.java168 if (mDownKeyCode == KeyEvent.KEYCODE_UNKNOWN || mDownKeyCode != event.getKeyCode()) { in interceptKey()
178 final int keyCode = event.getKeyCode(); in interceptKeyDown()
269 if (event.getKeyCode() == mActiveRule.mKeyCode) { in interceptKeyUp()
273 Log.i(TAG, "press key " + KeyEvent.keyCodeToString(event.getKeyCode())); in interceptKeyUp()
DKeyCombinationManager.java113 final int keyCode = event.getKeyCode(); in interceptKey()
197 return mTriggeredRule != null && mTriggeredRule.shouldInterceptKey(event.getKeyCode()); in isKeyConsumed()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListSetSelection.java65 if (event.getKeyCode() == KeyEvent.KEYCODE_S) { in dispatchKeyEvent()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java1419 if (keyEvent == null || !KeyEvent.isMediaSessionKey(keyEvent.getKeyCode())) { in dispatchMediaKeyEvent()
1773 || (keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_UP in dispatchVolumeKeyEvent()
1774 && keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_DOWN in dispatchVolumeKeyEvent()
1775 && keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_MUTE)) { in dispatchVolumeKeyEvent()
1815 switch (keyEvent.getKeyCode()) { in dispatchVolumeKeyEventLocked()
1890 switch (keyEvent.getKeyCode()) { in dispatchVolumeKeyEventToSessionAsSystemService()
2520 .get(keyEvent.getKeyCode()); in handleKeyEventLocked()
2567 mMultiTapKeyCode = keyEvent.getKeyCode(); in handleKeyEventLocked()
2611 && keyEvent.getKeyCode() != mMultiTapKeyCode) { in cancelTrackingIfNeeded()
2620 && mTrackingFirstDownKeyEvent.getKeyCode() == keyEvent.getKeyCode() in cancelTrackingIfNeeded()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java58 final int shortcutKeyCode = shortcutKeyEvent.getKeyCode(); in chordMenuKey()
DInternalSelectionView.java210 switch(event.getKeyCode()) { in onKeyDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java207 return (mEventToMatch.getKeyCode() == item.getKeyCode()) in matchesSafely()
DKeyEventDispatcherTest.java592 && (mEventToMatch.getKeyCode() == keyEvent.getKeyCode()); in matchesSafely()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthCredentialPasswordView.java93 && KeyEvent.isConfirmKey(event.getKeyCode()) in onEditorAction()
/frameworks/native/libs/input/tests/
DVerifiedInputEvent_test.cpp70 ASSERT_EQ(event.getKeyCode(), verified.keyCode); in TEST()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java143 int keyCode = event.getKeyCode(); in getEventDelay()
DAutoclickController.java93 if (KeyEvent.isModifierKey(event.getKeyCode())) { in onKeyEvent()
/frameworks/base/core/java/android/view/
DKeyEvent.java2567 public final int getKeyCode() { in getKeyCode() method in KeyEvent
2948 mDownKeyCode = event.getKeyCode(); in startTracking()
2957 return mDownKeyCode == event.getKeyCode(); in isTracking()
2967 mActiveLongPresses.put(event.getKeyCode(), 1); in performedLongPress()
2977 final int keyCode = event.getKeyCode(); in handleUpEvent()
DVerifiedKeyEvent.java250 public int getKeyCode() { in getKeyCode() method in VerifiedKeyEvent
DInputEventConsistencyVerifier.java211 final int keyCode = event.getKeyCode(); in onKeyEvent()
600 final int keyCode = keyEvent.getKeyCode(); in onUnhandledEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipMenuView.java220 if (event.getAction() == ACTION_UP && event.getKeyCode() == KEYCODE_BACK in dispatchKeyEvent()
/frameworks/base/core/java/android/app/
DSearchableInfo.java449 public int getKeyCode() { in getKeyCode() method in SearchableInfo.ActionKeyInfo
512 mActionKeys.put(keyInfo.getKeyCode(), keyInfo); in addActionKey()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java71 final int keyCode = event.getKeyCode(); in dispatchKeyEvent()
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp104 event->getAction(), event->getKeyCode(), in android_view_KeyEvent_fromNative()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPasswordViewController.java69 && KeyEvent.isConfirmKey(event.getKeyCode())
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java169 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable()

1234