Commit graph

2295 commits

Author SHA1 Message Date
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
Treehugger Robot
fb867bc8a6 Merge "Cleanup dead code." into main 2023-07-08 03:45:03 +00:00
Treehugger Robot
9eb7b82d9a Merge "Fix flaky recurrent timer test." into main am: d0cb2e73b2 am: 83e99ff3b1 am: b3f840a6ff am: d8ab63802a am: e993d4b849
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2651319

Change-Id: If412439e197b7d2cfbf5570314f2e9c81e287ec2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 23:53:36 +00:00
Treehugger Robot
d8ab63802a Merge "Fix flaky recurrent timer test." into main am: d0cb2e73b2 am: 83e99ff3b1 am: b3f840a6ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2651319

Change-Id: Ia670893b8cebee92cb8d6f2248123009c434382c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 22:28:53 +00:00
Yu Shan
fda1197d79 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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7b1448edcfd3f88365932e2d94659952444aae2b)
Merged-In: Iadd92e1c0c741ad6450a0508fe9e6301bdfe66c5
Change-Id: Iadd92e1c0c741ad6450a0508fe9e6301bdfe66c5
2023-07-07 21:26:02 +00:00
Yu Shan
bdba2b578d Fix flaky recurrent timer test.
Do not rely on sleep in tests, but wait for the events to happen
before timeout. Set the timeout to be large enough (5s) so that the
tests are more stable.

Test: atest RecurrentTimerTest
Bug: 289759453
Change-Id: Iff271ca440426871ed3a798bab50b9532f9256f0
Merged-In: Iff271ca440426871ed3a798bab50b9532f9256f0
(cherry picked from commit 76d7fbf6a1)
2023-07-07 20:30:43 +00:00
Treehugger Robot
9c5889cecb Merge "Pass property set error to subscribed clients." into main 2023-07-07 01:41:20 +00:00
Yu Shan
52c0a3dd9d Minor fix to comment style.
Use a separate block for HVAC properties comments since we will use
the first line as description for the property and hvac fan speed
description will not be correct.

Test: None
Bug: 288331747
Change-Id: Ie6518dec394a3d9c90bd2cb5b38939a2cdd7cccf
2023-07-06 17:41:01 -07:00
Yu Shan
4ea2dbc27b Cleanup dead code.
We no longer implement subscription by periodically requesting
get from VHAL layer, so most of the logic in subscriptionClient
is no longer useful.

Test: atest DefaultVehicleHalTest, manually run on emulator verify
subscription works.
Bug: 288627179

Change-Id: Ice3824514b3205ca3446baf0086be81eda0c47d6
2023-07-06 17:41:01 -07:00
Yu Shan
7b1448edcf 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
Change-Id: Iadd92e1c0c741ad6450a0508fe9e6301bdfe66c5
2023-07-06 17:18:18 -07:00
Yu Shan
76d7fbf6a1 Fix flaky recurrent timer test.
Do not rely on sleep in tests, but wait for the events to happen
before timeout. Set the timeout to be large enough (5s) so that the
tests are more stable.

Test: atest RecurrentTimerTest
Bug: 289759453
Change-Id: Iff271ca440426871ed3a798bab50b9532f9256f0
2023-07-05 17:16:59 -07:00
Yu Shan
ddd7b58149 Fix a type conversion bug.
Convert int64_t to long on x86 platform loses info.

Test: atest FakeVehicleHardwareTest on cf_gwear_x86.
Bug: 288376096
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:76aaef448fcd9458b07b1d78ea4b79165af0cde0)
Merged-In: I8826e2c0ba6c3e26af858a1d8f1388b75d537082
Change-Id: I8826e2c0ba6c3e26af858a1d8f1388b75d537082
2023-06-30 20:55:19 +00:00
Yu Shan
76aaef448f Fix a type conversion bug.
Convert int64_t to long on x86 platform loses info.

Test: atest FakeVehicleHardwareTest on cf_gwear_x86.
Bug: 288376096
Change-Id: I8826e2c0ba6c3e26af858a1d8f1388b75d537082
2023-06-30 19:07:17 +00:00
Yu Shan
51b5c77534 Move flaky HIDL VHAL impl test to post submit.
The tests is flaky by nature because it depends on timer. Although
the flakiness is low, it is too flaky to run as presubmit.

Test: atest -s emulator-5554 DefaultVhalImplTest
Bug: 288197123
Change-Id: I735e3e6197769e47372f025d7eb82d54159a8ff8
2023-06-29 17:52:20 -07:00
Yu Shan
d68149e363 Support VEHICLE_IN_USE and SHUTDOWN_REQUEST.
Support VEHICLE_IN_USE and SHUTDOWN_REQUEST properties in reference
VHAL. They are used for remote access feature.

