Commit graph

2488 commits

Author SHA1 Message Date
Elliott Hughes
c3f1297610 Merge "Remove android.hardware.automotive@libc++fs." into main 2024-06-06 18:52:50 +00:00
Yi Kong
1612fe7f8e Merge "Add missing include of <mutex>" into main 2024-06-05 16:20:38 +00:00
Elliott Hughes
dccd8f3c2a Remove android.hardware.automotive@libc++fs.
It's no longer used (now libc++fs is part of libc++), and it's
dangerously opting out of the global cpp_std default.

Bug: http://b/344590580
Change-Id: I17648b573600ff2ee1ab45383c7fda7d5bcfc7a2
2024-06-05 13:09:01 +00:00
Pirama Arumuga Nainar
1212902aa2 Add missing include of <mutex>
This fixes build failure with clang-r522817

Bug: 322868540
Change-Id: Ie5db4a32bebd137d1ba11213e0d642d85f1f7d1d
Test: m out/soong/.intermediates/hardware/interfaces/automotive/can/1.0/default/tests/fuzzer/automotiveCanV1.0_fuzzer/android_vendor_arm64_armv8-2a_cortex-a55_fuzzer/e560d7b19ebf7276b3e850d3d346dec8/obj/hardware/interfaces/automotive/can/1.0/default/CanBus.o
2024-06-04 23:10:12 +00:00
Elliott Hughes
98eb91c3cb libc++fs is part of libc++ now.
Change-Id: I55a7c77ec09b21375bd3e3187a12383dde7414b0
2024-06-04 17:25:02 +00:00
Yi Kong
9053d1a6fc Fix build on clang-r522817
hardware/interfaces/automotive/can/1.0/tools/libprotocan/MessageInjector.cpp:44:8: error: no member named 'lock_guard' in namespace 'std'
   44 |   std::lock_guard<std::mutex> lock(mMessagesGuard);
      |   ~~~~~^

Bug: 322868540
Test: presubmit
Change-Id: I45cd6a8420e508a37e2b6da456933c036493e15e
2024-06-02 04:29:38 +09:00
Yu Shan
2c37c11a82 Implement Unsubscribe in vhal proxy.
Implement the unsubscribe function in IVehicleHardware. This will
stop the server from generating property update events for the
specified [propId, areaId].

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I35f4860eead0c8ec9b192657fe51cc0ff4319383
(cherry-picked from commit: cb00b1f816)

Change-Id: I35f4860eead0c8ec9b192657fe51cc0ff4319383
2024-05-23 15:51:25 -07:00
Yu Shan
5c846f7cc9 Add subscribe to VHAL proto.
The latest IVehicleHardware adds Subscribe/Unsubscribe function
to replace the existing updateSampleRate. This CL adds the
Subscribe function to protobuf definition and implements it.

Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I4f02885b77f21a215a8b282be583f76118e400ba
(cherry-picked from commit: f1a869055f)

Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
2024-05-23 15:51:25 -07:00
Yu Shan
e56e2981cd Add host prebuilt for fake VHAL config.
Test: Local build
Bug: 328316981
Flag: EXEMPT build rule
Merged-In: I965e704e29e62cd05540f46ef37d0bfa2a5568db
(cherry-picked from commit: 1c670114fd)

Change-Id: I965e704e29e62cd05540f46ef37d0bfa2a5568db
2024-05-21 13:52:23 -07:00
Yu Shan
02e4d07563 Add require_root to FakeVehicleHardwareTest.
According to b/329690075, vendor tests need root to use vendor
lib, otherwise atest will cause link error.

Test: atest FakeVehicleHardwareTest on cf_auto
Flag: EXEMPT bug
Bug: 341762230
Merged-In: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
(cherry-picked from commit: f01c7aec0d)

Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
2024-05-21 13:52:23 -07:00
Yu Shan
0c447863ef Add host_supported to VHAL libs.
We need to build a FakeVehicleHardware impl on host, thus we need
to add the host_supported option.

Test: Local build on host.
Bug: 328316981
Flag: EXEMPT hal change
Merged-In: Ia21d26640c465846423cab1a0ff8a283c798b92a
(cherry-picked from commit: 9d3513882a)

Change-Id: Ia21d26640c465846423cab1a0ff8a283c798b92a
2024-05-21 13:51:39 -07:00
Yu Shan
fe49375ba9 Initialize mAddExtraTestVendorConfigs to false.
If we do not init, the initial value is undefined.

