Home
last modified time | relevance | path

Searched defs:keyEvent (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyevent/domain/interactor/
DSysUIKeyEventHandlerTest.kt84 val keyEvent = in dispatchKeyEvent_isNotHandledByKeyguardKeyEventInteractor() constant
95 val keyEvent = in dispatchKeyEvent_handledByKeyguardKeyEventInteractor() constant
106 val keyEvent = in interceptMediaKey_isNotHandledByKeyguardKeyEventInteractor() constant
117 val keyEvent = in interceptMediaKey_handledByKeyguardKeyEventInteractor() constant
128 val keyEvent = in dispatchKeyEventPreIme_isNotHandledByKeyguardKeyEventInteractor() constant
139 val keyEvent = in dispatchKeyEventPreIme_handledByKeyguardKeyEventInteractor() constant
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java254 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive() local
273 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_firstPowerDown_emergencyGestureNotLaunched() local
292 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() local
337 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() local
384 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive() local
431 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete() local
485 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_fiveInboundPresses_cameraAndEmergencyEnabled_bothLaunch() local
574 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_fiveInboundPresses_emergencyGestureEnabled_launchesFlow() local
628 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_tenInboundPresses_emergencyGestureEnabled_keyIntercepted() local
687 KeyEvent keyEvent = new KeyEvent(IGNORED_DOWN_TIME, eventTime, IGNORED_ACTION, IGNORED_CODE, in testInterceptPowerKeyDown_triggerEmergency_singleTaps_cooldownTriggered() local
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaKeyDispatcher.java94 MediaSession.Token getMediaSession(@NonNull KeyEvent keyEvent, int uid, in getMediaSession()
112 PendingIntent getMediaButtonReceiver(@NonNull KeyEvent keyEvent, int uid, in getMediaButtonReceiver()
183 void onSingleTap(KeyEvent keyEvent) { in onSingleTap()
200 void onDoubleTap(KeyEvent keyEvent) { in onDoubleTap()
217 void onTripleTap(KeyEvent keyEvent) { in onTripleTap()
240 void onLongPress(KeyEvent keyEvent) { in onLongPress()
DMediaSessionService.java1126 private void dispatchVolumeKeyLongPressLocked(KeyEvent keyEvent) { in dispatchVolumeKeyLongPressLocked()
1729 KeyEvent keyEvent, boolean needWakeLock) { in dispatchMediaKeyEvent()
1803 KeyEvent keyEvent, MediaSession.Token sessionToken) { in dispatchMediaKeyEventToSessionAsSystemService()
2098 boolean asSystemService, KeyEvent keyEvent, int stream, boolean musicOnly) { in dispatchVolumeKeyEvent()
2136 int uid, boolean asSystemService, KeyEvent keyEvent, int stream, in dispatchVolumeKeyEventLocked()
2194 String opPackageName, KeyEvent keyEvent, MediaSession.Token sessionToken) { in dispatchVolumeKeyEventToSessionAsSystemService()
2584 boolean asSystemService, KeyEvent keyEvent, boolean needWakeLock) { in dispatchMediaKeyEventLocked()
2744 boolean asSystemService, KeyEvent keyEvent, boolean needWakeLock) { in MediaKeyListenerResultReceiver()
2883 boolean asSystemService, KeyEvent keyEvent, boolean needWakeLock) { in handleMediaKeyEventLocked()
2889 boolean asSystemService, KeyEvent keyEvent, String opPackageName, int stream, in handleVolumeKeyEventLocked()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java65 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtain() local
73 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainFromKeyEvent() local
83 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainWithDisplayId() local
99 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainGeneratesUniqueId() local
111 KeyEvent keyEvent = new KeyEvent(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT); in testConstructorGeneratesUniqueId() local
121 KeyEvent keyEvent = KeyEvent.obtain(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT, in testObtainGeneratesIdWithRightSource() local
130 KeyEvent keyEvent = new KeyEvent(DOWN_TIME, EVENT_TIME, ACTION, KEYCODE, REPEAT); in testConstructorGeneratesIdWithRightSource() local
288 private void assertHasDefaultFields(KeyEvent keyEvent, int displayId) { in assertHasDefaultFields()
293 private void assertKeyEventFields(KeyEvent keyEvent, long downTime, long eventTime, in assertKeyEventFields()
DVerifiedKeyEventTest.kt60 val keyEvent = createVerifiedKeyEvent() in testParcelUnparcel() constant
76 val keyEvent = createVerifiedKeyEvent() in testParcelInputEvent() constant
94 val keyEvent = createVerifiedKeyEvent() in testParcelKeyEvent() constant
111 val keyEvent = createVerifiedKeyEvent() in testParcelInputToKeyEvent() constant
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DMockWindow.java97 public void openPanel(int i, KeyEvent keyEvent) { in openPanel()
107 public void togglePanel(int i, KeyEvent keyEvent) { in togglePanel()
117 public boolean performPanelShortcut(int i, int i1, KeyEvent keyEvent, int i2) { in performPanelShortcut()
177 public boolean superDispatchKeyEvent(KeyEvent keyEvent) { in superDispatchKeyEvent()
182 public boolean superDispatchKeyShortcutEvent(KeyEvent keyEvent) { in superDispatchKeyShortcutEvent()
237 public boolean isShortcutKey(int i, KeyEvent keyEvent) { in isShortcutKey()
/frameworks/base/core/tests/coretests/src/android/text/method/
DBackspaceTest.java66 final KeyEvent keyEvent = KeyUtils.generateKeyEvent( in backspace() local
68 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in backspace() local
DForwardDeleteTest.java64 final KeyEvent keyEvent = KeyUtils.generateKeyEvent( in forwardDelete() local
66 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete() local
/frameworks/base/media/java/android/media/session/
DMediaSessionManager.java594 public void dispatchMediaKeyEvent(@NonNull KeyEvent keyEvent, boolean needWakeLock) { in dispatchMediaKeyEvent()
609 public void dispatchMediaKeyEventAsSystemService(@NonNull KeyEvent keyEvent) { in dispatchMediaKeyEventAsSystemService()
613 private void dispatchMediaKeyEventInternal(KeyEvent keyEvent, boolean asSystemService, in dispatchMediaKeyEventInternal()
617 mService.dispatchMediaKeyEvent(mContext.getPackageName(), asSystemService, keyEvent, in dispatchMediaKeyEventInternal() local
636 public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull KeyEvent keyEvent, in dispatchMediaKeyEventToSessionAsSystemService()
661 public void dispatchVolumeKeyEvent(@NonNull KeyEvent keyEvent, int streamType, in dispatchVolumeKeyEvent()
683 public void dispatchVolumeKeyEventAsSystemService(@NonNull KeyEvent keyEvent, int streamType) { in dispatchVolumeKeyEventAsSystemService()
688 private void dispatchVolumeKeyEventInternal(@NonNull KeyEvent keyEvent, int stream, in dispatchVolumeKeyEventInternal()
693 asSystemService, keyEvent, stream, musicOnly); in dispatchVolumeKeyEventInternal() local
710 public void dispatchVolumeKeyEventToSessionAsSystemService(@NonNull KeyEvent keyEvent, in dispatchVolumeKeyEventToSessionAsSystemService()
[all …]
DISessionManager.aidl44 void dispatchMediaKeyEvent(String packageName, boolean asSystemService, in KeyEvent keyEvent, in dispatchMediaKeyEvent()
47 in KeyEvent keyEvent, in MediaSession.Token sessionToken); in dispatchMediaKeyEventToSessionAsSystemService()
49 in KeyEvent keyEvent, int stream, boolean musicOnly); in dispatchVolumeKeyEvent()
51 in KeyEvent keyEvent, in MediaSession.Token sessionToken); in dispatchVolumeKeyEventToSessionAsSystemService()
DMediaSessionLegacyHelper.java172 public void sendMediaButtonEvent(KeyEvent keyEvent, boolean needWakeLock) { in sendMediaButtonEvent()
183 public void sendVolumeKeyEvent(KeyEvent keyEvent, int stream, boolean musicOnly) { in sendVolumeKeyEvent()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextLongTextPerfTest.java106 final KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER); in testEditText() local
113 editText.onKeyDown(keyEvent.getKeyCode(), keyEvent); in testEditText() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardKeyEventInteractorTest.kt219 val keyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP) in interceptMediaKey_keyguard_SBKVMdoesNotHandle_doesNotHandleMediaKey() constant
229 val keyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP) in interceptMediaKey_keyguard_handleMediaKey() constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DLeftRightArrowPressedListenerTest.kt97 val keyEvent = in sendKeyWithRepeat() constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationShadeWindowViewControllerTest.kt628 val keyEvent = KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_B) in forwardsDispatchKeyEvent() constant
635 val keyEvent = KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_B) in forwardsDispatchKeyEventPreIme() constant
642 val keyEvent = KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP) in forwardsInterceptMediaKey() constant
649 val keyEvent = KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A) in forwardsCollectKeyEvent() constant
/frameworks/base/core/java/android/view/
DISurfaceControlViewHostParent.aidl29 void forwardBackKeyToParent(in KeyEvent keyEvent); in forwardBackKeyToParent()
DInputEventConsistencyVerifier.java177 final KeyEvent keyEvent = (KeyEvent)event; in onInputEvent() local
597 final KeyEvent keyEvent = (KeyEvent)event; in onUnhandledEvent() local
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java316 private void handleVolumeKeyEvent(KeyEvent keyEvent) { in handleVolumeKeyEvent()
321 private void handleMediaKeyEvent(KeyEvent keyEvent) { in handleMediaKeyEvent()
/frameworks/native/services/inputflinger/tests/
DFakeWindows.cpp99 const KeyEvent& keyEvent = static_cast<const KeyEvent&>(*event); in consumeEvent() local
207 KeyEvent& keyEvent = static_cast<KeyEvent&>(*event); in assertNoEvents() local
/frameworks/base/services/core/java/com/android/server/input/debug/
DFocusEventDebugView.java232 KeyEvent keyEvent = KeyEvent.obtain(event); in reportKeyEvent() local
247 private void handleKeyEvent(KeyEvent keyEvent) { in handleKeyEvent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardAbsKeyInputView.java91 boolean onKeyDown(int keyCode, KeyEvent keyEvent); in onKeyDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingDataProvider.java96 void onKeyEvent(KeyEvent keyEvent) { in onKeyEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java590 public boolean matchesSafely(KeyEvent keyEvent) { in matchesSafely()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPasswordBouncer.kt122 .onInterceptKeyBeforeSoftKeyboard { keyEvent -> in <lambda>() method

123