Commit graph

92 commits

Author SHA1 Message Date
Yuexi Ma
f2336a1792 Merge "Add coverage to tv_input, tv_cec, and vehicle vts hal tests" 2017-01-30 16:06:51 +00:00
TreeHugger Robot
e3331b7f4a Merge "Fix AP_POWER_STATE property in Vehicle HAL" 2017-01-28 09:42:34 +00:00
Asaf Rosenfeld
6387576b90 Merge "Adding VMS message type and a structure to the VMS messages." 2017-01-28 06:12:54 +00:00
TreeHugger Robot
3935f20ce1 Merge "Vehicle HAL: add wheeltick property" 2017-01-28 00:58:45 +00:00
asafro
3d71813eb2 Adding VMS message type and a structure to the VMS messages.
Test: will add set/get values to DefaultHalImpl
Bug: 34465596
Change-Id: I9fded644dc482a5ed429ba1766d9d01b083f9d87
2017-01-27 15:49:44 -08:00
Enrico Granata
310d4b32a1 Merge "Add logic to actually read OBD2 sensor properties to VehicleHidlTest" 2017-01-27 01:00:12 +00:00
Enrico Granata
4fb6724c4f Add logic to actually read OBD2 sensor properties to VehicleHidlTest
Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VehicleHidlTest -l INFO

Change-Id: I0817823ea00354b27c90bdd412012320868b9e8f
2017-01-26 22:27:02 +00:00
Pavel Maltsev
97905a1e44 Fix AP_POWER_STATE property in Vehicle HAL
Test: mm -j32, manual

Change-Id: I50e7ff68054c42a3f684df4858cf8fa6506ed6c3
Fix: b/34722118
2017-01-26 11:26:51 -08:00
Pavel Maltsev
f0e53e454d Vehicle HAL: add wheeltick property
Bug: b/31926188

Test: mm -j
Change-Id: I290c7363fc93c838aa75cfc913368f907a566d47
2017-01-26 10:56:17 -08:00
Asaf Rosenfeld
9400b46788 Merge "Rename the VMDS property to VMS which is how it is called now. Test: Fixed HAL tests with the new property name Bug:34682582" 2017-01-26 18:53:23 +00:00
Keun-young Park
e26a280b39 Merge "fix errata in comment" 2017-01-26 03:08:57 +00:00
Keun-young Park
c7acd4bf64 fix errata in comment
bug: 32371653
Test: build
Change-Id: Ia7889199a53c461df5f1367c07117aab2a775fd6
2017-01-25 16:49:10 -08:00
Pavel Maltsev
f04689102e Fix syntax error in Vehicle VTS
Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run
commandAndExit vts --skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VehicleHidlTest -l INFO

Bug: b/32021794

Change-Id: I855aa4792405e54824e85c3982912866fcb10968
2017-01-25 18:26:13 +00:00
Yuexi Ma
a7cb8ba677 Add coverage to tv_input, tv_cec, and vehicle vts hal tests
Bug: 34671241
Test: ENABLE_TREBLE=true make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --skip-preconditions --module TvInputHidlTest -l INFO
Change-Id: Id470d57b15d68fdb9518f565384501887de78826
2017-01-25 01:11:48 -08:00
Pavel Maltsev
2b059b5977 Vehicle HAL: add VTS case for DRIVING_STATUS
Test: ENABLE_TREBLE=true make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VehicleHidlTest -l INFO
Change-Id: I66a4c7105412da9efd05eb0ef1caed275676488c
2017-01-24 22:32:45 -08:00
asafro
e3fc6e0795 Rename the VMDS property to VMS which is how it is called now.
Test: Fixed HAL tests with the new property name
Bug:34682582

Change-Id: Ibed6a7d82de070087409da04e5a42e30f5cf3252
2017-01-24 13:50:29 -08:00
TreeHugger Robot
284d3fe96f Merge "Specify username for a target-side driver." 2017-01-21 04:43:44 +00:00
TreeHugger Robot
a34f64724b Merge "Vehicle HAL: return ACCESS_DENIED when appropriate" 2017-01-20 20:22:21 +00:00
Keun Soo Yim
af297436e2 Specify username for a target-side driver.
Test: make vts -j30 BUILD_GOOGLE_VTS=true && vts-tradefed run
commandAndExit vts --skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VehicleHidlTest -l INFO
Bug: 34360420
Change-Id: Ic9567b588d6d2565014ad145c1d52fadb4082304
2017-01-19 17:10:52 -08:00
Zhuoyao Zhang
6ec5b21a81 Update profiling code for host-side tests.
* Parse profiling data for each test case.
* Merge the profiling data for each test case at the end of test
  and upload the profiling info to web.

