aboutsummaryrefslogtreecommitdiff
path: root/vehicle-hal-support-lib
AgeCommit message (Collapse)Author
2018-06-02Create CarPropertyService and CarPropertyManagerSteve Paik
CarPropertyService replaces Cabin, Hvac, Info, Sensor, and VendorExtension services. Bug: 78782959 Bug: 36649684 Bug: 68056035 Test: runtest -x packages/services/Car/tests/android_car_api_test runtest -x packages/services/Car/tests/carservice_unit_test Change-Id: I69756654473fe66ef95e9e2cd4f3c1045e3ac938 Merged-In: Ic0a94805f83cc0222fb2bcf9674b6031bc050986 (cherry picked from commit fc0257133967edcb217e07e9ab942690eeaae3de) (cherry picked from commit 0265d8348716b2971f76e697f410f4cf7128371c)
2018-05-16Remove ConfigFlagsSteve Paik
This field is deprecated in VHAL. Bug: 74133619 Test: grep -ril configflag shows all instances removed Change-Id: Iba4eebf8bbae1107d67ab77edc221399075cf2b2
2018-01-24Refactor VHALSteve Paik
Part of VHAL refactor: - Remove VehicleZoneUtil class + test - Rename COMPLEX type to MIXED - Remove zone/areaId from subscribe() - Remove supportedAreas from VehiclePropertyConfig class - Add status and timestamp fields to VehiclePropValue - Update tests Bug: 72348165 Test: Compiles Change-Id: I379ab658c235f1ab1fb979cc27e21cad17261751
2017-12-05Flatten dependency hierarchy of legacy-android-testPaul Duffin
Previous changes statically included legacy-android-test in preparation for removing android.test.* and junit.* classes from the android.jar. Unfortunately, that lead to duplicate classes between APKs and the bootclasspath which caused build problems (Proguard) and also runtime problems (when targeting and running on older releases). Switching from statically including the classes to using the runtime libraries cannot be done in one step because legacy-android-test is statically included in libraries which are used in many APKs and so removing it from those libraries requires that all APKs be updated at once. Doing that atomically across dozens of projects is not practical. This change modifies APKS that statically include the legacy-android-test library indirectly. * If the APK manifest uses the android.test.runner library then the APK is modified to stop statically including legacy-android-test and instead build against android.test.base/mock/runner libraries instead. * Otherwise, the APK statically includes legacy-android-test. Also, any libraries that statically include are modified to stop statically including it and if it has source dependencies on the classes is changed to build against the android.test.base/mock/runner libraries. The following change descriptions were generated automatically and so may be a little repetitive. They are provided to give the reviewer enough information to check the comments match what has actually been changed and check the reasoning behind the changes. * car-support-lib/car-support.mk Added 'legacy-android-test' to LOCAL_STATIC_JAVA_LIBRARIES because EmbeddedKitchenSinkApp was statically linked to it through its dependency on vehicle-hal-support-lib * service/Android.mk Added 'legacy-android-test' to LOCAL_STATIC_JAVA_LIBRARIES because CarService was statically linked to it through its dependency on vehicle-hal-support-lib * tests/CarDiagnosticVerifier/Android.mk Added 'legacy-android-test' to LOCAL_STATIC_JAVA_LIBRARIES because CarDiagnosticVerifier was statically linked to it through its dependency on vehicle-hal-support-lib * tests/obd2_app/Android.mk Added 'legacy-android-test' to LOCAL_STATIC_JAVA_LIBRARIES because Obd2App was statically linked to it through its dependency on com.android.car.obd2 which in turn depends on vehicle-hal-support-lib * tests/vehiclehal_test/Android.mk Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because VehicleHALTest's source depends on its classes and because of these changes they are no longer present on the compilation path. The classes do not need to be statically included because the classes will be provided by the runtime, either from the default bootclasspath or from the android.test.runner library that VehicleHALTest specifies in its manifest. * vehicle-hal-support-lib/Android.mk Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because vehicle-hal-support-lib is not a package so does not need to statically include the classes Bug: 30188076 Test: make checkbuild Change-Id: I46b28d0092d561b3f047480f1ea8f330ed1d8535
2017-08-24Merge Vehicle HAL 2.1 iface to 2.0Pavel Maltsev
Vehicle HAL is property based and all properties are considered optional. It is quite a bit of pain to create new versions of VHAL only to extend properties. Bug: 64303350 Test: verified system works stable Change-Id: I4c5c891236912651ca1341f7fd515e533a6b4506
2017-08-03Reland "Car: remove use of -static hidl java" am: 14f54c5d63 am: 05943f689e ↵Steven Moreland
am: 8ca1ed02fc am: 7ba328f6ee Change-Id: I58b9bf1e5622b0ce4ae696402f7b5308be6c42c6
2017-08-03Reland "Car: remove use of -static hidl java" am: 14f54c5d63 am: 05943f689eSteven Moreland
am: 8ca1ed02fc Change-Id: I50645a372e5996161779cfbf3c548995ece38ddd
2017-08-03Reland "Car: remove use of -static hidl java" am: 14f54c5d63Steven Moreland
am: 05943f689e Change-Id: I95d41a8df000fc352ac4c645368773ab6e9e88a7
2017-08-02Reland "Car: remove use of -static hidl java"Steven Moreland
This reverts commit a8cc03920111dd3150f313269125849b01b01058. Note, need to add base dependencies because they aren't available by default in all branches and the "java-static" libraries originally included them. Test: no link errors Bug: 36376126 Change-Id: I9423a53524e5b3d5f54d8ec7376774f6ab21eb0e
2017-08-02Revert "Car: remove use of -static hidl java" am: a8cc039201 am: 7db57d8cc9 ↵Steven Moreland
am: be9b77358c am: 7ac3224c6c Change-Id: I75946281a3d77c29a71dcf03978fea6a2c3c1e75
2017-08-02Revert "Car: remove use of -static hidl java" am: a8cc039201 am: 7db57d8cc9Steven Moreland
am: be9b77358c Change-Id: I3b22582c317836521d53b3205906d51803c250f8
2017-08-02Revert "Car: remove use of -static hidl java" am: a8cc039201Steven Moreland
am: 7db57d8cc9 Change-Id: I7fd1adb127e080bc04115fa40584b498d5917934
2017-08-02Revert "Car: remove use of -static hidl java"Steven Moreland
This reverts commit be4780ccce616f1ae9311eaf6967195360cb1e33. Reason for revert: missing IBase dependency Change-Id: I9146352c7aea1a5287d54f0fdc054a27db64bb40
2017-08-02Car: remove use of -static hidl java am: be4780ccce am: 8b9969b76e am: ↵Steven Moreland
79295cd9a2 am: 8d62530216 Change-Id: I711ab62df46472ecd3a7f0a0b7af9bcf4f81ddf5
2017-08-02Car: remove use of -static hidl java am: be4780ccce am: 8b9969b76eSteven Moreland
am: 79295cd9a2 Change-Id: I090acbee7f97d2aacdaa578182b88d0796b6f6a9
2017-08-02Car: remove use of -static hidl java am: be4780ccceSteven Moreland
am: 8b9969b76e Change-Id: I5bf00131dedfb3c7e2d8e40932ccd78b8a935f0e
2017-08-02Car: remove use of -static hidl javaSteven Moreland
These libraries are being removed. Now, the regular java library can be used as both a static and non-static library, we are removing these duplicate libraries which cause several types problems (such as undefined behavior when both the static and non-static libs are loaded). Bug: 36376126 Test: no build/runtime errors running test Change-Id: I7efb5d12d080c4c2006264b6fc119cf4292a5494
2017-07-28Merge "CarService changes necessary to support the diagnostic enums rename ↵Enrico Granata
on the Vehicle HAL side" into oc-mr1-dev am: 6af10a482b am: fcc4964959 Change-Id: Ibf0f979f026cd261e8c5b54719ac9e615238b59f
2017-07-27CarService changes necessary to support the diagnostic enums rename on the ↵Enrico Granata
Vehicle HAL side Test: clean build and flash, then runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2FreezeFrameTest.java runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2LiveFrameTest.java Bug: 64024685 Change-Id: Ie6615dc84fcddbb108ad1c58b7a569b8e6ce37d6
2017-07-25Fix activity monitoring testPavel Maltsev
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/SystemActivityMonitoringServiceTest.java Change-Id: Id6ca97f14f9b46186b4d1f2d3e34849207615d05 Fix: b/62224020
2017-04-13Changed the naming scheme for Treble java libraries (both static and dynamic)Andreas Huber
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java Bug: 37207894 Test: make Change-Id: If611e6cc1f05320b8fc99d5244eb40f92be9aa71 Merged-In: Ie2a1af8bb38e0ef4f044ca5dbea9cf50b61a0c68
2017-04-13Changed the naming scheme for Treble java libraries (both static and dynamic)Andreas Huber
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java Bug: 37207894 Test: make Change-Id: Ie2a1af8bb38e0ef4f044ca5dbea9cf50b61a0c68
2017-04-12Implement support of AUDIO_STREAM_STATE propertyPavel Maltsev
Fixing Audio tests Fix: b/33235166 Fix: b/36524594 Fix: b/36790725 Test: runtest -x packages/services/Car/tests/carservice_test Change-Id: I7d9dade59ce81342d859239f2e3e9a360008e7d3 (cherry picked from commit 79d5e12ad8708c1f7f7f1a60aaeb349ac7ed0f7b)
2017-04-11Fix compiling with javacColin Cross
Remove import of an inner class in the same file, and explicitly reference the static nested class through the outer class. Bug: 36902714 Test: m -j ANDROID_COMPILE_WITH_JACK=false vehicle-hal-support-lib Change-Id: I4c58bcae3f26a9f79d5931d0e489d85e7dba46e0 (cherry picked from commit 0f088b64c6c8e65bdfb91c87c837938eb41df91f)
2017-04-06Add code to convert a CarDiagnosticEvent into Diagnostic JsonEnrico Granata
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java runtest -x packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/Obd2LiveFrameGeneratorTest.java Change-Id: I3e20ed08566161763933aa6c35b1f7aa7c2feca2
2017-04-05Fix compiling with javacColin Cross
Remove import of an inner class in the same file, and explicitly reference the static nested class through the outer class. Test: m -j ANDROID_COMPILE_WITH_JACK=false vehicle-hal-support-lib Change-Id: I4c58bcae3f26a9f79d5931d0e489d85e7dba46e0
2017-03-28Merge "Implement support of AUDIO_STREAM_STATE property"TreeHugger Robot
2017-03-27Rework the way diagnostic events are serialized to JSON, and deserialized:Enrico Granata
- add a "type" field to distinguish between live and freeze frame data; - make a DiagnosticJson class to contain the deserialized JSON; - move logic to make a VehiclePropValue out of JSON into its own class (DiagnosticJsonReader / DiagnosticJson.Builder) This is useful/necessary because you need to know the number of vendor specific sensors if you're going to generate a valid VehiclePropValue for a real vehicle instead of a test case Test: runtest -x packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/Obd2LiveFrameGeneratorTest.java Change-Id: Ibc32fef65907137a36b33bf5ae983f27cff15e87
2017-03-27Implement support of AUDIO_STREAM_STATE propertyPavel Maltsev
Fixing Audio tests Fix: b/33235166 Fix: b/36524594 Test: runtest -x packages/services/Car/tests/carservice_test Change-Id: I7d9dade59ce81342d859239f2e3e9a360008e7d3
2017-03-22Add logic to obd2_lib to generate a live OBD2 frame from a connection.Enrico Granata
This commit adds a few main moving parts: - logic to intersect the sensor types supported by obd2_lib with those supported by a vehicle; - logic to collect all such supported sensors in one operation, and store the result in a JSON object; - logic to create a VehiclePropValue from JSON data. Test: runtest -x packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/Obd2LiveFrameGeneratorTest.java Change-Id: Ic89cd8b615b11a1ba136df1ac6f336e7882ef1c6
2017-02-02Move Vehicle HAL under automotive packagePavel Maltsev
Test: all existing tests passing Bug: b/33200203 Change-Id: Id1ff815ae2af9c48ce8612b4cfb5327de13a5a1f
2017-01-19Prepare for removal of legacy-test from default targetsPaul Duffin
In preparation for removing junit classes from the Android API the legacy-test target will be removed from the TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit dependencies on junit and/or legacy-android-test to ensure that modules will compile properly once it is removed. Bug: 30188076 Test: make checkbuild Change-Id: I2677107b6d0d873f948327bf6f62ef6d32a4f650
2017-01-03Catch RemoteExceptions in HalClient.Steven Moreland
Bug: 33673120 Test: wip Change-Id: I0b4427c3c6a1518809b9d358e3ce1897960590e8
2016-12-20Remove VehiclePermissionModel from Car ServicePavel Maltsev
It's not used Bug: b/33670724 Test: removing unused feature Change-Id: Ie7fa97f0c699bf80bdf1d505e0cd8988cdb2a4cc
2016-12-14Propagate VHAL errors to managers that support itPavel Maltsev
Fix: b/32068464 Test: functional tests provided Change-Id: I7199ce61815a94671c1b155711cebca0897d2608
2016-11-21Extend .Stub classes.Martijn Coenen
The generated IVehicle java interfaces have a Stub implementation that takes care of the boilerplate methods, like asBinder(). Servers should always extend IVehicle.Stub rather than implement IVehicle directly. Test: mma Change-Id: I4c4a42b6e41fa933d3c509e35160433a16f91086
2016-11-16Migrating Car service to new Vehicle HALPavel Maltsev
- make car service work directly with Vehicle HAL - getting rid of protobufs and dependencies on VNS - get rid of CarTestManager / CarTestService and refactor tests accordingly - reworked ICarImpl to pass dependencies rather than using singletons for better testing experience Test: existing test should work, although some of the tests (esp. audio) are broken and we will fix them in follow up CLs Bug: b/31971746 Change-Id: I229969af332304ba3b1718f130cdf22038e86fad Tests: tests adjusted to new data structures