Home
last modified time | relevance | path

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

/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java37 import android.car.input.CustomInputEvent;
105 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_launchingMaps()
108 /* inputCode= */ CustomInputEvent.INPUT_CODE_F1, in testHandleEvent_launchingMaps()
138 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_acceptIncomingCallAction()
141 /* inputCode= */ CustomInputEvent.INPUT_CODE_F2, in testHandleEvent_acceptIncomingCallAction()
158 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_rejectIncomingCallAction()
161 /* inputCode= */ CustomInputEvent.INPUT_CODE_F3, in testHandleEvent_rejectIncomingCallAction()
177 CustomInputEvent event = new CustomInputEvent( in testHandleEvent_launchHomeAction()
180 /* inputCode= */ CustomInputEvent.INPUT_CODE_F8, in testHandleEvent_launchHomeAction()
195 CustomInputEvent event = new CustomInputEvent(CustomInputEvent.INPUT_CODE_F1, in testHandleEvent_ignoringEventsForNonMainDisplay()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCustomInputEventTest.java22 import android.car.input.CustomInputEvent;
31 CustomInputEvent original = new CustomInputEvent( in testCustomInputEventWriteAndReadParcel()
32 /* inputCode= */ CustomInputEvent.INPUT_CODE_F1, in testCustomInputEventWriteAndReadParcel()
40 CustomInputEvent actual = CustomInputEvent.CREATOR.createFromParcel(parcel); in testCustomInputEventWriteAndReadParcel()
44 assertThat(actual.getInputCode()).isEqualTo(CustomInputEvent.INPUT_CODE_F1); in testCustomInputEventWriteAndReadParcel()
52 assertThat(CustomInputEvent.inputCodeToString(CustomInputEvent.INPUT_CODE_F1)).isEqualTo( in testInputCodeToString()
53 Integer.toString(CustomInputEvent.INPUT_CODE_F1)); in testInputCodeToString()
58 CustomInputEvent[] eventArray = CustomInputEvent.CREATOR.newArray(10); in testCustomInputEventParcelNewArray()
DCarInputManagerTest.java31 import android.car.input.CustomInputEvent;
96 private final LinkedList<Pair<Integer, List<CustomInputEvent>>> mCustomInputEvents =
130 @NonNull List<CustomInputEvent> events) { in onCustomInputEvents()
200 private LinkedList<Pair<Integer, List<CustomInputEvent>>> getCustomInputEvents() { in getCustomInputEvents()
202 LinkedList<Pair<Integer, List<CustomInputEvent>>> r = in getCustomInputEvents()
857 Pair<Integer, List<CustomInputEvent>> customInputEvents = in sendAndAssertCustomInputEvent()
860 CustomInputEvent customInputEvent = customInputEvents.second.get(0); in sendAndAssertCustomInputEvent()
988 LinkedList<Pair<Integer, List<CustomInputEvent>>> events = callback.getCustomInputEvents(); in waitAndAssertLastCustomInputEvent()
991 Pair<Integer, List<CustomInputEvent>> lastEvent = events.getFirst(); in waitAndAssertLastCustomInputEvent()
995 CustomInputEvent event = lastEvent.second.get(0); in waitAndAssertLastCustomInputEvent()
/packages/services/Car/car-lib/src/android/car/input/
DCustomInputEvent.java41 public final class CustomInputEvent implements Parcelable { class
84 public CustomInputEvent( in CustomInputEvent() method in CustomInputEvent
136 CustomInputEvent that = (CustomInputEvent) o; in equals()
179 /* package-private */ CustomInputEvent(@NonNull Parcel in) { in CustomInputEvent() method in CustomInputEvent
192 Parcelable.Creator<CustomInputEvent> CREATOR
193 = new Parcelable.Creator<CustomInputEvent>() {
195 public CustomInputEvent[] newArray(int size) {
196 return new CustomInputEvent[size];
200 public CustomInputEvent createFromParcel(@NonNull Parcel in) {
201 return new CustomInputEvent(in);
DICarInputCallback.aidl18 import android.car.input.CustomInputEvent;
31 void onCustomInputEvents(int targetDisplayType, in List<CustomInputEvent> events) = 4; in onCustomInputEvents()
DCarInputManager.java107 @NonNull List<CustomInputEvent> events) {} in onCustomInputEvents()
449 List<CustomInputEvent> events) { in dispatchCustomInputEvents()
503 @NonNull List<CustomInputEvent> events) { in onCustomInputEvents()
DCustomInputEvent.aidl18 parcelable CustomInputEvent;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java41 import android.car.input.CustomInputEvent;
532 List<CustomInputEvent> events = new ArrayList<>(); in dispatchesCustomInputEvent_mainDisplay()
534 CustomInputEvent event = invocation.getArgument(0); in dispatchesCustomInputEvent_mainDisplay()
548 assertThat(events).containsExactly(new CustomInputEvent( in dispatchesCustomInputEvent_mainDisplay()
549 CustomInputEvent.INPUT_CODE_F1, CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in dispatchesCustomInputEvent_mainDisplay()
558 List<CustomInputEvent> events = new ArrayList<>(); in dispatchesCustomInputEvent_clusterDisplay()
560 CustomInputEvent event = invocation.getArgument(0); in dispatchesCustomInputEvent_clusterDisplay()
574 assertThat(events).containsExactly(new CustomInputEvent( in dispatchesCustomInputEvent_clusterDisplay()
575 CustomInputEvent.INPUT_CODE_F1, in dispatchesCustomInputEvent_clusterDisplay()
593 CustomInputEvent.INPUT_CODE_F1); in dispatchesCustomInputEvent_InvalidEvent()
[all …]
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DSampleCustomInputService.java25 import android.car.input.CustomInputEvent;
149 @NonNull List<CustomInputEvent> events) { in onCustomInputEvents()
150 for (CustomInputEvent event : events) { in onCustomInputEvents()
DCustomInputEventListener.java23 import android.car.input.CustomInputEvent;
106 public void handle(int targetDisplayType, CustomInputEvent event) { in handle()
/packages/services/Car/service/src/com/android/car/
DInputCaptureClientController.java32 import android.car.input.CustomInputEvent;
231 private final ArrayList<CustomInputEvent> mCustomInputEventDispatchScratchList =
585 public boolean onCustomInputEvent(CustomInputEvent event) { in onCustomInputEvent()
753 CustomInputEvent event, in dispatchCustomInputEvent()
DCarShellCommand.java66 import android.car.input.CustomInputEvent;
497 CUSTOM_INPUT_FUNCTION_ARGS.put("f1", CustomInputEvent.INPUT_CODE_F1);
498 CUSTOM_INPUT_FUNCTION_ARGS.put("f2", CustomInputEvent.INPUT_CODE_F2);
499 CUSTOM_INPUT_FUNCTION_ARGS.put("f3", CustomInputEvent.INPUT_CODE_F3);
500 CUSTOM_INPUT_FUNCTION_ARGS.put("f4", CustomInputEvent.INPUT_CODE_F4);
501 CUSTOM_INPUT_FUNCTION_ARGS.put("f5", CustomInputEvent.INPUT_CODE_F5);
502 CUSTOM_INPUT_FUNCTION_ARGS.put("f6", CustomInputEvent.INPUT_CODE_F6);
503 CUSTOM_INPUT_FUNCTION_ARGS.put("f7", CustomInputEvent.INPUT_CODE_F7);
504 CUSTOM_INPUT_FUNCTION_ARGS.put("f8", CustomInputEvent.INPUT_CODE_F8);
505 CUSTOM_INPUT_FUNCTION_ARGS.put("f9", CustomInputEvent.INPUT_CODE_F9);
[all …]
DCarInputService.java44 import android.car.input.CustomInputEvent;
613 public void onCustomInputEvent(CustomInputEvent event) { in onCustomInputEvent()
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java34 import android.car.input.CustomInputEvent;
112 void onCustomInputEvent(CustomInputEvent event); in onCustomInputEvent()
865 CustomInputEvent event = new CustomInputEvent(inputCode, targetDisplayType, repeatCounter);
/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/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java20 import static android.car.input.CustomInputEvent.INPUT_CODE_F1;
52 import android.car.input.CustomInputEvent;
307 CustomInputEvent event = new CustomInputEvent(INPUT_CODE_F1, in testOnCustomInputEvent_delegatesToCaptureController()
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt3160 …rInputCaptureCallback#onCustomInputEvents(int, java.util.List<android.car.input.CustomInputEvent>):
3161 …CarInputCaptureCallback.onCustomInputEvents(int,java.util.List<android.car.input.CustomInputEvent>)
3166 UnflaggedApi: android.car.input.CustomInputEvent:
3167 New API must be flagged with @FlaggedApi: class android.car.input.CustomInputEvent
3168 UnflaggedApi: android.car.input.CustomInputEvent#CREATOR:
3169 New API must be flagged with @FlaggedApi: field android.car.input.CustomInputEvent.CREATOR
3170 UnflaggedApi: android.car.input.CustomInputEvent#CustomInputEvent(int, int, int):
3171 …New API must be flagged with @FlaggedApi: constructor android.car.input.CustomInputEvent(int,int,i…
3172 UnflaggedApi: android.car.input.CustomInputEvent#INPUT_CODE_F1:
3173 New API must be flagged with @FlaggedApi: field android.car.input.CustomInputEvent.INPUT_CODE_F1
[all …]
Dsystem-current.txt1614 …default void onCustomInputEvents(int, @NonNull java.util.List<android.car.input.CustomInputEvent>);
1619 public final class CustomInputEvent implements android.os.Parcelable {
1620 ctor public CustomInputEvent(int, int, int);
1627 …Null public static final android.os.Parcelable.Creator<android.car.input.CustomInputEvent> CREATOR;
Dtest-current.txt1688 …default void onCustomInputEvents(int, @NonNull java.util.List<android.car.input.CustomInputEvent>);
1693 public final class CustomInputEvent implements android.os.Parcelable {
1694 ctor public CustomInputEvent(int, int, int);
1701 …Null public static final android.os.Parcelable.Creator<android.car.input.CustomInputEvent> CREATOR;
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt1614 …default void onCustomInputEvents(int, @NonNull java.util.List<android.car.input.CustomInputEvent>);
1619 public final class CustomInputEvent implements android.os.Parcelable {
1620 ctor public CustomInputEvent(int, int, int);
1627 …Null public static final android.os.Parcelable.Creator<android.car.input.CustomInputEvent> CREATOR;
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1019 class @hide @SystemApi CustomInputEvent package android.car.input
1030 field TIRAMISU_0 Parcelable.Creator<CustomInputEvent> CREATOR;
1086 … method TIRAMISU_0 void onCustomInputEvents(int targetDisplayType, List<CustomInputEvent> events);