Home
last modified time | relevance | path

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

/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java848 for (RotaryEvent rotaryEvent : events) { in onRotaryEvents()
849 handleRotaryEvent(rotaryEvent); in onRotaryEvents()
1713 private void handleRotaryEvent(RotaryEvent rotaryEvent) { in handleRotaryEvent() argument
1714 if (rotaryEvent.getInputType() != CarInputManager.INPUT_TYPE_ROTARY_NAVIGATION) { in handleRotaryEvent()
1717 boolean clockwise = rotaryEvent.isClockwise(); in handleRotaryEvent()
1718 int count = rotaryEvent.getNumberOfClicks(); in handleRotaryEvent()
1720 long eventTime = rotaryEvent.getUptimeMillisForClick(count - 1); in handleRotaryEvent()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DRotaryServiceTest.java432 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withoutFocusedView() local
433 List<RotaryEvent> events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withoutFocusedView()
479 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withFocusedView() local
480 List<RotaryEvent> events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withFocusedView()
495 rotaryEvent = new RotaryEvent(inputType, clockwise, timestamps); in testOnRotaryEvents_withFocusedView()
496 events = Collections.singletonList(rotaryEvent); in testOnRotaryEvents_withFocusedView()
/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java748 RotaryEvent rotaryEvent = lastEvent.second.get(0); in assertLastRotaryEvent() local
749 assertThat(rotaryEvent.getInputType()).isEqualTo(rotaryType); in assertLastRotaryEvent()
750 assertThat(rotaryEvent.getNumberOfClicks()).isEqualTo(numberOfClicks); in assertLastRotaryEvent()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1192 RotaryEvent rotaryEvent = new RotaryEvent(inputType, clockwise, uptimeMs);
1193 mCarInputService.onRotaryEvent(rotaryEvent, display);
1194 writer.println("Succeeded in injecting: " + rotaryEvent);