Bug:34226555
Test: run vts -m VibratorHidlProfilingTest

Change-Id: I9e13eada8e7db338a29c6943868d12e76844e2c4
2017-01-17 20:10:26 -08:00
Pavel Maltsev
85db07a681 Vehicle HAL: return ACCESS_DENIED when appropriate
Fix: b/34359485

Test: unit tests updated
Change-Id: I48bd7b5eb54109e333fffd2ed562597f89cc8a27
2017-01-17 17:45:00 -08:00
Yuexi Ma
1fcf593701 Remove empty Android.mk files for 3 test projects
Removing empty intermediate Android.mk files for vehicle, tv cec, and tv input vts test projects.
Replaced with direct pointing to the Android.mk file under functional/vts/testcases/hal

Test: make vts
Change-Id: I64a0a7c236f2ef6a2019cbde3b93ac2324df3752
2017-01-18 00:43:33 +00:00
Enrico Granata
4dcdf00c52 Stub out VTS testing for OBD2 sensors
This commit adds support to VHAL for returning a live and a freeze OBD2 frame filled in with default placeholder values
It also adds a VTS test to check for OBD2 support. Doing anything more interesting is currently blocked.

Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VehicleHidlTest -l INFO
Change-Id: I4aad71f7bb65a690841e74d06fefc5fb2076ce5e
2017-01-17 10:51:43 -08:00
Keun-young Park
cd0bb799ad Merge "add additional audio properties" 2017-01-13 01:00:43 +00:00
Mark Salyzyn
3ff5260601 liblog: use log/log.h when utilizing ALOG macros
Test: compile
Bug: 30465923
Change-Id: I67046a75be057e7905570748a1ed6bfd03c0e1c8
2017-01-11 15:47:40 -08:00
TreeHugger Robot
a8d358fb63 Merge changes from topic 'bphwfoo'
* changes:
  Bp/nFoo -> Bp/nHwFoo.
  Bp/nFoo -> Bp/nHwFoo
2017-01-11 23:43:16 +00:00
Keun-young Park
3569c0f02d add additional audio properties
- AUDIO_FOCUS_EXT_SYNC for external sync of focus
- AUDIO_STREAM_STATE for notifying stream state
- AUDIO_PARAMETERS for car audio parameters
- AUDIO_VOLUME_EXT_SYNC for external sync of volume

bug: 32371653, 32371120
Test: build only for now, will add tests in car service layer later
Change-Id: I40ae16c40827a0240bf74714d3be333fd20424c5
2017-01-11 13:50:17 -08:00
Yifan Hong
a18049ad13 Bp/nFoo -> Bp/nHwFoo.
Test: mma
Bug: 33554989
Change-Id: I4b3f852d20fdfc49f2da671dd3c12d618ffb4140
2017-01-11 13:14:59 -08:00
Yifan Hong
668fed79ad Renamed toString to vecToString
to avoid clashing of names for the added
::android::hardware::details::toString()
for hidl_vec.

Test: mma

Bug: 33459772
Change-Id: I6fbcaf9b30e29784b8915f7668cd1456de910eea
2017-01-10 18:09:48 -08:00
Enrico Granata
dc854f8d10 Fix a typo that was causing two index values to be commented out.
Test: not commented out anymore
Change-Id: I7de32fabe51501317613524aa8a9ff138fe4aa6e
2017-01-09 15:39:26 -08:00
TreeHugger Robot
b5dad57d72 Merge "Add VTS case for mandatory props in Vehicle HAL" 2017-01-09 20:55:56 +00:00
Pavel Maltsev
9a23ee670c Add VTS case for mandatory props in Vehicle HAL
Bug: b/33581262

Test: this is VTS test.
Change-Id: I71eae5dec0af3dc461698a147870d4c8fc7de7f4
2017-01-09 19:33:08 +00:00
TreeHugger Robot
ad9d13b64c Merge "Generate up-to-date .vts files" 2017-01-07 01:58:03 +00:00
Enrico Granata
ebc4c34f3b Generate up-to-date .vts files
We added a bunch of content to VHAL in support of OBD2 sensors. hidl-gen a matching .vts file

Test: hidl-gen
Change-Id: Ie1dadf4f6ea0b75ab2bcea81130d848dc899b0ce
2017-01-06 16:08:45 -08:00
Pavel Maltsev
03dddfe48b Resolve TODOs in Vehicle HAL interface
Fix: b/34109323

