Commit graph

664 commits

Author SHA1 Message Date
Chih-Hung Hsieh
ad1bf31b78 Add timed out test files to tidy_timeout_srcs
* Timed out runs do not show any warning messages.
* These test files cannot finish clang-tidy runs with
  the following settings:
    TIDY_TIMEOUT=90
    WITH_TIDY=1
    CLANG_ANALYZER_CHECKS=1
* When TIDY_TIMEOUT is set, in Android continuous builds,
  tidy_timeout_srcs files will not be compiled by clang-tidy.
  When developers build locally without TIDY_TIMEOUT,
  tidy_timeout_srcs files will be compiled.
* Some of these test modules may be split into smaller ones,
  or disable some time consuming checks, and then
  enable clang-tidy to run within limited time.

Bug: 201099167
Test: make droid tidy-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-18 17:25:41 -08:00
Yu Shan
ee22b6ce25 Add owners file for VHAL.
Test: None
Bug: None
Change-Id: I470e08bf5872042122bf884a364fde1cbe9aab3e
2022-01-19 11:22:47 -08:00
Xin Li
8f6d361f15 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I96a417467346a57b13c2efae12a183d78506afc3
Change-Id: I570a3b599281f519af7a440562c83f8484684fd5
2021-11-10 08:05:55 +00:00
Yu Shan
68cb8c04e8 Parse user flags as flags instead of enum.
The flags field in UserInfo is a int32_t that contains multiple
UserFlags 'or'ed together. We should not parse it as enum.

Test: atest android.hardware.automotive.vehicle@2.0-utils-unit-tests
Bug: 202520478
Change-Id: Ie7e81a8a5f39f6070e35f2e77bce88a211fd526b
Merged-In: Ie7e81a8a5f39f6070e35f2e77bce88a211fd526b
(cherry picked from commit 5c0ec3f1de)
2021-10-26 19:39:48 +00:00
Yiming Pan
b80b5a28cf Backfill owner information for VtsHalAutomotiveVehicleV2_0TargetTest.
Each VTS module is required to have an OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I6684b5d14d8bf31a2183a68a4d5f39b7b3da022c
2021-10-14 17:14:20 +00:00
Tyler Trephan
09c95ea265 Updated WHEEL_TICK configArray documentation in VHAL. am: 0e6c4ce873
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15994748

Change-Id: I3d603deefa46992add3284700d94dac3a5889e8c
2021-10-06 19:21:03 +00:00
Tyler Trephan
0e6c4ce873 Updated WHEEL_TICK configArray documentation in VHAL.
It now specifies that the micrometers-per-wheel-tick values are static
and approximations.

Test: None
Bug: 169364681
Change-Id: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
Merged-In: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
(cherry picked from commit c0653a4452)
2021-10-06 16:44:07 +00:00
TreeHugger Robot
828a063f3c Merge "Update Documentation for EPOCH_TIME." into sc-qpr1-dev am: 922f2b0bca
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15618006

Change-Id: Iada15d1177104ca60713d927c8457dd1ca26c766
2021-08-20 21:23:09 +00:00
Ashutosh Agarwal
52799bd05d Update Documentation for EPOCH_TIME.
This is a change in behaviour for EPOCH_TIME to align it with a future revisions.

Bug: 157504928
Test: atest CarServicesTest
Test: atest VehiclePropertyIdsTest

Change-Id: I81881a03a1a562afc93cb1a2fe8a8fffa43f093d
2021-08-19 18:54:54 +00:00
TreeHugger Robot
029819097b Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad am: abf474d2e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: I0e59e20d25da0d9d40127e66ae5fd37280481a6b
2021-08-10 03:33:55 +00:00
TreeHugger Robot
df7d8cd017 Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: Icdd119946e28353deb43388934f2dc4fd4d53ab8
2021-08-10 03:18:31 +00:00
Tyler Trephan
d1705d569a Set the minSampleRate > 0 for continuous properties on the AAOS
emulator.

