aboutsummaryrefslogtreecommitdiff
path: root/tests/vehiclehal_test
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-15Added JSON-based E2E Vhal test frameworkChao Yan
Checklist: 1. Fake data generator interface using VHAL generator command 2. VHAL JSON data parser 3. VHAL data verifier 4. E2e test base class with VHAL connection and utility methods 5. Sample HVAC E2E test with test data in assets/ Bug: 76017041 Test: lunch bat_land-userdebug & atest VehicleHALTest Change-Id: I5309a22a4ae3e1c115f6ea7ee0a0da46c73b7d86
2018-05-09Fixed Vhal E2E test after Default VHAL changeChao Yan
Bug: 76017041 Test: runtest -x packages/services/Car/tests/vehiclehal_test Change-Id: I754eb574e6a59b5734e54c001313d0121e1f8fa9
2018-04-04Fix E2ePerformanceTestSteve Paik
Use front windshield zone for defroster property instead of global. Bug: 77495244 Test: runtest -x Change-Id: I88f7d488b3caec7834800279b347b379321f6a72
2018-03-02Merge changes If205af43,I1d1e8a26TreeHugger Robot
* changes: Fix E2E tests Implement handling for CarPowerManager interface
2018-03-02Fix E2E testsSteve Paik
Bug: 70891434 Test: VHAL tests pass Change-Id: If205af43e5a4dbdac34ed07247de7863c3bf1685
2018-02-27packages/services/Car: Set LOCAL_SDK_VERSION where possible.Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I1e77ed30aa2b67a6b8640a23fc42c28b0445bf29
2018-01-27Car: Avoid Errorprone SelfAssignment error am: 30450c9388 am: db4211585cAndreas Gampe
am: 736f2b2cdc Change-Id: I81aa343db94d7333b08f774fb034b5a6b1731ba6
2018-01-26Car: Avoid Errorprone SelfAssignment errorAndreas Gampe
A checked self-assignment is still treated as a potentially bug-prone self-assignment. Avoid. Bug: 72076216 Test: m javac-check RUN_ERROR_PRONE=true Change-Id: I486a12c36f4ddb2290cf45cd33076c486f685765
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-09-20Fixed flaky e2e performance testPavel Maltsev
Run stress test multiple times to make sure at least one attempt succeed before giving up. Bug: 65944764 Test: runtest -x packages/services/Car/tests/vehiclehal_test Change-Id: I9a4a6dc0a3fdcc85270d52441b6bd20846177d3d
2017-08-25throw exception when vhal test cannot connect to halKeun-young Park
bug: 64303350 Test: build Change-Id: Icc1b47a6a6695bc95e651938e1368630f258f07a
2017-08-25remove 2.1 vhal usageKeun-young Park
- 2.1 vhal is removed and only 2.0 should be used. bug: 64303350 Test: build Change-Id: I2dfcd9b76cb3ec6f4429361138e55419d1169711
2017-08-25resolve merge conflicts of db3f2b04 to masterPavel Maltsev
Test: I solemnly swear I tested this conflict resolution. Change-Id: I90f023f9ccdb006c6caf216e156af5c3f6bd5ba7
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-14Attempt to connect to Vehicle HAL 2.1 by defaultEnrico Granata
Test: runtest -x /packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2LiveFrameTest.java Change-Id: Iee912177281e0e53dbaca82101c1db8b1ffe856c
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"Steven Moreland
This reverts commit be4780ccce616f1ae9311eaf6967195360cb1e33. Reason for revert: missing IBase dependency Change-Id: I9146352c7aea1a5287d54f0fdc054a27db64bb40
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-04-20Adding more benchmark tests for Vehicle stackPavel Maltsev
Also, change mapping of predefined frequence, if client specify SENSOR_RATE_FASTEST us maximum available rate from vehicle property configuration. Allow users to use all predefined SENSOR_RATE_* Test: runtest -x packages/services/Car/test/vehiclehal_test Bug: b/36510399 Change-Id: Ica466c0ff35161cd1e580ad3da2c87d8b844795e Fix: b/37538698
2017-04-17Merge "Initial e2e Vehicle s/w stack infrastructure" into oc-devTreeHugger Robot
2017-04-14Initial e2e Vehicle s/w stack infrastructurePavel Maltsev
Also, fixed some sensor mapping between CarSensorManager and VHAL Bug: b/36510399 Test: runtest -x packages/services/Car/tests/vehiclehal_test/ Change-Id: I556e03402c16a3b2c8cb25d7a048f8c9a072e23b
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-03-09The service name for Vehicle HAL 2.1 is now "default", not "Vehicle". Fix so ↵Enrico Granata
that these test cases will run again Test: TARGET_USES_CAR_FUTURE_FEATURES=true runtest -x <filename>.java Bug: 36097304 Change-Id: If5f0362084531880d6bd2e02a61fe579a383b147
2017-02-24Add a test case for reading freeze frame data from Vehicle HAL.Enrico Granata
Test: runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2FreezeFrameTest.java Bug: 34279245 Change-Id: Iaaef24e9c1fa627a3283b46f9226606b227c732b
2017-02-21Post-O. Move OBD2 support to Vehicle HAL 2.1.Enrico Granata
Test: build Change-Id: Ia1fd2e3057d3a4d35e6be00b7e5a11440027a575
2017-02-02Move Vehicle HAL under automotive packagePavel Maltsev
Test: all existing tests passing Bug: b/33200203 Change-Id: Id1ff815ae2af9c48ce8612b4cfb5327de13a5a1f
2017-01-18This comment is inaccurate. Remove.Enrico Granata
Test: . Change-Id: Ic3d0f6cc172257cfdfa4d5aed5e97cd7cb15a7fb
2017-01-18Write a Java test case for Vehicle HAL functionalityEnrico Granata
For now, this only contains basic tests of the OBD2 support Test: runtest -x packages/services/Car/tests/vehiclehal_test/ -j32 from the root of one's Android checkout Change-Id: I22fb27dbf418379a7b485570841841bfdf6b247d