Commit graph

2251 commits

Author SHA1 Message Date
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
Liu, Kai1
cb700ebc64 Make sure the VehiclePropValue object is initialized
If MALLOC_ZERO_CONTENTS is false, the new created VehiclePropValue
object maybe filled with dirty data, we should initialize it so that
its status member can be initialized to zero to avoid timeout when
car services get properties, such as property OBD2_LIVE_FRAME.

Bug: 315728228
Test: hidl_test

Change-Id: I530bc95a3074c917be853f55cd1736558b140da4
Signed-off-by: Liu, Kai1 <kai1.liu@intel.com>
2023-12-13 16:52:05 +08:00
Treehugger Robot
e35fd5922b Merge "Update OWNERS file." into main 2023-12-13 01:28:25 +00:00
Yu Shan
bdd4c1aaea Update OWNERS file.
Test: None
Bug: None
Change-Id: I0c2b9bba98c0543ed44cf7c5ad1a350e195b7b29
2023-12-12 17:24:42 -08:00
Yi Kong
4eeda91a4a Fix -Wunused-variable compiler warning am: 810d41a774
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861356

Change-Id: I3383d70ff4387df65a0fdcaf0004061e5ad0c9a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 12:29:41 +00:00
Yi Kong
810d41a774 Fix -Wunused-variable compiler warning
Test: presubmit
Change-Id: I146d3435fe76da7f300452a14b62ce430c38ae36
2023-12-06 14:03:58 +09:00
Treehugger Robot
fab0804671 Merge "Sandbox VehicleServerProtoStub_cc/h@default-grpc" into main am: 73c04536b0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2838463

Change-Id: I761f48b9c8c337af4442267c28a2f69032d92995
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-22 20:35:14 +00:00
Cole Faust
52d7446074 Sandbox VehicleServerProtoStub_cc/h@default-grpc
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py VehicleServerProtoStub_cc@default-grpc VehicleServerProtoStub_h@default-grpc
Change-Id: I35d56c909e5eda8bc337f7f994e669fb8e3c9cb0
2023-11-20 14:36:58 -08:00
Treehugger Robot
1daa555faf Merge "Refactored vehicleManager_fuzzer" into main am: 3db45f8509
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2769161

Change-Id: If5cc1fe6e378291a37a63131597c3353b857be04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-17 09:45:01 +00:00
Treehugger Robot
3db45f8509 Merge "Refactored vehicleManager_fuzzer" into main 2023-11-17 09:15:07 +00:00
Treehugger Robot
c66f9eb482 Merge "Refactored automotiveCanV1.0_fuzzer" into main am: abe08ca9fe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2761765

Change-Id: I7a53253c300de28996273af494b10261c785910d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-15 06:34:49 +00:00
Treehugger Robot
abe08ca9fe Merge "Refactored automotiveCanV1.0_fuzzer" into main 2023-11-15 06:00:41 +00:00
Shunkai Yao
95732c6cb9 Add defaults for audio AIDL interfaces
- with defaults user don't have to change their Android.bp when there is
  a update
- update AIDL audio interfaces with android.media.audio.common.types
- update Spatialization and HeadTracking AIDL usage

Bug: 273373363
Bug: 293370815
Test: m
Test: lunch panther-trunk_staging-userdebug; m; test Bluetooth Audio
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1977a4a664cc71e1d9841a01573b63793f88ae59)
Merged-In: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
Change-Id: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
2023-11-07 18:18:24 +00:00
Shunkai Yao
195d3d6915 Add defaults for audio AIDL interfaces
- with defaults user don't have to change their Android.bp when there is
  a update
- update AIDL audio interfaces with android.media.audio.common.types
- update Spatialization and HeadTracking AIDL usage

Bug: 273373363
Bug: 293370815
Test: m
Test: lunch panther-trunk_staging-userdebug; m; test Bluetooth Audio
Change-Id: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
Merged-In: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
2023-11-06 19:14:32 +00:00
Xin Li
3d862c9608 Merge "Merge 10952656" into aosp-main-future 2023-10-19 17:58:46 +00:00
Changyeon Jo
2d8834dc96 Update CameraStreamBuffering test and correct instance name
- CameraStreamBuffering test is modified to use the minimum number of
  frame buffers that is required to run a camera pipeline for a single
  client instead of using an arbitrarily chosen number, which may not
  work for certain device implementations.
- Fix a name of v1.0 EvsManager implementation in
  VtsHalEvsV1_0TargetTest.cpp

Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Ieec986dbdf947311e0bc86871432da8a988d37ad
2023-10-18 18:58:07 +00:00
Yu Shan
e7c8946102 Merge "Allow CDD required properties to be absent in VTS." into main am: 816e644a44 am: 46b04797a2 am: 50c08a0d29 am: 77dbeecc42
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2779279

