Commit graph

2530 commits

Author SHA1 Message Date
shrikar
127dc87b2f Populate both VehiclePropConfig and VehicleAreaConfig.access
Bug: 323122049
Test: atest JsonConfigLoaderTest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I398b136e705df805c25d541f7721f36c47813273
2024-02-16 23:30:07 +00:00
Treehugger Robot
8197c568ed Merge "Add VTS for remoteaccess HAL." into main 2024-02-01 19:35:13 +00:00
Chris Weir
dfd27be4fd Merge changes I97c00d5a,Iab1699c4 into main
* changes:
  Fix sanitizer error
  Revert "Fix hwasan error for CAN HAL"
2024-02-01 19:01:38 +00:00
Yu Shan
493a0cddb3 Create EmuMetadataGenerator to check meta.json.
Create EmuMetadataGenerator to convert AIDL generated java files
to meta.json that can be used by emulator to populate the available
vhal props list.

Added build rules to generate the Java files from AIDL files and
check whether the meta.json file needs to be updated.

Test: make sdk_car_x86_64-trunk_staging-userdebug target
Bug: 318747444
Change-Id: Ib3bc7b68a1312152617fdab4598ed389447c20cd
2024-01-31 14:32:23 -08:00
Shrikar Amirisetty
0cac55bd8d Merge "Updated JsonConfigLoader to parse access for area configs" into main 2024-01-31 00:00:50 +00:00
Yu Shan
ebe4da578b Add VTS for remoteaccess HAL.
Test: atest VtsHalAutomotiveRemoteAccess_TargetTest
Bug: 277967402

Change-Id: I053d91a3a6c76632e166c9500411de278fb40ff7
2024-01-29 18:59:35 -08:00
Chris Weir
091430bd1d Fix sanitizer error
Wrong constructor for string is being used, which sometimes causes a
sanitizer error, due to read past the end of buff, which wasn't NUL-terminated.

Bug: 263769296
Test: m, it runs
Change-Id: I97c00d5ae068a18739c313eeae39ab6454266a23
2024-01-29 20:32:13 +00:00
Yu Shan
da2fa0929f Fix HIDL VHAL descriptor name in VTS.
Bug: 322418005
Test: Manual test with HIDL VHAL, VTS pass.
Change-Id: I93e92d3587243c44b5651ab85d47442ebb64c51a
2024-01-26 18:26:40 -08:00
Yu Shan
97770cf39c Fix property unavailable check logic.
Test: Presubmit
Bug: 322070490
Change-Id: Ifd97370a5dd71ace57791c0287bea0bb8c912c29
2024-01-26 18:25:26 -08:00
Treehugger Robot
d243da148a Merge "Create a skeleton Rust VHAL." into main 2024-01-27 00:38:38 +00:00
Chris Weir
f4ff5871c5 Revert "Fix hwasan error for CAN HAL"
This reverts commit 864bcb9e7a.

Reason for revert: Doesn't fix hwsan error, fix upcoming

Change-Id: Iab1699c4e5494ff674413cfea78b56d12410e92d
2024-01-26 16:06:10 -08:00
Tyler Trephan
3289d26711 Merge "Updated INFO_MODEL_YEAR to specify YYYY format and Gregorian calendar." into main 2024-01-26 23:32:09 +00:00
Yu Shan
b0b71c1f8a Create a skeleton Rust VHAL.
This is to prove that rust VHAL can be built and can run. The
skeleton Rust VHAL will return UNKNOWN_ERROR for all APIs.

Test: m android.hardware.automotive.vehicle-V3-rust-service
Manually replace VHAL on emulator with Selinux policy manually
updated to allow rust VHAL.
Bug: 320320087

Change-Id: I7d2dab392bf2ef982001df10c9b602c5c75888f7
2024-01-26 23:06:56 +00:00
Eva Chen
1e2a2b2402 Merge changes from topics "ULTRASONICS_SENSOR_DETECTION_RANGE", "ULTRASONICS_SENSOR_FIELD_OF_VIEW", "ULTRASONICS_SENSOR_MEASURED_DISTANCE", "ULTRASONICS_SENSOR_SUPPORTED_RANGES" into main
* changes:
  Add ULTRASONICS_SENSOR_MEASURED_DISTANCE to emulator defaults.
  Add ULTRASONICS_SENSOR_SUPPORTED_RANGES to emulator defaults.
  Add ULTRASONICS_SENSOR_DETECTION_RANGE to emulator defaults.
  Add ULTRASONICS_SENSOR_FIELD_OF_VIEW to emulator defaults.
2024-01-26 19:54:07 +00:00
Eva Chen
c1d02213b4 Merge changes from topic "ULTRASONICS_SENSOR_ORIENTATION" into main
* changes:
  Add ULTRASONICS_SENSOR_ORIENTATION to emulator defaults.
  Change ULTRASONICS_SENSOR_ORIENTATION hal from int32_vec to float_vec.