Test: comments changed
Change-Id: Ic00f43331fcaf4177e82fd33f05b095d45e7f8ad
2017-01-06 10:36:41 -08:00
Hsin-Yi Chen
23bd70d552 Fix VTS paths on 32-bit target
Decide target_basepaths by device's bitness.
On 32-bit target, do not include */lib64.

Bug: 33930594
Test: vts-tradefed run commandAndExit vts -m VibratorHidlTest -l INFO
Change-Id: I340ded1d763dc194da461ecf183c6a2ff5f5ee6f
2017-01-05 11:37:31 +08:00
Enrico Granata
793eb8b87b Merge "Define property types for the live and freeze-frame sensor data." 2017-01-04 20:21:40 +00:00
Yuexi Ma
e09eb48915 Merge "specify vehicle service name on vts test" 2017-01-04 19:25:46 +00:00
Enrico Granata
844770cde4 Define property types for the live and freeze-frame sensor data.
Change-Id: I462ab439df3c31b9f00d365f6a72f37690e01e98

Test: build
2017-01-04 10:54:49 -08:00
Yuexi Ma
bd111f394a specify vehicle service name on vts test
The default service name assumed by the framework is lower case hal name (vehicle)
Since vehicle hal uses Upper case for its service name and is assumed by the framework side code, this change specifies a custom service name

Test: ENABLE_TREBLE=true make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VehicleHidlTest -l INFO
Change-Id: Ie02f83d27554e89b4a958421a1a88d701abcf2a7
2017-01-03 19:22:56 +00:00
Enrico Granata
ec67aa40d7 Initial definition of data types and enumerations for OBD2-compatible diagnostic properties
This commit defines a list of properties that we want to support in VHAL for the purpose
of gathering vehicle diagnostics, and a data structure to contain the values of those
properties in the form of a "snapshot"

It does not yet define the property itself as that relies on a yet undefined hybrid type

Test: build
Change-Id: Ifa5bbf45c4aee2f93cbd82316d3399c04e3c34b4
2017-01-03 18:53:06 +00:00
Martijn Coenen
028223775b Remove obsolete references to IPCThreadState/ProcessState.
Threadpool can now be configured/joined if needed with
configureRpcThreadpool() / joinRpcThreadpool().

Bug: 31226656
Test: mma
Change-Id: I0d7d9924cc8c8851cc2b61ebdae906204909890e
2016-12-30 14:00:31 +01:00
TreeHugger Robot
ba4c80d8e1 Merge "Update Android.bp and vts/Android.mk for Hidl HALs" 2016-12-23 18:05:04 +00:00
Zhuoyao Zhang
c57e359d1a Update Android.bp and vts/Android.mk for Hidl HALs
* Using update-makefiles.sh to add make rule for profiler in Android.bp
* Remove make rule for profiler in vts/Android.mk.

Bug:31930023
Test: mma
Change-Id: Iea834d8610501c2fce63f65742db31bafb85c0b8
2016-12-22 17:09:12 -08:00
Pavel Maltsev
f21639f6e3 Add complex data type to Vehicle HAL
Bug: b/33751068

Test: unit test provided, properties with complex data types
      should be covered with VTS

Change-Id: I12cfdbe1572018b941d3154b6d3bfdeb251ec55b
2016-12-22 14:24:28 -08:00
TreeHugger Robot
e685ec847e Merge "Introduce ignition state property in VHAL" 2016-12-22 03:49:43 +00:00
Asaf Rosenfeld
0e1b7f5cf7 Merge "Adding a property for a communicating Vehicle Maps Data Service messages. The message will be a protobuf preceded by a some routing data, so using Bytes as type until hybrid types are supported." 2016-12-22 01:09:18 +00:00
Keun Soo Yim
516e8193b3 regen makefiles and delete old vts driver build rules
Test: mma
Change-Id: I71c4fd68ea6d7a2fac2457b87c82c10490dfb05e
2016-12-21 13:25:46 -08:00
asafro
804864f3bf Adding a property for a communicating Vehicle Maps Data Service messages.
The message will be a protobuf preceded by a some routing data, so using
Bytes as type until hybrid types are supported.

Test: it compiles

Change-Id: If98ae0b842b455648e980a474a07a2cee51ef382
2016-12-21 10:34:44 -08:00
TreeHugger Robot
eb7ef72c87 Merge "Remove VehiclePermisionMode from VHAL" 2016-12-21 02:07:03 +00:00