Home
last modified time | relevance | path

Searched refs:mUptimeSupplier (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java78 @Mock LongSupplier mUptimeSupplier; field in InputHalServiceTest
96 when(mUptimeSupplier.getAsLong()).thenReturn(0L); in setUp()
97 mInputHalService = new InputHalService(mVehicleHal, mUptimeSupplier); in setUp()
289 when(mUptimeSupplier.getAsLong()).thenReturn(5L); in handlesRepeatedKeys_anyDisplay()
299 when(mUptimeSupplier.getAsLong()).thenReturn(10L); in handlesRepeatedKeys_anyDisplay()
309 when(mUptimeSupplier.getAsLong()).thenReturn(15L); in handlesRepeatedKeys_anyDisplay()
335 when(mUptimeSupplier.getAsLong()).thenReturn(5L); in handlesRepeatedKeyWithIndents_anyDisplay()
349 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in handlesKeyUp_withoutKeyDown_mainDisplay()
363 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in handlesKeyUp_withoutKeyDown_clusterDisplay()
378 when(mUptimeSupplier.getAsLong()).thenReturn(27L); in separateKeyDownEvents_areIndependent_mainDisplay()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java93 private final LongSupplier mUptimeSupplier; field in InputHalService
154 mUptimeSupplier = uptimeSupplier; in InputHalService()
762 dispatchKeyEvent(listener, action, code, display, mUptimeSupplier.getAsLong());