Test: atest FakeVehicleHardwareTest
Bug: 285205122
Change-Id: Ideb964d1ee625b127bc8e708b46f9639dd59c011
2023-06-22 20:48:23 -07:00
Changyeon Jo
a842eea300 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: ca64f5b140 am: 9e8d44aba4 am: 0a4815e73a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I9382ebec2b2960627f03e99ac243cfd11e99599e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 03:52:37 +00:00
Changyeon Jo
f018e5213d Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: 4bf0cb2c5f am: b484054880 am: f1c67f57e9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ibc853cb9ad6ab961b3140c69efeb1c024f91006a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 02:46:28 +00:00
Changyeon Jo
9e8d44aba4 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: ca64f5b140
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: If414ff886a8c2e6c336289e89f73719d740ac73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 02:24:19 +00:00
Changyeon Jo
b484054880 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: 4bf0cb2c5f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I74e22a7195fb761c3920b7fd865b000d0a4d3ee7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 01:16:37 +00:00
Changyeon Jo
4bf0cb2c5f Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I8ac30fb5abe6c6205d099d089e769ffb477ddc7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:32:36 +00:00
Changyeon Jo
55baee93d6 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ic0db29743b092a5a2d01860e76356a38e3e4788b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:04:30 +00:00
Changyeon Jo
c070b5a14b Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ibcaac170949c319d2cff5b45bc8114238d0ada7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 23:21:50 +00:00
Changyeon Jo
a343d0cf0c Increase frame counters in the same critical section am: 928a4535c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I8a59e6173179a284bb90960b30e2e5a35de075a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 22:39:21 +00:00
Changyeon Jo
928a4535c8 Increase frame counters in the same critical section
Bug: 275049370
Test: atest VtsHalEvsV1_0TargetTest
Change-Id: I814aac4edec142027d3802f5ee0d7a444ae2ee86
2023-06-15 21:11:09 +00:00
Keith Mok
57baaafe40 Fix repo upload fail if no symbolic link to python3
generate_annotation_enums.py was added to repo hook but it specific
pthon instrad of python3, on system without symbolic link to python3 from python, repo upload would failed with a file not found error.

Test: Manual test
Bug: 287123042
Change-Id: I61167c5e97bcabb0b0c1b86971f19ce483ff198f
2023-06-13 23:15:05 +00:00
Yu Shan
41dd7f18fc Add generate_vehicle_property_enums repo hook.
This repo hook will check whether the generated enum definition files
require update if VehicleProperty.aidl is updated and prompt user
to run generate_annotation_enums.py if requires update.

The repo hook will do nothing if the preupload files does not contain
VehicleProperty.aidl file.

Test: Manual test
Bug: 286286188
Change-Id: Iea1fdb26d8a76c5aff346ca5cb38ed145fe957d7
2023-06-08 18:34:57 +00:00
Raj Goparaju
a110a96d6d Merge "AudioControl: add version check for module change callback APIs" into udc-dev am: a5f9277262 am: 47795b1cdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23231662

Change-Id: Id5240e8fc02af6107b57c5369450e0c712a6732c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-16 20:13:12 +00:00
Raj Goparaju
a5f9277262 Merge "AudioControl: add version check for module change callback APIs" into udc-dev 2023-05-16 18:06:58 +00:00
Raj Goparaju
4a118d4e10 AudioControl: add version check for module change callback APIs
With Stable-AIDL structure, we have the same VTS test serving
multiple versions. It is possible that vendors implement older
version on the latest tree.

Therefore, the new API tests should not add new requirements on
older versions. Protect the new tests with version check to
ensure they are only executed if meeting version requirements.

Bug: 281945739
Test: run vts --module VtsAidlHalAudioControlTest
Change-Id: Ia186313088a3e8551b11a92259667edd0c6a3878
2023-05-15 18:00:15 -07:00
Treehugger Robot
a32c790e06 Merge "Update the remote access test folder." into udc-dev am: 2047ab0aae am: c70db0d765
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23223616

Change-Id: I424a3a2058c402674ed8ae9c1c856c92452dee54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-13 03:34:24 +00:00
Treehugger Robot
2047ab0aae Merge "Update the remote access test folder." into udc-dev 2023-05-13 02:38:40 +00:00
Yu Shan
58ff09197b Update the remote access test folder.
Update the test folder directory. The previous temp directory
is not allowed to be accessed by selinux rule.

