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.java64 @Mock LongSupplier mUptimeSupplier; field in InputHalServiceTest
76 when(mUptimeSupplier.getAsLong()).thenReturn(0L); in setUp()
77 mInputHalService = new InputHalService(mVehicleHal, mUptimeSupplier); in setUp()
156 when(mUptimeSupplier.getAsLong()).thenReturn(5L); in handlesRepeatedKeys()
165 when(mUptimeSupplier.getAsLong()).thenReturn(10L); in handlesRepeatedKeys()
174 when(mUptimeSupplier.getAsLong()).thenReturn(15L); in handlesRepeatedKeys()
197 when(mUptimeSupplier.getAsLong()).thenReturn(5L); in handlesRepeatedKeyWithIndents()
210 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in handlesKeyUp_withoutKeyDown()
222 when(mUptimeSupplier.getAsLong()).thenReturn(27L); in separateKeyDownEvents_areIndependent()
225 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in separateKeyDownEvents_areIndependent()
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java46 private final LongSupplier mUptimeSupplier; field in InputHalService
78 mUptimeSupplier = uptimeSupplier; in InputHalService()
160 long eventTime = mUptimeSupplier.getAsLong();