Home
last modified time | relevance | path

Searched refs:RotaryEvent (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/car-lib/src/android/car/input/
DRotaryEvent.java42 public final class RotaryEvent implements Parcelable { class
131 public RotaryEvent( in RotaryEvent() method in RotaryEvent
186 RotaryEvent that = (RotaryEvent) o; in equals()
229 /* package-private */ RotaryEvent(@NonNull Parcel in) { in RotaryEvent() method in RotaryEvent
250 public static final @NonNull Parcelable.Creator<RotaryEvent> CREATOR
251 = new Parcelable.Creator<RotaryEvent>() {
253 public RotaryEvent[] newArray(int size) {
254 return new RotaryEvent[size];
258 public RotaryEvent createFromParcel(@NonNull Parcel in) {
259 return new RotaryEvent(in);
DICarInputCallback.aidl19 import android.car.input.RotaryEvent;
29 void onRotaryEvents(int targetDisplayType, in List<RotaryEvent> events) = 2; in onRotaryEvents()
DCarInputManager.java84 @NonNull List<RotaryEvent> events) {} in onRotaryEvents()
388 List<RotaryEvent> events) { in dispatchRotaryEvents()
443 @NonNull List<RotaryEvent> events) { in onRotaryEvents()
DRotaryEvent.aidl18 parcelable RotaryEvent;
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DRotaryServiceTest.java45 import android.car.input.RotaryEvent;
432 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withoutFocusedView()
433 List<RotaryEvent> events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withoutFocusedView()
479 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withFocusedView()
480 List<RotaryEvent> events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withFocusedView()
495 rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withFocusedView()
538 new RotaryEvent(inputType, true, new long[]{eventTime}))); in testOnRotaryEvents_acceleration()
546 new RotaryEvent(inputType, false, new long[]{eventTime}))); in testOnRotaryEvents_acceleration()
554 new RotaryEvent(inputType, true, new long[]{eventTime}))); in testOnRotaryEvents_acceleration()
562 new RotaryEvent(inputType, false, new long[]{eventTime}))); in testOnRotaryEvents_acceleration()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java34 import android.car.input.RotaryEvent;
87 private final LinkedList<Pair<Integer, List<RotaryEvent>>> mRotaryEvents =
116 @NonNull List<RotaryEvent> events) { in onRotaryEvents()
176 private LinkedList<Pair<Integer, List<RotaryEvent>>> getRotaryEvents() { in getRotaryEvents()
178 LinkedList<Pair<Integer, List<RotaryEvent>>> r = in getRotaryEvents()
743 LinkedList<Pair<Integer, List<RotaryEvent>>> rotaryEvents = callback.getRotaryEvents(); in assertLastRotaryEvent()
745 Pair<Integer, List<RotaryEvent>> lastEvent = rotaryEvents.getFirst(); in assertLastRotaryEvent()
748 RotaryEvent rotaryEvent = lastEvent.second.get(0); in assertLastRotaryEvent()
755 LinkedList<Pair<Integer, List<RotaryEvent>>> rotaryEvents = callback.getRotaryEvents(); in assertNumberOfOnRotaryEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java36 import android.car.input.RotaryEvent;
375 List<RotaryEvent> events = new ArrayList<>(); in dispatchesRotaryEvent_singleVolumeUp_anyDisplay()
377 RotaryEvent event = invocation.getArgument(0); in dispatchesRotaryEvent_singleVolumeUp_anyDisplay()
396 assertThat(events).containsExactly(new RotaryEvent( in dispatchesRotaryEvent_singleVolumeUp_anyDisplay()
407 List<RotaryEvent> events = new ArrayList<>(); in dispatchesRotaryEvent_multipleNavigatePrevious_anyDisplay()
409 RotaryEvent event = invocation.getArgument(0); in dispatchesRotaryEvent_multipleNavigatePrevious_anyDisplay()
431 assertThat(events).containsExactly(new RotaryEvent( in dispatchesRotaryEvent_multipleNavigatePrevious_anyDisplay()
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java32 import android.car.input.RotaryEvent;
82 void onRotaryEvent(RotaryEvent event, int targetDisplay); in onRotaryEvent()
308 RotaryEvent event = new RotaryEvent(carInputManagerType, clockwise, timestamps);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java52 import android.car.input.RotaryEvent;
138 RotaryEvent event = new RotaryEvent( in testOnRotaryEvent_injectingRotaryNavigationEvent()
157 RotaryEvent event = new RotaryEvent( in testOnRotaryEvent_injectingRotaryVolumeEvent()
179 RotaryEvent event = new RotaryEvent( in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
/packages/services/Car/service/src/com/android/car/
DInputCaptureClientController.java29 import android.car.input.RotaryEvent;
222 private final ArrayList<RotaryEvent> mRotaryEventDispatchScratchList = new ArrayList<>(1);
540 public boolean onRotaryEvent(@DisplayTypeEnum int displayType, RotaryEvent event) { in onRotaryEvent()
722 private void dispatchRotaryEvent(int targetDisplayType, RotaryEvent event, in dispatchRotaryEvent()
DCarInputService.java37 import android.car.input.RotaryEvent;
389 public void onRotaryEvent(RotaryEvent event, @DisplayTypeEnum int targetDisplay) { in onRotaryEvent()
407 private static List<KeyEvent> rotaryEventToKeyEvents(RotaryEvent event) { in rotaryEventToKeyEvents()
DCarShellCommand.java45 import android.car.input.RotaryEvent;
1192 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, uptimeMs);
/packages/apps/Car/RotaryController/
Dreadme.md20 ### Inject RotaryEvent
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java64 import android.car.input.RotaryEvent;
844 @NonNull List<RotaryEvent> events) { in onRotaryEvents()
848 for (RotaryEvent rotaryEvent : events) { in onRotaryEvents()
1713 private void handleRotaryEvent(RotaryEvent rotaryEvent) { in handleRotaryEvent()
/packages/services/Car/car-lib/api/
Dsystem-current.txt949 …od public default void onRotaryEvents(int, @NonNull java.util.List<android.car.input.RotaryEvent>);
973 public final class RotaryEvent implements android.os.Parcelable {
974 ctor public RotaryEvent(int, boolean, @NonNull long[]);
982 …field @NonNull public static final android.os.Parcelable.Creator<android.car.input.RotaryEvent> CR…