Change-Id: Ifde4f151fa6b016004a36d0c951bc20007c63a71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-11 22:13:57 +00:00
Yu Shan
8a1ab8705d Allow CDD required properties to be absent in VTS.
Allow CDD required properties not to be supported in VHAL VTS since
this is already covered in CTS. We also need to consider special
cases where one VHAL instance does not support all required
properties.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 301577794
Merged-In: I93020e7e024760601bc5a8edf9997cc356a568c6
Change-Id: I93020e7e024760601bc5a8edf9997cc356a568c6
(Cherry-picked from commit b84f6f3c68fcd7f613146146821130eb354865c1)
2023-10-11 18:46:56 +00:00
kunal rai
f247dafd11 Refactored automotiveCanV1.0_fuzzer
The following are the updates to the fuzzer:
1. Randomised order of API calls using fdp.
2. Added New APIs.

exec/s: 35
Test: ./automotiveCanV1.0_fuzzer
Bug: 301907840

Change-Id: I66b4622bcf93ac5fbead522f6991a62361b85dda
2023-10-09 11:25:51 +05:30
kunal rai
213e8bba85 Refactored vehicleManager_fuzzer
The following are the updates to the fuzzer:
1. Randomised order of API calls using fdp.
2. Enhanced code coverage by 10%.

exec/s: 6
Test: ./vehicleManager_fuzzer
Bug: 302903753

Change-Id: I83f0a4121871d5b08b4f00f40dd096854aee63c5
2023-10-09 05:07:30 +00:00
Krzysztof Kosiński
b9f07c7a80 Clean up obsolete aliases for Truth. am: 13de1b68b4 am: ed99513fb8 am: 99e2437fcb am: 8da2eb9000
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2777192

Change-Id: Icf5b7cb488bbc9fd966b084dd2874f6475cc0b55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07 05:04:02 +00:00
Krzysztof Kosiński
13de1b68b4 Clean up obsolete aliases for Truth.
Bug: 255714762
Test: presubmit
Change-Id: I0cb0dd70d7aaa1a2388f725f3365ffff6dbc3b37
2023-10-07 00:48:10 +00:00
Terry Guan
03b2efa43d Merge "Add buffer result for generating vendor configs" into udc-qpr-dev am: 2e73101dd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24814739

Change-Id: I3e767b84c4e49324af11808ecdf787fd6b73d5fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-03 21:27:34 +00:00
Hugo Drumond Jacob
2b26c3efe1 Merge "Adjust path to sdv_ivi_cf" into udc-qpr-dev-plus-aosp 2023-09-29 17:51:41 +00:00
Treehugger Robot
4c89ed66e7 Merge "Refactored automotiveSvV1.0_fuzzer" into main am: 05d080dd16 am: 5de5782cf7 am: 8e10b94061 am: 0d5d484d72
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2707273

Change-Id: I1fd5246607690aec6b0bf04cd43a6fb4594ec30d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 09:55:55 +00:00
Treehugger Robot
5de5782cf7 Merge "Refactored automotiveSvV1.0_fuzzer" into main am: 05d080dd16
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2707273

Change-Id: I91007755ac5a01a55061ff2f9731f0127ef0192c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 07:03:15 +00:00
Treehugger Robot
05d080dd16 Merge "Refactored automotiveSvV1.0_fuzzer" into main 2023-09-28 06:14:27 +00:00
Treehugger Robot
258dbb3cc6 Merge "Update automotive.vehicle OWNERS file" into main am: 06d47be3d0 am: 7559fbaeb2 am: c442b11ff8 am: 3350fa61fc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2765946

Change-Id: I5b32c1e0bcc9b8c25d1d081ddde98375d75a9fe4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 03:47:17 +00:00
Treehugger Robot
7559fbaeb2 Merge "Update automotive.vehicle OWNERS file" into main am: 06d47be3d0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2765946

Change-Id: I91b383d44c8e366f7a3e4c10fd2d591f0c836eed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 00:52:18 +00:00
Devin Moore
46c0057798 Update automotive.vehicle OWNERS file
Test: none
Bug: none
Change-Id: I6f6a64658a2ad6151447bdcc77d83e66c9c12320
2023-09-27 22:56:36 +00:00
Hugo Drumond Jacob
f1522dc4bf Adjust path to sdv_ivi_cf
Bug: 301578741
Bug: 291278377
Change-Id: I48d24ca611a92f3945a1e0b66fb14a13b2786e7f
2023-09-27 16:08:51 +02:00
Treehugger Robot
16eca29bce Merge "Updated vehicleManager_fuzzer" into main am: 7761d90af1 am: 6569dc7511 am: 535ac9f544 am: ae164210c6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2097954

Change-Id: I5c4ff6f1cbb4184c1fa8997fa5db9bfdd82ced38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-25 07:08:39 +00:00
Treehugger Robot
6569dc7511 Merge "Updated vehicleManager_fuzzer" into main am: 7761d90af1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2097954

