/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | BaseKeyEventsTestCase.java | 160 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()
|
D | KeyboardShortcutsTestCaseWithToolbar.java | 84 KeyEvent controlKey = new KeyEvent(time, time, event.getAction(), event.getKeyCode(), in sendControlChar()
|
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/ |
D | LeanbackSettingsRootView.java | 51 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/ |
D | PlaybackControlGlue.java | 276 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;
|
D | PlaybackControlSupportGlue.java | 278 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/ |
D | PipRecentsControlsView.java | 165 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/ |
D | ListSetSelection.java | 65 if (event.getKeyCode() == KeyEvent.KEYCODE_S) { in dispatchKeyEvent()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SearchEditText.java | 56 if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { in onKeyPreIme()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 64 final int shortcutKeyCode = shortcutKeyEvent.getKeyCode(); in chordMenuKey()
|
D | InternalSelectionView.java | 213 switch(event.getKeyCode()) { in onKeyDown()
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 2418 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()
|
D | InputEventConsistencyVerifier.java | 208 final int keyCode = event.getKeyCode(); in onKeyEvent() 595 final int keyCode = keyEvent.getKeyCode(); in onUnhandledEvent()
|
/frameworks/base/core/jni/ |
D | android_view_KeyEvent.cpp | 61 event->getKeyCode(), in android_view_KeyEvent_fromNative()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | CreateDirectoryFragment.java | 94 && event.getKeyCode() == KeyEvent.KEYCODE_ENTER in onCreateDialog()
|
/frameworks/base/docs/html/training/game-controllers/ |
D | controller-input.jd | 86 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/ |
D | SearchableInfo.java | 445 public int getKeyCode() { in getKeyCode() method in SearchableInfo.ActionKeyInfo 504 mActionKeys.put(keyInfo.getKeyCode(), keyInfo); in addActionKey()
|
D | Dialog.java | 754 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/ |
D | PlaybackControlSupportHelper.java | 121 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey()
|
D | PlaybackControlHelper.java | 119 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | RenameDocumentFragment.java | 105 && event.getKeyCode() == KeyEvent.KEYCODE_ENTER in onCreateDialog()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PhoneFallbackEventHandler.java | 67 final int keyCode = event.getKeyCode(); in dispatchKeyEvent()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardPasswordView.java | 356 && KeyEvent.isConfirmKey(event.getKeyCode()) in onEditorAction()
|
D | KeyguardHostView.java | 314 final int keyCode = event.getKeyCode(); in interceptMediaKey()
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | ForwardDeleteTest.java | 58 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 169 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable()
|