Test: atest CarPropertyManagerTest
Bug: 194680297
Change-Id: I3b9c359885d173c89e825b206b629ed9dfa38d13
2021-08-09 08:44:55 -07:00
Jiyong Park
d55d28a1d0 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Change-Id: Ib58c9f1cb80d083a3c62d03415610be855b80f03
(cherry picked from commit c426c6dbdc)
2021-08-09 11:20:04 +09:00
Tyler Trephan
6ac46d6bf2 Fixed failing CTS tests related vehicle properties on the AAOS emulator.
-Added supported gears to CURRENT_GEAR config.
-Changed INFO_EXTERIOR_DIMENSIONS to int32 array

Test: atest CarPropertyManagerTest
Bug: 194182294
Change-Id: I96d241d0c388b8fc397af9f45a8a8072a05ee8d1
2021-07-29 16:49:39 -07:00
Kai
9228043bbc Skip vts for hvac properties
Setting hvac properties might have a lot of dependency issue.
Uses other properties for testing set method.

Bug: 189948885
Test: atest VtsHalAutomotiveVehicleV2_0TargetTest
Change-Id: I715e9ce68e9e81618cdc6b433f0c108ebc057610
2021-06-17 14:00:03 -07:00
Kai
9ba9f5e2f2 Fix VHAL VTS issue on GSI image
Bug: 183961835
Test: atest VtsHalAutomotiveVehicleV2_0TargetTest
Change-Id: I78b4e38e7462cb8cc69ca999f0da64a1e396df90
2021-06-08 16:06:24 -07:00
Hao Chen
4065fbfa46 Vehicle HAL client reads the config from the server instead of DefaultConfigs.h
Test: Launch cf auto instance (with default vhal) and

atest
packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/CarPropertyTest.java

Bug: 188005769

Change-Id: If98db799be8c894bd9a7ba44bf3075f1f7384e5c
2021-05-17 20:10:01 +00:00
Hao Chen
87527e238d Merge changes I5c55bae2,If418dcdd,I5aff41ac into sc-dev
* changes:
  Remove duplicates in DefaultConfig.h
  Split the utility parts out of DefaultConfig.h
  Use PropStore on the Server Side to Simulate ECU
2021-05-17 19:38:03 +00:00
Kai Wang
afc115199a Merge "Rename Unix_time property to EPOCH_TIME" into sc-dev 2021-05-17 18:16:07 +00:00
Kai Wang
3be21ccf01 Rename Unix_time property to EPOCH_TIME
Bug: 188227292
Test: build and flash with google VHAL
      check property from KitchenSink
Change-Id: I7dc1833a000949f246a1a8be6f87970a1478832b
2021-05-14 23:47:00 +00:00
Hao Chen
d2e8b5fdb2 Remove duplicates in DefaultConfig.h
Test: build and unit tests

Bug: 188005769

Change-Id: I5c55bae2f54725542ac56ebd04ba58de6af63d9e
2021-05-14 14:59:14 -07:00
Hao Chen
f2654a4c73 Split the utility parts out of DefaultConfig.h
So that the client side may use the utilities without introducing the
"default configs". "default configs" should only be visible to the
server, and the vehicle hal server will take care of configs.

Test: build and unit tests

Bug: 188005769

Change-Id: If418dcdd1c5b261179104bb414c52f3eb04d3ea8
2021-05-14 14:59:14 -07:00
Hao Chen
945c430d19 Use PropStore on the Server Side to Simulate ECU
Test: build and unit tests

Bug: 188005769

Change-Id: I5aff41acbc4795def84ceb8e363019ff9668120c
2021-05-14 14:58:52 -07:00
Yuncheol Heo
9ceb2ca131 Set the intial value of Cluster VHAL.
- This is the cause of the inital empty Cluster VHAL messages.

Bug: 186455827
Test: Check the size of Cluster VHAL arguments by the logcat.
Change-Id: I5703295c163af4bcc27bd7c41ff32eafcffcead3
2021-05-07 00:04:29 -07:00
Roman Kiryanov
565d157410 Merge "Move the qemu_pipe library into vhal_v2_0" am: de2b8f248e am: e6f4bdcd3d am: 75b7a259df
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1670545

