/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 236 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 …]
|
D | CarProjectionServiceTest.java | 415 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()
|
D | CarProjectionManagerUnitTest.java | 93 keyEventHandlerImpl.onKeyEvent( in testRegisterProjectionListener() 102 keyEventHandlerImpl.onKeyEvent( in testRegisterProjectionListener()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarProjectionManagerTest.java | 174 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/ |
D | CarInputService.java | 117 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/ |
D | DragAndDropManagerTests.java | 391 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/ |
D | CarInputHandlingService.java | 127 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()
|
D | ICarInputListener.aidl | 27 void onKeyEvent(in KeyEvent keyEvent, int targetDisplay) = 1; in onKeyEvent() method
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | InputConsumer.java | 107 default void onKeyEvent(KeyEvent ev) { } in onKeyEvent() method 113 onKeyEvent((KeyEvent) ev); in onInputEvent()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | ClusterRenderingService.java | 98 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/ |
D | InputHalServiceTest.java | 116 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/ |
D | InstrumentClusterServiceTest.java | 115 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/ |
D | ICarProjectionKeyEventHandler.aidl | 23 void onKeyEvent(int event) = 0; in onKeyEvent() method
|
D | CarProjectionManager.java | 107 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/ |
D | IInstrumentCluster.aidl | 44 oneway void onKeyEvent(in KeyEvent keyEvent); in onKeyEvent() method
|
D | InstrumentClusterRenderingService.java | 216 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/ |
D | InstrumentClusterRenderingServiceTest.java | 311 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/ |
D | InputHalService.java | 100 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/ |
D | system-removed.txt | 25 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDragAndDropManager.java | 47 public void onKeyEvent(KeyEvent event) {} in onKeyEvent() method in TestDragAndDropManager
|
/packages/services/Car/car-lib/api/ |
D | test-removed.txt | 25 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
|
D | system-removed.txt | 25 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DragAndDropManager.java | 65 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/ |
D | InputConsumerProxy.java | 91 mInputConsumer.onKeyEvent((KeyEvent) ev); in onInputConsumerEvent()
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | InstrumentClusterService.java | 391 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in InstrumentClusterService 399 service.onKeyEvent(event); in onKeyEvent()
|