Commit graph

2268 commits

Author SHA1 Message Date
Ryan Prichard
30e40b994f Merge "Use std::filesystem when libc++ is new enough" into main am: 37d5948144 am: 608781cfd7 am: 81bff7712e am: 85adb929d3 am: 4e4de47109
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2758145

Change-Id: I18d4e39a5976ec50b3cbafbb6c6d4097c6412027
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 01:01:34 +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
Yu Shan
06ddbc6d52 Define IRemoteAccess V2 reference impl.
Rename remote access HAL to V2 and implement V2 interface.

Test: Presubmit
Bug: 297271235
Change-Id: I4b21fce3c18f7697f62229107b210b7675749b68
2023-09-20 18:30:34 -07: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
Treehugger Robot
6392a88c1d Merge "Add task schedule API to remote access HAL." into main 2023-09-20 21:42:56 +00:00
Yu Shan
c067a9b52e Merge "Rename reference VHAL to V3." into main 2023-09-19 19:41:03 +00:00
Yu Shan
c1ee98677e Rename reference VHAL to V3.
The current target is actually supporting VHAL v2
interface, but we did not update the name. Update its name to V3
since it is going to support VHAL v3 interface.

Test: Presubmit
Bug: 300694866
Change-Id: I54bd15edb83add03b0fe8272b6e8787fef7003cf
2023-09-15 17:55:15 -07:00
Aaqib Ismail
2dff22274c Fix clang lint warnings am: ccf273d307
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24763110

Change-Id: Iac9e75bbb3e310feeae56c50d59d331e2ba34578
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 05:45:31 +00:00
Aaqib Ismail
ccf273d307 Fix clang lint warnings
Bug: 291278377
Test: m
Change-Id: Ifcfecc313c8d27fb04a20b4e6bf304b04f4a5b55
2023-09-15 04:40:17 +00:00
Yu Shan
c07cdae9bb Add task schedule API to remote access HAL.
These APIs allows a client to schedule a task to be executed later.
If the vehicle is off when the task is to be exectued, the vehicle
will be woken up, execute the task and shutdown. If the vehicle is
already up, the task will be exectued.

Test: None
Bug: 282792374
Change-Id: I97c4fdbe2cba035e8bd9ddede4c94d0331c39eef
2023-09-14 18:10:10 -07:00
Treehugger Robot
317e9d4e22 Merge changes I2ca96002,I8f9c076e into main
* changes:
  Add the abstraction layer for the camera classes
  Add EVS Camera Device Type to the Default Implementation
2023-09-15 00:21:34 +00:00
Hao Chen
c5d5d7565d Add the abstraction layer for the camera classes
Test: Build
Bug: 277861838
Change-Id: I2ca960022916ef5db2896625208e74d4c0db5d36
2023-09-14 22:19:48 +00:00
Hao Chen
02a1825028 Add EVS Camera Device Type to the Default Implementation
Test: Build
Bug: 277861838
Change-Id: I8f9c076e0d03f541587015c71aeb8a9335d37733
2023-09-14 22:19:13 +00:00
Treehugger Robot
089d39f69c Merge "Add buffer result for generating vendor configs" into main 2023-09-14 21:09:12 +00:00
Antonio Kantek
e226dcd2e8 Merge "Add visibility to "//cts/tests/tests/car_permission_tests"" into main 2023-09-08 18:14:38 +00:00
Aaqib Ismail
5a8f91761b Merge changes I36d1e494,I65a74ac6 into main
* changes:
  Add missing supportedEnumValues
  Add missing status codes
2023-09-07 03:21:12 +00:00
Changyeon Jo
88ef0d64bc Merge "Update the default EVS HAL implementation" into main 2023-09-06 17:13:30 +00:00
Changyeon Jo
ada95035ec Update OWNERS file am: bacdd1ec09 am: d095b7aafa am: e927deb8f8 am: 8de98a639b am: 3507d52f9e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2740885

Change-Id: I16e0cd29d4d27327e0e1f7e861ef8a81dd9d0cdf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 07:20:45 +00:00
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
Aaqib Ismail
810144a168 Add missing supportedEnumValues
Bug: 299192013
Test: m
Change-Id: I36d1e4942cb44604539e384bde9300ac8ca8eba2
2023-09-05 17:52:12 -07:00
Aaqib Ismail
e279306e57 Add missing status codes
Bug: 299191602
Test: m
Change-Id: I65a74ac6e93ec5ffcf32b54b6a11c983b1c32262
2023-09-05 17:20:49 -07:00
Antonio Kantek
b22a274542 Add visibility to "//cts/tests/tests/car_permission_tests"
Bug: 298100097
Test: atest CarSecurityPermissionTest
Change-Id: Ia613cbb47fe2a6efd1c518aeee8b0cca15af7e13
2023-09-05 20:29:38 +00:00
Changyeon Jo
130d5a3aa0 Update the default EVS HAL implementation
Remove H2BGraphicBufferProducer usages from the default EVS HAL
implementation.

