Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java236 when(mCaptureController.onKeyEvent(anyInt(), any(KeyEvent.class))).thenReturn(true); in testOnRotaryEvent_injectingRotaryNavigationEvent()
243 verify(mCaptureController, never()).onKeyEvent(anyInt(), any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigationEvent()
245 .onKeyEvent(any(KeyEvent.class), anyInt(), anyInt()); in testOnRotaryEvent_injectingRotaryNavigationEvent()
256 when(mCaptureController.onKeyEvent(anyInt(), any(KeyEvent.class))).thenReturn(true); in testOnRotaryEvent_injectingRotaryVolumeEvent()
265 verify(mCaptureController, times(numberOfGeneratedKeyEvents)).onKeyEvent(anyInt(), in testOnRotaryEvent_injectingRotaryVolumeEvent()
268 .onKeyEvent(any(KeyEvent.class), anyInt(), anyInt()); in testOnRotaryEvent_injectingRotaryVolumeEvent()
287 verify(mCaptureController, times(numberOfGeneratedKeyEvents)).onKeyEvent(anyInt(), in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
289 verify(mDefaultKeyEventMainListener, times(numberOfGeneratedKeyEvents)).onKeyEvent( in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
329 verify(mDefaultKeyEventMainListener).onKeyEvent(same(event), in ordinaryEvents_onMainDisplay_routedToInputManager()
337 verify(mDefaultKeyEventMainListener, never()).onKeyEvent(any(), anyInt(), anyInt()); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
[all …]
DCarProjectionServiceTest.java415 mService.onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_getsDispatchedEvents()
417 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_getsDispatchedEvents()
454 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
456 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
458 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
461 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
463 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
465 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
DCarProjectionManagerUnitTest.java93 keyEventHandlerImpl.onKeyEvent( in testRegisterProjectionListener()
102 keyEventHandlerImpl.onKeyEvent( in testRegisterProjectionListener()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java174 verify(eventHandler1).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventListener_registerMultipleEventListeners()
175 verify(eventHandler2).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventListener_registerMultipleEventListeners()
179 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
180 verify(eventHandler2).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
183 verify(eventHandler1, never()).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
184 verify(eventHandler2, never()).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
201 verify(eventHandler).onKeyEvent(evt); in keyEventHandler_canRegisterAllEvents()
234 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_whenRegisteredAgain_replacesEventList()
242 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_whenRegisteredAgain_replacesEventList()
258 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_removed_noLongerFires()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarInputService.java117 default void onKeyEvent(KeyEvent event) { in onKeyEvent() method
132 default void onKeyEvent(KeyEvent event, @DisplayTypeEnum int displayType, in onKeyEvent() method
272 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int displayType,
314 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int displayType, in CarInputService()
474 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in onKeyEvent() method in CarInputService
475 onKeyEvent(event, targetDisplayType, mDriverSeat); in onKeyEvent()
485 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType, in onKeyEvent() method in CarInputService
530 if (mCaptureController.onKeyEvent(targetDisplayType, event)) { in dispatchKeyEventForDriver()
533 mDefaultKeyHandler.onKeyEvent(event, targetDisplayType, mDriverSeat); in dispatchKeyEventForDriver()
565 keyEventListener.onKeyEvent(event, targetDisplay, seat); in notifyKeyEventListener()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java391 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_SameRoot_LeftCtrlPressed()
451 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_SameRoot_RightCtrlPressed()
473 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_DifferentRoot_LeftCtrlPressed()
495 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_DifferentRoot_RightCtrlPressed()
517 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_LeftCtrlReleased()
520 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_LeftCtrlReleased()
542 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_RightCtrlReleased()
545 mManager.onKeyEvent(event); in testUpdateState_UpdatesToMove_SameRoot_RightCtrlReleased()
567 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_DifferentRoot_LeftCtrlReleased()
570 mManager.onKeyEvent(event); in testUpdateState_UpdatesToCopy_DifferentRoot_LeftCtrlReleased()
[all …]
/packages/services/Car/car-lib/src/android/car/input/
DCarInputHandlingService.java127 protected abstract void onKeyEvent(KeyEvent keyEvent, int targetDisplay); in onKeyEvent() method in CarInputHandlingService
143 public void onKeyEvent(KeyEvent keyEvent, int targetDisplay) throws RemoteException { in onKeyEvent() method in CarInputHandlingService.InputBinder
164 service.onKeyEvent((KeyEvent) msg.obj, msg.arg1); in handleMessage()
DICarInputListener.aidl27 void onKeyEvent(in KeyEvent keyEvent, int targetDisplay) = 1; in onKeyEvent() method
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DInputConsumer.java107 default void onKeyEvent(KeyEvent ev) { } in onKeyEvent() method
113 onKeyEvent((KeyEvent) ev); in onInputEvent()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterRenderingService.java98 void onKeyEvent(KeyEvent keyEvent); in onKeyEvent() method
319 public void onKeyEvent(KeyEvent keyEvent) { in onKeyEvent() method in ClusterRenderingService
323 broadcastClientEvent(client -> client.onKeyEvent(keyEvent)); in onKeyEvent()
392 onKeyEvent(event); in emulateKeyEvent()
396 onKeyEvent(event); in emulateKeyEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java116 verify(mInputListener, never()).onKeyEvent(any(), anyInt()); in ignoresSetListener_beforeKeyInputSupported()
216 }).when(mInputListener).onKeyEvent(any(), eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in dispatchesInputEvent_multiple_toListener_mainDisplay()
240 }).when(mInputListener).onKeyEvent(any(), in dispatchesInputEvent_multiple_toListener_clusterDisplay()
262 verify(mInputListener, never()).onKeyEvent(any(), anyInt()); in dispatchesInputEvent_invalidInputEvent()
268 verify(mInputListener, never()).onKeyEvent(any(), anyInt()); in dispatchesInputEvent_invalidInputEvent()
274 verify(mInputListener, never()).onKeyEvent(any(), anyInt()); in dispatchesInputEvent_invalidInputEvent()
865 verify(mInputListener).onKeyEvent(captor.capture(), eq(expectedDisplay)); in dispatchSingleEvent()
891 verify(mInputListener).onKeyEvent(captor.capture(), eq(expectedDisplay), in dispatchSinglePerSeatEvent()
943 verify(mInputListener, times(indents)).onKeyEvent(captor.capture(), in dispatchSingleEventWithIndents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DInstrumentClusterServiceTest.java115 public void onKeyEvent(KeyEvent keyEvent) throws RemoteException { in onKeyEvent() method in InstrumentClusterServiceTest.TestClusterRenderer
223 mService.onKeyEvent(event); in testOnKeyEvent()
234 mService.onKeyEvent(event); in testOnKeyEvent_rendererThrowsError()
/packages/services/Car/car-lib/src/android/car/
DICarProjectionKeyEventHandler.aidl23 void onKeyEvent(int event) = 0; in onKeyEvent() method
DCarProjectionManager.java107 void onKeyEvent(@KeyEventNum int event); in onKeyEvent() method
882 public void onKeyEvent(@KeyEventNum int event) { in onKeyEvent() method in CarProjectionManager.ICarProjectionKeyEventHandlerImpl
901 entry.second.execute(() -> listener.onKeyEvent(event)); in onKeyEvent()
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DIInstrumentCluster.aidl44 oneway void onKeyEvent(in KeyEvent keyEvent); in onKeyEvent() method
DInstrumentClusterRenderingService.java216 public void onKeyEvent(@NonNull KeyEvent keyEvent) { in onKeyEvent() method in InstrumentClusterRenderingService
534 public void onKeyEvent(KeyEvent keyEvent) throws RemoteException { in onKeyEvent() method in InstrumentClusterRenderingService.RendererBinder
535 mUiHandler.post(() -> InstrumentClusterRenderingService.this.onKeyEvent(keyEvent)); in onKeyEvent()
/packages/services/Car/tests/carservice_unit_test/src/android/car/cluster/renderer/
DInstrumentClusterRenderingServiceTest.java311 mRendererBinder.onKeyEvent(new KeyEvent(KeyEvent.FLAG_EDITOR_ACTION, KEYCODE_1)); in clusterOnKeyEvent_triggersOnKeyEventOnService()
321 mService.onKeyEvent(new KeyEvent(KeyEvent.FLAG_EDITOR_ACTION, KEYCODE_1)); in onKeyEvent_doesNothing()
664 public void onKeyEvent(@NonNull KeyEvent keyEvent) { in onKeyEvent() method in InstrumentClusterRenderingServiceTest.TestableInstrumentClusterRenderingService
666 super.onKeyEvent(keyEvent); in onKeyEvent()
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java100 void onKeyEvent(KeyEvent event, int targetDisplay); in onKeyEvent() method
103 void onKeyEvent(KeyEvent event, int targetDisplay, int seat); in onKeyEvent() method
815 listener.onKeyEvent(event, display);
847 listener.onKeyEvent(event, display, seat);
/packages/services/Car/car-lib-module/api/
Dsystem-removed.txt25 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDragAndDropManager.java47 public void onKeyEvent(KeyEvent event) {} in onKeyEvent() method in TestDragAndDropManager
/packages/services/Car/car-lib/api/
Dtest-removed.txt25 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
Dsystem-removed.txt25 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragAndDropManager.java65 void onKeyEvent(KeyEvent event); in onKeyEvent() method
211 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in DragAndDropManager.RuntimeDragAndDropManager
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DInputConsumerProxy.java91 mInputConsumer.onKeyEvent((KeyEvent) ev); in onInputConsumerEvent()
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java391 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in InstrumentClusterService
399 service.onKeyEvent(event); in onKeyEvent()

12