Commit graph

2341 commits

Author SHA1 Message Date
Yu Shan
605faf6854 Support VUR in FakeVehicleHardware.
Support VUR in reference VHAL FakeVehicleHardware layer. Unless
specified in config, all continuous properties in reference VHAL
supports VUR.

Test: atest FakeVehicleHardwareTest
Bug: 306748801
Change-Id: I5265172996418a5d405392570673355e7860b50c
2023-10-30 13:47:56 -07:00
Yu Shan
db4f577dc5 Override subscribe/unsubscribe.
Override subscribe/unsubscribe in FakeVehicleHardware, now it will only
generate property change events for subscribed properties.

Test: atest DefaultVehicleHalTest android.car.cts.CarPropertyManagerTest
Bug: 306262618
Change-Id: Ice39f059820d4ec6039acb4daf9975514f2eb22b
2023-10-30 13:47:56 -07:00
Yu Shan
f4647e03f4 Avoid holding lock while calling callback.
Avoid holding lock while calling property store
OnValueChangeCallback. This might cause dead lock if
VehiclePropertyStore is accessed within the callback.

Test: atest VehiclePropertyStoreTest
Bug: 306511577
Change-Id: I5e29e9715d4429ccde5145af385a363bac548af7
2023-10-30 13:47:56 -07:00
Yu Shan
052608fe33 Add subscribe/unsubscribe to IVehicleHardware.
These two functions replaces updateSampleRate. Previously
updateSampleRate will be called when a continuous property is
subscribed/unsubscribed. However, IVehicleHardware layer does not
know when an on-change property is subscribed/unsubscribed. This CL
introduces two new functions to notify IVehicleHardware when any
properties are subscribed/unsubscribed.

Test: atest DefaultVehicleHalTest
Bug: 306262618
Change-Id: I8d32d1eb919036015b5082f74e259bcd4b1bd29e
2023-10-30 13:47:55 -07:00
Yu Shan
d5fa689e43 Add VUR to VHAL interface.
Add enableVariableUpdateRate to subscribe options and
supportVariableUpdateRate to VehicleAreaConfig. If variable update
rate is enabled, VHAL will only send property change events for
continuous property if the property's value changes. This is for
improving performance and not send duplicate events.

Test: m
Bug: 306754638
Change-Id: Ic0d1ec2ebbf8ed6c26da3f3b820ac85e9c345b2c
2023-10-27 11:20:41 -07:00
Shrikar Amirisetty
e5b20b1926 Merge "Added resolution to SubscribeOptions." into main 2023-10-27 01:49:36 +00:00
shrikar
8eb3a333ec Added resolution to SubscribeOptions.
Design doc: go/precision-filter

Bug: 276124296
Test: manual build
Change-Id: I3b3fccfec6ae02011b6859bbfdbe6af1a05dabbf
2023-10-26 18:34:31 +00:00
Yu Shan
97bae1664f Merge "Support property events batching." into main 2023-10-24 20:07:30 +00:00
Shrikar Amirisetty
a1920a8189 Merge "Added access field to VehicleAreaConfig.aidl" into main 2023-10-24 03:10:19 +00:00
Yu Shan
723d476b5a Support property events batching.
Supports batching property change events based on configured time
window in DefaultVehicleHal. This will reduce binder callbacks but
will increase latency. This is configurable from IVehicleHardware
side, default is off.

Test: atest DefaultVehicleHalTest
Bug: 305111644
Change-Id: Id703e8486fdeb98a88cc27dbebe4d79f232f7e3d
2023-10-23 15:55:13 -07:00
shrikar
1e8a0ef73e Added access field to VehicleAreaConfig.aidl
Changed VHAL version from V2 to V3 for VehicleAreaConfig changes

Bug: 290801790
Test: manual build
Change-Id: I20c85f2144b088ef2e70def32602c0d41c602d29
2023-10-21 17:20:54 +00:00
Shunkai Yao
fb263ea992 Merge "Add defaults for audio AIDL interfaces" into main 2023-10-19 23:14:22 +00:00
Yu Shan
a84d10c26f Merge changes Ia9f1d7fa,I2d363aa2 into main
* changes:
  Implement scheduleTask in TestWakeupClientService.
  Implement ScheduleTask API using grpc.
2023-10-19 00:56:14 +00:00
Changyeon Jo
2c10ac81ef Merge "Update CameraStreamBuffering test and correct instance name" into main am: 945c9aa1de am: 9ca0c6637f am: f3f9a4c7cb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2796792

Change-Id: I441c646eb825b2484ffeb0b7125d449deb87961a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 22:32:39 +00:00
Changyeon Jo
f3f9a4c7cb Merge "Update CameraStreamBuffering test and correct instance name" into main am: 945c9aa1de am: 9ca0c6637f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2796792

Change-Id: Ic7794473d30ac48f60024bb194f2146e06d165bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 21:43:10 +00:00
Yu Shan
bfc29b2442 Implement scheduleTask in TestWakeupClientService.
Handles the schedule task request from GRPC. Starts a thread
for the scheduled tasks and injects the task data through the grpc
channel.

Test: m -j TestWakeupClientServerHost && atest TestWakeupClientServerHostUnitTest
Bug: 297271235
Change-Id: Ia9f1d7fa3dadb3be68e31987622bc6df9271e929
2023-10-18 13:44:55 -07:00
Yu Shan
72d6f8944d Implement ScheduleTask API using grpc.
Implement the ScheduleTask APIs in reference remote access
HAL by using grpc to communicate with an external grpc server.

