Home
last modified time | relevance | path

Searched refs:mVehicle (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticHalServiceTest.java61 private VehicleHal mVehicle; field in DiagnosticHalServiceTest
74 when(mVehicle.getHalPropValueBuilder()).thenReturn(mPropValueBuilder); in setUp()
75 mService = new DiagnosticHalService(mVehicle); in setUp()
169 clearInvocations(mVehicle); in verifyRequestDiagnosticStartRate()
174 verify(mVehicle).subscribePropertySafe(mService, VehicleProperty.OBD2_LIVE_FRAME, in verifyRequestDiagnosticStartRate()
224 verify(mVehicle).subscribePropertySafe(mService, VehicleProperty.OBD2_FREEZE_FRAME, 10f); in testRequestDiagnosticStartFreezeFrame()
237 verify(mVehicle).unsubscribePropertySafe(mService, VehicleProperty.OBD2_LIVE_FRAME); in testRequestDiagnosticStopLiveFrame()
244 verify(mVehicle).unsubscribePropertySafe(mService, VehicleProperty.OBD2_FREEZE_FRAME); in testRequestDiagnosticStopFreezeFrame()
251 verify(mVehicle, never()).unsubscribePropertySafe(any(), anyInt()); in testRequestDiagnosticStopInvalidSensorType()
257 when(mVehicle.get(VehicleProperty.OBD2_FREEZE_FRAME)).thenReturn(propValue); in testGetCurrentDiagnosticValueFreezeFrame()
[all …]
DVehicleHalTest.java121 @Mock private VehicleStub mVehicle; field in VehicleHalTest
181 when(mVehicle.getAllPropConfigs()).thenReturn(halPropConfigs); in initVehicleHal()
265 when(mVehicle.getHalPropValueBuilder()).thenReturn(mPropValueBuilder);
266 when(mVehicle.newSubscriptionClient(any())).thenReturn(mSubscriptionClient);
271 mHandlerThread, mVehicle);
332 verify(mVehicle).getAsync(captor.capture(),
348 verify(mVehicle).getAsync(captor.capture(),
361 verify(mVehicle).setAsync(captor.capture(),
441 verify(mVehicle, times(1)).getAllPropConfigs();
463 when(mVehicle.getAllPropConfigs()).thenReturn(new HalPropConfig[0]);
[all …]
/packages/services/Car/service/src/com/android/car/
DCarServiceImpl.java47 private VehicleStub mVehicle; field in CarServiceImpl
60 mVehicle = VehicleStub.newVehicleStub(); in onCreate()
63 EventLogHelper.writeCarServiceCreate(/* hasVhal= */ mVehicle.isValid()); in onCreate()
65 mVehicleInterfaceName = mVehicle.getInterfaceDescriptor(); in onCreate()
73 .setVehicle(mVehicle) in onCreate()
80 mVehicle.linkToDeath(mVehicleDeathRecipient); in onCreate()
95 EventLogHelper.writeCarServiceDestroy(/* hasVhal= */ mVehicle.isValid()); in onDestroy()
99 mVehicle.unlinkToDeath(mVehicleDeathRecipient); in onDestroy()
100 mVehicle = null; in onDestroy()
DICarImpl.java241 () -> new VehicleHal(mContext, builder.mVehicle), allServices); in ICarImpl()
1140 VehicleStub mVehicle; field in ICarImpl.Builder
1189 mVehicle = vehicle; in setVehicle()
/packages/services/Car/cpp/watchdog/server/tests/
DMockVhalClient.h34 mVehicle = vehicle; in MockVhalClient()
37 ~MockVhalClient() { mVehicle.reset(); } in ~MockVhalClient()
45 return std::make_unique<MockSubscriptionClient>(mVehicle, callback); in getSubscriptionClient()
78 std::shared_ptr<MockVehicle> mVehicle;
/packages/services/Car/cpp/evs/apps/default/src/
DEvsStateControl.cpp71 mVehicle(pVnet), in EvsStateControl()
256 if (mVehicle != nullptr) { in selectStateForCurrentConditions()
301 auto halPropValue = mVehicle->createHalPropValue(pRequestedPropValue->prop); in invokeGet()
305 VhalClientResult<std::unique_ptr<IHalPropValue>> result = mVehicle->getValueSync(*halPropValue); in invokeGet()
/packages/services/Car/cpp/evs/apps/default/inc/
DEvsStateControl.h85 std::shared_ptr<android::frameworks::automotive::vhal::IVhalClient> mVehicle; variable