Home
last modified time | relevance | path

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

/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
DVehicleNetworkMockedTest.java70 private VehicleNetwork mVehicleNetwork; field in VehicleNetworkMockedTest
78 mVehicleNetwork = VehicleNetwork.createVehicleNetwork(mListener, in setUp()
164 mVehicleNetwork.stopMocking(); in tearDown()
168 mVehicleNetwork.startHalRestartMonitoring(); in testHalRestartListening()
169 mVehicleNetwork.startMocking(mVehicleHalMock); in testHalRestartListening()
171 mVehicleNetwork.stopMocking(); in testHalRestartListening()
173 mVehicleNetwork.stopHalRestartMonitoring(); in testHalRestartListening()
180 mVehicleNetwork.startMocking(mVehicleHalMock); in testCustomZonedIntProperties()
182 mVehicleNetwork.setIntProperty(CUSTOM_PROPERTY_INT32, INT_VALUE); in testCustomZonedIntProperties()
183 assertEquals(INT_VALUE, mVehicleNetwork.getIntProperty(CUSTOM_PROPERTY_INT32)); in testCustomZonedIntProperties()
[all …]
DVehicleNetworkTest.java46 private VehicleNetwork mVehicleNetwork; field in VehicleNetworkTest
53 mVehicleNetwork = VehicleNetwork.createVehicleNetwork(mListener, in setUp()
64 VehiclePropConfigs configs = mVehicleNetwork.listProperties(); in testListProperties()
73 VehiclePropConfigs configs2 = mVehicleNetwork.listProperties(oneProperty); in testListProperties()
78 VehiclePropConfigs configs3 = mVehicleNetwork.listProperties(-1); in testListProperties()
84 VehiclePropValue value = mVehicleNetwork.getProperty(-1); in testGetProperty()
89 VehiclePropConfigs configs = mVehicleNetwork.listProperties(); in testGetProperty()
103 mVehicleNetwork.setProperty(v); in testGetProperty()
105 VehiclePropValue value = mVehicleNetwork.getProperty(config.getProp()); in testGetProperty()
121 mVehicleNetwork.setProperty(value); in testSetProperty()
[all …]
/packages/services/Car/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/
DVehicleNetwork.java610 private final WeakReference<VehicleNetwork> mVehicleNetwork; field in VehicleNetwork.IVehicleNetworkListenerImpl
613 mVehicleNetwork = new WeakReference<>(vehicleNewotk); in IVehicleNetworkListenerImpl()
618 VehicleNetwork vehicleNetwork = mVehicleNetwork.get(); in onVehicleNetworkEvents()
626 VehicleNetwork vehicleNetwork = mVehicleNetwork.get(); in onHalError()
634 VehicleNetwork vehicleNetwork = mVehicleNetwork.get(); in onHalRestart()
642 private final WeakReference<VehicleNetwork> mVehicleNetwork; field in VehicleNetwork.IVehicleNetworkHalMockImpl
645 mVehicleNetwork = new WeakReference<>(vehicleNewotk); in IVehicleNetworkHalMockImpl()
650 VehicleNetwork vehicleNetwork = mVehicleNetwork.get(); in onListProperties()
660 VehicleNetwork vehicleNetwork = mVehicleNetwork.get(); in onPropertySet()
669 VehicleNetwork vehicleNetwork = mVehicleNetwork.get(); in onPropertyGet()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java81 private final VehicleNetwork mVehicleNetwork; field in VehicleHal
118 mVehicleNetwork = VehicleNetwork.createVehicleNetwork(this, mHandlerThread.getLooper()); in VehicleHal()
135 mVehicleNetwork = vehicleNetwork; in VehicleHal()
139 VehiclePropConfigs properties = mVehicleNetwork.listProperties(); in init()
174 mVehicleNetwork.unsubscribe(p); in release()
242 mVehicleNetwork.subscribe(property, samplingRateHz); in subscribeProperty()
250 mVehicleNetwork.unsubscribe(property); in unsubscribeProperty()
254 return mVehicleNetwork; in getVehicleNetwork()
/packages/services/Car/service/src/com/android/car/
DCarTestService.java39 private final VehicleNetwork mVehicleNetwork; field in CarTestService
48 mVehicleNetwork = VehicleHal.getInstance().getVehicleNetwork(); in CarTestService()
72 mVehicleNetwork.injectEvent(value.value); in injectEvent()
82 mVehicleNetwork.startMocking(mock); in startMocking()
114 mVehicleNetwork.stopMocking(mock); in stopMocking()