Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java110 verify(mDefaultMainListener).onKeyEvent(event); in ordinaryEvents_onMainDisplay_routedToInputManager()
117 verify(mDefaultMainListener, never()).onKeyEvent(any()); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
126 verify(listener).onKeyEvent(event); in ordinaryEvents_onInstrumentClusterDisplay_routedToListener()
143 verify(listener).onKeyEvent(event, InputHalService.DISPLAY_MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
144 verify(mDefaultMainListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
147 verify(listener).onKeyEvent(event, InputHalService.DISPLAY_INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
148 verify(instrumentClusterListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
151 verify(listener).onKeyEvent(event, InputHalService.DISPLAY_MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
152 verify(mDefaultMainListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
155 verify(listener, never()).onKeyEvent(event, InputHalService.DISPLAY_INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
[all …]
DCarProjectionServiceTest.java271 mService.onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_getsDispatchedEvents()
273 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_getsDispatchedEvents()
310 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
312 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
314 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
317 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
319 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
321 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java146 verify(eventHandler1).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventListener_registerMultipleEventListeners()
147 verify(eventHandler2).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventListener_registerMultipleEventListeners()
151 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
152 verify(eventHandler2).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
155 verify(eventHandler1, never()).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
156 verify(eventHandler2, never()).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
173 verify(eventHandler).onKeyEvent(evt); in keyEventHandler_canRegisterAllEvents()
206 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_whenRegisteredAgain_replacesEventList()
214 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_whenRegisteredAgain_replacesEventList()
230 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_removed_noLongerFires()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java391 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_SameRoot_LeftCtrlPressed()
413 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_SameRoot_RightCtrlPressed()
435 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_DifferentRoot_LeftCtrlPressed()
457 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_DifferentRoot_RightCtrlPressed()
479 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_LeftCtrlReleased()
482 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_LeftCtrlReleased()
504 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_RightCtrlReleased()
507 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_RightCtrlReleased()
529 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_DifferentRoot_LeftCtrlReleased()
532 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_DifferentRoot_LeftCtrlReleased()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarInputService.java72 void onKeyEvent(KeyEvent event); in onKeyEvent() method
374 public void onKeyEvent(KeyEvent event, int targetDisplay) { in onKeyEvent() method in CarInputService
382 carInputListener.onKeyEvent(event, targetDisplay); in onKeyEvent()
406 mMainDisplayHandler.onKeyEvent(event); in onKeyEvent()
501 projectionKeyEventHandler.onKeyEvent(event); in dispatchProjectionKeyEvent()
589 listener.onKeyEvent(event); in handleInstrumentClusterKey()
DICarImpl.java859 mCarInputService.onKeyEvent(keyDown, display);
862 mCarInputService.onKeyEvent(keyUp, display);
DCarProjectionService.java819 public void onKeyEvent(@CarProjectionManager.KeyEventNum int keyEvent) { in onKeyEvent() method in CarProjectionService
830 eventHandler.binderInterface.onKeyEvent(keyEvent); in onKeyEvent()
/packages/apps/Car/Cluster/src/android/car/cluster/
DClusterRenderingService.java90 void onKeyEvent(KeyEvent keyEvent); in onKeyEvent() method
233 public void onKeyEvent(KeyEvent keyEvent) { in onKeyEvent() method in ClusterRenderingService
237 broadcastClientEvent(client -> client.onKeyEvent(keyEvent)); in onKeyEvent()
306 onKeyEvent(event); in emulateKeyEvent()
310 onKeyEvent(event); in emulateKeyEvent()
DMainClusterActivity.java275 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in MainClusterActivity
/packages/services/Car/car-lib/src/android/car/input/
DCarInputHandlingService.java113 protected abstract void onKeyEvent(KeyEvent keyEvent, int targetDisplay); in onKeyEvent() method in CarInputHandlingService
129 public void onKeyEvent(KeyEvent keyEvent, int targetDisplay) throws RemoteException { in onKeyEvent() method in CarInputHandlingService.InputBinder
150 service.onKeyEvent((KeyEvent) msg.obj, msg.arg1); in handleMessage()
DICarInputListener.aidl27 void onKeyEvent(in KeyEvent keyEvent, int targetDisplay) = 1; in onKeyEvent() method
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java95 verify(mInputListener, never()).onKeyEvent(any(), anyInt()); in ignoresSetListener_beforeKeyInputSupported()
132 }).when(mInputListener).onKeyEvent(any(), eq(DISPLAY)); in dispatchesInputEvent_multiple_toListener()
258 verify(mInputListener).onKeyEvent(captor.capture(), eq(DISPLAY)); in dispatchSingleEvent()
279 verify(mInputListener).onKeyEvent(captor.capture(), eq(DISPLAY)); in dispatchSingleEventWithIndents()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DInputConsumer.java71 default void onKeyEvent(KeyEvent ev) { } in onKeyEvent() method
77 onKeyEvent((KeyEvent) ev); in onInputEvent()
DOverviewInputConsumer.java113 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() method in OverviewInputConsumer
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java49 void onKeyEvent(KeyEvent event, int targetDisplay); in onKeyEvent() method
202 listener.onKeyEvent(event, display);
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java99 void onKeyEvent(@KeyEventNum int event); in onKeyEvent() method
789 public void onKeyEvent(@KeyEventNum int event) { in onKeyEvent() method in CarProjectionManager.ICarProjectionKeyEventHandlerImpl
808 entry.second.execute(() -> listener.onKeyEvent(event)); in onKeyEvent()
DICarProjectionKeyEventHandler.aidl23 void onKeyEvent(int event) = 0; in onKeyEvent() method
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DInstrumentClusterRenderingService.java207 public void onKeyEvent(@NonNull KeyEvent keyEvent) { in onKeyEvent() method in InstrumentClusterRenderingService
510 public void onKeyEvent(KeyEvent keyEvent) throws RemoteException { in onKeyEvent() method in InstrumentClusterRenderingService.RendererBinder
511 mUiHandler.post(() -> InstrumentClusterRenderingService.this.onKeyEvent(keyEvent)); in onKeyEvent()
DIInstrumentCluster.aidl44 oneway void onKeyEvent(in KeyEvent keyEvent); in onKeyEvent() method
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java284 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in InstrumentClusterService
292 service.onKeyEvent(event); in onKeyEvent()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragAndDropManager.java64 void onKeyEvent(KeyEvent event); in onKeyEvent() method
203 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in DragAndDropManager.RuntimeDragAndDropManager
/packages/services/Car/car-default-input-service/src/android/car/input/service/
DDefaultInputService.java37 protected void onKeyEvent(KeyEvent event, int targetDisplay) { in onKeyEvent() method in DefaultInputService
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDragAndDropManager.java47 public void onKeyEvent(KeyEvent event) {} in onKeyEvent() method in TestDragAndDropManager
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DRecentsAnimationWrapper.java178 mInputConsumer.onKeyEvent((KeyEvent) ev); in onInputConsumerEvent()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarProjectionService.java103 entry.getKey().onKeyEvent(event); in fireKeyEvent()

12