Commit Graph

47652 Commits

Author SHA1 Message Date
Sarah Chin
baf5a2c4ff [automerger skipped] Update VTS tests with EUTRAN instead of GERAN am: e6c4be215a -s ours
am skip reason: Merged-In Ib36b171e33451bf0c9adc0b065a4c74df357e77e with SHA-1 947f486737 is already in history

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

Change-Id: I88b4a1d105a917aafef1256fb0e63a06af00ef6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-16 00:19:51 +00:00
Sarah Kim
481316f2d6 Merge "Update VTS tests with EUTRAN instead of GERAN" into main 2023-09-15 21:59:58 +00:00
Sarah Chin
6b5472fa72 [automerger skipped] Fix broken and flaky VTS tests am: d3f69217e0 -s ours
am skip reason: Merged-In Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6 with SHA-1 7f3bd1792f is already in history

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

Change-Id: I03dbd0f596081c528978214a3888c82f72e4e3a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 21:38:45 +00:00
Sarah Chin
e6c4be215a Update VTS tests with EUTRAN instead of GERAN
These tests were created for IRadio 1.2 when all devices supported GSM,
and REQUEST_NOT_SUPPORTED was valid for devices that didn't support GSM. Change the VTS logic to test EUTRAN instead of GERAN.
Remove REQUEST_NOT_SUPPORTED for tests now without GERAN and add REQUEST_NOT_SUPPORTED for all GERAN-specific tests.

Test: atest VtsHalRadioTargetTest
Bug: 294965245
Change-Id: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
Merged-In: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
2023-09-15 21:10:07 +00:00
Sarah Chin
947f486737 Update VTS tests with EUTRAN instead of GERAN
These tests were created for IRadio 1.2 when all devices supported GSM,
and REQUEST_NOT_SUPPORTED was valid for devices that didn't support GSM. Change the VTS logic to test EUTRAN instead of GERAN.
Remove REQUEST_NOT_SUPPORTED for tests now without GERAN and add REQUEST_NOT_SUPPORTED for all GERAN-specific tests.

Test: atest VtsHalRadioTargetTest
Bug: 294965245
Change-Id: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
Merged-In: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
2023-09-15 21:10:01 +00:00
Sarah Chin
d3f69217e0 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
Merged-In: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
(cherry picked from commit ddaea2e5a4)
2023-09-15 20:08:27 +00:00
David Drysdale
2ef3749cba Merge "KeyMint VTS: re-order auth failure arms" into main 2023-09-15 10:36:47 +00:00
David Drysdale
c91d05699f Merge "KeyMint: check missing EC_CURVE on v3+" into main 2023-09-15 09:59:25 +00:00
Mikhail Naganov
a39e854ef5 Merge "audio: Fix handling of external devices disconnection" into main 2023-09-14 20:02:48 +00:00
Treehugger Robot
02b33df6b8 Merge "media.c2: Enable BaseBlock to parcel AHardwareBuffer" into main 2023-09-14 18:16:02 +00:00
David Drysdale
9ed7d2c5bf KeyMint: check missing EC_CURVE on v3+
The original change to add this test didn't make it into the Android 13
version of the VTS test, so the version gate needs to be updated to be
v3+

Bug: 292318194
Test: VtsAidlKeyMintTargetTest --gtest_filter="*EcdsaMissingCurve*"
Change-Id: I94bf816688e57c7c04893a23cf0399129de94229
2023-09-14 15:16:27 +01:00
Sebastian Pickl
38a85e778c Merge "Revert "Add CAS HAL APEX"" into main 2023-09-14 12:26:38 +00:00
Sebastian Pickl
8b19286ce3 Revert "Add CAS HAL APEX"
Revert submission 2742398-cas-apex

Reason for revert: culprit for flake b/300311777, verified with go/abtd with 15 runs to make sure the flake is gone https://android-build.googleplex.com/builds/abtd/run/L46500000963034919

Bug:300311777

Reverted changes: /q/submissionid:2742398-cas-apex

Change-Id: Ia13d761d7df501fb30170a69462427198bcf924d
2023-09-14 12:25:33 +00:00
David Drysdale
a35699cb5c KeyMint VTS: re-order auth failure arms
Allow for devices that claim to need external timestamps, but don't.

Test: VtsAidlKeyMintTargetTest
Bug: 300211206
Change-Id: Ie450d9969c337d5274502f3600e14c0b481e8b34
2023-09-14 11:34:15 +01:00
Jooyung Han
d3c04fd6c3 Merge "Add OWNERS file for apexkey" into main 2023-09-14 03:56:08 +00:00
Jooyung Han
1f05f9d3a1 Merge changes from topics "tetheroffload-hal-apex", "thermal-hal-apex" into main
* changes:
  Add thermal HAL APEX
  Add tetheroffload HAL APEX
