Home
last modified time | relevance | path

Searched refs:mHalClient (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
H A DVehicleHalTest.java75 @Mock private HalClient mHalClient; field in VehicleHalTest
90 mDiagnosticHalService, mClusterHalService, mTimeHalService, mHalClient, in setUp()
121 when(mHalClient.getAllPropConfigs()).thenReturn(mConfigs); in setUp()
137 verify(mHalClient).subscribe(eq(expectedOptions)); in testSubscribeProperty_registeringReadWriteAndOnChangeProperty()
146 verify(mHalClient).unsubscribe(eq(SOME_READ_ON_CHANGE_PROPERTY)); in testUnsubscribeProperty_subscribedProperty()
155 verify(mHalClient, never()).unsubscribe(anyInt()); in testUnsubscribeProperty_unsubscribedProperty()
165 verify(mHalClient, never()).subscribe(any(SubscribeOptions.class)); in testSubscribeProperty_registeringStaticProperty()
261 when(mHalClient.getValue(any(VehiclePropValue.class))).thenReturn(propValue); in testGetIfAvailableOrFail()
333 when(mHalClient.getValue(any(VehiclePropValue.class))).thenReturn(propValue); in testDumpPropertyValueByCommend()
357 verify(mHalClient).getValue(eq(expectedPropValue)); in testGetForPropertyIdAndAreaId()
[all …]
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/
H A DMockedVmsTestBase.java60 private MockHalClient mHalClient; field in MockedVmsTestBase
64 mHalClient = new MockHalClient(); in configureMockedHal()
65 addProperty(VehicleProperty.VEHICLE_MAP_SERVICE, mHalClient) in configureMockedHal()
86 List<Integer> v = mHalClient.receiveMessage().value.int32Values; in setUpVms()
94 mHalClient.sendMessage( in setUpVms()
101 v = mHalClient.receiveMessage().value.int32Values; in setUpVms()
123 return mHalClient; in getMockHalClient()
/aosp12/packages/services/Car/service/src/com/android/car/hal/
H A DVehicleHal.java106 private volatile HalClient mHalClient; field in VehicleHal
152 mHalClient = new HalClient(vehicle, mHandlerThread.getLooper(), in VehicleHal()
190 mHalClient = halClient; in VehicleHal()
201 mHalClient.subscribe(options); in vehicleHalReconnected()
217 configs = mHalClient.getAllPropConfigs(); in fetchAllPropConfigs()
289 mHalClient.unsubscribe(p); in release()
398 mHalClient.subscribe(opts); in subscribeProperty()
431 mHalClient.unsubscribe(property); in unsubscribeProperty()
530 propValue = mHalClient.getValue(requestedPropValue); in get()
569 return mHalClient.getValue(requestedPropValue); in get()
[all …]