Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java144 when(mCaptureController.onKeyEvent(anyInt(), any(KeyEvent.class))).thenReturn(true); in testOnRotaryEvent_injectingRotaryNavigationEvent()
151 verify(mCaptureController, never()).onKeyEvent(anyInt(), any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigationEvent()
152 verify(mDefaultMainListener, never()).onKeyEvent(any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryNavigationEvent()
163 when(mCaptureController.onKeyEvent(anyInt(), any(KeyEvent.class))).thenReturn(true); in testOnRotaryEvent_injectingRotaryVolumeEvent()
172 verify(mCaptureController, times(numberOfGeneratedKeyEvents)).onKeyEvent(anyInt(), in testOnRotaryEvent_injectingRotaryVolumeEvent()
174 verify(mDefaultMainListener, never()).onKeyEvent(any(KeyEvent.class)); in testOnRotaryEvent_injectingRotaryVolumeEvent()
193 verify(mCaptureController, times(numberOfGeneratedKeyEvents)).onKeyEvent(anyInt(), in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
195 verify(mDefaultMainListener, times(numberOfGeneratedKeyEvents)).onKeyEvent( in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
242 verify(mDefaultMainListener).onKeyEvent(event); in ordinaryEvents_onMainDisplay_routedToInputManager()
249 verify(mDefaultMainListener, never()).onKeyEvent(any()); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
[all …]
DCarProjectionServiceTest.java265 mService.onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_getsDispatchedEvents()
267 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_getsDispatchedEvents()
304 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
306 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
308 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP); in addedKeyEventHandler_registersWithCarInputService()
311 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
313 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
315 .onKeyEvent(CarProjectionManager.KEY_EVENT_VOICE_SEARCH_LONG_PRESS_KEY_DOWN); in addedKeyEventHandler_registersWithCarInputService()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java149 verify(eventHandler1).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventListener_registerMultipleEventListeners()
150 verify(eventHandler2).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventListener_registerMultipleEventListeners()
154 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
155 verify(eventHandler2).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_LONG_PRESS_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
158 verify(eventHandler1, never()).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
159 verify(eventHandler2, never()).onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_KEY_DOWN); in keyEventListener_registerMultipleEventListeners()
176 verify(eventHandler).onKeyEvent(evt); in keyEventHandler_canRegisterAllEvents()
209 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_whenRegisteredAgain_replacesEventList()
217 .onKeyEvent(CarProjectionManager.KEY_EVENT_CALL_SHORT_PRESS_KEY_UP); in keyEventHandler_whenRegisteredAgain_replacesEventList()
233 .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()
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/service/src/com/android/car/
DCarInputService.java90 void onKeyEvent(KeyEvent event); in onKeyEvent() method
353 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in onKeyEvent() method in CarInputService
373 if (mCaptureController.onKeyEvent(targetDisplayType, event)) { in onKeyEvent()
376 mMainDisplayHandler.onKeyEvent(event); in onKeyEvent()
393 onKeyEvent(keyEvent, targetDisplay); in onRotaryEvent()
488 onKeyEvent(event, targetDisplayType); in injectKeyEvent()
590 projectionKeyEventHandler.onKeyEvent(event); in dispatchProjectionKeyEvent()
690 listener.onKeyEvent(event); in handleInstrumentClusterKey()
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/DirectRenderingCluster/src/android/car/cluster/
DClusterRenderingService.java91 void onKeyEvent(KeyEvent keyEvent); in onKeyEvent() method
235 public void onKeyEvent(KeyEvent keyEvent) { in onKeyEvent() method in ClusterRenderingService
239 broadcastClientEvent(client -> client.onKeyEvent(keyEvent)); in onKeyEvent()
308 onKeyEvent(event); in emulateKeyEvent()
312 onKeyEvent(event); in emulateKeyEvent()
DMainClusterActivity.java332 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in MainClusterActivity
/packages/services/Car/car-lib/src/android/car/input/
DCarInputHandlingService.java124 protected abstract void onKeyEvent(KeyEvent keyEvent, int targetDisplay); in onKeyEvent() method in CarInputHandlingService
140 public void onKeyEvent(KeyEvent keyEvent, int targetDisplay) throws RemoteException { in onKeyEvent() method in CarInputHandlingService.InputBinder
161 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.java100 default void onKeyEvent(KeyEvent ev) { } in onKeyEvent() method
106 onKeyEvent((KeyEvent) ev); in onInputEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java105 verify(mInputListener, never()).onKeyEvent(any(), anyInt()); in ignoresSetListener_beforeKeyInputSupported()
198 }).when(mInputListener).onKeyEvent(any(), eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in dispatchesInputEvent_multiple_toListener_mainDisplay()
222 }).when(mInputListener).onKeyEvent(any(), in dispatchesInputEvent_multiple_toListener_clusterDisplay()
504 verify(mInputListener).onKeyEvent(captor.capture(), eq(expectedDisplay)); in dispatchSingleEvent()
515 verify(mInputListener, times(indents)).onKeyEvent(captor.capture(), in dispatchSingleEventWithIndents()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java101 void onKeyEvent(@KeyEventNum int event); in onKeyEvent() method
816 public void onKeyEvent(@KeyEventNum int event) { in onKeyEvent() method in CarProjectionManager.ICarProjectionKeyEventHandlerImpl
835 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.java208 public void onKeyEvent(@NonNull KeyEvent keyEvent) { in onKeyEvent() method in InstrumentClusterRenderingService
513 public void onKeyEvent(KeyEvent keyEvent) throws RemoteException { in onKeyEvent() method in InstrumentClusterRenderingService.RendererBinder
514 mUiHandler.post(() -> InstrumentClusterRenderingService.this.onKeyEvent(keyEvent)); in onKeyEvent()
DIInstrumentCluster.aidl44 oneway void onKeyEvent(in KeyEvent keyEvent); in onKeyEvent() method
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
DClusterHomeApplication.java268 keyEvents.forEach((keyEvent) -> onKeyEvent(keyEvent));
272 private void onKeyEvent(KeyEvent keyEvent) { in onKeyEvent() method in ClusterHomeApplication
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java80 void onKeyEvent(KeyEvent event, int targetDisplay); in onKeyEvent() method
375 listener.onKeyEvent(event, display);
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java365 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in InstrumentClusterService
373 service.onKeyEvent(event); in onKeyEvent()
/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.java70 mInputConsumer.onKeyEvent((KeyEvent) ev); in onInputConsumerEvent()
/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/src/com/android/quickstep/inputconsumers/
DOverviewInputConsumer.java104 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() method in OverviewInputConsumer
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarProjectionService.java103 entry.getKey().onKeyEvent(event); in fireKeyEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DInstrumentClusterServiceTest.java90 public void onKeyEvent(KeyEvent keyEvent) {

12