Change-Id: I64c7db977c46faa31181487b9b599e922e293cb7
2021-04-22 00:30:53 +00:00
Roman Kiryanov
75b7a259df Merge "Move the qemu_pipe library into vhal_v2_0" am: de2b8f248e am: e6f4bdcd3d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1670545

Change-Id: I00025d86e877368b177d764d178dd3518cbd8279
2021-04-22 00:07:11 +00:00
Yuncheol Heo
65becfa568 Change CLUSTER_DISPLAY_STATE message to be able to set the bounds.
- Previously it can specify the size only, but we'll change the argument
  to set the rectangle area (to be able to set the starting position).

Bug: 173454429
Test: it builds
Change-Id: I15329983e1af4de82a474f5c3e803905f4742848
2021-04-19 22:25:06 -07:00
Yuncheol Heo
38ec240f8f Move the guard definition ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING.
- The target code is compiled with the libary, so move the definition
  to the libary.

Bug: 181802283
Test: check if ClusterOSDouble gets the vendor messages.

Change-Id: Id501be674844bda73ccf5ae74d97a363869db7b7
2021-04-19 16:26:13 -07:00
Kai Wang
eaa9bd3aeb Merge "HVAC properties and CRITICALLY_LOW_TIRE_PRESSURE" into sc-dev 2021-04-16 21:08:50 +00:00
Kai
786db4a6da HVAC properties and CRITICALLY_LOW_TIRE_PRESSURE
Address the requests from google Assistant team:
Add CRITICALLY_LOW_TIRE_PRESSURE to indicate critically low tire pressure
Add HVAC_TEMPERATURE_VALUE_SUGGESTION to let OEMs suggest temperature
value for android.

Bug: 116673704
Bug: 174207039
Bug: 157608587
Bug: 161831228
Bug: 174202040
Test: Use "adb shell cmd car_service get-carpropertyconfig" to check if
the properties are added in google HAL.
atest VehiclePropertyIdsTest

Change-Id: I46b71bc44cfef64755109dd460777f36dd1d2767
2021-04-14 08:45:39 +00:00
Yuncheol Heo
ed48cd23bc Merge "Redirect the Cluster VHAL messages to vendor ones, or vice versa." into sc-dev 2021-04-09 17:15:11 +00:00
Roman Kiryanov
4e370a4b42 Move the qemu_pipe library into vhal_v2_0
The vhal is the only user of this library and
this library is deprecated.

Bug: 175046060
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I0948ee43f476b002b2a643cbae95e333bcbc373d
2021-04-08 12:11:30 -07:00
Yuncheol Heo
e3eea4f932 Redirect the Cluster VHAL messages to vendor ones, or vice versa.
- We'll reroute the Cluster VHAL messages to vendor ones, so that our
ClusetrOSDobule can receive them through the vendor properties.

Bug: 181802283
Test: check if ClusterOSDouble gets the vendor messages.
Change-Id: Iee71e7453bec6a633b94aa7f56e8ceec5fc7b9bd
2021-04-06 23:32:39 -07:00
Kai
425a83b6fc Add ETC_CARD_TYPE and ETC_CARD_STATUS
Allow applications to know whether a Japanese ETC Card Reader is present,
and whether a valid ETC card is inserted to the reader.

Bug: 171751885
Test: check properites in kitchensink
atest CarServicesTest
atest VehiclePropertyIdsTest

Change-Id: I9e9135b2eb0d2e701413dcc1b964e193a47d7b19
2021-04-02 17:03:46 -07:00
Yuncheol Heo
e60e17f781 Remove the suffix LEGACY from CLUSTER_NAVIGATION_STATE_LEGACY.
- It sounds awkward to have the suffix LEGACY for the new VHAL.

Bug: 173454429
Test: atest ClusterHomeManagerTest ClusterHalServiceTest
Change-Id: I4b79bed21859af3dee1efe2da420cb19c2aa19db
2021-03-31 12:40:08 -07:00
Kai Wang
64d4651081 Merge "Add Unix_time and STORAGE_ENCRYPTION_BINDING_SEED" into sc-dev 2021-03-30 19:55:17 +00:00
Kai
fd2cbf9981 Add Unix_time and STORAGE_ENCRYPTION_BINDING_SEED
Add two new properties. Unix_time and STORAGE_ENCRYPTION_BINDING_SEED.

