Home
last modified time | relevance | path

Searched refs:mInputHalService (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java92 private InputHalService mInputHalService; field in InputHalServiceTest
97 mInputHalService = new InputHalService(mVehicleHal, mUptimeSupplier); in setUp()
98 mInputHalService.init(); in setUp()
103 mInputHalService.release(); in tearDown()
104 mInputHalService = null; in tearDown()
109 assertThat(mInputHalService.isKeyInputSupported()).isFalse(); in ignoresSetListener_beforeKeyInputSupported()
111 mInputHalService.setInputListener(mInputListener); in ignoresSetListener_beforeKeyInputSupported()
114 mInputHalService.onHalEvents(List.of(makeKeyPropValue(Key.DOWN, KeyEvent.KEYCODE_ENTER, in ignoresSetListener_beforeKeyInputSupported()
127 mInputHalService.takeProperties(offeredProps); in takesKeyInputProperty()
129 assertThat(mInputHalService.isKeyInputSupported()).isTrue(); in takesKeyInputProperty()
[all …]
DVehicleHalTest.java115 @Mock private InputHalService mInputHalService; field in VehicleHalTest
171 when(mInputHalService.getAllSupportedProperties()).thenReturn(new int[0]); in initHalServices()
269 mPropertyHalService, mInputHalService, mVmsHalService, mUserHalService,
382 .when(mInputHalService).takeProperties(any());
395 verify(mInputHalService).init();
424 when(mInputHalService.getAllSupportedProperties()).thenReturn(new int[0]);
455 when(mInputHalService.getAllSupportedProperties()).thenReturn(new int[0]);
470 .when(mInputHalService).takeProperties(any());
482 verify(mInputHalService).init();
499 when(mInputHalService.getAllSupportedProperties()).thenReturn(new int[0]);
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputRotaryServiceTest.java81 @Mock private InputHalService mInputHalService; field in CarInputRotaryServiceTest
151 when(mInputHalService.isKeyInputSupported()).thenReturn(true); in setUp()
299 mCarInputService = new CarInputService(mMockContext, mInputHalService, mCarUserService, in init()
DCarInputServiceTest.java99 @Mock InputHalService mInputHalService; field in CarInputServiceTest
153 mCarInputService = new CarInputService(mContext, mInputHalService, mCarUserService, in setUp()
162 when(mInputHalService.isKeyInputSupported()).thenReturn(true); in setUp()
/packages/services/Car/service/src/com/android/car/
DCarInputService.java213 private final InputHalService mInputHalService; field in CarInputService
342 mInputHalService = inputHalService; in CarInputService()
449 if (!mInputHalService.isKeyInputSupported()) { in init()
454 mInputHalService.setInputListener(this); in init()