Home
last modified time | relevance | path

Searched refs:rotaryEvent (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java892 RotaryEvent rotaryEvent = capturedEvents.second.get(0); in sendAndAssertRotaryNavigationEvent() local
893 assertThat(rotaryEvent.getNumberOfClicks()).isEqualTo(numClicks); in sendAndAssertRotaryNavigationEvent()
937 RotaryEvent rotaryEvent = lastEvent.second.get(0); in waitAndAssertLastRotaryEvent() local
938 assertThat(rotaryEvent.getInputType()).isEqualTo(rotaryType); in waitAndAssertLastRotaryEvent()
939 assertThat(rotaryEvent.getNumberOfClicks()).isEqualTo(numberOfClicks); in waitAndAssertLastRotaryEvent()
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java892 for (RotaryEvent rotaryEvent : events) { in onRotaryEvents()
893 L.v("onRotaryEvents " + rotaryEvent); in onRotaryEvents()
894 handleRotaryEvent(rotaryEvent); in onRotaryEvents()
1955 private void handleRotaryEvent(RotaryEvent rotaryEvent) { in handleRotaryEvent() argument
1956 if (rotaryEvent.getInputType() != CarInputManager.INPUT_TYPE_ROTARY_NAVIGATION) { in handleRotaryEvent()
1959 boolean clockwise = rotaryEvent.isClockwise(); in handleRotaryEvent()
1960 int count = rotaryEvent.getNumberOfClicks(); in handleRotaryEvent()
1962 long eventTime = rotaryEvent.getUptimeMillisForClick(count - 1); in handleRotaryEvent()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DRotaryServiceTest.java456 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withoutFocusedView() local
457 List<RotaryEvent> events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withoutFocusedView()
503 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withFocusedView() local
504 List<RotaryEvent> events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withFocusedView()
519 rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withFocusedView()
520 events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withFocusedView()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java2117 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, uptimeMs);
2118 mCarInputService.onRotaryEvent(rotaryEvent, display);
2119 writer.println("Succeeded in injecting: " + rotaryEvent);