Home
last modified time | relevance | path

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

/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java34 import android.car.input.CustomInputEvent;
98 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_launchingMaps()
101 /* inputCode= */ CustomInputEvent.INPUT_CODE_F1, in testHandleEvent_launchingMaps()
131 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_acceptIncomingCallAction()
134 /* inputCode= */ CustomInputEvent.INPUT_CODE_F2, in testHandleEvent_acceptIncomingCallAction()
148 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_rejectIncomingCallAction()
151 /* inputCode= */ CustomInputEvent.INPUT_CODE_F3, in testHandleEvent_rejectIncomingCallAction()
165 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_launchHomeAction()
168 /* inputCode= */ CustomInputEvent.INPUT_CODE_F8, in testHandleEvent_launchHomeAction()
201 CustomInputEvent event = new CustomInputEvent(CustomInputEvent.INPUT_CODE_F1, in testHandleEvent_ignoringEventsForNonMainDisplay()
[all …]
/packages/services/Car/car-lib/src/android/car/input/
DCustomInputEvent.java45 public final class CustomInputEvent implements Parcelable { class
129 public CustomInputEvent( in CustomInputEvent() method in CustomInputEvent
206 CustomInputEvent that = (CustomInputEvent) o; in equals()
249 /* package-private */ CustomInputEvent(@NonNull Parcel in) { in CustomInputEvent() method in CustomInputEvent
291 Parcelable.Creator<CustomInputEvent> CREATOR
292 = new Parcelable.Creator<CustomInputEvent>() {
294 public CustomInputEvent[] newArray(int size) {
295 return new CustomInputEvent[size];
299 public CustomInputEvent createFromParcel(@NonNull Parcel in) {
300 return new CustomInputEvent(in);
DICarInputCallback.aidl18 import android.car.input.CustomInputEvent;
31 void onCustomInputEvents(int targetDisplayType, in List<CustomInputEvent> events) = 4; in onCustomInputEvents()
DCarInputManager.java104 @NonNull List<CustomInputEvent> events) {} in onCustomInputEvents()
410 List<CustomInputEvent> events) { in dispatchCustomInputEvents()
463 @NonNull List<CustomInputEvent> events) { in onCustomInputEvents()
DCustomInputEvent.aidl18 parcelable CustomInputEvent;
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java23 import android.car.input.CustomInputEvent;
56 int LAUNCH_MAPS_ACTION = CustomInputEvent.INPUT_CODE_F1;
59 int ACCEPT_INCOMING_CALL_ACTION = CustomInputEvent.INPUT_CODE_F2;
62 int REJECT_INCOMING_CALL_ACTION = CustomInputEvent.INPUT_CODE_F3;
65 int INCREASE_MEDIA_VOLUME_ACTION = CustomInputEvent.INPUT_CODE_F4;
68 int DECREASE_MEDIA_VOLUME_ACTION = CustomInputEvent.INPUT_CODE_F5;
71 int INCREASE_ALARM_VOLUME_ACTION = CustomInputEvent.INPUT_CODE_F6;
74 int DECREASE_ALARM_VOLUME_ACTION = CustomInputEvent.INPUT_CODE_F7;
77 int BACK_HOME_ACTION = CustomInputEvent.INPUT_CODE_F8;
91 public void handle(int targetDisplayType, CustomInputEvent event) { in handle()
DSampleCustomInputService.java22 import android.car.input.CustomInputEvent;
100 @NonNull List<CustomInputEvent> events) { in onCustomInputEvents()
101 for (CustomInputEvent event : events) { in onCustomInputEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java35 import android.car.input.CustomInputEvent;
442 List<CustomInputEvent> events = new ArrayList<>(); in dispatchesCustomInputEvent_mainDisplay()
444 CustomInputEvent event = invocation.getArgument(0); in dispatchesCustomInputEvent_mainDisplay()
458 assertThat(events).containsExactly(new CustomInputEvent( in dispatchesCustomInputEvent_mainDisplay()
459 CustomInputEvent.INPUT_CODE_F1, CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in dispatchesCustomInputEvent_mainDisplay()
468 List<CustomInputEvent> events = new ArrayList<>(); in dispatchesCustomInputEvent_clusterDisplay()
470 CustomInputEvent event = invocation.getArgument(0); in dispatchesCustomInputEvent_clusterDisplay()
484 assertThat(events).containsExactly(new CustomInputEvent( in dispatchesCustomInputEvent_clusterDisplay()
485 CustomInputEvent.INPUT_CODE_F1, in dispatchesCustomInputEvent_clusterDisplay()
/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java33 import android.car.input.CustomInputEvent;
92 private final LinkedList<Pair<Integer, List<CustomInputEvent>>> mCustomInputEvents =
126 @NonNull List<CustomInputEvent> events) { in onCustomInputEvents()
191 private LinkedList<Pair<Integer, List<CustomInputEvent>>> getCustomInputEvents() { in getCustomInputEvents()
193 LinkedList<Pair<Integer, List<CustomInputEvent>>> r = in getCustomInputEvents()
781 LinkedList<Pair<Integer, List<CustomInputEvent>>> events = callback.getCustomInputEvents(); in assertLastCustomInputEvent()
784 Pair<Integer, List<CustomInputEvent>> lastEvent = events.getFirst(); in assertLastCustomInputEvent()
788 CustomInputEvent event = lastEvent.second.get(0); in assertLastCustomInputEvent()
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java31 import android.car.input.CustomInputEvent;
84 void onCustomInputEvent(CustomInputEvent event); in onCustomInputEvent()
389 CustomInputEvent event = new CustomInputEvent(inputCode, targetDisplayType, repeatCounter);
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java44 import android.car.input.CustomInputEvent;
325 CUSTOM_INPUT_FUNCTION_ARGS.put("f1", CustomInputEvent.INPUT_CODE_F1);
326 CUSTOM_INPUT_FUNCTION_ARGS.put("f2", CustomInputEvent.INPUT_CODE_F2);
327 CUSTOM_INPUT_FUNCTION_ARGS.put("f3", CustomInputEvent.INPUT_CODE_F3);
328 CUSTOM_INPUT_FUNCTION_ARGS.put("f4", CustomInputEvent.INPUT_CODE_F4);
329 CUSTOM_INPUT_FUNCTION_ARGS.put("f5", CustomInputEvent.INPUT_CODE_F5);
330 CUSTOM_INPUT_FUNCTION_ARGS.put("f6", CustomInputEvent.INPUT_CODE_F6);
331 CUSTOM_INPUT_FUNCTION_ARGS.put("f7", CustomInputEvent.INPUT_CODE_F7);
332 CUSTOM_INPUT_FUNCTION_ARGS.put("f8", CustomInputEvent.INPUT_CODE_F8);
333 CUSTOM_INPUT_FUNCTION_ARGS.put("f9", CustomInputEvent.INPUT_CODE_F9);
[all …]
DInputCaptureClientController.java27 import android.car.input.CustomInputEvent;
225 private final ArrayList<CustomInputEvent> mCustomInputEventDispatchScratchList =
578 public boolean onCustomInputEvent(CustomInputEvent event) { in onCustomInputEvent()
743 CustomInputEvent event, in dispatchCustomInputEvent()
DCarInputService.java34 import android.car.input.CustomInputEvent;
399 public void onCustomInputEvent(CustomInputEvent event) { in onCustomInputEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java20 import static android.car.input.CustomInputEvent.INPUT_CODE_F1;
50 import android.car.input.CustomInputEvent;
213 CustomInputEvent event = new CustomInputEvent(INPUT_CODE_F1, in testOnCustomInputEvent_delegatesToCaptureController()
/packages/services/Car/tests/SampleCustomInputService/
Dreadme.md31 These are the test scripts to demonstrate how CustomInputEvent can be used to implement OEM
/packages/services/Car/car-lib/api/
Dsystem-current.txt947 …default void onCustomInputEvents(int, @NonNull java.util.List<android.car.input.CustomInputEvent>);
952 public final class CustomInputEvent implements android.os.Parcelable {
953 ctor public CustomInputEvent(int, int, int);
960 …Null public static final android.os.Parcelable.Creator<android.car.input.CustomInputEvent> CREATOR;