2023-09-14 03:39:36 +00:00
Sungtak Lee
22c2ea079b media.c2: Enable BaseBlock to parcel AHardwareBuffer
Enable c2 interface to send/receive AHardwareBuffer.

Test: m
Bug: 254050314
Change-Id: I3289d891fb0eae49652e3e88b77070f6762fc5b1
2023-09-14 03:04:47 +00:00
Mikhail Naganov
0e128dd3fe audio: Fix handling of external devices disconnection
A mix port can be patched to multiple connected device ports. Thus, when
disconnecting an external device and removing the connected port, the
profiles of the mix port can only be cleared iff there are no more
connected device ports patched to it, and it did not have profiles prior to
connection of the first device.

Enhanced VTS tests to catch this problem in the HAL implementations. Also,
ensure that audio ports and audio routes do not change after the test
finishes. This ensures that tests can't affect each other.

Bug: 298175108
Test: atest audiosystem_tests
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ia666b874958fb260513fc2b8cd20a823953ec679
2023-09-13 19:41:46 -07:00
Eric Biggers
2b2e880848 Merge "IWeaver.aidl: document that throttling must be per-slot" into main 2023-09-14 02:40:30 +00:00
Devin Moore
f426201991 Add the "virtual" instance for face HAL retroactively
Test: m
Bug: 300320120
Change-Id: I395865e9af3679d8cb6cd888dfc3438fa3389f95
2023-09-13 22:19:54 +00:00
Eric Biggers
8ceaa6eac8 IWeaver.aidl: document that throttling must be per-slot
Change-Id: Ice26840d22fa55aaa472eec53e6962d6bc8bdd1d
2023-09-13 22:12:23 +00:00
Devin Moore
89f45e9573 Add OWNERS file for apexkey
Test: none
Bug: 296950573
Change-Id: Id3350c67b799cf3427100225543b0aa570e1d951
2023-09-13 21:18:46 +00:00
Tomasz Wasilczyk
ecc3e1af82 Merge "Don't depend on String8 cast to C string [audio]" into main 2023-09-13 19:00:43 +00:00
Treehugger Robot
ab20a682ca Merge "Add OWNERS files to support dirs" into main 2023-09-13 18:35:37 +00:00
Devin Moore
d5b6d1e516 Merge "Merge OWNERS files for light" into main 2023-09-13 18:34:04 +00:00
Devin Moore
8b33b35a51 Merge "Merge OWNERS files for rebootescrow" into main 2023-09-13 18:31:01 +00:00
Treehugger Robot
d105a13b24 Merge "AHAL: fix stack overflow when connecting usb device." into main 2023-09-13 17:04:34 +00:00
Tomasz Wasilczyk
610889508f Merge "Don't depend on String8 cast to C string [cas]" into main 2023-09-13 15:48:24 +00:00
Zhanglong Xia
71d812a897 Merge "Rename threadnetwork-service-sim.rc to threadnetwork-service.rc" into main 2023-09-13 14:20:36 +00:00
Zhanglong Xia
c1c8836d22 Rename threadnetwork-service-sim.rc to threadnetwork-service.rc
Bug: 297800630
Test: Build and run Thread Network HAL on cuttlefish.
Change-Id: Id71481c125c752fefac2cedea098cb8b4679c3be
2023-09-13 18:19:52 +08:00
Tomasz Wasilczyk
11a55db7c9 Don't depend on String8 cast to C string [cas]
Bug: 295394788
Test: m checkbuild
Change-Id: I82c94f0a720957c443f92b030214c6d2c47bf009
2023-09-13 04:24:54 +00:00
Tomasz Wasilczyk
98d280bc29 Don't depend on String8 cast to C string [audio]
Bug: 295394788
Test: m checkbuild
Change-Id: I73acbfad6da4f18566f6b11889e83679deeaa2b8
2023-09-13 04:22:00 +00:00
Jooyung Han
7a16e48e48 Add thermal HAL APEX
This is used by Cuttlefish as of now.

Bug: 300011386
Test: VtsHalThermalTargetTest
Change-Id: I814d007df40d77e7fd723fd67687ef663dbb050c
2023-09-13 13:12:53 +09:00
Jooyung Han
d254e37e32 Add tetheroffload HAL APEX
This is used by Cuttlefish as of now.

