/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/ |
D | CustomInputEventListener.java | 138 injectKeyEvent(targetDisplayType, in handle() 142 injectKeyEvent(targetDisplayType, in handle() 208 injectKeyEvent(targetDisplayType, KeyEvent.KEYCODE_CALL); in acceptIncomingCall() 215 injectKeyEvent(targetDisplayType, KeyEvent.KEYCODE_ENDCALL); in rejectIncomingCall() 274 injectKeyEvent(targetDisplayType, KeyEvent.KEYCODE_HOME); in launchHome() 277 private void injectKeyEvent(int targetDisplayType, int keyCode) { in injectKeyEvent() method in CustomInputEventListener 279 injectKeyEvent(targetDisplayType, keyDown); in injectKeyEvent() 282 injectKeyEvent(targetDisplayType, keyUp); in injectKeyEvent() 291 private void injectKeyEvent(int targetDisplayType, KeyEvent event) { in injectKeyEvent() method in CustomInputEventListener 292 mService.injectKeyEvent(event, targetDisplayType); in injectKeyEvent()
|
D | SampleCustomInputService.java | 155 public void injectKeyEvent(KeyEvent event, int targetDisplayType) { in injectKeyEvent() method in SampleCustomInputService 160 mCarInputManager.injectKeyEvent(event, targetDisplayType); in injectKeyEvent()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/input/ |
D | CarInputManagerTest.java | 292 mCarInputManager.injectKeyEvent(keyEvent, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testInjectKeyEvent_mainDisplay() 310 mCarInputManager.injectKeyEvent(keyEvent, in testInjectKeyEvent_instrumentClusterDisplay() 362 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testDelayedGrantWithFullCapture() 366 injectKeyEvent(true, KeyEvent.KEYCODE_DPAD_CENTER); in testDelayedGrantWithFullCapture() 467 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testIndependentTwoCaptures() 485 injectKeyEvent(true, KeyEvent.KEYCODE_DPAD_CENTER); in testTwoClientsOverwrap() 506 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testTwoClientsOverwrap() 511 injectKeyEvent(true, KeyEvent.KEYCODE_DPAD_CENTER); in testTwoClientsOverwrap() 578 injectKeyEvent(true, KeyEvent.KEYCODE_MENU, VehicleDisplay.INSTRUMENT_CLUSTER); in testFullCapturerAcceptsNotMappedKey() 670 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testInjectingKeyEventAndExecutor() [all …]
|
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | RotaryServiceTest.java | 1441 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_DOWN); in testOnKeyEvents_centerButtonClickInAppWindow_injectDpadCenterEvent() 1443 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_UP); in testOnKeyEvents_centerButtonClickInAppWindow_injectDpadCenterEvent() 1534 .injectKeyEvent(KeyEvent.KEYCODE_ENTER, KeyEvent.ACTION_DOWN); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_injectEnterKeyEvent() 1536 .injectKeyEvent(KeyEvent.KEYCODE_ENTER, KeyEvent.ACTION_UP); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_injectEnterKeyEvent() 1629 .injectKeyEvent(KeyEvent.KEYCODE_SPACE, KeyEvent.ACTION_DOWN); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_isCheckable_injectSpaceKeyEvent() 1631 .injectKeyEvent(KeyEvent.KEYCODE_SPACE, KeyEvent.ACTION_UP); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_isCheckable_injectSpaceKeyEvent() 2257 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_DOWN); in testDirectManipulationMode2() 2259 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_UP); in testDirectManipulationMode2() 2284 .injectKeyEvent(KeyEvent.KEYCODE_BACK, KeyEvent.ACTION_DOWN); in testDirectManipulationMode2() 2286 .injectKeyEvent(KeyEvent.KEYCODE_BACK, KeyEvent.ACTION_UP); in testDirectManipulationMode2()
|
/packages/services/Car/car-lib/src/android/car/input/ |
D | ICarInput.aidl | 33 void injectKeyEvent(in KeyEvent event, int targetDisplayType) = 3; in injectKeyEvent() method
|
D | CarInputManager.java | 393 public void injectKeyEvent(@NonNull KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in injectKeyEvent() method in CarInputManager 395 mService.injectKeyEvent(event, targetDisplayType); in injectKeyEvent()
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | RotaryService.java | 1521 injectKeyEvent(keyCode, action); in handleCenterButtonEvent() 1804 injectKeyEvent(keyCode, ACTION_DOWN); in handleAppSpecificOffScreenNudge() 1805 injectKeyEvent(keyCode, ACTION_UP); in handleAppSpecificOffScreenNudge() 1851 injectKeyEvent(keyCode, ACTION_DOWN); in handleAppAgnosticOffScreenNudge() 1852 injectKeyEvent(keyCode, ACTION_UP); in handleAppAgnosticOffScreenNudge() 2038 injectKeyEvent(KeyEvent.KEYCODE_BACK, action); in handleBackButtonEvent() 2263 injectKeyEvent(keyCode, action); in injectKeyEventForProjectedApp() 2272 injectKeyEvent(keyCode, action); in injectKeyEventForDirection() 2276 void injectKeyEvent(int keyCode, int action) { in injectKeyEvent() method in RotaryService
|
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/ |
D | CustomInputEventListenerTest.java | 369 verify(mService, times(events.length)).injectKeyEvent(keyEventCaptor.capture(), in assertKeyEvents()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 948 () -> mCarInputService.injectKeyEvent(event, in injectKeyEvent_throwsSecurityExceptionWithoutInjectEventsPermission() 988 mCarInputService.injectKeyEvent(event, displayType); in injectKeyEventAndVerify()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 1831 injectKeyEvent(KeyEvent.ACTION_DOWN, keyCode, display, seat); 1833 injectKeyEvent(KeyEvent.ACTION_UP, keyCode, display, seat); 1835 injectKeyEvent(action, keyCode, display, seat); 1840 private void injectKeyEvent(int action, int keyCode, int display, int seat) {
|
D | CarInputService.java | 692 public void injectKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in injectKeyEvent() method in CarInputService
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 1080 method TIRAMISU_0 void injectKeyEvent(KeyEvent event, int targetDisplayType);
|
/packages/services/Car/car-lib-module/api/ |
D | system-current.txt | 1600 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…
|
/packages/services/Car/car-lib/api/ |
D | system-current.txt | 1600 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…
|
D | test-current.txt | 1674 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…
|
D | system-lint-baseline.txt | 3148 UnflaggedApi: android.car.input.CarInputManager#injectKeyEvent(android.view.KeyEvent, int): 3149 …e flagged with @FlaggedApi: method android.car.input.CarInputManager.injectKeyEvent(android.view.K…
|