Home
last modified time | relevance | path

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

1234

/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseKeyEventsTestCase.java160 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_DEL, downEvent.getKeyCode()); in testDelKeyEventReachesActivity()
164 assertEquals("onKeyUp event matches", KeyEvent.KEYCODE_DEL, upEvent.getKeyCode()); in testDelKeyEventReachesActivity()
175 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_MENU, downEvent.getKeyCode()); in testMenuKeyEventReachesActivity()
179 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_MENU, upEvent.getKeyCode()); in testMenuKeyEventReachesActivity()
DKeyboardShortcutsTestCaseWithToolbar.java84 KeyEvent controlKey = new KeyEvent(time, time, event.getAction(), event.getKeyCode(), in sendControlChar()
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
DLeanbackSettingsRootView.java51 if (event.getAction() == KeyEvent.ACTION_UP && event.getKeyCode() == KeyEvent.KEYCODE_BACK in dispatchKeyEvent()
53 handled = mOnBackKeyListener.onKey(this, event.getKeyCode(), event); in dispatchKeyEvent()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DPlaybackControlGlue.java276 return onKey(null, keyEvent.getKeyCode(), keyEvent);
490 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE ||
491 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY;
493 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE ||
494 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PAUSE;
DPlaybackControlSupportGlue.java278 return onKey(null, keyEvent.getKeyCode(), keyEvent);
492 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE ||
493 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY;
495 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE ||
496 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PAUSE;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipRecentsControlsView.java165 if (event.getKeyCode() == KeyEvent.KEYCODE_BACK in dispatchKeyEvent()
171 } else if (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_DOWN) { in dispatchKeyEvent()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListSetSelection.java65 if (event.getKeyCode() == KeyEvent.KEYCODE_S) { in dispatchKeyEvent()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchEditText.java56 if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { in onKeyPreIme()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java64 final int shortcutKeyCode = shortcutKeyEvent.getKeyCode(); in chordMenuKey()
DInternalSelectionView.java213 switch(event.getKeyCode()) { in onKeyDown()
/frameworks/base/core/java/android/view/
DKeyEvent.java2418 public final int getKeyCode() { in getKeyCode() method in KeyEvent
2781 mDownKeyCode = event.getKeyCode(); in startTracking()
2790 return mDownKeyCode == event.getKeyCode(); in isTracking()
2800 mActiveLongPresses.put(event.getKeyCode(), 1); in performedLongPress()
2810 final int keyCode = event.getKeyCode(); in handleUpEvent()
DInputEventConsistencyVerifier.java208 final int keyCode = event.getKeyCode(); in onKeyEvent()
595 final int keyCode = keyEvent.getKeyCode(); in onUnhandledEvent()
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp61 event->getKeyCode(), in android_view_KeyEvent_fromNative()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DCreateDirectoryFragment.java94 && event.getKeyCode() == KeyEvent.KEYCODE_ENTER in onCreateDialog()
/frameworks/base/docs/html/training/game-controllers/
Dcontroller-input.jd86 key code by calling {@link android.view.KeyEvent#getKeyCode()} or from key
222 game can inspect the key code by calling {@link android.view.KeyEvent#getKeyCode()}
417 if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_DPAD_LEFT) {
419 } else if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_DPAD_RIGHT) {
421 } else if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_DPAD_UP) {
423 } else if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_DPAD_DOWN) {
425 } else if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_DPAD_CENTER) {
/frameworks/base/core/java/android/app/
DSearchableInfo.java445 public int getKeyCode() { in getKeyCode() method in SearchableInfo.ActionKeyInfo
504 mActionKeys.put(keyInfo.getKeyCode(), keyInfo); in addActionKey()
DDialog.java754 if ((mOnKeyListener != null) && (mOnKeyListener.onKey(this, event.getKeyCode(), event))) { in dispatchKeyEvent()
778 return onKeyShortcut(event.getKeyCode(), event); in dispatchKeyShortcutEvent()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackControlSupportHelper.java121 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey()
DPlaybackControlHelper.java119 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DRenameDocumentFragment.java105 && event.getKeyCode() == KeyEvent.KEYCODE_ENTER in onCreateDialog()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java67 final int keyCode = event.getKeyCode(); in dispatchKeyEvent()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardPasswordView.java356 && KeyEvent.isConfirmKey(event.getKeyCode()) in onEditorAction()
DKeyguardHostView.java314 final int keyCode = event.getKeyCode(); in interceptMediaKey()
/frameworks/base/core/tests/coretests/src/android/text/method/
DForwardDeleteTest.java58 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java169 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable()

1234