Test: Local run
Bug: 340947823
Flag: EXEMPT bugfix
Change-Id: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
Merged-In: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
2024-05-17 18:01:29 -07:00
Treehugger Robot
dc1592f4cf Merge "Updated 'cc' field of fuzz_config in Android.bp file" into main 2024-04-30 04:18:57 +00:00
Julie Pan
30da02f704 Merge "Remove chenhaosjtuacm@google.com from automotive/vehicle/OWNERS" into main 2024-04-22 16:19:11 +00:00
Ronish Kalia
98ef872235 Merge "Migrate Test Targets to New Android Ownership Model" into main 2024-04-22 15:01:56 +00:00
Akshata Kadam
491ffdc372 Updated 'cc' field of fuzz_config in Android.bp file
corrected cc field in fuzz_config

Bug: 306435930
Test: Build automotiveCanV1.0_fuzzer

Change-Id: Ib463bc4e08b036b75397a03ec0ef6340da45b3fe
2024-04-17 10:06:10 +00:00
Owner Cleanup Bot
e8c0492a32 Remove chenhaosjtuacm@google.com from automotive/vehicle/OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.
If this change is unnecessary or in error, vote CR -1 and the bot
will abandon it. Vote CR +1/2 to approve this change.

See the owner's recent activity for context:
https://android-review.googlesource.com/q/chenhaosjtuacm@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: I2d5fc15775dbf816c787795934438cbde46b178b
2024-04-16 17:41:30 +00:00
Kiyoung Kim
9e9d41d162 Remove VNDK definition(s)
As of VNDK deprecation, any libraries that defines vndk is no longer
valid anymore. This change removes all VNDK definition(s) from modules
which was VNDK.

Bug: 328994089
Test: AOSP CF build succeeded
Change-Id: Ifdade9c052db29c989ce7d804ba725361c4c0f8e
Merged-In: Ic4f19113c1a25dc1fb60cdfbf9c0f2d8d7d09726
2024-04-05 02:29:07 +00:00
Felix Obenhuber
38f12da7b8 automotive aidl: Add required @RustDerive annotations
Derive vehicle hal parcelables from the Clone trait where applicable. This is is
supportive for implementing a vehicle hal service in Rust because caching e.g
VehiclePropValue or VehiclePropConfig instances allow less verbose code and
increase performance. Cloning a VehiclePropConfig instead of constructing each
time needed is less verbose. Property configs are normally not updated at
runtime.

This is not an API change, so in order to avoid having to bump the AIDL
API version for this HAL we used the hash_gen.sh script as below:

$ m android.hardware.automotive.vehicle-update-api
$ m android.hardware.automotive.vehicle-freeze-api

$ vim vehicle/aidl/Android.bp # removed frozen_api argument and the newly
created version 3 block

