Commit graph

52954 commits

Author SHA1 Message Date
Sarah Chin
fc35c0797e Backport VTS fixes to previous test versions
Network scan check periodicity only if scan type is PERIODIC.
Fix MCC/MNC checks to handle null strings.

Test: atest VTS
Bug: 259674407
Change-Id: I77e0706f413ce9defb174f00ee145dcc01f5d780
2023-04-28 11:12:01 -07:00
Sarah Kim
a4ed84bab9 Merge "Fix broken and flaky VTS tests" into udc-dev 2023-04-26 00:10:18 +00:00
Lei Ju
d8a69b8b83 Merge "Update CHRE HAL VTS test" into udc-dev 2023-04-25 21:58:26 +00:00
Treehugger Robot
ee26952e10 Merge "Freeze android.hardware.tetheroffload" into udc-dev 2023-04-25 20:41:35 +00: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
Devin Moore
bc279868ec Freeze android.hardware.tetheroffload
Removed the "owner" field in the aidl_interface module so it is frozen
with the rest of the interfaces in the future.

Test: m android.hardware.tetheroffload-freeze-api
Bug: 279471180
Change-Id: I15bbeb74a58211cc7037ba60c1a38c02bd742984
2023-04-25 16:45:28 +00:00
Lei Ju
e6b1f319c0 Update CHRE HAL VTS test
Remove the tests related to null callbacks and the restriction of
nonempty preloaded nanoapps.

Bug: 279220092
Test: VTS test and manual test

Change-Id: Iaa8918f398e71ba25d47c64bd36e73746bf09b84
2023-04-25 09:42:34 -07:00
caijq
6e209a0ec9 CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed. am: bebdb2bef9 am: a5ca70ca8a am: 6110494632 am: 5d9903e5cc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2554990

Change-Id: I0681623f7bd595482e3649a754e6e2a71b0a68ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 13:14:54 +00:00
caijq
5d9903e5cc CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed. am: bebdb2bef9 am: a5ca70ca8a am: 6110494632
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2554990

Change-Id: I7d671dc6c07df4d6f34a2d4f73122b6c04ee8354
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 12:35:25 +00:00
caijq
fa7f2cd9ac CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed. am: bebdb2bef9 am: a5ca70ca8a am: c8b231198d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2554990

Change-Id: I0337218c18e28faacbc633624d7088ee893152f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 12:33:07 +00:00
caijq
6110494632 CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed. am: bebdb2bef9 am: a5ca70ca8a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2554990

Change-Id: Ifb39ea1e058cc5798cb65d9feb38dcf087385399
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 11:52:59 +00:00
caijq
c8b231198d CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed. am: bebdb2bef9 am: a5ca70ca8a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2554990

Change-Id: I9df55385abcd55674cb3363f2650af9e9bca9439
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 11:52:03 +00:00
caijq
a5ca70ca8a CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed. am: bebdb2bef9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2554990

Change-Id: Ib4b14e07a1bdd112a64a7c117719d6e5b18384a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 04:29:05 +00:00
Huihong Luo
b7ffedf76a Merge "Reset pending commands" into udc-dev 2023-04-24 16:53:57 +00:00
Gabriel Biren
51d0682216 Merge "Add a lock around any public methods in the AidlCallbackHandler." into udc-dev 2023-04-24 15:29:28 +00:00
caijq
bebdb2bef9 CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed.
If CEC DUT is a TV device type,we should reset logical address to tv,
and then set message.initiator to tv.

Bug: 277715429
Test: run VTS

Change-Id: If7f7b9ddce182e5de80c91a30c4ec18294459fbf
Signed-off-by: caijq <callen.cai@rock-chips.com>
2023-04-24 08:34:39 +00:00
Huihong Luo
651806f263 Reset pending commands
Allow takePendingCommands to have ownership for mComamnds so commands
are reset on each call. Make reset method to be private.

Bug: 273525126
Test: manual
Change-Id: Ifecad733e5e85d475825969296ddf68081ce9e60
2023-04-22 04:09:10 +00:00
Nathalie Le Clair
1f92ae0544 Add OWNERS to CEC HIDL HAL directory am: 5f86bf5794 am: 3995f78c7c am: 2f166976ee am: f2815946b7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2553975

Change-Id: I85ff9c84e9f3ec1cd0a4d1137f43a61826cc8c99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 02:41:43 +00:00
Nathalie Le Clair
f2815946b7 Add OWNERS to CEC HIDL HAL directory am: 5f86bf5794 am: 3995f78c7c am: 2f166976ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2553975

Change-Id: I59e46f773b88a4d416df70708eaeb06ef7cc10e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 02:03:04 +00:00
Nathalie Le Clair
c4f21bb76b Add OWNERS to CEC HIDL HAL directory am: 5f86bf5794 am: 3995f78c7c am: 036bd23e73
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2553975

