/packages/services/Car/car-lib/src/android/car/input/ |
D | CarInputManager.java | 77 default void onKeyEvents(@DisplayTypeEnum int targetDisplayType, in onKeyEvents() argument 86 default void onRotaryEvents(@DisplayTypeEnum int targetDisplayType, in onRotaryEvents() argument 97 default void onCaptureStateChanged(@DisplayTypeEnum int targetDisplayType, in onCaptureStateChanged() argument 106 default void onCustomInputEvents(@DisplayTypeEnum int targetDisplayType, in onCustomInputEvents() argument 306 public int requestInputEventCapture(@DisplayTypeEnum int targetDisplayType, in requestInputEventCapture() argument 311 return requestInputEventCapture(targetDisplayType, inputTypes, requestFlags, handler::post, in requestInputEventCapture() 337 public int requestInputEventCapture(@DisplayTypeEnum int targetDisplayType, in requestInputEventCapture() argument 346 mCarInputCaptureCallbacks.put(targetDisplayType, in requestInputEventCapture() 350 return mService.requestInputEventCapture(mServiceCallback, targetDisplayType, in requestInputEventCapture() 363 public void releaseInputEventCapture(@DisplayTypeEnum int targetDisplayType) { in releaseInputEventCapture() argument [all …]
|
D | ICarInputCallback.aidl | 28 void onKeyEvents(int targetDisplayType, in List<KeyEvent> keyEvents) = 1; in onKeyEvents() argument 29 void onRotaryEvents(int targetDisplayType, in List<RotaryEvent> events) = 2; in onRotaryEvents() argument 30 void onCaptureStateChanged(int targetDisplayType, in int[] activeInputTypes) = 3; in onCaptureStateChanged() argument 31 void onCustomInputEvents(int targetDisplayType, in List<CustomInputEvent> events) = 4; in onCustomInputEvents() argument
|
D | ICarInput.aidl | 28 int requestInputEventCapture(in ICarInputCallback callback, int targetDisplayType, in requestInputEventCapture() argument 31 void releaseInputEventCapture(in ICarInputCallback callback, int targetDisplayType) = 2; in releaseInputEventCapture() argument 33 void injectKeyEvent(in KeyEvent event, int targetDisplayType) = 3; in injectKeyEvent() argument
|
D | CustomInputEvent.java | 86 int targetDisplayType, in CustomInputEvent() argument 90 this.mTargetDisplayType = targetDisplayType; in CustomInputEvent()
|
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/ |
D | CustomInputEventListener.java | 106 public void handle(int targetDisplayType, CustomInputEvent event) { in handle() argument 107 if (!isValidTargetDisplayType(targetDisplayType)) { in handle() 110 int targetDisplayId = getDisplayIdForDisplayType(targetDisplayType); in handle() 117 acceptIncomingCall(targetDisplayType); in handle() 120 rejectIncomingCall(targetDisplayType); in handle() 135 launchHome(targetDisplayType); in handle() 138 injectKeyEvent(targetDisplayType, in handle() 142 injectKeyEvent(targetDisplayType, in handle() 153 private int getDisplayIdForDisplayType(int targetDisplayType) { in getDisplayIdForDisplayType() argument 154 int displayId = mCarOccupantZoneManager.getDisplayIdForDriver(targetDisplayType); in getDisplayIdForDisplayType() [all …]
|
D | SampleCustomInputService.java | 148 public void onCustomInputEvents(int targetDisplayType, in onCustomInputEvents() argument 151 mEventHandler.handle(targetDisplayType, event); in onCustomInputEvents() 155 public void injectKeyEvent(KeyEvent event, int targetDisplayType) { in injectKeyEvent() argument 160 mCarInputManager.injectKeyEvent(event, targetDisplayType); in injectKeyEvent()
|
/packages/services/Car/service/src/com/android/car/ |
D | InputCaptureClientController.java | 129 int targetDisplayType, int[] inputTypes, int flags) { in ClientInfoForDisplay() argument 133 mTargetDisplayType = targetDisplayType; in ClientInfoForDisplay() 253 @DisplayTypeEnum int targetDisplayType, in requestInputEventCapture() argument 258 Preconditions.checkArgument(SUPPORTED_DISPLAY_TYPES.contains(targetDisplayType), in requestInputEventCapture() 259 "Display not supported yet:" + targetDisplayType); in requestInputEventCapture() local 264 if (targetDisplayType != CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER) { in requestInputEventCapture() 276 if (targetDisplayType != CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER in requestInputEventCapture() 277 && targetDisplayType != CarOccupantZoneManager.DISPLAY_TYPE_MAIN) { in requestInputEventCapture() 278 throw new IllegalArgumentException("Unrecognized display type:" + targetDisplayType); in requestInputEventCapture() 292 + ", display:" + targetDisplayType in requestInputEventCapture() [all …]
|
D | CarInputService.java | 474 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in onKeyEvent() argument 475 onKeyEvent(event, targetDisplayType, mDriverSeat); in onKeyEvent() 485 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType, in onKeyEvent() argument 496 notifyUserActivity(event, targetDisplayType, seat); in onKeyEvent() 500 dispatchKeyEventForDriver(event, targetDisplayType); in onKeyEvent() 505 notifyKeyEventListener(event, targetDisplayType, seat); in onKeyEvent() 508 private void dispatchKeyEventForDriver(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in dispatchKeyEventForDriver() argument 514 handleVoiceAssistKey(event, targetDisplayType); in dispatchKeyEventForDriver() 523 assignDisplayId(event, targetDisplayType); in dispatchKeyEventForDriver() 526 if (targetDisplayType == CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER in dispatchKeyEventForDriver() [all …]
|
/packages/services/Car/tests/SampleVoiceAssistInputService/src/com/android/car/voiceassist/sample/ |
D | VoiceAssistEventHandler.java | 49 public void onKeyEvents(int targetDisplayType, in onKeyEvents() argument 84 private int getDisplayIdForDisplayType(int targetDisplayType) { in getDisplayIdForDisplayType() argument 85 int displayId = mCarOccupantZoneManager.getDisplayIdForDriver(targetDisplayType); in getDisplayIdForDisplayType() 88 + targetDisplayType + "}"); in getDisplayIdForDisplayType()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/input/ |
D | CarInputManagerTest.java | 109 public void onKeyEvents(@DisplayTypeEnum int targetDisplayType, in onKeyEvents() argument 113 mKeyEvents.addFirst(new Pair<>(targetDisplayType, keyEvents)); in onKeyEvents() 119 public void onRotaryEvents(@DisplayTypeEnum int targetDisplayType, in onRotaryEvents() argument 123 mRotaryEvents.addFirst(new Pair<>(targetDisplayType, events)); in onRotaryEvents() 129 public void onCustomInputEvents(@DisplayTypeEnum int targetDisplayType, in onCustomInputEvents() argument 133 mCustomInputEvents.addFirst(new Pair<>(targetDisplayType, events)); in onCustomInputEvents() 139 public void onCaptureStateChanged(@DisplayTypeEnum int targetDisplayType, in onCaptureStateChanged() argument 144 mStateChanges.addFirst(new Pair<>(targetDisplayType, activeInputTypes)); in onCaptureStateChanged() 1023 private void injectCustomInputEvent(int inputCode, int targetDisplayType, int repeatCounter) { in injectCustomInputEvent() argument 1026 .addIntValues(inputCode).addIntValues(targetDisplayType) in injectCustomInputEvent()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | InputHalServiceTest.java | 950 @DisplayTypeEnum int targetDisplayType) { in makeKeyPropValue() argument 955 new int[]{actionValue, code, targetDisplayType}); in makeKeyPropValue() 959 @DisplayTypeEnum int targetDisplayType) { in makeKeyPropValueWithIndents() argument 962 new int[]{VehicleHwKeyInputAction.ACTION_DOWN, code, targetDisplayType, indents}); in makeKeyPropValueWithIndents() 966 int delayBetweenDetents, @DisplayTypeEnum int targetDisplayType) { in makeRotaryPropValue() argument 970 int32Values.add(targetDisplayType); in makeRotaryPropValue() 979 @DisplayTypeEnum int targetDisplayType, int repeatCounter) { in makeCustomInputPropValue() argument 981 new int[]{inputCode, targetDisplayType, repeatCounter}); in makeCustomInputPropValue()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | InputHalService.java | 855 int targetDisplayType; 859 targetDisplayType = convertDisplayType(value.getInt32Value(1)); 865 CustomInputEvent event = new CustomInputEvent(inputCode, targetDisplayType, repeatCounter);
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | RotaryService.java | 871 public void onKeyEvents(int targetDisplayType, @NonNull List<KeyEvent> events) { in onKeyEvents() argument 872 if (!isValidDisplayType(targetDisplayType)) { in onKeyEvents() 873 L.w("Invalid display type " + targetDisplayType); in onKeyEvents() 887 public void onRotaryEvents(int targetDisplayType, @NonNull List<RotaryEvent> events) { in onRotaryEvents() argument 888 if (!isValidDisplayType(targetDisplayType)) { in onRotaryEvents() 889 L.w("Invalid display type " + targetDisplayType); in onRotaryEvents()
|
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/ |
D | ClusterHomeApplication.java | 422 public void onKeyEvents(@CarOccupantZoneManager.DisplayTypeEnum int targetDisplayType,
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 1077 …method TIRAMISU_0 int requestInputEventCapture(int targetDisplayType, int[] inputTypes, int reques… 1078 …method TIRAMISU_0 int requestInputEventCapture(int targetDisplayType, int[] inputTypes, int reques… 1079 method TIRAMISU_0 void releaseInputEventCapture(int targetDisplayType); 1080 method TIRAMISU_0 void injectKeyEvent(KeyEvent event, int targetDisplayType); 1083 method TIRAMISU_0 void onKeyEvents(int targetDisplayType, List<KeyEvent> keyEvents); 1084 method TIRAMISU_0 void onRotaryEvents(int targetDisplayType, List<RotaryEvent> events); 1085 method TIRAMISU_0 void onCaptureStateChanged(int targetDisplayType, int[] activeInputTypes); 1086 … method TIRAMISU_0 void onCustomInputEvents(int targetDisplayType, List<CustomInputEvent> events);
|