Commit graph

1104 commits

Author SHA1 Message Date
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
Treehugger Robot
7f13389b5b Merge "Backfill VTS owner information." 2021-10-14 19:25:59 +00:00
Treehugger Robot
f2f815c4cf Merge "Backfill VTS owner information." 2021-10-14 18:42:48 +00:00
Treehugger Robot
dac860a21d Merge "Backfill owner information for VtsHalAutomotiveVehicleV2_0TargetTest." 2021-10-14 18:42:17 +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
Yiming Pan
b64be08607 Backfill VTS owner information.
Backfill owner information for VTS module VtsHalAudioControlV2_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: I12d40e94e6eb5f8b8731a4a7bce66ec78259742d
2021-10-13 16:50:34 -07:00
Yiming Pan
488e204c98 Backfill VTS owner information.
Backfill owner information for VTS module VtsHalAudioControlV1_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: I51dce04a5ea9d80297d5e33fe8e7a4be4646635b
2021-10-13 16:50:22 -07:00
Xin Li
ac9783cd54 Merge Android 12
Bug: 202323961
Merged-In: I76b505672b7c78b03a9c79df6473212ea5c65072
Change-Id: I262cbcc8dcfb0cad2b8e2f393c95829afe6b3827
2021-10-06 23:58:29 +00:00
Treehugger Robot
15ee6fa3f0 Merge "Backfill owner information for VTS module VtsHalCanBusV1_0TargetTest." am: f997f54349
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814073

Change-Id: Ib3fa65cd6f70f6b3bc99a7a8e903b1ede5e3b364
2021-09-29 21:25:15 +00:00
Yiming Pan
ba7e3994bc Backfill owner information for VTS module VtsHalCanBusV1_0TargetTest.
Each VTS module is required to have 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: I0f9790146d64200ccbfa364ba2e12d016c6d0629
2021-09-29 11:06:23 -07:00
Yiming Pan
e45001f543 Backfill VTS owner information.
Backfill VTS owner information for VTS module VtsHalSurroundViewV1_0TargetTest.

Each VTS module is required to have 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: Id9c87634553351a13dfaebdf8b68bf8762172598
2021-09-28 18:40:37 -07:00
Treehugger Robot
f2a4b17919 Merge "Backfill owner information for VTS module VtsHalEvsV1_0TargetTest." am: ac48f5f420
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814074

Change-Id: I6d43f8700ca82cbcbd6a603ab74acc0f8d13f12b
2021-09-04 04:14:55 +00:00
Treehugger Robot
956de3323a Merge "Backfill owner information for VTS module VtsHalEvsV1_1TargetTest." am: b0c278e439
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814075

Change-Id: I97ab8b569de9cd5fff0b56e31380bdb2a1f0c394
2021-09-04 04:14:49 +00:00
Treehugger Robot
ac48f5f420 Merge "Backfill owner information for VTS module VtsHalEvsV1_0TargetTest." 2021-09-04 04:12:13 +00:00
Treehugger Robot
b0c278e439 Merge "Backfill owner information for VTS module VtsHalEvsV1_1TargetTest." 2021-09-04 03:51:24 +00:00
Yiming Pan
2fcf0772b4 Backfill owner information for VTS module VtsHalEvsV1_1TargetTest.
Each VTS module is required to have 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: I5a7371f4014dc8ba637e341d23c7f4a88c783d5e
2021-08-30 12:59:04 -07:00
Yiming Pan
10be7be340 Backfill owner information for VTS module VtsHalEvsV1_0TargetTest.
Each VTS module is required to have 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: I5b9777b7bc8a4b505c00d8d32f021bafc601d63c
2021-08-30 12:58:55 -07:00
Jiyong Park
e0f2d29b7f 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
Merged-In: Ib58c9f1cb80d083a3c62d03415610be855b80f03
Change-Id: Ied92f2784ed7d6a73693c640042c8a66fbbcfa17
2021-08-17 14:48:50 +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
TreeHugger Robot
2c64659ade 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: I7e768c6923143f5dfaedda10454f990290732f26
2021-08-03 18:48:03 +00:00
TreeHugger Robot
bdc4eebc1a Merge "Update EVS VTS test case" into sc-dev 2021-08-03 18:30:33 +00:00
Tyler Trephan
5232236b74 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: Ib693f78e353cd0821b8617d3afbbd952fb851395
2021-07-30 17:06:58 +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
Jiyong Park
48131c0ace Merge "Remove ndk_platform backend. Use the ndk backend." am: 2346a4c6b9 am: 4ef9aa49dc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1778908

Change-Id: Ib35b7b0ddc0bebd0714d290b1ac2fab8d5a1893e
2021-07-28 12:39:05 +00:00
Jiyong Park
27f77fefd7 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
Change-Id: Ibe8beeaf0d1b33968fb782f1f70c17ae9e9bf871
2021-07-27 14:44:47 +09: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
Xin Li
b519a76f20 DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: Icfd3007a194da7ade037e359858b3dd48f24a0d6
Change-Id: Ie35ebafed5ca7a7f81ee2c03f799cc76f72d16d8
2021-06-18 01:26:08 +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