2024-01-26 19:50:41 +00:00
Tyler Trephan
c04eb24705 Updated INFO_MODEL_YEAR to specify YYYY format and Gregorian calendar.
Test: None
Bug: 316922455
Change-Id: Ic10ad624544545ddd407f4eb58baa94599d1112a
2024-01-26 19:37:08 +00:00
Yu Shan
efe97be614 Merge "Add retry in setProp test." into main 2024-01-26 19:19:09 +00:00
Eva Chen
4bcef30951 Add ULTRASONICS_SENSOR_MEASURED_DISTANCE to emulator defaults.
Flag android_vic_vehicle_properties needs to be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I101bf5174bb5fe879aca4f284552f3aeba2163d7
2024-01-25 20:17:56 -08:00
Eva Chen
bafc05efd3 Add ULTRASONICS_SENSOR_SUPPORTED_RANGES to emulator defaults.
Flag android_vic_vehicle_properties needs to be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Ib73a2ada81c46df76f158538d8afb31d98936a93
2024-01-25 20:17:56 -08:00
Eva Chen
ecce9193de Add ULTRASONICS_SENSOR_DETECTION_RANGE to emulator defaults.
Flag android_vic_vehicle_properties must be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I05ec87cc1d303c93f7e9bc36d35a0b5a41aa189c
2024-01-25 20:17:56 -08:00
Eva Chen
064fb92949 Add ULTRASONICS_SENSOR_FIELD_OF_VIEW to emulator defaults.
Flag android_vic_vehicle_properties needs to be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Ibc57c1688131a424e597df0cd579b1e9799157a7
2024-01-25 20:17:56 -08:00
Eva Chen
984293ed7d Add ULTRASONICS_SENSOR_ORIENTATION to emulator defaults.
Flag android_vic_vehicle_properties needs to be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I424eed0fbbde04976893b5867ff41ff586c172ce
2024-01-25 20:17:51 -08:00
Eva Chen
8818f193db Change ULTRASONICS_SENSOR_ORIENTATION hal from int32_vec to float_vec.
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Ifec1f9684b9263c20e2ded2036eea7721e4fd96d
2024-01-25 18:34:08 -08:00
Yu Shan
ead15a23bc Add retry in setProp test.
Set property operation is async so getting the property value
immediately after setting the property might not return the new
value. This CL adds the logic to retry when we do not get the
expected values back.

This CL also skips the test case if getting property or setting
property returns unavailable.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 322070490
Change-Id: If9349a097a92c51101c7b5f4bf807b610ab2cb0b
2024-01-25 18:02:59 -08:00
Eva Chen
b9e34c718e Add ULTRASONICS_SENSOR_POSITION to emulator defaults.
Flag android_vic_vehicle_properties needs to be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I4fe29258193138008155857c7a6fe7ae8367ef70
2024-01-25 13:19:17 -08:00
Treehugger Robot
e6df479be0 Merge "Modify CameraUseStreamConfigToDisplay" into android13-tests-dev am: 4c7a5de957 am: b4fadec4ff am: 0e1c989a36 am: ebce8d87f3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2911485

Change-Id: I60386d0454071470e921c492604a25b800706b36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-18 05:49:18 +00:00
Treehugger Robot
0e1c989a36 Merge "Modify CameraUseStreamConfigToDisplay" into android13-tests-dev am: 4c7a5de957 am: b4fadec4ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2911485

Change-Id: I435a47ef473b078290487d6470e93452270204da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-18 05:06:18 +00:00
Treehugger Robot
b4fadec4ff Merge "Modify CameraUseStreamConfigToDisplay" into android13-tests-dev am: 4c7a5de957
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2911485

Change-Id: Ib03e2c8e9b8dd43bca4741dbd1024ab0da6c5f97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-18 04:44:07 +00:00
Hao Chen
6e53a23b45 Release the Codec Output Buffers
Test: `evs_app --test` and the video emulated camera can run for a long
time.
Bug: 277861838

Change-Id: Ie039e2cabf12e3e2a689181d4fbe415595ef26b4
2024-01-18 01:05:58 +00:00
Treehugger Robot
8dce52391f Merge "Update VHAL manifest interface version." into main 2024-01-17 22:28:42 +00:00
Yu Shan
f489e8cac1 Update VHAL manifest interface version.
We are serving VHAL v3.

Test: None
Bug: 320743432
Change-Id: I9728496411f2be9f4e7f622cbc4892965bbd9a6e
2024-01-17 13:11:40 -08:00
Treehugger Robot
bab2268f9c Merge "Don't query unused values" into main 2024-01-17 19:33:52 +00:00
Changyeon Jo
47640027f2 Modify CameraUseStreamConfigToDisplay
Exclude logical camera devices from CameraUseStreamConfigToDisplay test
case.

