Commit graph

2199 commits

Author SHA1 Message Date
Yu Shan
2c12f0e9ae Merge "Add retry in setProp test." into android14-tests-dev 2024-01-31 01:40:17 +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
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
Changyeon Jo
ba22368df0 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5 am: b89bbf5625
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: If7df49ed360c8484d18f393199105ea85a6c032e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:36:43 +00:00
Changyeon Jo
b89bbf5625 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: If6a14f102e39d5754a4ca42d6e2857a04a6a4e60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:08:02 +00:00
Changyeon Jo
912b16f8c5 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
(cherry picked from commit 2d8834dc96)
2023-10-18 20:40:53 +00:00
Changyeon Jo
ab78601274 Update VtsHalEvsV1_*TargetTest
- Removes a requirement of the landscape aspect ratio of the captured
  frames because the Extended View System now allows the video streams
  in any aspect ratio
- Increases the maximum latency of the video stream start request from
  500 ms to 1 second to accommodate the camera system design with the
  additional processing units outside of the head unit
- Reduces a number of additional buffers to allocate from 6 to 2 in
  CameraStreamBuffering test, to be consistent with comments

Bug: 204835095
Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Id41bde10964b650f78e76d4f97a4588367f7c7fc
Merged-In: Id41bde10964b650f78e76d4f97a4588367f7c7fc
(cherry picked from commit 7bc98ce6ed)
2023-10-18 18:55:43 +00:00
Yu Shan
da7a4ddabd 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
2023-10-11 19:56:52 +00:00
Yu Shan
076976eea2 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
Change-Id: I93020e7e024760601bc5a8edf9997cc356a568c6
(Cherry-picked from commit b84f6f3c68fcd7f613146146821130eb354865c1)
2023-10-11 19:55:21 +00:00
Yu Shan
775b6eca77 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 VtsHalAutomotiveVehicleV2_0TargetTest
Bug: 301577794
Merged-In: I93020e7e024760601bc5a8edf9997cc356a568c6
Change-Id: I1c95625d45f5199328c4e157ebaa05f480d9e1cc
2023-10-11 19:46:53 +00:00
Hugo Drumond Jacob
aeafec3db0 [DO NOT MERGE] Handle unavailable properties
Accommodate the case in which `set()` for an unavailable property is
called as the VHAL may return OK or NOT_AVAILABLE.

Also, it may be the case that certain properties aren't available
while testing and thus, setting a value and getting it right after
might not always work.

Bug: 290882809
Change-Id: I7b7b3f144c4fbd786bf673a86fcac110ec8f79b5
2023-07-25 18:09: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
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
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
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
7059468d04 Merge "Adding for adding async large parcelalbe callbacks functionality" into udc-dev 2023-05-10 13:12:49 +00:00
Eva Chen
d795ebd56c Merge "Remove note for ADAS properties." into udc-dev 2023-05-09 23:11:49 +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
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
50f5adc5fd Merge "Refactor BindToDeviceSocketMutator." into udc-dev 2023-05-02 04:55:55 +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
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
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