Test: Manual follow remote access test plan on seahawk.
Bug: 272773565
Change-Id: I2b8b05f56560d3d28d0d61e816d345f8d03f59a5
2023-05-12 18:00:59 -07:00
Terry Guan
3204e6cfea Merge "Adding for adding async large parcelalbe callbacks functionality" into udc-dev am: 7059468d04 am: 37a380ee3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23071837

Change-Id: Id4a670c82eb618a9f0491cad6ed09d5d77c6fd5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 14:37:51 +00:00
Terry Guan
7059468d04 Merge "Adding for adding async large parcelalbe callbacks functionality" into udc-dev 2023-05-10 13:12:49 +00:00
Eva Chen
aab3c500ea Merge "Remove note for ADAS properties." into udc-dev am: d795ebd56c am: b8dce6ec8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23065866

Change-Id: Ic64ecbddc880e31f90dc299f19699bfa6f0c3ee0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 01:07:56 +00:00
Eva Chen
d795ebd56c Merge "Remove note for ADAS properties." into udc-dev 2023-05-09 23:11:49 +00:00
Yu Shan
99e4ee0d7e Add inject-task-next-reboot debug command. am: 194757d25f am: 196213ce59
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22748582

Change-Id: I2f968df2994a18c8a4c34465d2d561a3586ead61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-09 11:07:37 +00:00
Yu Shan
194757d25f Add inject-task-next-reboot debug command.
Support a debug command that will inject a fake remote task for
testing on next reboot with specified latency. This is used to
simulate the situation when a remote task arrives while the device
is not booted up and the task will be delivered once the device
boots up.

Test: Manually test on seahawk.
Bug: 275880463
Change-Id: I6eb064893bea0700da80dfa2dcf3079ddb0b59a1
2023-05-08 15:42:56 -07:00
terryguan
a2fa508d3f Adding for adding async large parcelalbe callbacks functionality
Bug: 270740905
Test: atest com.android.car.CarPropertyManagerTest
Test: atest android.car.apitest.CarPropertyManagerTest
Test: atest com.android.car.hal.PropertyHalServiceTest
Test: manual, verified largeParcelable using shared memeory
Change-Id: Ic01402ceb58ea93957777bec4965121c594fa35e
2023-05-08 08:48:58 -07:00
Terry Guan
fd899003df Merge "Added debug statement and refresh in default vehicle hal" into udc-dev am: 9368d6dc23 am: d65b493cd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22531494

Change-Id: I809711595420d500b2105aade81726e0f1f2fe1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-06 02:17:53 +00:00
Eva Chen
49281ae7a6 Remove note for ADAS properties.
Bug: 281133179
Test: Comment only change
Change-Id: I6d9c8dfa0fead76195616023442e09887ae74aac
2023-05-05 15:19:22 -07:00
terryguan
f3cd073e86 Added debug statement and refresh in default vehicle hal
Added a debug statement to allow for a debug command to generate a large
amount of propConfigs to test large parcelables. DefaultVehicleHal
needed to refresh the properties when DefaultVehicleHal's
getAllPropConfigs is called

Bug: 270740905
Test: atest DefaultVehicleHalTest
Test: atest android.car.apitest.CarPropertyManagerTest
Test: --rerun-until-failure 3
Test: Manual
Change-Id: I95eb98cef64e327894760783ffe9883975359d89
2023-05-04 13:37:06 -07:00
Krzysztof Kosiński
6078da87ca Use internal gRPC headers in BindToDeviceSocketMutatorLib.
Bug: 280043032
Test: presubmit
Change-Id: I53c413ab3dbbfb056f3b7f22c1db336aa68ba611
Merged-In: I53c413ab3dbbfb056f3b7f22c1db336aa68ba611
2023-05-03 22:26:13 +00:00
Krzysztof Kosiński
ed6e03c5e1 Merge "Use internal gRPC headers in BindToDeviceSocketMutatorLib." into udc-dev-plus-aosp am: 8b1688f576 am: 01ab41b431 am: f5099bb73f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22985550

Change-Id: Ie599b7865d308ec012d69ea224f87c8bc01af1f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 21:02:45 +00:00
Krzysztof Kosiński
1837983a6f Use internal gRPC headers in BindToDeviceSocketMutatorLib.
Bug: 280043032
Test: presubmit
Change-Id: I53c413ab3dbbfb056f3b7f22c1db336aa68ba611
2023-05-03 06:49:16 +00:00
Krzysztof Kosiński
f5a74c1d83 Merge "Refactor BindToDeviceSocketMutator." into udc-dev am: 50f5adc5fd am: ca13526e4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22945262