Test: atest RemoteAccessServiceUnitTest
Bug: 297271235
Change-Id: I2d363aa244c842cea5be0c35f4f3a7961eb3cc0b
2023-10-18 13:44:53 -07:00
Shunkai Yao
0d523099ac 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
Change-Id: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
2023-10-18 19:29:12 +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
Tyler Trephan
ef2db817d2 Merge "Generated EnumForVehicleProperty.java from VehicleProeprty.aidl" into main 2023-10-12 04:03:56 +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
0ebd876914 Handle prop not supported correctly.
getPropConfigs() will return error when the property is not supported
instead of returning an empty array. Also make sure GTEST_SKIP is called
directly in the test function, not the helper function since it
will only abort the current function.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 301577794
Change-Id: I99e2cb8bd00430fe9668e8a911a60bbfe97bc4e0
2023-10-11 11:58:06 -07: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
Treehugger Robot
4b930798e7 Merge "Allow CDD required properties to be absent in VTS." into main 2023-10-11 01:57:36 +00:00
Yu Shan
ec5d5b0bfc 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
(Cherry-picked from commit b84f6f3c68fcd7f613146146821130eb354865c1)

Change-Id: I93020e7e024760601bc5a8edf9997cc356a568c6
2023-10-11 00:47:44 +00:00
Sergiu Ferentz
31b637fd90 Merge "Bump android.hardware.graphics.common V4->V5" into main 2023-10-09 08:27:26 +00:00
Krzysztof Kosiński
28af3ae82c Clean up obsolete aliases for Truth. am: 13de1b68b4 am: ed99513fb8 am: 99e2437fcb am: 8da2eb9000 am: b9f07c7a80
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2777192

Change-Id: I0ee811caad8a5ec0523a07e5c325723e41c13dda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07 05:35:35 +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
Treehugger Robot
8dc03b8198 Merge "Fixed spelling mistake in LaneCenteringAssistCommand" into main 2023-10-06 17:29:32 +00:00
Tyler Trephan
077e36dee6 Fixed spelling mistake in LaneCenteringAssistCommand
Test: None
Bug: 290972334
Change-Id: Ic85ba803abe349ea9a7edd7dca5cbe7159df34ac
2023-10-06 02:46:45 +00:00
Tyler Trephan
a1828f9ad3 Generated EnumForVehicleProperty.java from VehicleProeprty.aidl
Test: None
Bug: 290972334
Change-Id: I4aa34b4a04cd5a1ce5c7524d0d409aa372675fb5
2023-10-06 02:44:36 +00:00
Treehugger Robot
cf67ed6f27 Merge changes I3ac93815,I35dd253e,I274d4480 into main
* changes:
  Add additional HVAC_POWER_ON dependent properties
  Use HVAC_POWER_ON config array for determining power dependent props
  Send CarPropertyValue status when HVAC power state changes
2023-10-05 20:07:57 +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
sergiuferentz
7d7a24d5f6 Bump android.hardware.graphics.common V4->V5
Test: Build
Bug: 291142745
Change-Id: Ib0002feb982ffcc37fa7b69493c644b7a835cf4f
2023-10-03 16:14:03 +00:00
Yuncheol Heo
7ceb25ff52 Merge "Add CLUSTER_HEARTBEAT to VHAL" into main 2023-10-02 20:38:48 +00:00
Treehugger Robot
b565d988c4 Merge "Remove remoteaccess V1 impl." into main 2023-10-02 19:31:44 +00:00
Hugo Drumond Jacob
de83fc07ea Merge "Adjust path to sdv_ivi_cf" into udc-qpr-dev-plus-aosp am: 2b26c3efe1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24850519

Change-Id: I2eff63d0dab366c4e0c33f0c4cf022652d80c9f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-29 18:42:04 +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
Yuncheol Heo
8fbbfd1357 Add CLUSTER_HEARTBEAT to VHAL
Bug: 285415531
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I94e3ee63f8f677dd734c9a509e257a2cc5719eaa
2023-09-28 10:37:25 -07:00
Treehugger Robot
b4c441939a Merge "Refactored automotiveSvV1.0_fuzzer" into main am: 05d080dd16 am: 5de5782cf7 am: 8e10b94061 am: 0d5d484d72 am: 4c89ed66e7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2707273

Change-Id: I1dc0e0fc567576db903b87d73081fe543a0b03a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 11:10:58 +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
8f84268a6c Merge "Update automotive.vehicle OWNERS file" into main am: 06d47be3d0 am: 7559fbaeb2 am: c442b11ff8 am: 3350fa61fc am: 258dbb3cc6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2765946

Change-Id: Id47abf9c6c2319e6c0158a8379e179dc526f91ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 05:02:55 +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
Aaqib Ismail
325527baeb Add additional HVAC_POWER_ON dependent properties
Bug: 302024222
Test: atest FakeVehicleHardwareTest
Test: atest CarPropertyManagerTest
Change-Id: I3ac938154a38ec23151f142be463e69c34c6d92b
2023-09-27 17:37:38 -07:00
Aaqib Ismail
35616e4de7 Use HVAC_POWER_ON config array for determining power dependent props
Bug: 302024222
Test: atest FakeVehicleHardwareTest
Test: atest CarPropertyManagerTest
Change-Id: I35dd253e804a244e28debad162e39602dcd01d5a
2023-09-27 17:37:34 -07:00
Aaqib Ismail
987a69a859 Send CarPropertyValue status when HVAC power state changes
Bug: 301001111
Test: atest FakeVehicleHardwareTest
Test: atest CarPropertyManagerTest
Change-Id: I274d4480e6b1f264fd0b6eefd5926311a65f883a
2023-09-27 17:33:00 -07:00