History log of /packages/services/Car/car-lib/src/android/car/hardware/CarDiagnosticEvent.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4c43add01ddcbbc1aefd78249bbe1cf981381f8e 16-Mar-2017 Enrico Granata <egranata@google.com> Automatically generate the Java list of OBD2 sensor indices from the HIDL definition.

This commit introduces the hidl_parser library, which is capable of generating a parse tree from a set of HIDL enum definitions.
It then uses the output of hidl_parser to generate CarDiagnosticSensorIndices.java.

Test: update-obd2-sensors.py + rebuild
Change-Id: Ie368b616468b0a2b46da5aa92deb4617c78302e1
/packages/services/Car/car-lib/src/android/car/hardware/CarDiagnosticEvent.java
093e2bcf82752dab9c0e6e4bb6f6cf31497f74a6 28-Feb-2017 Enrico Granata <egranata@google.com> Add a test case for CarDiagnosticManager API entrypoints

Test: TARGET_USES_CAR_FUTURE_FEATURES=true runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
Bug: 34279245
For O-MR1

Change-Id: I71e213e1d3ad15d4184e4145b59540021777c9f1
/packages/services/Car/car-lib/src/android/car/hardware/CarDiagnosticEvent.java
3c7a66693e28acaa82d3c9ff2ed99712270c889f 24-Feb-2017 Enrico Granata <egranata@google.com> Permission support for diagnostics.

This creates two permissions for access to diagnostic data:
- DIAGNOSTIC_READ, for read-only access to live and freeze frame data;
- DIAGNOSTIC_CLEAR, for deleting DTC data from the car.

It also extends the meaning of PERMISSION_VENDOR_EXTENSION to mean being allowed to read vendor-specific diagnostic sensor data.

Test: build
Bug: 35435164
For O-MR1.

Change-Id: I046bf6ae4a7aa2b2570ea5657bff9e1ce86edbce
/packages/services/Car/car-lib/src/android/car/hardware/CarDiagnosticEvent.java
0b7559c7f6ea24cec679c310c7a320905222f843 14-Feb-2017 Enrico Granata <egranata@google.com> Post-O. Provide smart accessors for sensors that describe structured/enumerated data.

Some sensors describe purely numerical information (e.g. ENGINE_RPM).
For those, the sensor value itself is the entirety of the information.

In other cases, however, sensor values are either elements of an enumerated type, or bitmasks representing aggregate data.
In those situations, provide smart accessors that return a more structured view of the data.

Test: .
Change-Id: I619eb671d52b378b249ebb396f18eca6a5ecc3db
/packages/services/Car/car-lib/src/android/car/hardware/CarDiagnosticEvent.java
5c56d2a3a5bc4ef5b46a58fa56b7f4a657b0827e 08-Feb-2017 Enrico Granata <egranata@google.com> Post-O. Sketch out CarDiagnosticManager API surface

Provide an implementation of all layers required to plumb CarDiagnosticManager through:
* CarDiagnosticEvent
* DiagnosticHalService
* CarDiagnosticService
* CarDiagnosticManager

If FutureFeatures are enabled, this is integrated end-to-end enough to run trivial tests of the API

Test: build with TARGET_USES_CAR_FUTURE_FEATURES=true then at a shell runtest -x packages/services/Car/tests/android_car_api_test/ -c android.car.apitest.CarDiagnosticManagerTest
Change-Id: I0f2aafd039d26fec15182dd7029cf8c7995ce85b
/packages/services/Car/car-lib/src/android/car/hardware/CarDiagnosticEvent.java