/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 144 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 …]
|
D | CarProjectionServiceTest.java | 265 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/ |
D | CarProjectionManagerTest.java | 149 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/ |
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/service/src/com/android/car/ |
D | CarInputService.java | 90 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()
|
D | CarProjectionService.java | 819 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/ |
D | ClusterRenderingService.java | 91 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()
|
D | MainClusterActivity.java | 332 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in MainClusterActivity
|
/packages/services/Car/car-lib/src/android/car/input/ |
D | CarInputHandlingService.java | 124 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()
|
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 | 100 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/ |
D | InputHalServiceTest.java | 105 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/ |
D | CarProjectionManager.java | 101 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()
|
D | ICarProjectionKeyEventHandler.aidl | 23 void onKeyEvent(int event) = 0; in onKeyEvent() method
|
/packages/services/Car/car-lib/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingService.java | 208 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()
|
D | IInstrumentCluster.aidl | 44 oneway void onKeyEvent(in KeyEvent keyEvent); in onKeyEvent() method
|
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/ |
D | ClusterHomeApplication.java | 268 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/ |
D | InputHalService.java | 80 void onKeyEvent(KeyEvent event, int targetDisplay); in onKeyEvent() method 375 listener.onKeyEvent(event, display);
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | InstrumentClusterService.java | 365 public void onKeyEvent(KeyEvent event) { in onKeyEvent() method in InstrumentClusterService 373 service.onKeyEvent(event); in onKeyEvent()
|
/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 | 70 mInputConsumer.onKeyEvent((KeyEvent) ev); in onInputConsumerEvent()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDragAndDropManager.java | 47 public void onKeyEvent(KeyEvent event) {} in onKeyEvent() method in TestDragAndDropManager
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | OverviewInputConsumer.java | 104 public void onKeyEvent(KeyEvent ev) { in onKeyEvent() method in OverviewInputConsumer
|
/packages/services/Car/car-test-lib/src/android/car/testapi/ |
D | FakeCarProjectionService.java | 103 entry.getKey().onKeyEvent(event); in fireKeyEvent()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/ |
D | InstrumentClusterServiceTest.java | 90 public void onKeyEvent(KeyEvent keyEvent) {
|