Home
last modified time | relevance | path

Searched refs:onKeyEvent (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/native/android/
Dsurface_control_input_receiver.cpp35 AInputReceiver_onKeyEvent onKeyEvent = nullptr; member
54 void onKeyEvent(std::unique_ptr<KeyEvent> event, uint32_t seq) override { in onKeyEvent() function in InputReceiver
55 if (mCallbacks->onKeyEvent != nullptr) { in onKeyEvent()
56 const bool handled = mCallbacks->onKeyEvent(mCallbacks->context, in onKeyEvent()
207 AInputReceiver_onKeyEvent onKeyEvent) { in AInputReceiverCallbacks_setKeyEventCallback() argument
208 callbacks->onKeyEvent = onKeyEvent; in AInputReceiverCallbacks_setKeyEventCallback()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/
DPinBouncerViewModelTest.kt466 underTest.onKeyEvent(KeyEventType.KeyDown, KEYCODE_0 + expectedPin[0]) in <lambda>()
467 underTest.onKeyEvent(KeyEventType.KeyUp, KEYCODE_0 + expectedPin[0]) in <lambda>()
469 underTest.onKeyEvent(KeyEventType.KeyDown, KEYCODE_NUMPAD_0 + expectedPin[1]) in <lambda>()
470 underTest.onKeyEvent(KeyEventType.KeyUp, KEYCODE_NUMPAD_0 + expectedPin[1]) in <lambda>()
472 underTest.onKeyEvent(KeyEventType.KeyDown, KEYCODE_0 + expectedPin[2]) in <lambda>()
473 underTest.onKeyEvent(KeyEventType.KeyUp, KEYCODE_0 + expectedPin[2]) in <lambda>()
476 underTest.onKeyEvent(KeyEventType.KeyDown, KEYCODE_4) in <lambda>()
477 underTest.onKeyEvent(KeyEventType.KeyUp, KEYCODE_4) in <lambda>()
480 underTest.onKeyEvent(KeyEventType.KeyDown, KEYCODE_DEL) in <lambda>()
481 underTest.onKeyEvent(KeyEventType.KeyUp, KEYCODE_DEL) in <lambda>()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java78 mInterceptor.onKeyEvent(event, 0); in whenNonspecialKeyArrives_withNothingInQueue_eventGoesToAms()
87 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms()
96 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped()
106 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
123 mInterceptor.onKeyEvent(event, 0); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
149 mInterceptor.onKeyEvent(event, 0); in whenSomeEventsGetDelayed_allEventsStillInOrder()
179 mInterceptor.onKeyEvent(event, 0); in whenSomeEventsGetDropped_otherEventsStillInOrder()
DKeyEventDispatcherTest.java99 when(mKeyEventFilter1.onKeyEvent((KeyEvent) anyObject(), in setUp()
104 when(mKeyEventFilter2.onKeyEvent((KeyEvent) anyObject(), in setUp()
125 when(keyEventFilter.onKeyEvent((KeyEvent) anyObject(), anyInt())).thenReturn(false); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()
136 verify(mKeyEventFilter1, times(1)).onKeyEvent(argThat(new KeyEventMatcher(mKeyEvent)), in testNotifyKeyEvent_withOneValidService_shouldNotifyService()
144 verify(mKeyEventFilter1, times(1)).onKeyEvent(argThat(new KeyEventMatcher(mKeyEvent)), in testNotifyKeyEvent_withTwoValidService_shouldNotifyBoth()
146 verify(mKeyEventFilter2, times(1)).onKeyEvent(argThat(new KeyEventMatcher(mKeyEvent)), in testNotifyKeyEvent_withTwoValidService_shouldNotifyBoth()
DAbstractAccessibilityServiceConnectionTest.java271 public void onKeyEvent() throws RemoteException { in onKeyEvent() method in AbstractAccessibilityServiceConnectionTest
275 mServiceConnection.onKeyEvent(mockKeyEvent, sequenceNumber); in onKeyEvent()
276 verify(mMockServiceInterface).onKeyEvent(mockKeyEvent, sequenceNumber); in onKeyEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DEventStreamTransformation.java81 default void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() method
84 next.onKeyEvent(event, policyFlags); in onKeyEvent()
DKeyEventDispatcher.java132 if (keyEventFilter.onKeyEvent(localClone, localClone.getSequenceNumber())) { in notifyKeyEventLocked()
268 mSentEventsVerifier.onKeyEvent(pendingEvent.event, 0); in removeReferenceToPendingEventLocked()
305 boolean onKeyEvent(KeyEvent event, int sequenceNumber); in onKeyEvent() method
DAutoclickController.java98 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() method in AutoclickController
111 super.onKeyEvent(event, policyFlags); in onKeyEvent()
DKeyboardInterceptor.java68 public void onKeyEvent(KeyEvent event, int policyFlags) { in onKeyEvent() method in KeyboardInterceptor
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingCollectorImplTest.java247 mFalsingCollector.onKeyEvent(enterDown); in testPassThroughEnterKeyEvent()
248 verify(mFalsingDataProvider, never()).onKeyEvent(any(KeyEvent.class)); in testPassThroughEnterKeyEvent()
250 mFalsingCollector.onKeyEvent(enterUp); in testPassThroughEnterKeyEvent()
251 verify(mFalsingDataProvider, times(1)).onKeyEvent(enterUp); in testPassThroughEnterKeyEvent()
263 mFalsingCollector.onKeyEvent(aKeyDown); in testAvoidAKeyEvent()
264 verify(mFalsingDataProvider, never()).onKeyEvent(any(KeyEvent.class)); in testAvoidAKeyEvent()
266 mFalsingCollector.onKeyEvent(aKeyUp); in testAvoidAKeyEvent()
267 verify(mFalsingDataProvider, never()).onKeyEvent(any(KeyEvent.class)); in testAvoidAKeyEvent()
DFalsingDataProviderTest.java295 mDataProvider.onKeyEvent(eventDown); in test_isFromKeyboard_disallowedKey_false()
296 mDataProvider.onKeyEvent(eventUp); in test_isFromKeyboard_disallowedKey_false()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingCollector.java59 void onKeyEvent(KeyEvent ev); in onKeyEvent() method
DFalsingCollectorFake.java76 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() method in FalsingCollectorFake
DFalsingCollectorNoOp.kt63 override fun onKeyEvent(ev: KeyEvent) { in onKeyEvent() method in com.android.systemui.classifier.FalsingCollectorNoOp
DFalsingCollectorImpl.java322 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() method in FalsingCollectorImpl
326 mFalsingDataProvider.onKeyEvent(ev); in onKeyEvent()
/frameworks/native/include/android/
Dsurface_control_input_receiver.h199 AInputReceiver_onKeyEvent _Nonnull onKeyEvent)
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceClient.aidl49 void onKeyEvent(in KeyEvent event, int sequence); in onKeyEvent() method
DAccessibilityService.java642 boolean onKeyEvent(KeyEvent event); in onKeyEvent() method
1014 protected boolean onKeyEvent(KeyEvent event) { in onKeyEvent() method in AccessibilityService
2821 public boolean onKeyEvent(KeyEvent event) { in onBind() method in AccessibilityService
2822 return AccessibilityService.this.onKeyEvent(event); in onBind()
3010 public void onKeyEvent(KeyEvent event, int sequence) {
3016 final boolean result = mCallback.onKeyEvent(event);
/frameworks/native/include/input/
DInputConsumerNoResampling.h32 virtual void onKeyEvent(std::unique_ptr<KeyEvent> event, uint32_t seq) = 0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
DBouncerViewModel.kt389 fun onKeyEvent(keyEvent: KeyEvent): Boolean { in <lambda>() method
390 return (authMethodViewModel.value as? PinBouncerViewModel)?.onKeyEvent( in <lambda>()
DPinBouncerViewModel.kt213 fun onKeyEvent(type: KeyEventType, keyCode: Int): Boolean { in <lambda>() method
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityDisplayProxy.java300 public boolean onKeyEvent(KeyEvent event) { in IAccessibilityServiceClientImpl()
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java178 onKeyEvent(keyEvent, nestingLevel); in onInputEvent()
200 public void onKeyEvent(KeyEvent event, int nestingLevel) { in onKeyEvent() method in InputEventConsistencyVerifier
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DBouncerContent.kt69 import androidx.compose.ui.input.key.onKeyEvent in <lambda>()
141 modifier = modifier.imePadding().onKeyEvent(viewModel::onKeyEvent), in BouncerContent()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
DAccessibilityMenuService.java391 protected boolean onKeyEvent(KeyEvent event) { in onKeyEvent() method in AccessibilityMenuService

12