Bug: 297601247
Bug: 298091684
Test: Run evs_app on the cuttlefish emulator.
Change-Id: Ibca21d8e9cf87deb79c0050f9adcf02b5f16d34b
2023-08-31 13:12:39 -07:00
Treehugger Robot
3c8c62f7ee Merge "Allow empty preuload_files." into main 2023-08-30 20:41:27 +00:00
Yu Shan
b1fc8c914f Allow empty preuload_files.
When a CL only removes file, the PREUPLOAD_FILES in repohook might
be empty.

Test: None
Bug: 298222655
Change-Id: I70bb347c02c5d09a0525313087acb9c38b9a2ff2
2023-08-30 11:51:04 -07:00
Yu Shan
2fd9496ecd Use AIDL for test vendor properties.
Use AIDL enum instead of hard coding the test vendor property
definitions so that we don't have to duplicate the value among VHAL
and the clients. This also shows how vendor can uses a custom AIDL
enum to define vendor properties.

Test: atest FakeVehicleHardwareTest
Bug: 296913406
Change-Id: Ief889b86bfbef136f8afd4a4f49405f2213b441c
2023-08-28 17:48:30 -07:00
Yu Shan
3a129d7a3b Implement a host side TestWakeupClientService.
Implement a host program that could be used to test the remote
access feature. The program will provides grpc service that the
remote access HAL running on device can talk to to get tasks. The
program will also use adb/aemu command to control the power of the
Android instance.

This CL also changes the GRPC service address for the default
remoteaccess HAL to 10.0.2.2 which points to the host's 127.0.0.1
from the emulator.

Test: m -j TestWakeupClientServerHost, run manually.
TestWakeupClientServerHost
>>> inject task [clientID] taskdata
verify emualtor boot up
verify emulator shutdown after task finish
>>> power on
verify emualtor boot up
>>> inject task [clientID] taskdata
verify emulator does not shutdown after task finish
>>> power off
>>> inject task [clientID] taskdata
verify emulator boot up
>>> set vehicleInUse
verify emulator does not shutdown after task finish
>>> power off
>>> genFakeTask start [clientID]
verify emulator starts up to execute remote tasks.
verify emulator shuts down after 300s.
verify emulator restarts after shutdown.
>>> genFakeTask stop
verify emulator shuts down after finishing last task.
Bug: 285205122

Change-Id: I22b660448d8b495cf3ced3378c1c1dc10051d87a
2023-08-28 17:45:08 -07:00
Shrikar Amirisetty
892e1feaa0 Merge "Added logic for ACC properties to return NOT_AVAILABLE in standard CC." into main 2023-08-28 19:40:17 +00:00
Xin Li
879960bdce Merge Android U (ab/10368041)
Bug: 291102124
Merged-In: I7b6fffac2ada0e039f79bad8cc9b4d954e9c3460
Change-Id: I9466127d8d0fa38df36ca99f704853b2db871e67
2023-08-25 13:29:30 -07:00
Eva Chen
af66916e2c Merge changes from topic "vhal_v3" into main
* changes:
  Add UNKNOWN to VehicleAreaSeat aidl.
  Update VHAL property version to v3.
2023-08-24 19:51:21 +00:00
shrikar
cc3f5884cd Added logic for ACC properties to return NOT_AVAILABLE in standard CC.
ACC properties and certain CRUISE_CONTROL_COMMAND enums will return
StatusCode NOT_AVAILABLE_DISABLED when CRUISE_CONTROL_TYPE is STANDARD.

Bug: 268680457
Test: atest FakeVehicleHardwareTest
Change-Id: Id79c93a0dab6224dd3e6fae3aa747781a848aa94
2023-08-24 12:50:38 +00:00
terryguan
6791803d4a 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
Change-Id: Ic3cb8bf3e606847ff55d719900ad0b764b56aaf4
2023-08-22 17:46:12 -07:00
Krzysztof Kosiński
9d92d55a55 Add missing gRPC include. am: c608187f21 am: e1ea603e02
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24501312

