Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java52 assertEquals(KEYCODE, keyEvent.getKeyCode()); in testObtain()
71 assertEquals(keyEvent.getKeyCode(), keyEvent2.getKeyCode()); in testObtainFromKeyEvent()
90 assertEquals(KEYCODE, keyEvent.getKeyCode()); in testObtainWithDisplayId()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextCursorMovementPerfTest.java104 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement()
109 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement()
110 editText.onKeyDown(LEFT_ARROW_KEY_EVENT.getKeyCode(), LEFT_ARROW_KEY_EVENT); in testCursorMovement()
DEditTextBackspacePerfTest.java104 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in prepareTextForBackspace()
120 editText.onKeyDown(BACKSPACE_KEY_EVENT.getKeyCode(), BACKSPACE_KEY_EVENT); in testBackspace()
DEditTextLongTextPerfTest.java112 editText.onKeyDown(keyEvent.getKeyCode(), keyEvent); in testEditText()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListSetSelection.java65 if (event.getKeyCode() == KeyEvent.KEYCODE_S) { in dispatchKeyEvent()
/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.java206 return (mEventToMatch.getKeyCode() == item.getKeyCode()) in matchesSafely()
DKeyEventDispatcherTest.java586 && (mEventToMatch.getKeyCode() == keyEvent.getKeyCode()); in matchesSafely()
/frameworks/base/core/java/android/view/
DKeyEvent.java2515 public final int getKeyCode() { in getKeyCode() method in KeyEvent
2896 mDownKeyCode = event.getKeyCode(); in startTracking()
2905 return mDownKeyCode == event.getKeyCode(); in isTracking()
2915 mActiveLongPresses.put(event.getKeyCode(), 1); in performedLongPress()
2925 final int keyCode = event.getKeyCode(); in handleUpEvent()
DInputEventConsistencyVerifier.java211 final int keyCode = event.getKeyCode(); in onKeyEvent()
600 final int keyCode = keyEvent.getKeyCode(); in onUnhandledEvent()
/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/jni/
Dandroid_view_KeyEvent.cpp62 event->getKeyCode(), in android_view_KeyEvent_fromNative()
Dandroid_view_InputEventSender.cpp118 event->getFlags(), event->getKeyCode(), event->getScanCode(), event->getMetaState(), in sendKeyEvent()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java1313 if (keyEvent == null || !KeyEvent.isMediaSessionKey(keyEvent.getKeyCode())) { in dispatchMediaKeyEvent()
1360 if (!isGlobalPriorityActive && isVoiceKey(keyEvent.getKeyCode())) { in dispatchMediaKeyEvent()
1668 || (keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_UP in dispatchVolumeKeyEvent()
1669 && keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_DOWN in dispatchVolumeKeyEvent()
1670 && keyEvent.getKeyCode() != KeyEvent.KEYCODE_VOLUME_MUTE)) { in dispatchVolumeKeyEvent()
1749 switch (keyEvent.getKeyCode()) { in dispatchVolumeKeyEventLocked()
1826 switch (keyEvent.getKeyCode()) { in dispatchVolumeKeyEventToSessionAsSystemService()
2308 && isVoiceKey(mKeyEvent.getKeyCode())) { in dispatchMediaKeyEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java126 && KeyEvent.isConfirmKey(event.getKeyCode()) in onFinishInflate()
602 if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && in onKeyPreIme()
/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/services/core/java/com/android/server/policy/
DPhoneWindowManager.java918 if (mAutofillManagerInternal != null && event.getKeyCode() == KeyEvent.KEYCODE_BACK) { in interceptBackKeyUp()
976 sendSystemKeyToStatusBarAsync(event.getKeyCode()); in interceptPowerKeyDown()
2627 + " keyCode=" + KeyEvent.keyCodeToString(event.getKeyCode())); in interceptKeyBeforeDispatching()
2636 final int keyCode = event.getKeyCode(); in interceptKeyBeforeDispatchingInner()
3142 + ", keyCode=" + event.getKeyCode() in dispatchUnhandledKey()
3152 final int keyCode = event.getKeyCode(); in dispatchUnhandledKey()
3676 final int keyCode = event.getKeyCode(); in interceptKeyBeforeQueueing()
3815 sendSystemKeyToStatusBarAsync(event.getKeyCode()); in interceptKeyBeforeQueueing()
4110 || !mAccessibilityManager.sendFingerprintGesture(event.getKeyCode())) { in interceptSystemNavigationKey()
4112 sendSystemKeyToStatusBarAsync(event.getKeyCode()); in interceptSystemNavigationKey()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java71 final int keyCode = event.getKeyCode(); in dispatchKeyEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java169 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable()
/frameworks/base/core/tests/coretests/src/android/text/method/
DForwardDeleteTest.java66 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardHostView.java325 final int keyCode = event.getKeyCode(); in interceptMediaKey()
DKeyguardPasswordView.java368 && KeyEvent.isConfirmKey(event.getKeyCode()) in onEditorAction()
/frameworks/base/native/android/
Dinput.cpp62 return static_cast<const KeyEvent*>(key_event)->getKeyCode(); in AKeyEvent_getKeyCode()

123