Commit graph

1498 commits

Author SHA1 Message Date
Steven Moreland
2e37f01273 Merge "graphics.common V3 -> V4" 2022-12-09 17:21:59 +00:00
Changyeon Jo
1186b99120 Fix how displays are used in test cases am: 017cb98ee9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2305821

Change-Id: I95e906a94413fe0d896573fb66d27c84a9befb66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 00:26:31 +00:00
Yu Shan
df39d6e450 Fix a race condition in remote access HAL.
We should not delete ClientContext after we TryCancel it since the
reader in the main task loop might still access it, e.g., while
calling reader->Finish. We must wait under reader->Finish is
returned, then to delete the ClientContext.

This CL also updates README.md to incorporate soong namespace change.

Test: manually test on sdk_car_x86_64-userdebug
Run TestWakeupClientServer
Run --set-ap-state 1 0 and then --set-ap-state 0 0 multiple times.
Bug: 261234399

Change-Id: I3b0c632546c218c4ced43af95a585cd41e0da036
2022-12-07 15:20:06 -08:00
Yu Shan
1532afd33c Define a new remoteaccess HAL for test.
Bug: 261108682
Test: Locally build and run

Change-Id: I40f97f4b10714096a32c5b14c8716b6c8e413419
2022-12-07 15:17:48 -08:00
Marc Kassis
9c428fe3ed graphics.common V3 -> V4
Bug: 251177105
Test: m
Change-Id: I816b8e14a0741402090cdc4732c2a904e830ff4e
Merged-In: I1cb84ec85f98789d0737207a1661b39a25538c96
Merged-In: I2e1561f4ccb59a2a833af9a7afd07840ab2ebfa4
2022-12-07 10:53:12 +00:00
Changyeon Jo
017cb98ee9 Fix how displays are used in test cases
Open and close the display for each camera instance.

Bug: 259449376
Test: atest VtsHalEvsTargetTest VtsHalEvsV1_1TargetTest
Change-Id: I0f3d2c0b2c9f8a5e527d0abd5c9b248c84dddfbb
2022-12-04 08:17:44 +00:00
Yu Shan
8605e7bd3a Allow specifying the service address.
This will be useful for testing in different environment, e.g.
emulator v.s. phone where multiple ethernet interface might be
available and we need to explicitly pick an interface to start
the server.

Test: Manual test
Bug: None
Change-Id: I3c046e9549225058178346f529773cffa841ce07
2022-12-02 15:44:59 -08:00
Yu Shan
7123885bd9 Change default wakeup required to true.
By default, TCU should always try to wake up AP until it receives
wakeup not required from AP.

Test: None
Bug: 254547153
Change-Id: If4d1111aae1d13f121230360317615ea4ba0302f
2022-11-29 17:44:19 -08:00
Antonio Kantek
3d008424b7 Merge "Update CustomInputType functions comment" 2022-11-22 17:49:46 +00:00
Antonio Kantek
5dbc8f091b Update CustomInputType functions comment
Update CustomInputType functions comment to reflect that they are now optional and OEMs are free to use any int32 to represent an custom input event.

Bug: 255390449
Test: m (built)
Change-Id: I8878c1330f7fe3ba35ea10307a4ba4c4c88b1d57
2022-11-22 01:16:59 +00:00
Yu Shan
fb0cc2241a Define ApPowerControl library.
Define a library for the communication channel between TCU and
application processor. This library will be implemented with
device-specific logic.

Test: local compile
Bug: 254547153
Change-Id: I241ba141f9a5a4a3852017e291fbbc08cadf2bfe
2022-11-21 13:47:01 -08:00
Yu Shan
1b66644304 Update README for TestWakeupClientServer.
Change-Id: I6893bcacc32bbfe33646d19599301be6d8aa6b61
Test: Locally follow instruction.
Bug: 255623880
2022-10-27 14:22:20 -07:00
Yu Shan
1d2d4dd1b7 Add INFO_VIN in reference VHAL.
This is for remote access HAL to use as device ID.
This CL is already included in internal branch but cannot be directly
cherry-picked due to refactoring in reference VHAL.

Test: Local build.
Bug: 255623880
Change-Id: Iec798ffa7df852e6c300d0dd18f2d599c58f2228
Merged-In: I682ab87ef1ff1839ecae92d05a4135810d92bee1
Merged-In: Iecc496e2a64a3270819cf90935ea6deec8a4c9f3
2022-10-26 17:37:58 -07:00
Yu Shan
7a5283fda1 Add remote access HAL interface and ref impl.
Add remote access HAL interface and reference implementation. This
CL is a merge of multiple CLs commited in internal master.

Test: Presubmit
Bug: 241170646
Change-Id: I55ba98015055d779a362cac05a9f68650b5b92ab
Merged-In: I332221b303274463dfa5b46d78cf0d81f6045e4b
2022-10-26 17:16:05 -07:00
Changyeon Jo
a6e880a398 Remove color format constraints am: e6bb228dc6 am: 9b60ecd229
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: I16002aae2f76e58380f72a131229a381cb11ca56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 22:36:12 +00:00
Changyeon Jo
4cbdc86584 Corrects color format requirements am: bfbbba6300 am: 217a6ff310
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: I5320446feba732ffdfeb14b8305634afa6506aad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 22:34:28 +00:00
Changyeon Jo
7f5ad61254 Remove color format constraints
VtsHalEvsTargetTest does not verify any behavior depending on
a frame buffer's color format.