$ cp -r aidl_api/android.hardware.automotive.vehicle/3/* aidl_api/android.hardware.automotive.vehicle/2/
$ rm -rf aidl_api/android.hardware.automotive.vehicle/3/

./system/tools/aidl/build/hash_gen.sh \
    hardware/interfaces/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/2 \
    1 \
    hardware/interfaces/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/2/.hash

Test: manual - used new derives in custom implementation
Change-Id: I586b89b160eb7a01ce24fad211b9e909175cdd3c
Merged-In: I889c0d51f2c2633908231dd39c9ea5259de36667
2024-03-14 01:29:28 +00:00
Aditya Choudhary
04ef2121cd Migrate Test Targets to New Android Ownership Model
This CL is created as a best effort to migrate test targets to the new Android ownership model.
It is based on historical data from repository history and insights from git blame.
Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary
attribution in this CL, please create a new CL to fix that.

For detailed guidelines and further information on the migration please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ibe1360ca3f7eb919834715aa90b0b842fbcd0692
2024-02-02 14:00:43 +00:00
Yu Shan
9540e47340 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
Merged-In: Ib3bc7b68a1312152617fdab4598ed389447c20cd
2024-02-01 00:03:59 +00:00
Yu Shan
9fbf4066cb Merge "Add retry in setProp test." into android14-tests-dev am: 2c12f0e9ae am: 83a9e12f6d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2934133

Change-Id: I2c79c14e22d42e783c113b9c6604af5b9c0718f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 03:06:01 +00:00
Yu Shan
83a9e12f6d Merge "Add retry in setProp test." into android14-tests-dev am: 2c12f0e9ae
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2934133

Change-Id: I0639e2f1bc6152c37e7fc6fac76d271871195b32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 02:21:18 +00:00
Yu Shan
2c12f0e9ae Merge "Add retry in setProp test." into android14-tests-dev 2024-01-31 01:40:17 +00:00
Xin Li
757e0a265f Merge "Merge Android 24Q1 Release (ab/11220357)" into aosp-main-future 2024-01-30 22:44:06 +00:00
Xin Li
763c473c3d Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: I976f80006aeb88bde2ae34ca4f9be72cea727d9e
Change-Id: Id94b25af52bd2e2847b6858697ab21cc6ce27aa3
2024-01-30 10:36:50 -08:00
Yu Shan
ec8db77066 Fix HIDL VHAL descriptor name in VTS. am: 928062ccac am: 8cda776ffe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2928798

Change-Id: I7662938de3cdccbdedf1ef60f36dce21225332c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-30 18:11:52 +00:00
Yu Shan
8cda776ffe Fix HIDL VHAL descriptor name in VTS. am: 928062ccac
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2928798

Change-Id: I6f7dd76ee3c813194085f131fe495e8f60492f7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-30 18:09:37 +00:00
Yu Shan
1837df06c2 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
Merged-In: If9349a097a92c51101c7b5f4bf807b610ab2cb0b
2024-01-29 22:50:49 +00:00
Yu Shan
928062ccac Fix HIDL VHAL descriptor name in VTS.
Bug: 322418005
Test: Manual test with HIDL VHAL, VTS pass.
Change-Id: I93e92d3587243c44b5651ab85d47442ebb64c51a
Merged-In: I93e92d3587243c44b5651ab85d47442ebb64c51a
2024-01-27 02:28:25 +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
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
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
20768c89d7 Merge "Handle logical camera devices properly" into main 2024-01-09 22:41:15 +00: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
Victor Shutemov
1e14bd55bd Fix AIDL VHAL metadata extraction script
Add capability to process values from imports.
Update json metadata file with new data.

Testing:
1. cd hardware/interfaces/automotive/vehicle/aidl/emu_metadata
2. ./generate_emulator_metadata.py ../../aidl_property/android/hardware/automotive/vehicle out.json

Bug: 317529575
Test: manual
Change-Id: I315f1f75c2372796bde3bdacd39246344579c002
2024-01-03 13:25:57 +01:00
Tyler Trephan
35bf32ff0f Fixed spelling mistake in LaneCenteringAssistCommand
Test: None
Bug: 290972334
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:077e36dee61db38ad8d0e28a62542e571e2921ae)
Merged-In: Ic85ba803abe349ea9a7edd7dca5cbe7159df34ac
Change-Id: Ic85ba803abe349ea9a7edd7dca5cbe7159df34ac
2023-12-27 20:02:52 +00:00
Yu Shan
c61a19bc28 Merge "Make sure the VehiclePropValue object is initialized" into main 2023-12-15 19:57:50 +00:00
Eva Chen
3e595ac343 Merge "Add ULTRASONICS_SENSOR_SUPPORTED_RANGES to HAL layer." into main 2023-12-14 05:47:08 +00:00
Eva Chen
13715242aa Merge "Add ULTRASONICS_SENSOR_DETECTION_RANGE to HAL layer." into main 2023-12-14 04:48:04 +00:00
Eva Chen
5bf8c4d338 Merge "Add ULTRASONICS_SENSOR_FIELD_OF_VIEW to HAL layer." into main 2023-12-14 03:31:13 +00:00
Eva Chen
8626ab361c Merge "Add ULTRASONICS_SENSOR_ORIENTATION to HAL layer." into main 2023-12-14 00:33:52 +00:00
Eva Chen
784e3c325c Merge "Add ULTRASONICS_SENSOR_POSITION to HAL layer." into main 2023-12-14 00:01:40 +00:00
Shrikar Amirisetty
255cfa2840 Merge "Added CROSS_TRAFFIC_MONITORING_WARNING_STATE to HAL" into main 2023-12-13 23:32:48 +00:00
Aaqib Ismail
691b6a1adc Merge "Change temp approximations to be accurate" into main 2023-12-13 22:30:38 +00:00
Shrikar Amirisetty
60927e3ae5 Merge "Added CROSS_TRAFFIC_MONITORING_ENABLED to HAL" into main 2023-12-13 22:29:11 +00:00
Shrikar Amirisetty
55ca206d93 Merge "Added ELECTRONIC_STABILITY_CONTROL_STATE to HAL" into main 2023-12-13 22:28:46 +00:00