Change-Id: I2198a6d0078e07e5c2a9c34c8b74480eeb8695f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 01:59:51 +00:00
Nathalie Le Clair
2f166976ee Add OWNERS to CEC HIDL HAL directory am: 5f86bf5794 am: 3995f78c7c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2553975

Change-Id: Id8304268ca8b61532b764f7f2ed752343aacfb08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 01:19:47 +00:00
Nathalie Le Clair
036bd23e73 Add OWNERS to CEC HIDL HAL directory am: 5f86bf5794 am: 3995f78c7c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2553975

Change-Id: I64955cab7ff2af6ef5c46df5b209dc3282f49a49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 01:18:54 +00:00
Nathalie Le Clair
3995f78c7c Add OWNERS to CEC HIDL HAL directory am: 5f86bf5794
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2553975

Change-Id: I119445cc8d61616adf5a2d18388653e8cbe04478
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 00:33:54 +00:00
Treehugger Robot
6cc06e265a Merge "Add cpp20 to input vts test" into udc-dev 2023-04-21 20:44:26 +00:00
Gabriel Biren
fce371b9b5 Add a lock around any public methods in
the AidlCallbackHandler.

Bug: 278433745
Test: Start wifi.
Change-Id: I2b143b9e8671eaf8c63c5623c09d2a04f914a772
2023-04-21 18:15:16 +00:00
Nathalie Le Clair
99a74b845d Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." am: c054e7fda9 am: 2c01719f44 am: 1ef37ce895
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2535500

Change-Id: If5df9c663e3cb36b315b82d271a5c0fc63d2d9e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 15:51:08 +00:00
Nathalie Le Clair
1ef37ce895 Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." am: c054e7fda9 am: 2c01719f44
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2535500

Change-Id: Ib9e5ac21f23b5eb852e12cdf5f00c5316fd3f05b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 15:08:27 +00:00
Nathalie Le Clair
2c01719f44 Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." am: c054e7fda9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2535500

Change-Id: I7dfd717ddd0635fd8fa56cc1058ad2c0c7ca28b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 14:29:30 +00:00
Nathalie Le Clair
5f86bf5794 Add OWNERS to CEC HIDL HAL directory
Bug: 277715429
Test: none

Change-Id: I3ca74319cc4d1f49a48c9e9f83a0ae402f56b782
(cherry picked from commit 683a0fc078)
2023-04-21 14:03:55 +00:00
Nathalie Le Clair
c054e7fda9 Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." 2023-04-21 14:02:57 +00:00
Treehugger Robot
57e4a8f1ef Merge "Implement ADAS properties in emulator VHAL" into udc-dev 2023-04-21 02:37:29 +00:00
Siarhei Vishniakou
778802cfbc Add cpp20 to input vts test
We need this to take advantage of default-generated comparison
operators.

Bug: 278299254
Test: m VtsHalInputClassifierV1_0TargetTest
Change-Id: Ic03af541f2d1816efa3a1065b34b8782497db46e
2023-04-21 01:51:49 +00: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
Sarah Chin
757a75879f Fix broken and flaky VTS tests
1. nvResetConfig takes some time to reset the modem, causing subsequent
   tests to fail with a timeout since the modem is unavailabe.
   Add a timeout after nvResetConfig to allow the modem to be up again
   before running the next test.
2. Remove invalid errors for start/stopKeepalive. These tests should
   fail due to invalid arguments, so remove NONE as a possible error.
   RADIO_NOT_AVAILABLE should also be removed.
3. Fix incorrect startNetworkScan_InvalidInterval tests, since we only
   check the interval when the scan type is PERIODIC.
4. Save and reset the previous allowed network type bitmap after the
   test. Combine get/set into one test that tests both behaviors.
5. Fix checks for MCC/MNC in getDataRegistrationState

Bug: 277626718
Bug: 240953393
Bug: 264913330
Bug: 259674407
Bug: 242801688
Test: atest VtsHalRadioTargetTest
Change-Id: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
2023-04-20 16:37:10 -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
Diya Bera
8aaa3dc61e [automerger skipped] Merge "Adding owners" am: 00c56f8f36 am: ed471bd445 am: 5b5494b3e4 -s ours
am skip reason: Merged-In I586787a31cab0d32d14d43f5f84ceb1e14087aa4 with SHA-1 8200cff2e4 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2547950

Change-Id: Iaef373eb383e7a4266a7397387d7381954f99f82
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 22:24:15 +00:00
Treehugger Robot
cee699a37b Merge "graphics/common: Link to the Jpeg/R format specification" into udc-dev 2023-04-20 21:52:07 +00:00
Diya Bera
5b5494b3e4 Merge "Adding owners" am: 00c56f8f36 am: ed471bd445
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2547950