Bug: 240685726
Test: atest VtsHalEvsTargetTest
Change-Id: If8b8c595cfc7404a8122728593f778528b45af15
(cherry picked from commit 849d0f370c)
2022-09-09 16:05:53 +00:00
Lorena Torres-Huerta
308e257397 Use explicit aidl versions for audio hal and soundtrigger dependencies.
There are still issues with importing implicit versions. Switching to explicit versions while b/188871598 is worked out.

Bug: 242678729
Test: m; AIDL_TRANSITIVE_FREEZE=true m aidl-freeze-api && AIDL_FROZEN_REL=true m
Merged-In: Ide6a90716bf042fbb925357e110bc84ddb9e96fb
Change-Id: Ide6a90716bf042fbb925357e110bc84ddb9e96fb
(cherry picked from commit 8296aa824b)
2022-09-01 21:57:03 +00:00
Treehugger Robot
463d08394e Merge "Remove color format constraints" 2022-08-25 02:28:02 +00:00
Changyeon Jo
ec0d97c86b Remove color format constraints am: e6bb228dc6 am: 9b60ecd229
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: Ife0695367cc56876e595275d26096cc329535c4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 00:39:27 +00:00
Changyeon Jo
9b60ecd229 Remove color format constraints am: e6bb228dc6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: I4b4f0fa412a88763e506acb9d5f2ed83463ba1d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 00:19:38 +00:00
Changyeon Jo
849d0f370c Remove color format constraints
VtsHalEvsTargetTest does not verify any behavior depending on
a frame buffer's color format.

Bug: 240685726
Test: atest VtsHalEvsTargetTest
Change-Id: If8b8c595cfc7404a8122728593f778528b45af15
2022-08-18 04:49:39 +00:00
Changyeon Jo
e6bb228dc6 Remove color format constraints
VtsHalEvsV1_1TargetTest does not verify any behavior depending on
a frame buffer's color format.

Bug: 240685726
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: I592a0a8de5fffd98178d624ee5aac4c28245d056
2022-08-17 01:03:20 +00:00
Xin Li
28cde8fd22 Merge "DO NOT MERGE - Merge Android 13" 2022-08-16 19:11:03 +00:00
Changyeon Jo
5f7a17c115 Corrects color format requirements am: bfbbba6300 am: 217a6ff310
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: I01aaf515ad8614791deed186589074079165615a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 11:12:29 +00:00
Changyeon Jo
217a6ff310 Corrects color format requirements am: bfbbba6300
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: I8f3a94e1872975c82432a7484aeb45db5557a0c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 10:53:54 +00:00
Changyeon Jo
bfbbba6300 Corrects color format requirements
EVS HAL implementations are expected to support any of following color
formats:
- RGBA 8888
- BGRA 8888
- NV21
- YV12
- Or, YUY2

Bug: 240685726
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: I9fbbf1d29e52b24d8a53854faa58ac578094b305
2022-08-10 22:56:45 +00:00
Steven Moreland
5769163d4b VehicleManager: use with RefBase
RefBase with sp<>

Bug: 232557259
Test: build
Merged-In: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9
Change-Id: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9
(cherry picked from commit 3b8e60afa3)
2022-07-19 15:28:08 +00:00
Steven Moreland
0a19e588f0 VehicleManager: use with RefBase
RefBase with sp<>

Bug: 232557259
Test: build
Change-Id: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9
Merged-In: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9
2022-07-19 15:04:46 +00:00
Jooyung Han
d81d6a12be Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-14 16:42:42 +09:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
Treehugger Robot
a284f1fd50 Merge "Update owners for hardware/interfaces." am: 19410a1fc3 am: 50e113f80c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2116014

Change-Id: I65978ced2a0ccc01aac5c94b9b014fdc664c9d5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 23:12:33 +00:00
Selim Gurun
75d67ca355 Update owners for hardware/interfaces.
evs and vehicle owners are already good, so did not touch.

Test: echo 'in TH we trust!'
Bug: yes, it bugs me

Change-Id: I6168956f7e21488f5fa6c4f0019c0885d074ba0e
2022-06-04 01:43:52 +00:00
Maxim Pleshivenkov
124c3cde03 Update flag value
Set ENABLE_HIBERNATION_FLAG to a correct value.
Flag is used as a bitmask, and should set single bit.

Bug: 233373476
Change-Id: Ia60cdb3c9c344b3606ea07ed411ed6325a71c396
Test: atest CarServiceUnitTest
2022-05-20 18:59:30 +00:00
Changyeon Jo
dbcf52c2b1 Add a test to verify a status callback registration
Bug: 195672428
Test: atest VtsHalEvsTargetTest
Change-Id: I0f86c82379bbfa249f159cac0bd0564711394caa
2022-05-11 00:01:31 -07:00
Changyeon Jo
b440b234ca Corrects CameraStreamBuffering test case
EvsManager returns BUFFER_NOT_AVAILABLE to AIDL clients when it fails to
process setMaxFramesInFlight() call.