Bug: 300011461
Test: VtsHalTetheroffloadTargetTest
Change-Id: I3cd83d4011636e1ebfca5d20ed4ff7c527d5a63f
2023-09-13 13:11:37 +09:00
Jooyung Han
d26b6cf395 Merge "Add CAS HAL APEX" into main 2023-09-13 00:51:34 +00:00
jiabin
3580f42df4 AHAL: fix stack overflow when connecting usb device.
Bug: 300146600
Test: manually
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1e467c28493e6306dc48d5822db8ea7cc7d28fbc)
Merged-In: Ic904a5f9d4d61a2b7dc896ed593c12da4793f1cb
Change-Id: Ic904a5f9d4d61a2b7dc896ed593c12da4793f1cb
2023-09-12 23:11:16 +00:00
Jeongik Cha
761e419f0e Merge "Define POLICYVERS" into main 2023-09-12 23:04:34 +00:00
Mikhail Naganov
f0ffa20975 Merge "audio: Mitigate double receiving of the "exit" command" into main 2023-09-12 21:41:40 +00:00
Mikhail Naganov
63f2d84e68 Merge changes I19a08bf2,Ibab914e5 into main
* changes:
  Audio : Add 3 VTS test cases for remote submix module
  r_submix : Fix minor issues in AIDL implementation
2023-09-12 20:37:33 +00:00
Treehugger Robot
0be0bf1337 Merge "Merge OWNERS files for authsecret" into main 2023-09-12 20:33:41 +00:00
Treehugger Robot
4aac32f476 Merge "Merge OWNERS files for oemlock" into main 2023-09-12 20:33:31 +00:00
Treehugger Robot
eb3b4ef683 Merge "Merge OWNERS files for vr" into main 2023-09-12 20:33:07 +00:00
Mikhail Naganov
0e7bcae462 audio: Mitigate double receiving of the "exit" command
In rare cases, a worker thread from a new stream created
via StreamSwitcher can read again from the command FMQ
the "exit" command which was sent to the worker of
the previous stream.

The underlying reason for that has to be investigated.
For now, mitigate the issue by salting the cookie of
the "exit" command with the worker's TID.

Bug: 300130515
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ie7d2e847e8b39414ffd31afd64e32d4c9a292c03
2023-09-12 12:45:20 -07:00
Shraddha Basantwani
343db5e85e Audio : Add 3 VTS test cases for remote submix module
1. OutputDoesNotBlockWhenNoInput
2. OutputDoesNotBlockWhenInputStuck
3. OutputAndInput

Bug: 286914845
Test: atest AudioModuleRemoteSubmix

Change-Id: I19a08bf2bf39131a70a867280c758b5ef001c024
2023-09-12 16:40:06 +00:00
Jeongik Cha
05f5dc325c Define POLICYVERS
Bug: 296875906
Bug: 289368466
Test: check kernel-sepolicy-version field in
  system/etc/vintf/compatibility_matrix.device.xml
Change-Id: I9b769db3649885a7b602c8ce9351b86472c84936
2023-09-12 22:10:00 +09:00
David Drysdale
05f682fd3d Merge "rkp: pull out remaining CDDL and make compliant" into main 2023-09-12 07:57:27 +00:00
Shraddha Basantwani
95f9232923 r_submix : Fix minor issues in AIDL implementation
1. Update refinePosition for output stream
2. Add missing exitStandby on transfer
3. Add check for availableToRead in read functionality

Bug: 286914845
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ibab914e5e09474c2b55a6c64cc004ebc1bb6cb47
2023-09-12 05:43:18 +00:00
François Gaffie
5605292a7f [automerger skipped] Audio: add system usage to audio policy engine schemas am: d2ab30cbe9 am: 2c17a95ff2 am: 8f6b57b5a8 -s ours
am skip reason: Merged-In I49a8d3cfeb45eddc95ad6ab4a33b0adf0585cde2 with SHA-1 acd4a677f0 is already in history

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

Change-Id: If7b194bc86d32e8e368642a83f05725c69b6f01a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 20:22:59 +00:00
François Gaffie
8f6b57b5a8 Audio: add system usage to audio policy engine schemas am: d2ab30cbe9 am: 2c17a95ff2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2719503

Change-Id: I5c145b0cc13ba58251547149cd8bfe795ef03d05
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 19:37:07 +00:00
François Gaffie
2c17a95ff2 Audio: add system usage to audio policy engine schemas am: d2ab30cbe9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2719503

Change-Id: I99ef82c7733eeffcbbb92e538a76b339e051f7c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 18:47:43 +00:00