Bug: 275049370
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: If6b31d94bdbffd2f4e9ab9bd5c8957ec85904187
(cherry picked from commit d5732b6bbf)
2024-01-17 01:46:07 +00:00
Treehugger Robot
cadd34ca09 Merge "Add dump sub option to FakeVehicleHardware." into main 2024-01-12 22:19:02 +00:00
Maxim Pleshivenkov
b8efced1a8 Update comments for VehicleApPowerStateShutdownParam
Comments for _IMMEDIATELY parameters stated that shutdown cannot be postponed.
However it is possible that CPMS will send SHUTDOWN_POSTPONE if SHUTDOWN_PREPARE takes longer. Updated comments to remove that statement.

Bug: 319670846
Change-Id: I0d172ba5d24b86c7f2403acae05961eca72b0c2d
Test: manual build
2024-01-11 19:08:30 +00:00
Treehugger Robot
bbc84dd885 Merge "automotive: Add Rust backend to the vhal AIDL" into main am: 2338cda61c am: 9d772629d6 am: 7bea7295fe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2904308

Change-Id: Ibdb8f4b09ce084524463fa506ab9c6cbcc820546
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-11 16:38:09 +00:00
John Reck
0183e379d6 Don't query unused values
lock() will be removing these params in the future and they are
unused anyway, so remove them

Test: make
Change-Id: I339c3b9ffa8e7a9cef50d1d80c8cd1a7d0950d82
2024-01-10 23:36:17 -05:00
Treehugger Robot
8366e09de7 Merge "Make remoteaccess HAL pass VTS." into main 2024-01-11 02:22:28 +00:00
Yu Shan
0fbc17f23c Make remoteaccess HAL pass VTS.
The reference remote access HAL should still pass CTS even when
the grpc remote access server does not exist. The reference
remote access HAL now allows GRPC_SERVICE_ADDRESS not to be
defined. If it is not defined, it will not try to connect
a remote server and will work in a fake mode.

Test: VtsHalAutomotiveRemoteAccess_TargetTest with an without
grpc server running.
Bug: 277967402

Change-Id: I89509ac8f8ebe9a268d3a338d6e80c24e39dc512
2024-01-11 00:01:19 +00:00
Felix Obenhuber
a77f2df473 automotive: Add Rust backend to the vhal AIDL
This enables us to write a vhal service in Rust.

Test: Verified with a custom replacement of the DefaultVehicleHal and ran in cuttlefish
Change-Id: I53601e1a10cee75877e76ae04f7837e7d1a20ebd
2024-01-10 16:23:03 +01:00
Treehugger Robot
c4e4426574 Merge "Handle logical camera devices properly" into main am: 20768c89d7 am: b034621d77 am: bec8691480
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2901098

Change-Id: I861caede7c9972bd7b41955628faf584fbe880b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-10 00:13:27 +00:00
Treehugger Robot
d7e1cc02e2 Merge changes Icfaa316b,Ic26706d7 into main am: 671b88bf73 am: 02e41b2f79 am: 8dbed42cc2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2902174

Change-Id: Ie16491def9f79c79e1cf1061461a95858191d008
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-10 00:12:00 +00:00
Treehugger Robot
c19703fe09 Merge "Fix a nullptr deref in ref VHAL." into main 2024-01-09 23:08:52 +00:00
Treehugger Robot
08e7784348 Merge "Add missing libc++ includes" into main am: 7297906e49 am: 7369397cad am: dc7481d3b0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2902172

Change-Id: I00d491590b58365e213c4cf94bdad49c16965d0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-09 22:48:58 +00:00
Treehugger Robot
20768c89d7 Merge "Handle logical camera devices properly" into main 2024-01-09 22:41:15 +00:00
Treehugger Robot
f1df4f5d3d Merge "Allow dumping comment to CSV." into main 2024-01-09 22:20:53 +00:00
Yu Shan
7eae30d5e3 Fix a nullptr deref in ref VHAL.
Check for nullptr returned from refreshTimestamp if the property
is not available.

Test: m
Bug: 319147839
Change-Id: Idb214a4f889bdd11e6d4f3979fd7d2e38ded7873
2024-01-09 13:48:32 -08:00
Tomasz Wasilczyk
5370670c4a No need to modify acc for std::accumulate
Bug: 175635923
Test: m MODULES-IN-hardware-interfaces-automotive-audiocontrol
Change-Id: Ic26706d72966b991424c47c5fb7dd46612a3dcc3
2024-01-09 12:16:56 -08:00
Tomasz Wasilczyk
b87cdae8d6 Add missing libc++ includes
Bug: 175635923
Test: m MODULES-IN-hardware-interfaces-automotive-can
Change-Id: I2fcc511f45d87b0ca6d80d18df2ba9f92e0155f9
2024-01-09 11:56:43 -08:00
Changyeon Jo
050b2ce1cf Handle logical camera devices properly
- HighPriorityCameraClient test case is not executed against logical
  camera devices because clients are not allowed to change camera
  parameters via logical cameras.
- CameraStreamExternalBuffering test case closes logical camera device
  explicitly, to avoid any influence on following test scenarios.

Bug: 319165229
Test: atest VtsHalEvsTargetTest
Change-Id: I734d701a2056ab84fe74179b083c3f6c5463447b
2024-01-09 06:15:34 +00:00