Change-Id: Id8f0dfdb91adab35b70f969b5cc504d49f14e238
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 12:40:30 +00:00
Krzysztof Kosiński
50f5adc5fd Merge "Refactor BindToDeviceSocketMutator." into udc-dev 2023-05-02 04:55:55 +00:00
Yu Shan
b0565fc3f9 Merge changes I76f90d5a,I3d882dcf into udc-dev am: aa3a1395ea am: a942e675ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22656963

Change-Id: I637e02a076549e65c4460942deeb6227c4fb327e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 02:53:57 +00:00
Yu Shan
c413c484ee Add VTS for IVN HAL.
Test: atest VtsHalIvnTargetTest
Bug: 274139217
Change-Id: I76f90d5aa1cec2821bb3345e8315743bc8f51b03
2023-05-01 16:01:06 -07:00
Treehugger Robot
7d64a06ff9 Merge "Add FakeVehicleStubUnitTest as presubmit." 2023-05-01 20:32:34 +00:00
Yu Shan
3586a8d1cc Add FakeVehicleStubUnitTest as presubmit.
FakeVehicleStubUnitTest depends on the fake vhal config file, so it
must be run as presubmit if we modify the config file.

Test: Presubmit
Bug: 279077869
Change-Id: If191cba503466a38a0bfdb9808d187affeaf2a62
2023-05-01 11:52:16 -07:00
Yu Shan
5bc39cc139 Support dump and add more unit tests.
Support dump in reference ivn HAL and add more unit tests.

Test: atest IvnAndroidDeviceServiceUnitTest
Bug: 274139217
Change-Id: I3d882dcf84f8ae89104e06deb65fbad148fad54c
2023-04-30 00:45:08 -07:00
Krzysztof Kosiński
e908adfde3 Refactor BindToDeviceSocketMutator.
Only expose a factory function in the header. This limits the
internal gRPC dependency to the .cpp file and simplifies the
implementation.

Bug: 280043032
Test: local build
Change-Id: Ic7ea8dac9935231ceb05bec22c2a5902c50ea8db
2023-04-29 12:54:07 +00:00
Treehugger Robot
f8cdade2d3 Merge "Mention that ErrorState and StatusCode must match" into udc-dev 2023-04-28 01:42:34 +00:00
Yu Shan
a45f94d60d Add reference ivn HAL impl.
Add reference ivn HAL impl. The reference implementation reads
a JSON config file and provides static information.

Test: atest IvnAndroidDeviceServiceUnitTest
Bug: 274139217
Change-Id: Idc55d3ac8573bd1eeff096c4f12d8bfd935fb859
2023-04-25 18:16:42 -07:00
Aaqib Ismail
bc591f4356 Merge "Add UNKNOWN fan direction to HVAC_FAN_DIRECTION_AVAILABLE for emulator" into udc-dev 2023-04-25 18:37:10 +00:00
Aaqib Ismail
210a66568b Mention that ErrorState and StatusCode must match
Bug: 277972734
Test: presubmit
Change-Id: If9da64ff1a163dce2b5f913187c18ba032a16016
2023-04-24 12:28:07 -07:00
Aaqib Ismail
a089c8ed53 Implement ADAS properties in emulator VHAL
For properties that support the ErrorState enum, they are set to
ErrorState#NOT_AVAILABLE_DISABLED when the ADAS feature is disabled.
For all the other ADAS properties, they return
StatusCode#NOT_AVAILABLE_DISABLED when that ADAS feature is disabled.

Bug: 277359330
Bug: 277359630
Bug: 277359374
Bug: 277359394
Bug: 277359419
Bug: 277359421
Bug: 277359396
Bug: 277359260

Test: atest FakeVehicleHardwareTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Change-Id: I11386cbaa320038001c650a63cc70f6ca6498c09
2023-04-20 18:26:42 -07:00
Aaqib Ismail
260d94ed57 Add UNKNOWN fan direction to HVAC_FAN_DIRECTION_AVAILABLE for emulator
Bug: 279077869
Test: atest CtsCarTestCases:CarPropertyManagerTest
Change-Id: I6f1ccac01d28e630646a0455f53922e3e68483d3
2023-04-20 16:37:05 -07:00
Xin Li
71a948bc4c Merge Android 13 QPR3 tm-qpr-dev-plus-aosp-without-vendor@9936994
Bug: 275386652
Merged-In: Icd15f6e7bfdd7b3e3d0d4b407195258d4171c560
Change-Id: I115d5b25fc5b997a76ac4672262945f3393a9c78
2023-04-18 16:34:16 -07:00
Hao Chen
6cfe1f86e9 VTS: Skip the Check if getDisplayStateById is not Supported
Test: atest VtsHalEvsTargetTest
Bug: 276974949
Change-Id: I44d41b937611e06823fe8d2c8ef9d1da783bd17a
2023-04-14 16:07:08 -07:00
Treehugger Robot
8a01e4676c Merge changes Ida3533de,Ifec6e212 into udc-dev
* changes:
  Complete VHAL GRPC Interfaces
  GRPC Vehicle Proxy Server