Change-Id: Ic84b53a9c26e671cec114c7fb82a8a23600ea619
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-25 04:34:27 +00:00
Treehugger Robot
7761d90af1 Merge "Updated vehicleManager_fuzzer" into main 2023-09-25 03:21:12 +00:00
Treehugger Robot
dfa4ae0d28 Merge changes from topic "sdv-vhal-emulator-service" into udc-qpr-dev-plus-aosp
* changes:
  Make event callback accessible to child classes
  Move VHAL config dirs to protected
  Make 2.0-libproto-native visible to sdv_ivi_cf
2023-09-23 22:56:05 +00:00
Ryan Prichard
4e4de47109 Merge "Use std::filesystem when libc++ is new enough" into main am: 37d5948144 am: 608781cfd7 am: 81bff7712e am: 85adb929d3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2758145

Change-Id: I8fd69afb24840a54a631fb9bd65f3bb6d5fcbc8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 23:55:45 +00:00
Ryan Prichard
608781cfd7 Merge "Use std::filesystem when libc++ is new enough" into main am: 37d5948144
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2758145

Change-Id: I6ee358c40c615d29aa7dc6e7bcecbdebc7394327
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 22:16:04 +00:00
Ryan Prichard
680fd80663 Use std::filesystem when libc++ is new enough
_LIBCPP_VERSION in external/libcxx is 8000. When _LIBCPP_VERSION is
newer, assume it's the new libc++ toolchain prebuilt, which has a
finalized std::filesystem, and use std::filesystem instead. To make
Soong happy, keep the android.hardware.automotive@libc++fs library for
now but stub out the C++ source files and make the
android::hardware::automotive::filesystem namespace an alias for
std::filesystem.

Bug: 152067309
Bug: 175635923
Test: treehugger
Test: m android.hardware.automotive.can@1.0-service
Test: m android.hardware.automotive@libc++fs
Change-Id: I7aede74cda0122434d972a075d7c7a9933845450
2023-09-20 14:46:18 -07:00
terryguan
88eb9d0fce Add buffer result for generating vendor configs
Add buffers to verify the success of generating and restoring vendor
configs.

Bug: 281835821
Test: atest android.car.apitest.CarPropertyManagerTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6791803d4ad568c8ba66d20199e84746f412df23)
Merged-In: Ic3cb8bf3e606847ff55d719900ad0b764b56aaf4
Change-Id: Ic3cb8bf3e606847ff55d719900ad0b764b56aaf4
2023-09-20 20:45:42 +00:00
Aaqib Ismail
514c23cad5 Make event callback accessible to child classes
Bug: 291278377
Test: m
Change-Id: Idb667aa847ba566713068a47b12dc849ffcf96cc
2023-09-19 17:55:01 -07:00
Aaqib Ismail
7d483bc656 Move VHAL config dirs to protected
Bug: 291278377
Test: m
Change-Id: I3c67e0b9398e7891bcfecddac5169fb76536cc25
2023-09-19 12:38:27 -07:00
Aaqib Ismail
b5310066d4 Make 2.0-libproto-native visible to sdv_ivi_cf
Bug: 291278377
Test: m
Change-Id: I4eba410eef0b410299bde34265b0392114e33d7b
2023-09-19 12:38:27 -07:00
Aaqib Ismail
ccf273d307 Fix clang lint warnings
Bug: 291278377
Test: m
Change-Id: Ifcfecc313c8d27fb04a20b4e6bf304b04f4a5b55
2023-09-15 04:40:17 +00:00
Ayushi Khopkar
a9d67d5eb7 Updated vehicleManager_fuzzer
Resolved fdsan abort issue

Test: ./vehicleManager_fuzzer
Bug: 232476708
Bug: 263591012

Change-Id: I51bf940e61574db4255eedc0f264375d8908282d
2023-09-13 12:01:35 +05:30
kunal rai
2fd4e9d71d Refactored automotiveSvV1.0_fuzzer
The following are the updates to the fuzzer:
1. Added checks to the fuzzer to prevent fuzzer errors.
2. Updated the scope of the `handler` variable to avoid it going out of scope.
3. Moved `startstream` outside to ensure the proper opening of the stream.

Test: ./automotiveSvV1.0_fuzzer
Bug: 295788054

Change-Id: Ia5181ce999618cd2f6781d3681e937baa47e7071
2023-09-11 10:42:12 +05:30
Changyeon Jo
3507d52f9e Update OWNERS file am: bacdd1ec09 am: d095b7aafa am: e927deb8f8 am: 8de98a639b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2740885

Change-Id: Iaf2e2243f18d66b8f1e004602acba168a67f528e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 07:12:08 +00:00
Changyeon Jo
d095b7aafa Update OWNERS file am: bacdd1ec09
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2740885

Change-Id: Ie6784053acee05538e6d328d98c7cea1730291a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 04:55:17 +00:00
Changyeon Jo
bacdd1ec09 Update OWNERS file
This change updates OWNERS file for EVS interface.

Bug: 299195329
Test: Manual
Change-Id: Ife421b8aa4a380d8585e6d8476f0a24f31bc2633
2023-09-06 00:57:59 +00:00