Home
last modified time | relevance | path

Searched refs:injectKeyEvent (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java138 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()
DSampleCustomInputService.java155 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/
DCarInputManagerTest.java292 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/
DRotaryServiceTest.java1441 .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/
DICarInput.aidl33 void injectKeyEvent(in KeyEvent event, int targetDisplayType) = 3; in injectKeyEvent() method
DCarInputManager.java393 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/
DRotaryService.java1521 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/
DCustomInputEventListenerTest.java369 verify(mService, times(events.length)).injectKeyEvent(keyEventCaptor.capture(), in assertKeyEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java948 () -> mCarInputService.injectKeyEvent(event, in injectKeyEvent_throwsSecurityExceptionWithoutInjectEventsPermission()
988 mCarInputService.injectKeyEvent(event, displayType); in injectKeyEventAndVerify()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1831 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) {
DCarInputService.java692 public void injectKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in injectKeyEvent() method in CarInputService
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1080 method TIRAMISU_0 void injectKeyEvent(KeyEvent event, int targetDisplayType);
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt1600 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…
/packages/services/Car/car-lib/api/
Dsystem-current.txt1600 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…
Dtest-current.txt1674 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…
Dsystem-lint-baseline.txt3148 UnflaggedApi: android.car.input.CarInputManager#injectKeyEvent(android.view.KeyEvent, int):
3149 …e flagged with @FlaggedApi: method android.car.input.CarInputManager.injectKeyEvent(android.view.K…