OSDN Git Service

Post-O. Finalize Vehicle HAL support for OBD2 diagnostics.
authorEnrico Granata <egranata@google.com>
Thu, 9 Feb 2017 02:09:45 +0000 (18:09 -0800)
committerEnrico Granata <egranata@google.com>
Fri, 10 Feb 2017 01:12:12 +0000 (17:12 -0800)
commit37e69d773b09f0597e0f9670ed971ad3f7e879df
tree8c651daa8cfb065af4013e01bf1f9ae87c0b3f4d
parentf53dfca395b791bf3d3afbfca17fbf6db782b5c4
Post-O. Finalize Vehicle HAL support for OBD2 diagnostics.

Add OBD2_DTC_INFO property to VHAL. This property returns a list of timestamps for which freeze frames are available to be read.
Make OBD2_FREEZE_FRAME indexed on timestamp, such that one has to pass a timestamp to retrieve the freeze frame at that timestamp.
Add OBD2_DTC_CLEAR to delete some or all of the freeze frames stored.

Test: build
Change-Id: I30344ffd6e7527f076b3382c32f5507973c9985b
automotive/vehicle/2.0/default/impl/DefaultConfig.h
automotive/vehicle/2.0/default/impl/DefaultVehicleHal.cpp
automotive/vehicle/2.0/default/impl/DefaultVehicleHal.h
automotive/vehicle/2.0/default/vehicle_hal_manager/Obd2SensorStore.cpp
automotive/vehicle/2.0/default/vehicle_hal_manager/Obd2SensorStore.h
automotive/vehicle/2.0/types.hal