Fix: 232021994
Test: atest VtsHalEvsTargetTest
Change-Id: I8c6760a77e413cc168f40166e6e9eb472d3e6a12
2022-05-10 22:49:28 -07:00
Yu Shan
b47e11e847 Fix a bug that would access uninitialized data.
Fix a bug where mThread is initialized before mRequests, causing
the new thread to access uninitialized mRequests.

Test: None. This is a race condition depending on when the thread is
started and hard to reproduce.
Bug: 231647009

Change-Id: I68037125bf4d14846585bd3a038844e4a7ced377
(cherry picked from commit 5e26ad3bf7)
2022-05-07 00:46:32 +00:00
Changyeon Jo
df2bcbe6e2 Merge "Update CameraStreamBuffering test case" into tm-dev 2022-05-02 21:57:32 +00:00
Changyeon Jo
0d814ce524 Update CameraStreamBuffering test case
CameraStreamBuffering test case intentionally calls
setMaxFramesInFight() with very large integer value to verify that API
handles unreasonaly large value properly.  A type of its parameter is
changed from unsigned 32-bit integer to signed 32-bit integer in the
latest EVS interface definition written in the stable AIDL.  To adapt a
test case, this CL updates it to use std::numeric_limits<int32_t>::max()
instead of 0xFFFFFFFF, which is translated as -1 in signed 32-bit integer
format.

Bug: 226628778
Test: atest VtsHalEvsV1_1TargetTest
      atest VtsHalEvsTargetTest
Change-Id: Ic35c6c962617825bc271cec8544770340db7728a
2022-04-30 11:40:17 +00:00
TreeHugger Robot
1eb9ba70b8 Merge "Added supportedAreas for CRITICALLY_LOW_TIRE_PRESSURE" into tm-dev 2022-04-29 00:24:12 +00:00
Tyler Trephan
4677012912 Added supportedAreas for CRITICALLY_LOW_TIRE_PRESSURE
Test: atest CarPropertyManagerTest
Fix: 230386029
Change-Id: Idbd07a361f11b6b616c11ef2c359b656012b40cc
2022-04-25 22:58:59 +00:00
Chris Weir
b8069b37ab Fix VtsHalCanBusV1_0TargetTest
VtsHalCanBusV1_0TargetTest needs buses brought up. On GSI images,
canhalctrl doesn't exist, so we have to attempt it on our own.

Bug: 213841914
Test: VtsHalCanBusV1_0TargetTest
Change-Id: I5553a95d047aef8e9d8e1eb6092cddea98f6d81e
2022-04-23 00:53:43 +00:00
TreeHugger Robot
94b57a5d01 Merge "Added min/max rates for EV_CHARGE_TIME_REMAINING" into tm-dev 2022-04-22 16:26:28 +00:00
Tyler Trephan
e438bd358b Added min/max rates for EV_CHARGE_TIME_REMAINING
Test: atest CarPropertyManagerTest
Bug: 229118601
Change-Id: I6adedf1def47486ebe3cf9d12abe2bd65e0d6d48
2022-04-21 20:30:17 +00:00
Treehugger Robot
d5bc92e9fe Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: c5fc884ed6 am: 6a54fb8ff3 am: 9b667b38fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2070507

Change-Id: I1bf572be1d2092711340dc6883844fddd691fa52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 17:13:11 +00:00
TreeHugger Robot
0e26e4a89d Merge "Fix EVS VTS test cases" into tm-dev 2022-04-21 01:27:01 +00:00
Bob Badour
0d8b0d734a [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  automotive/sv/1.0/default/tests/fuzzer/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ib5e5d3e52aa5ce4c3b0141619e0023c963ec7e0d
2022-04-20 18:25:58 -07:00
Chris Weir
b50f9aa1a9 Merge "Unregistering HIDL interfaces breaks VTS" into tm-dev 2022-04-20 17:29:23 +00:00
Jiyong Park
18ba537008 Merge changes from topic "aidl_freeze_tm" into tm-dev
* changes:
  V1 is the latest version of android.media.audio.common.types
  Freeze AIDL APIs for TM
2022-04-20 15:55:20 +00:00
Chris Weir
a811822a7b Unregistering HIDL interfaces breaks VTS
Based on some back and forth on the internal IDL discuss group, it
sounds like we can't unregister interfaces anymore if they're defined in
the manifest. The CAN interface behind the HIDL interface will still be
taken down correctly, but this will get rid of the failing attempt to
bring down the HIDL interface.

Bug: 213841914
Bug: 213843613
Test: VtsHalCanBusV1_0TargetTest
Test: VtsHalCanControllerV1_0TargetTest
Test: VtsHalCanBusVirtualV1_0TargetTest
Change-Id: Iae4d6a650c30adacdc7c51140e0295915b516833
(cherry picked from commit d349f1d521)
2022-04-19 16:23:25 +00:00