2023-04-14 20:53:25 +00:00
Sihu Song
61859e7776 Merge "Add emulator metadata generator script" am: 72205da1e6 am: 1d67e9c801 am: 87a1249b48
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2531482

Change-Id: Ia976f5fe77f914c2d9da41c7098fc04522f8d8b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14 03:30:05 +00:00
Sihu Song
87a1249b48 Merge "Add emulator metadata generator script" am: 72205da1e6 am: 1d67e9c801
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2531482

Change-Id: I2c074435ff63deae7d19bc8a1b7d1f7d6cd5f66e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14 02:57:02 +00:00
Sihu Song
72205da1e6 Merge "Add emulator metadata generator script" 2023-04-14 01:40:15 +00:00
Treehugger Robot
27ddba211b Merge "Use IsSubsetOf matcher for comparing changed vs updated properties" into udc-dev 2023-04-14 00:32:29 +00:00
Treehugger Robot
4ce4be5c61 Merge changes I4c49f255,I26c4260b into udc-dev
* changes:
  HVAC dependent properties should return NOT_AVAILABLE_DISABLED
  Print out content of VehiclePropValue when test fails
2023-04-14 00:32:24 +00:00
Maxim Pleshivenkov
94220b8613 Update makefile.
Migrate to use andoid.frameworks.automotive.powerpolicy-V2-ndk.

Bug: 277954369
Test: manual build
Change-Id: I5331284b329b9aad731d86a1d1a26cc0b042387a
2023-04-13 00:25:02 -04:00
TreeHugger Robot
d6818349ef Merge "AIDL VHAL GRPC Client" into udc-dev 2023-04-13 00:37:33 +00:00
Aaqib Ismail
76dbff1e9c Use IsSubsetOf matcher for comparing changed vs updated properties
The previous implementation did not work as intended because it was
comparing using equality. This means that if there is a mismatch in
the number of elements in each list it would fail.

Bug: 277359330
Bug: 277359630
Bug: 277359374
Bug: 277359394
Bug: 277359419
Bug: 277359421
Bug: 277359396
Bug: 277359260

Test: atest FakeVehicleHardwareTest
Change-Id: If624ee39271725c6158c004181104ca6b30d4598
2023-04-12 16:31:23 -07:00
Aaqib Ismail
5df458d2c0 HVAC dependent properties should return NOT_AVAILABLE_DISABLED
To be consistent with the new API in Android U, NOT_AVAILABLE_DISABLED
is the more appropiate StatusCode.

Bug: 255430764
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest FakeVehicleHardwareTest
Change-Id: I4c49f255817f1f9bc2888c99177c6dc666213ab6
2023-04-12 16:31:23 -07:00
Aaqib Ismail
dc90e2265f Print out content of VehiclePropValue when test fails
Currently when a test fails, it prints out a byte representation of the
object which is not helpful.

Bug: 277359330
Bug: 277359630
Bug: 277359374
Bug: 277359394
Bug: 277359419
Bug: 277359421
Bug: 277359396
Bug: 277359260

Test: atest FakeVehicleHardwareTest
Change-Id: I26c4260b2dbf5a71fbfe94e11c111b482337e6f5
2023-04-12 16:31:20 -07:00
Hao Chen
a810fb2583 Complete VHAL GRPC Interfaces
Add missing operations from IVehicleHardware.h

Bug: 266001013
Test: `atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest`

Change-Id: Ida3533dedce49c49c4762b2f9a43997317f5d2c4
2023-04-12 16:17:51 -07:00
Hao Chen
32d467066a GRPC Vehicle Proxy Server
The GRPC proxy server speaks to another IVehicleHardware (no matter if it is real or fake) to serve
other GRPC vehicle hardware(s). It can be used as a real GRPC Vehicle
Hardware backend when it is running on the machine that have a direct
access to the real vehicle bus, or it can also be used as a fake backend
for testing.

Test: `atest GRPCVehicleProxyServerUnitTest`
Bug: 266001013
Change-Id: Ifec6e21223986a68ab089a87a9664c1b52601ea2
2023-04-12 16:12:18 -07:00