Commit graph

1099 commits

Author SHA1 Message Date
TreeHugger Robot
fe342525b2 Merge "Using a manifest fragment" into sc-v2-dev 2021-10-27 04:04:59 +00:00
TreeHugger Robot
f8183c2914 Merge "Parse user flags as flags instead of enum." into sc-v2-dev 2021-10-25 20:33:59 +00:00
Yu Shan
5c0ec3f1de 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
2021-10-25 12:36:27 -07:00
Changyeon Jo
9b3c9adb71 Using a manifest fragment
Fix: 203414344
Test: m -j and start CAN services
Change-Id: I423ab883d959f234a52adf680fae91bf264bea8b
2021-10-21 09:12:47 -07:00
Changyeon Jo
02499d65fc Update VtsHalEvsV1_1TargetTest
This CL makes following changes to fix VTS failures reported on Seahawk
reference platform.

* Correct the definition of RawStreamConfig and its size constant.
* Update all test cases to use a stream configuration reported by the
  target camera device.
* Update CameraStreamExternalBuffering test cases to take internally
  allocated buffers into account.

Bug: 192460757
Bug: 199626993
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: Ia03775ae543617ba5057e91bbbb5aed9221d1a30
2021-10-18 21:24:24 -07:00
Keith Mok
0e6752c900 Fix fuzzer error for FormatConvertFuzzer
The stride was not correct for the fuzzer.
And the FormatConvert have some restructions
on the width and height.

- YUYV
  width and height must be even nmber
- YU12
  width mush be divisible by 16
  height must be even number

Bug: 202641239
Test: FormatConvertFuzzer_copyYV12toBGR32
Change-Id: I45ebea3e22854bdad037abb742fbdbe364b19ec5
2021-10-13 16:09:50 +00:00
Tyler Trephan
8999b4da53 Updated WHEEL_TICK configArray documentation in VHAL. am: 0e6c4ce873
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15994748

Change-Id: I3ca2b382853d35a67fe00b31f3485e6ce055a887
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
Kai Wang
773ed6ddd9 Merge "Add areaId for CRITICALLY_LOW_TIRE_PRESSURE" into sc-v2-dev 2021-09-28 22:22:17 +00:00
Kai Wang
e509bf1f76 Add areaId for CRITICALLY_LOW_TIRE_PRESSURE
CRITICALLY_LOW_TIRE_PRESSURE is a seat type property. Added areaId into
the property config.

Bug: 174585018
Test: atest AtsCarHostTests
Change-Id: I260b9e79844f44cad31efcf510301af0ee6227a1
2021-09-17 22:46:09 +00:00
TreeHugger Robot
a66bac8e90 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: Ifbf528768e04cf583d1798340a7c9a7df66a304a
2021-08-20 21:32:44 +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
Kai
b22a8678f8 Add placeholder properties for emulator
Add some placeholder properties in google VHAL. Developers who use the
aae emulator can use them in developing new features without
implementing a real property.

Bug: 193460353
Test: build aae emulator, use adb lshal to change property values
Change-Id: I6131a4892495c4c1e1c73e078572a666a33f984e
Merged-In: I6131a4892495c4c1e1c73e078572a666a33f984e
(cherry picked from commit 4d1fe81bee)
2021-08-12 18:50:44 +00:00
TreeHugger Robot
171be708d9 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: I8d626df393b44121bc1e67682b812fd75910bbfb
2021-08-10 03:33:54 +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
TreeHugger Robot
0786af29fb Merge "Support more types for set property cmd." into sc-v2-dev 2021-08-03 19:39:34 +00:00
TreeHugger Robot
f4c339a156 Merge "Update EVS VTS test case" into sc-dev am: bdc4eebc1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15229810

Change-Id: I97da4f6a0fd1027f741eacac3e2962d2ab4100f0
2021-08-03 18:49:58 +00:00
TreeHugger Robot
bdc4eebc1a Merge "Update EVS VTS test case" into sc-dev 2021-08-03 18:30:33 +00:00
Tyler Trephan
93a3dff55e Fixed failing CTS tests related vehicle properties on the AAOS emulator. am: 6ac46d6bf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15421133

Change-Id: I7da297cd9110378408a4a440eebe6c849dd57870
2021-07-30 17:08:42 +00: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
Yu Shan
27946f0b00 Support more types for set property cmd.
Now support int64, float and bytes.
This CL also allows setting read-only properties or reading
write-only properties through cmdline. The cmdline debug interface
is for test only and does not need to enforce these restrictions.

Test: unit tests.
Bug: b/189969547
Merged-In: Ib0e085f7a68e3d54782c21fb12caa500a0ad82ec
Change-Id: Ib0e085f7a68e3d54782c21fb12caa500a0ad82ec
(cherry picked from commit 8ae3ea9813)
2021-07-29 19:38:06 +00:00
garysungang
97d1039dfd Update EVS VTS test case
Update test case - CameraStreamExternalBuffering
Use native resolution instead of fixed test buffer 640x320

Bug: 190127973
Test: Manually run VTS on seahawk
Change-Id: I11043af4215fb9c5a2658591e9bdf9e468542a1b
2021-07-26 10:25:19 -07:00
Keith Mok
1b32420aff Remove vehicle binding seed property in emulator
Emulator does not support vehicle binding seed property,
but it reports it supports it. Remove it for now.
Otherwise the vehicle binding utilities will try to set the
vehicle binding seed but that will not be saved anywhere
in the emulator.

Test: manual
Bug: 157501579
Change-Id: I9e8ad382a49e1108e0e25d6eee94b24d766264e8
Merged-In: I874e94b06fe675a96e5b15c9bff087023b4ea109
2021-07-16 20:13:58 +00:00
Keith Mok
165d173e94 Move vehicle hal to start in early_hal
Vehicle HAL required before storage encryption can get unlocked
when using vehicle seed binding with ECU.

Test: manual, check vehicle-hal starts in early_hal from logcat
Bug: 157501579
Change-Id: I88db77fbb1d04577b999b47e6f8dc4df1b300832
2021-07-14 00:08:32 +00: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
Jiyong Park
72b6359859 Freeze AIDL APIs for SC
Ignore-AOSP-First: part of SC finalization

Bug: 188713899
Test: m
Change-Id: Iee18cd05954dc8ea08cc4f985499a70977d1af4f
2021-05-25 10:13:26 +09: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
TreeHugger Robot
6cb1efc762 Merge "Change CLUSTER_DISPLAY_STATE message to be able to set the bounds." into sc-dev 2021-04-20 22:18:32 +00:00
Yuncheol Heo
7435ee220f Merge "Move the guard definition ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING." into sc-dev 2021-04-20 17:53:07 +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
Changyeon Jo
d4ac93a514 Update OWNERS
Add Gary Sun to the owners of the EVS HAL interface

Fix: 185830679
Test: N/A
Change-Id: I732198ca3795d5d296d614b4f37a84110ab56f73
2021-04-19 15:20:26 -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
2339430855 Merge "Remove the suffix LEGACY from CLUSTER_NAVIGATION_STATE_LEGACY." into sc-dev 2021-03-31 23:07:19 +00:00
Hayden Gomes
a0335554d1 Merge "Applying cleanup to default AIDL AudioControl" into sc-dev 2021-03-31 20:53:26 +00:00