Change-Id: I5730c9a2586715d4bcf36e7cbcbc55ebb89513fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 22:43:16 +00:00
Krzysztof Kosiński
c608187f21 Add missing gRPC include.
Othewise the header is not self contained and breaks when
upgrading gRPC.

Bug: 279548314
Test: presubmit
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3d3baed1bc85f8ddddb2764a5a09cd4d578419f0)
Merged-In: Ife50863bd16eda6bc639261b1f91fdfcf48f6294
Change-Id: Ife50863bd16eda6bc639261b1f91fdfcf48f6294
2023-08-21 20:12:27 +00:00
Krzysztof Kosiński
3d3baed1bc Add missing gRPC include.
Othewise the header is not self contained and breaks when
upgrading gRPC.

Bug: 279548314
Test: presubmit
Change-Id: Ife50863bd16eda6bc639261b1f91fdfcf48f6294
2023-08-19 02:07:47 +00:00
Eva Chen
46d65626e2 Add UNKNOWN to VehicleAreaSeat aidl.
Bug: 293521207
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Idf42a5735eb8e187759c3d84cc4891a473d97d35
2023-08-11 13:24:29 -07:00
Eva Chen
b36d24d12a Update VHAL property version to v3.
Bug: 295405997
Test: Manual Build
Change-Id: I2faf065006e6889309caf69a9b277f42fdc00702
2023-08-11 13:24:21 -07:00
Terry Guan
b324444c8a Update version for audiocontrol
Bug: 255369346
Bug: 255383566
Test: atest vts_treble_vintf_vendor_test
Change-Id: I17000be75963e511d2a56583be0f619a3dee66f1
Merged-In: I17000be75963e511d2a56583be0f619a3dee66f1
Merged-In: Ic42e51b616782a2763eb80e1cad5ca776cc079d4
2023-08-04 16:50:58 -07:00
Yu Shan
21d7b02a9a [RESTRICT AUTOMERGE] Pass property set error to subscribed clients.
Pass the async property set error generated by VehicleHardware layer
to subscribed clients.

Test: atest DefaultVehicleHalTest
Bug: 286384730
Bug: 292001021
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6fe26625db72da7760014d0c71019fb3e847e2d3)
Merged-In: Iadd92e1c0c741ad6450a0508fe9e6301bdfe66c5
Change-Id: Iadd92e1c0c741ad6450a0508fe9e6301bdfe66c5
2023-08-02 22:03:41 +00:00
Treehugger Robot
ab51d34ef7 Merge "Changed radius to diameter in INFO_EXTERIOR_DIMENSIONS docs in HAL layer" into main 2023-07-25 19:31:19 +00:00
shrikar
c665f4e34f Changed radius to diameter in INFO_EXTERIOR_DIMENSIONS docs in HAL layer
Bug: 284972202
Test: manual build
Change-Id: Ib72aa4d93d2fcf8c9961fd143842018efe27c18c
2023-07-24 18:30:28 +00:00
Yu Shan
8ddd65dbc0 Add script to parse VehicleProperty.aidl to CSV.
Allow parsing the VHAL property definitions/annotations in
VehicleProperty.aidl into a CSV file so that we can generate
documentation.

Test: python generate_annotation_enums.py --output_csv /tmp/prop.csv
Bug: 288331747
Change-Id: Icc5d023c8efdc01ead220313d6a7c66d22c63a0a
2023-07-11 14:33:36 -07:00
Yu Shan
bc614aeae0 Minor update on access annotation.
Test: None
Bug: 288331747
Change-Id: I3a2246c1c5fd02d06fa2c8f08dc69ac0506bfbcb
2023-07-11 14:33:36 -07:00
Yu Shan
595c1da89f Add more access annotations.
For some READ_WRITE property, READ is also allowed. Add the annotations
to reflect that.

Test: None
Bug: 288331747
Change-Id: I46d86606087e747e217269db028ddf03c9bdc0b6
2023-07-10 16:57:45 -07:00
Treehugger Robot
795e58a333 Merge "Pass property set error to subscribed clients." into udc-qpr-dev am: 94a43b30ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23880264

Change-Id: If342d76ba837924f37f051253326b7a0ecaf91c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-10 21:46:10 +00:00
Treehugger Robot
94a43b30ef Merge "Pass property set error to subscribed clients." into udc-qpr-dev 2023-07-10 21:07:10 +00:00
Yu Shan
733c744072 Merge "Minor fix to comment style." into main 2023-07-10 18:35:34 +00:00