/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 101 KeyEvent* keyEvent = static_cast<KeyEvent*>(event); in PublishAndConsumeKeyEvent() local 103 EXPECT_EQ(deviceId, keyEvent->getDeviceId()); in PublishAndConsumeKeyEvent() 104 EXPECT_EQ(source, keyEvent->getSource()); in PublishAndConsumeKeyEvent() 105 EXPECT_EQ(action, keyEvent->getAction()); in PublishAndConsumeKeyEvent() 106 EXPECT_EQ(flags, keyEvent->getFlags()); in PublishAndConsumeKeyEvent() 107 EXPECT_EQ(keyCode, keyEvent->getKeyCode()); in PublishAndConsumeKeyEvent() 108 EXPECT_EQ(scanCode, keyEvent->getScanCode()); in PublishAndConsumeKeyEvent() 109 EXPECT_EQ(metaState, keyEvent->getMetaState()); in PublishAndConsumeKeyEvent() 110 EXPECT_EQ(repeatCount, keyEvent->getRepeatCount()); in PublishAndConsumeKeyEvent() 111 EXPECT_EQ(downTime, keyEvent->getDownTime()); in PublishAndConsumeKeyEvent() [all …]
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/util/ |
D | MockWindow.java | 79 public void openPanel(int i, KeyEvent keyEvent) { in openPanel() argument 89 public void togglePanel(int i, KeyEvent keyEvent) { in togglePanel() argument 99 public boolean performPanelShortcut(int i, int i1, KeyEvent keyEvent, int i2) { in performPanelShortcut() argument 159 public boolean superDispatchKeyEvent(KeyEvent keyEvent) { in superDispatchKeyEvent() argument 164 public boolean superDispatchKeyShortcutEvent(KeyEvent keyEvent) { in superDispatchKeyShortcutEvent() argument 219 public boolean isShortcutKey(int i, KeyEvent keyEvent) { in isShortcutKey() argument
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 749 public void dispatchMediaKeyEvent(KeyEvent keyEvent, boolean needWakeLock) { in dispatchMediaKeyEvent() argument 750 if (keyEvent == null || !KeyEvent.isMediaKey(keyEvent.getKeyCode())) { in dispatchMediaKeyEvent() 761 + keyEvent); in dispatchMediaKeyEvent() 797 if (isVoiceKey(keyEvent.getKeyCode())) { in dispatchMediaKeyEvent() 798 handleVoiceKeyEventLocked(keyEvent, needWakeLock, session); in dispatchMediaKeyEvent() 800 dispatchMediaKeyEventLocked(keyEvent, needWakeLock, session); in dispatchMediaKeyEvent() 924 private void handleVoiceKeyEventLocked(KeyEvent keyEvent, boolean needWakeLock, in handleVoiceKeyEventLocked() argument 928 dispatchMediaKeyEventLocked(keyEvent, needWakeLock, session); in handleVoiceKeyEventLocked() 931 int action = keyEvent.getAction(); in handleVoiceKeyEventLocked() 932 boolean isLongPress = (keyEvent.getFlags() & KeyEvent.FLAG_LONG_PRESS) != 0; in handleVoiceKeyEventLocked() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | PlaybackControlGlue.java | 284 KeyEvent keyEvent = (KeyEvent) event; 285 return onKey(null, keyEvent.getKeyCode(), keyEvent); 495 boolean dispatchAction(Action action, KeyEvent keyEvent) { 498 boolean canPlay = keyEvent == null || 499 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE || 500 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY; 501 boolean canPause = keyEvent == null || 502 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE || 503 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PAUSE;
|
D | PlaybackControlSupportGlue.java | 286 KeyEvent keyEvent = (KeyEvent) event; 287 return onKey(null, keyEvent.getKeyCode(), keyEvent); 497 boolean dispatchAction(Action action, KeyEvent keyEvent) { 500 boolean canPlay = keyEvent == null || 501 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE || 502 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY; 503 boolean canPause = keyEvent == null || 504 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE || 505 keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_PAUSE;
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 168 public void sendMediaButtonEvent(KeyEvent keyEvent, boolean needWakeLock) { in sendMediaButtonEvent() argument 169 if (keyEvent == null) { in sendMediaButtonEvent() 173 mSessionManager.dispatchMediaKeyEvent(keyEvent, needWakeLock); in sendMediaButtonEvent() 175 Log.d(TAG, "dispatched media key " + keyEvent); in sendMediaButtonEvent() 179 public void sendVolumeKeyEvent(KeyEvent keyEvent, boolean musicOnly) { in sendVolumeKeyEvent() argument 180 if (keyEvent == null) { in sendVolumeKeyEvent() 184 boolean down = keyEvent.getAction() == KeyEvent.ACTION_DOWN; in sendVolumeKeyEvent() 185 boolean up = keyEvent.getAction() == KeyEvent.ACTION_UP; in sendVolumeKeyEvent() 188 switch (keyEvent.getKeyCode()) { in sendVolumeKeyEvent() 221 if (down && keyEvent.getRepeatCount() == 0) { in sendVolumeKeyEvent()
|
D | MediaSessionManager.java | 261 public void dispatchMediaKeyEvent(@NonNull KeyEvent keyEvent) { in dispatchMediaKeyEvent() argument 262 dispatchMediaKeyEvent(keyEvent, false); in dispatchMediaKeyEvent() 272 public void dispatchMediaKeyEvent(@NonNull KeyEvent keyEvent, boolean needWakeLock) { in dispatchMediaKeyEvent() argument 274 mService.dispatchMediaKeyEvent(keyEvent, needWakeLock); in dispatchMediaKeyEvent()
|
D | ISessionManager.aidl | 33 void dispatchMediaKeyEvent(in KeyEvent keyEvent, boolean needWakeLock); in dispatchMediaKeyEvent() argument
|
D | MediaController.java | 128 public boolean dispatchMediaButtonEvent(@NonNull KeyEvent keyEvent) { in dispatchMediaButtonEvent() argument 129 if (keyEvent == null) { in dispatchMediaButtonEvent() 132 if (!KeyEvent.isMediaKey(keyEvent.getKeyCode())) { in dispatchMediaButtonEvent() 136 return mSessionBinder.sendMediaButton(keyEvent); in dispatchMediaButtonEvent()
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | PlaybackControlHelper.java | 117 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument 118 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onKey() 119 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey() 125 return super.onKey(view, keyCode, keyEvent); in onKey()
|
D | PlaybackControlSupportHelper.java | 119 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument 120 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onKey() 121 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey() 127 return super.onKey(view, keyCode, keyEvent); in onKey()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/ |
D | SortedListActivity.java | 58 public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { in onCreate() 60 (keyEvent == null || keyEvent.getAction() == KeyEvent.ACTION_DOWN)) { in onCreate()
|
/frameworks/base/core/java/android/view/ |
D | InputEventConsistencyVerifier.java | 174 final KeyEvent keyEvent = (KeyEvent)event; in onInputEvent() local 175 onKeyEvent(keyEvent, nestingLevel); in onInputEvent() 592 final KeyEvent keyEvent = (KeyEvent)event; in onUnhandledEvent() local 593 final int deviceId = keyEvent.getDeviceId(); in onUnhandledEvent() 594 final int source = keyEvent.getSource(); in onUnhandledEvent() 595 final int keyCode = keyEvent.getKeyCode(); in onUnhandledEvent()
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | ForwardDeleteTest.java | 55 final KeyEvent keyEvent = getKey(KeyEvent.KEYCODE_FORWARD_DEL, modifiers); in forwardDelete() local 58 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete()
|
D | BackspaceTest.java | 55 final KeyEvent keyEvent = getKey(KeyEvent.KEYCODE_DEL, modifiers); in backspace() local 58 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in backspace()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 234 virtual void interceptKeyBeforeQueueing(const KeyEvent* keyEvent, uint32_t& policyFlags); 238 const KeyEvent* keyEvent, uint32_t policyFlags); 240 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent); 872 void NativeInputManager::interceptKeyBeforeQueueing(const KeyEvent* keyEvent, in interceptKeyBeforeQueueing() argument 883 nsecs_t when = keyEvent->getEventTime(); in interceptKeyBeforeQueueing() 885 jobject keyEventObj = android_view_KeyEvent_fromNative(env, keyEvent); in interceptKeyBeforeQueueing() 954 const KeyEvent* keyEvent, uint32_t policyFlags) { in interceptKeyBeforeDispatching() argument 965 jobject keyEventObj = android_view_KeyEvent_fromNative(env, keyEvent); in interceptKeyBeforeDispatching() 989 const KeyEvent* keyEvent, uint32_t policyFlags, KeyEvent* outFallbackKeyEvent) { in dispatchUnhandledKey() argument 998 jobject keyEventObj = android_view_KeyEvent_fromNative(env, keyEvent); in dispatchUnhandledKey() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RemoteController.java | 250 public boolean sendMediaKeyEvent(KeyEvent keyEvent) throws IllegalArgumentException { in sendMediaKeyEvent() argument 251 if (!KeyEvent.isMediaKey(keyEvent.getKeyCode())) { in sendMediaKeyEvent() 256 return mCurrentSession.dispatchMediaButtonEvent(keyEvent); in sendMediaKeyEvent()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IInputMethodSessionWrapper.java | 231 KeyEvent keyEvent = (KeyEvent)event; in onInputEvent() local 232 mInputMethodSession.dispatchKeyEvent(seq, keyEvent, this); in onInputEvent()
|
/frameworks/base/core/jni/ |
D | android_view_InputQueue.cpp | 117 KeyEvent* keyEvent = static_cast<KeyEvent*>(e); in preDispatchEvent() local 118 if (keyEvent->getFlags() & AKEY_EVENT_FLAG_PREDISPATCH) { in preDispatchEvent()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PhoneFallbackEventHandler.java | 311 private void handleMediaKeyEvent(KeyEvent keyEvent) { in handleMediaKeyEvent() argument 312 MediaSessionLegacyHelper.getHelper(mContext).sendMediaButtonEvent(keyEvent, false); in handleMediaKeyEvent()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardHostView.java | 389 private void handleMediaKeyEvent(KeyEvent keyEvent) { in handleMediaKeyEvent() argument 396 mAudioManager.dispatchMediaKeyEvent(keyEvent); in handleMediaKeyEvent()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvInputService.java | 1389 KeyEvent keyEvent = (KeyEvent) event; 1390 if (keyEvent.dispatch(this, mDispatcherState, this)) { 1393 isNavigationKey = isNavigationKey(keyEvent.getKeyCode()); 1398 skipDispatchToOverlayView = KeyEvent.isMediaKey(keyEvent.getKeyCode()) 1399 || keyEvent.getKeyCode() == KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK;
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDevice.java | 498 KeyEvent keyEvent = KeyEvent.obtain(time, time, action, keycode, in injectKeyEvent() local 501 InputManager.getInstance().injectInputEvent(keyEvent, in injectKeyEvent() 503 keyEvent.recycle(); in injectKeyEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityInputFilter.java | 217 KeyEvent keyEvent = (KeyEvent) event; in onInputEvent() local 218 processKeyEvent(state, keyEvent, policyFlags); in onInputEvent()
|
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
D | MediaControllerCompat.java | 123 public boolean dispatchMediaButtonEvent(KeyEvent keyEvent) { in dispatchMediaButtonEvent() argument 124 if (keyEvent == null) { in dispatchMediaButtonEvent() 127 return mImpl.dispatchMediaButtonEvent(keyEvent); in dispatchMediaButtonEvent() 867 boolean dispatchMediaButtonEvent(KeyEvent keyEvent); in dispatchMediaButtonEvent() argument
|