Home
last modified time | relevance | path

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

/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java172 injectKeyEvent(targetDisplayType, KeyEvent.KEYCODE_CALL); in acceptIncomingCall()
179 injectKeyEvent(targetDisplayType, KeyEvent.KEYCODE_ENDCALL); in rejectIncomingCall()
238 injectKeyEvent(targetDisplayType, KeyEvent.KEYCODE_HOME); in launchHome()
241 private void injectKeyEvent(int targetDisplayType, int keyCode) { in injectKeyEvent() method in CustomInputEventListener
245 mService.injectKeyEvent(keyDown, targetDisplayType); in injectKeyEvent()
249 mService.injectKeyEvent(keyUp, targetDisplayType); in injectKeyEvent()
DSampleCustomInputService.java106 public void injectKeyEvent(KeyEvent event, int targetDisplayType) { in injectKeyEvent() method in SampleCustomInputService
111 mCarInputManager.injectKeyEvent(event, targetDisplayType); in injectKeyEvent()
/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java278 mCarInputManager.injectKeyEvent(keyEvent, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testInjectKeyEvent_mainDisplay()
296 mCarInputManager.injectKeyEvent(keyEvent, in testInjectKeyEvent_instrumentClusterDisplay()
348 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testDelayedGrantWithFullCapture()
353 injectKeyEvent(true, KeyEvent.KEYCODE_DPAD_CENTER); in testDelayedGrantWithFullCapture()
459 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testIndependentTwoCaptures()
478 injectKeyEvent(true, KeyEvent.KEYCODE_DPAD_CENTER); in testTwoClientsOverwrap()
502 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testTwoClientsOverwrap()
508 injectKeyEvent(true, KeyEvent.KEYCODE_DPAD_CENTER); in testTwoClientsOverwrap()
581 injectKeyEvent(true, KeyEvent.KEYCODE_MENU, VehicleDisplay.INSTRUMENT_CLUSTER); in testFullCapturerAcceptsNotMappedKey()
675 injectKeyEvent(true, KeyEvent.KEYCODE_NAVIGATE_NEXT); in testInjectingKeyEventAndExecutor()
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DRotaryServiceTest.java1416 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_DOWN); in testOnKeyEvents_centerButtonClickInAppWindow_injectDpadCenterEvent()
1418 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_UP); in testOnKeyEvents_centerButtonClickInAppWindow_injectDpadCenterEvent()
1508 .injectKeyEvent(KeyEvent.KEYCODE_ENTER, KeyEvent.ACTION_DOWN); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_injectEnterKeyEvent()
1510 .injectKeyEvent(KeyEvent.KEYCODE_ENTER, KeyEvent.ACTION_UP); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_injectEnterKeyEvent()
1602 .injectKeyEvent(KeyEvent.KEYCODE_SPACE, KeyEvent.ACTION_DOWN); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_isCheckable_injectSpaceKeyEvent()
1604 .injectKeyEvent(KeyEvent.KEYCODE_SPACE, KeyEvent.ACTION_UP); in testOnKeyEvents_centerButtonClickInAppWindow_webViewFocused_isCheckable_injectSpaceKeyEvent()
2231 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_DOWN); in testDirectManipulationMode2()
2233 .injectKeyEvent(KeyEvent.KEYCODE_DPAD_CENTER, KeyEvent.ACTION_UP); in testDirectManipulationMode2()
2258 .injectKeyEvent(KeyEvent.KEYCODE_BACK, KeyEvent.ACTION_DOWN); in testDirectManipulationMode2()
2260 .injectKeyEvent(KeyEvent.KEYCODE_BACK, KeyEvent.ACTION_UP); in testDirectManipulationMode2()
/packages/services/Car/car-lib/src/android/car/input/
DCarInputManager.java354 public void injectKeyEvent(@NonNull KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in injectKeyEvent() method in CarInputManager
356 mService.injectKeyEvent(event, targetDisplayType); in injectKeyEvent()
DICarInput.aidl33 void injectKeyEvent(in KeyEvent event, int targetDisplayType) = 3; in injectKeyEvent() method
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java1398 injectKeyEvent(keyCode, action); in handleCenterButtonEvent()
1616 injectKeyEvent(keyCode, ACTION_DOWN); in handleAppSpecificOffScreenNudge()
1617 injectKeyEvent(keyCode, ACTION_UP); in handleAppSpecificOffScreenNudge()
1660 injectKeyEvent(keyCode, ACTION_DOWN); in handleAppAgnosticOffScreenNudge()
1661 injectKeyEvent(keyCode, ACTION_UP); in handleAppAgnosticOffScreenNudge()
1790 injectKeyEvent(KeyEvent.KEYCODE_BACK, action); in handleBackButtonEvent()
1975 injectKeyEvent(keyCode, action); in injectKeyEventForDirection()
1979 void injectKeyEvent(int keyCode, int action) { in injectKeyEvent() method in RotaryService
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/input/
DCarInputManagerPermisisonTest.java79 () -> mCarInputManager.injectKeyEvent(anyKeyEvent, in testInjectKeyEvent()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1107 injectKeyEvent(KeyEvent.ACTION_DOWN, keyCode, display);
1109 injectKeyEvent(KeyEvent.ACTION_UP, keyCode, display);
1111 injectKeyEvent(action, keyCode, display);
1116 private void injectKeyEvent(int action, int keyCode, int display) {
1121 mCarInputService.injectKeyEvent(
DCarInputService.java478 public void injectKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in injectKeyEvent() method in CarInputService
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java671 () -> mCarInputService.injectKeyEvent(event, in injectKeyEvent_throwsSecurityExceptionWithoutInjectEventsPermission()
710 mCarInputService.injectKeyEvent(event, displayType); in injectKeyEventAndVerify()
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java182 verify(mService, times(2)).injectKeyEvent(keyEventCaptor.capture(), in assertKeyEvent()
/packages/services/Car/car-lib/api/
Dsystem-current.txt933 …resPermission(android.Manifest.permission.INJECT_EVENTS) public void injectKeyEvent(@NonNull andro…