Change-Id: I27b4fc82bbea8093eedeb429a39621cfa6030c9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 21:42:35 +00:00
Diya Bera
ed471bd445 Merge "Adding owners" am: 00c56f8f36
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2547950

Change-Id: I2e05a6341ed553cd7986ee6b4994140c43310887
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 20:58:17 +00:00
Diya Bera
00c56f8f36 Merge "Adding owners" 2023-04-20 20:02:26 +00:00
Nathalie Le Clair
9c95ea9b7f Add OWNERS to CEC HIDL HAL directory am: 683a0fc078 am: 0746c1b1bc am: 6ad971501b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2550510

Change-Id: I6078124d1d67fcc7678c6ec4af5dd8b12af393cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 17:26:34 +00:00
Nathalie Le Clair
6ad971501b Add OWNERS to CEC HIDL HAL directory am: 683a0fc078 am: 0746c1b1bc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2550510

Change-Id: Ic1014a15b639d09f2e950771c2f418519d36d8f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 16:49:40 +00:00
Nathalie Le Clair
0746c1b1bc Add OWNERS to CEC HIDL HAL directory am: 683a0fc078
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2550510

Change-Id: Ia81af0f3402d65d535e854b482d21984418bb1b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 16:10:44 +00:00
caijq
d936eb4589 CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed.
If CEC DUT is a TV device type,we should reset logical address to tv ,
 and then set message.initiator to tv.

Change-Id: If7f7b9ddce182e5de80c91a30c4ec18294459fbf
Signed-off-by: caijq <callen.cai@rock-chips.com>
2023-04-20 07:46:15 +00:00
Nathalie Le Clair
683a0fc078 Add OWNERS to CEC HIDL HAL directory
Bug: 277715429
Test: none

Change-Id: I3ca74319cc4d1f49a48c9e9f83a0ae402f56b782
2023-04-20 07:45:06 +00:00
Mikhail Naganov
d1c48c81c1 [automerger skipped] Update VtsHalAudioPolicyV1_0TargetTest to match XML changes am: 55dd33f14f -s ours am: e1158fa1ba -s ours am: 155ac8ef64 -s ours am: b6b6041ac9 -s ours am: c1a9b94264 -s ours am: fbbd52bbce -s ours am: ab479c30ab -s ours
am skip reason: Merged-In Id581e290740a3c00ba3719a339c9bc47d730f35c with SHA-1 afff851110 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2544670

Change-Id: Ifa4c081e703bba0d728ab61760e0b64a25077b91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 05:32:49 +00:00
Mikhail Naganov
ab479c30ab [automerger skipped] Update VtsHalAudioPolicyV1_0TargetTest to match XML changes am: 55dd33f14f -s ours am: e1158fa1ba -s ours am: 155ac8ef64 -s ours am: b6b6041ac9 -s ours am: c1a9b94264 -s ours am: fbbd52bbce -s ours
am skip reason: Merged-In Id581e290740a3c00ba3719a339c9bc47d730f35c with SHA-1 afff851110 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2544670

Change-Id: I67d04a4933d123aedf1c970df4221df2efde4ee6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 04:51:41 +00:00
Mikhail Naganov
643d503a6c [automerger skipped] Update VtsHalAudioPolicyV1_0TargetTest to match XML changes am: 55dd33f14f -s ours am: e1158fa1ba -s ours am: 155ac8ef64 -s ours am: 8353166760 -s ours am: 730b62763d -s ours am: 29b718ec0b -s ours
am skip reason: Merged-In Id581e290740a3c00ba3719a339c9bc47d730f35c with SHA-1 afff851110 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2544670

Change-Id: Iac175561eaeae14208cb7e920f52c91b53f5e212
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 04:28:27 +00:00
Mikhail Naganov
fbbd52bbce [automerger skipped] Update VtsHalAudioPolicyV1_0TargetTest to match XML changes am: 55dd33f14f -s ours am: e1158fa1ba -s ours am: 155ac8ef64 -s ours am: b6b6041ac9 -s ours am: c1a9b94264 -s ours
am skip reason: Merged-In Id581e290740a3c00ba3719a339c9bc47d730f35c with SHA-1 afff851110 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2544670

Change-Id: I24bfeb865ffdee9f86da438b9dcab09252a3b19d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 04:12:32 +00:00
Mikhail Naganov
459f411a7e [automerger skipped] Update VtsHalAudioPolicyV1_0TargetTest to match XML changes am: 55dd33f14f -s ours am: e1158fa1ba -s ours am: 155ac8ef64 -s ours am: b6b6041ac9 -s ours am: 092507af66 -s ours
am skip reason: Merged-In Id581e290740a3c00ba3719a339c9bc47d730f35c with SHA-1 afff851110 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2544670

Change-Id: I9091834a7975fa497db468fc94248d92f2cff6ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 04:09:54 +00:00