Bug: 176936731
Bug: 176985441
Test: adb shell cmd car_service get-carpropertyconfig
Change-Id: Ib94d8747a1b9ad0f187a8f78a87cd7f10b4506c5
2021-03-25 21:05:52 +00:00
Bob Badour
304e9ea675 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  automotive/vehicle/2.0/vts/functional/Android.bp
  media/c2/1.2/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Iffcdec8246a5acaf28ccb4475a309554f46b56ce
2021-03-25 12:22:15 -07:00
Kai Wang
25274e82aa Merge "Convert VTS for VHAL from python to gtest" into sc-dev 2021-03-24 04:15:18 +00:00
Kai Wang
91c9697d54 Merge "Correct Vehicle properties permissions" into sc-dev 2021-03-17 23:53:16 +00:00
Roman Kiryanov
5b30be06fa Merge "Use ro.boot.qemu to check if the device is an emulator" am: 03fb28b9fc am: f3593338c0 am: 02118721a7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1627762

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I68c162c5b3f7e2721a915cb4a45b4a29727ab428
2021-03-13 03:47:34 +00:00
Kai
40b9fe8213 Convert VTS for VHAL from python to gtest
VTS10 won't be supported after S.
Rewrite the VTS for VHAL in gtest test suit.
Also, the test is moved from host-side to target side.

Bug: 153872561
Test: atest -c VtsHalAutomotiveVehicleV2_0TargetTest
Change-Id: I89d3983daba2ea5784ba9d95833c3f2dda3b1fac
2021-03-12 19:07:46 -08:00
Roman Kiryanov
02118721a7 Merge "Use ro.boot.qemu to check if the device is an emulator" am: 03fb28b9fc am: f3593338c0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1627762

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9421a57880d57f6a42912222c6f585dc76157931
2021-03-13 02:38:21 +00:00
Hao Chen
d7886ba5e2 Merge "Gracefully stop the GeneratorHub worker thread in destructor" into rvc-qpr-dev am: a216f7fade am: d8c5052cd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/13807297

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibc7c6f87ba19dda040bf15d2ce28276495b50993
2021-03-11 02:45:03 +00:00
Roman Kiryanov
de942b54a9 Use ro.boot.qemu to check if the device is an emulator
`ro.kernel.qemu` is deprecated.

Bug: 182291166
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I0d078fad7152c4fda9fbb1fce6bb399436e8c60a
2021-03-10 16:49:36 -08:00
Kai
cfbfa1361d Correct Vehicle properties permissions
Some properties has different documentation in types.hal and
propertyHalIds. fix the inconsistency
Add e2e test for system properties' permission

Bug: 156660899
Test: atest VehicleHalTest
Change-Id: I5cf77cf039508a383b0b2ea5836b3a29bca9e514
2021-03-10 16:35:18 -08:00
Hao Chen
d8c5052cd1 Merge "Gracefully stop the GeneratorHub worker thread in destructor" into rvc-qpr-dev am: a216f7fade
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/13807297

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ief26f8e46deb909c132bc5c4053dab6e630eaf9e
2021-03-10 23:53:58 +00:00
TreeHugger Robot
1bcf9dd393 Merge "Add EVS_SERVICE_REQUEST property" into sc-dev 2021-03-10 17:35:13 +00:00
Hao Chen
a0cbb80f58 Gracefully stop the GeneratorHub worker thread in destructor
To unit test the virtualized VHAL, GeneratorHub needs to be destructable

Test: run unit tests in pa/1878260
Bug: 181371253
Change-Id: Icfd3007a194da7ade037e359858b3dd48f24a0d6
2021-03-08 23:07:45 -08:00
Yuncheol Heo
8709aa134b Polish the comments of Cluster VHAL.
Bug: 173454429
Test: it builds
Change-Id: Ia3ddc7329494298d49d841f5e913423aeef7d648
2021-03-03 21:15:40 -08:00