Commit Graph

59226 Commits

Author SHA1 Message Date
Weilin Xu
0e66031666 Merge "Don't mark SAT/DT as failures" into main am: c22a8ddcb5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2907438

Change-Id: I34514c7c210f465100cf4f8c959f5fb23bf9f165
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 23:20:10 +00:00
Weilin Xu
c22a8ddcb5 Merge "Don't mark SAT/DT as failures" into main 2024-01-12 22:47:33 +00:00
Treehugger Robot
2681bdedf0 Merge "audio: Skip AudioModuleRemoteSubmixTest on Android U" into main am: 7f25c70740
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2908298

Change-Id: Ic9ce909b32ce8fc77388569d613e483d01ce8b8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 21:34:08 +00:00
Shunkai Yao
4aaefb8831 Merge changes from topic "effect_reopen" into main am: 3eb2a2c14f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2902175

Change-Id: I6f6ab2074ccf182d06d320289cfbd1068efa52f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 21:32:44 +00:00
Shunkai Yao
2243d42834 Effect AIDL: add IEffect.reopen to update the effect instances data FMQ am: 5b15e005a9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2897678

Change-Id: I407d06e513f55e445dab16178be16ff0e25318e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 21:32:39 +00:00
Andres Schafhauser
19a97324ff [automerger skipped] APF exempt list for TVs to use hardware feature am: 393ca9ffc2 -s ours am: f005be18db -s ours
am skip reason: Merged-In I47453e7ad009b08aadf7c09fc144d2166ef9991b with SHA-1 f91d7adfc4 is already in history

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

Change-Id: I3c64b7230e38e1fc2d9a7ec34363eec8cc3161a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 21:25:50 +00:00
Treehugger Robot
7f25c70740 Merge "audio: Skip AudioModuleRemoteSubmixTest on Android U" into main 2024-01-12 21:10:04 +00:00
Shunkai Yao
3eb2a2c14f Merge changes from topic "effect_reopen" into main
* changes:
  Effect AIDL: implement IEffect.reopen
  Effect AIDL: add IEffect.reopen to update the effect instances data FMQ
2024-01-12 21:06:08 +00:00
Andres Schafhauser
f005be18db [automerger skipped] APF exempt list for TVs to use hardware feature am: 393ca9ffc2 -s ours
am skip reason: Merged-In I47453e7ad009b08aadf7c09fc144d2166ef9991b with SHA-1 f91d7adfc4 is already in history

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

Change-Id: I4bca26510f131acf6b59f30574fdb6e0ad958da6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 20:08:37 +00:00
V,Anilkumar
86f31e76b0 Don't mark SAT/DT as failures
If SAT/DT is not supported, should be marked as
ignored but they are marked as failures.
If no support for SAT/DT the implementation returns INVALID_ARGUMENTS
and test is calling the printSkipped function.
Instead of calling printSkipped, if GTEST_SKIP() called
unsupported TC results are parsed properly and test cases will move
to ignored category

Bug: 191229970
Test: VtsHalBroadcastradioV1_0TargetTest

Signed-off-by: V,Anilkumar <anilkumar.v@intel.com>
Change-Id: I4ed7828757a6cc8b83bae989e11289da1a3e814f
2024-01-12 19:31:12 +00:00
Treehugger Robot
be7b1f22f0 Merge "Add android.virtualdevice.cts.VirtualAudioTest to postsubmit" into main am: 1fd5aef410
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2907295

Change-Id: I52c160e2146c85ea7a280b2cc10ba2729362fb8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 19:01:25 +00:00
Mikhail Naganov
b2dab17b1e audio: Skip AudioModuleRemoteSubmixTest on Android U
This test was developed after Android U was cut, and it assumes
the new way of encoding of the remote submix device type.

Bug: 300181540
Test: run `atest VtsHalAudioCoreTargetTest` on UDC GSI
Change-Id: If53f92a55734e18a2acce6c790f9e5e259246684
2024-01-12 10:38:03 -08:00
Treehugger Robot
1fd5aef410 Merge "Add android.virtualdevice.cts.VirtualAudioTest to postsubmit" into main 2024-01-12 18:04:06 +00:00
Shikha Panwar
d3ae4e4258 Merge "Sk VTS: Policy gating & Out of Seq req rejection" into main am: c6cf62d113
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2904307

Change-Id: I489abe98380ae626cad2257f026e3345f524a63e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 17:27:17 +00:00
Shikha Panwar
6710a7b129 Merge "Secretkeeper: VTS to use dice_chain as identity" into main am: 6d5bb1eeaf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2896100

Change-Id: I00994465eba938671f5b85c2da030fb8ee1bbba9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 17:26:36 +00:00
Shunkai Yao
65c7c7051d Effect AIDL: implement IEffect.reopen
- add IEffect.reopen implementation
- now data MQs can update at runtime, sync
  EffectContext access
- add clang thread annotation

Bug: 302036943
Test: atest VtsHalAudioEffectTargetTest
Test: build and test audio effect on Pixel
Change-Id: I3e9fdc2d5eb50b8c1377e0da75573f0eba7ea3f1
Merged-In: I3e9fdc2d5eb50b8c1377e0da75573f0eba7ea3f1
2024-01-12 17:23:28 +00:00
Shunkai Yao
5b15e005a9 Effect AIDL: add IEffect.reopen to update the effect instances data FMQ
The effect instance may choose to reallocate the input data message
queue under specific conditions. For example, when the input format
changes, requiring an update to the data message queue allocated during
the open time.
In such cases, the effect instance can destroy the existing data message
queue, when the audio framework see a valid status MQ and invalid data MQ,
it call reopen to get the new data message queue.

Bug: 302036943
Test: m android.hardware.audio.effect-update-api, m
Change-Id: Ia245b154176f64bc3cc6e6049bca4f9c68ad482d
Merged-In: Ia245b154176f64bc3cc6e6049bca4f9c68ad482d
2024-01-12 17:23:14 +00:00
Shikha Panwar
c6cf62d113 Merge "Sk VTS: Policy gating & Out of Seq req rejection" into main 2024-01-12 16:49:49 +00:00
Shikha Panwar
6d5bb1eeaf Merge "Secretkeeper: VTS to use dice_chain as identity" into main 2024-01-12 16:49:09 +00:00
Shikha Panwar
8a262b2975 Merge "InitialPayload of ExplicitKeyDiceCertChain" into main am: 62b6504c33
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2906515

Change-Id: I2d04780a1be9207b539fd4a76d96542cbd987d49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 11:15:40 +00:00
Shikha Panwar
62b6504c33 Merge "InitialPayload of ExplicitKeyDiceCertChain" into main 2024-01-12 10:46:21 +00:00
liuxiangjun
66b8d373e4 Remove the SIM card status condition check and add accepted possible errors am: 8877018da4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2884866

Change-Id: I006618e3722a9fd36d2ed67786547666d841cffa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 10:13:27 +00:00
Shikha Panwar
8a3a29dd5a Sk VTS: Policy gating & Out of Seq req rejection
1. Add a test to check Access control in Secretkeeper HAL: Construct
   dice chains with different security version and check that the secret
   is accessible with upgraded dice chain && DicePolicyError is thrown
   when the access is requested using a dice chain with lower security
   version.

2. Re-enable test #replay_protection_out_of_seq_req_not_accepted - This
   was disabled because the method would not panic when run on
   devices without Sk HAL, causing test failure. Refactor the test to
   check the error instead of unwrapping.

Many methods of SkClient struct are refactored to return Error (also
introduced in this patch) instead of panicking on error.

Test: atest VtsSecretkeeperTargetTest
Bug: 291224769
Bug: 317416663
Change-Id: I646783e034064f81625a978a2bcacf143ff60c87
2024-01-12 09:51:08 +00:00
Shikha Panwar
67755270ad Merge "VTS: Use encoding of policy on explicit key dice" into main am: 91fd13d579
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2890552

Change-Id: I62d6891d71cafb0766025453727336e82551f8b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 08:34:48 +00:00
liuxiangjun
8877018da4 Remove the SIM card status condition check and add accepted possible errors
For devices not in LTE service, the vts test returns MODEM_ERR is an expected result

Bug:317314512

Test:
VtsHalRadioTargetTest
PerInstance/RadioNetworkTest#setNetworkSelectionModeManual/0_android_hardware_radio_network_IRadioNetwork_slot1
PerInstance/RadioNetworkTest#setNetworkSelectionModeManual/1_android_hardware_radio_network_IRadioNetwork_slot2

Change-Id: I75414ba18be93707310cace21b52508edfc33a20
Signed-off-by: liuxiangjun <liuxiangjun3@xiaomi.com>
2024-01-12 08:09:31 +00:00
Shikha Panwar
91fd13d579 Merge "VTS: Use encoding of policy on explicit key dice" into main 2024-01-12 07:57:02 +00:00
Shikha Panwar
fc0dbfee70 InitialPayload of ExplicitKeyDiceCertChain
Change the spec for DiceCertChainInitialPayload, removing the map &
directly equating it to bstr .cbor PubKey. Also mandate it to stick to
Core Deterministic Encoding Requirements. The deterministic encoding is
essential to ensure DicePolicies can be applied on the root key.

Test: Builds
Bug: 319613231
Change-Id: I5e12ecbcbae84ae608d784a12f8ae4afc49b5a9d
2024-01-12 06:32:08 +00:00
Treehugger Robot
0776fdb744 Merge "APF exempt list for TVs to use hardware feature" into main am: 23776d5001
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2906619

Change-Id: I5b2a5fa155262c12c85105766d3181423068466c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 05:52:53 +00:00
Bao Do
7560398434 Merge "Fix test run for GSI" into main am: 9514f9fc2e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2884428

Change-Id: Ie23499416f416fa0cfbb7bde641206895c425d8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 05:52:43 +00:00
Treehugger Robot
23776d5001 Merge "APF exempt list for TVs to use hardware feature" into main 2024-01-12 05:48:09 +00:00
Bao Do
9514f9fc2e Merge "Fix test run for GSI" into main 2024-01-12 05:41:28 +00:00
Treehugger Robot
3b7d4252db Merge "Per NCI spec there is no need to wait for credits" into main am: d1386c8c18
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2906620

Change-Id: Ia936c0617c9c6e359dbc3150ddfbd7c9845304b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-12 05:39:08 +00:00
Treehugger Robot
d1386c8c18 Merge "Per NCI spec there is no need to wait for credits" into main 2024-01-12 04:37:31 +00:00
Bao Do
b487a85993 Fix test run for GSI
GSI used mixed testing procedures, making some HFP session
and LE Audio related functions unavailable when testing with the
latest VTS. This fix enable HAL version checking when testing.

Bug: 315338603
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Idb0a780a67857c76c93b13f7b3a64436f6fc647f
2024-01-12 11:13:19 +08:00
Alisher Alikhodjaev
46d9630125 Per NCI spec there is no need to wait for credits
One case was missed in the previous fix.
This is an update.

Bug: 312911587
Test: no regressions
Change-Id: I7fefa92d5a66581431288ec902a56ed61e9cf310
2024-01-11 16:24:26 -08:00
Mikhail Naganov
18fcb688bc Add android.virtualdevice.cts.VirtualAudioTest to postsubmit
These tests exercise audio playback and capture on CF and are
useful in spotting issues in the audio pipeline end-to-end.

Bug: 316017930
Test: atest CtsVirtualDevicesTestCases
Change-Id: If625cec5bc2d281f1e0d99b820f604f1bac7b621
2024-01-11 09:54:50 -08:00
Andres Schafhauser
393ca9ffc2 APF exempt list for TVs to use hardware feature
Instead of expecting MdnsOffloadManagerService to exist which is
correct in principle but VTS fails as use of GSI is required.

Bug: 318332352
Test: atest VtsHalWifiStaIfaceTargetTest
Merged-In: I47453e7ad009b08aadf7c09fc144d2166ef9991b
Change-Id: I47453e7ad009b08aadf7c09fc144d2166ef9991b
2024-01-11 17:12:35 +00:00
Andres Schafhauser
f91d7adfc4 APF exempt list for TVs to use hardware feature
Instead of expecting MdnsOffloadManagerService to exist which is
correct in principle but VTS fails as use of GSI is required.

Bug: 318332352
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I47453e7ad009b08aadf7c09fc144d2166ef9991b
2024-01-11 17:11:13 +00:00
Treehugger Robot
9d772629d6 Merge "automotive: Add Rust backend to the vhal AIDL" into main am: 2338cda61c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2904308

Change-Id: I93ab3ee0eee76020a475c3b6a282f09a0b753df4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-11 15:36:05 +00:00
Treehugger Robot
2338cda61c Merge "automotive: Add Rust backend to the vhal AIDL" into main 2024-01-11 14:32:15 +00:00
Shikha Panwar
7c53bb3144 Secretkeeper: VTS to use dice_chain as identity
VTS (being the client of Sk) will use dice_chain as the identity.
Consequently we can use the sealing policy constructed out of this
identity & no more need to use HYPOTHETICAL_DICE_POLICY hack.

For sample identity, we create dice_sample module which constructs an
example dice chain (in Explicit key chain format), along with secrets.

Test: Secretkeeper VTS
Bug: 291224769
Change-Id: Ia1d1a92391d3ee455bf9fe254770b4a9bd08cb12
2024-01-11 09:01:51 +00:00
Treehugger Robot
4b454b6e9e Merge "audio: Add libaudioclient tests to postsubmit for the AIDL HAL" into main am: 7fe11fd93d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2904415

Change-Id: I2419b365c36d7d45c4c7b8a17f4e4083d3ce45ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-10 23:49:49 +00:00
Treehugger Robot
7fe11fd93d Merge "audio: Add libaudioclient tests to postsubmit for the AIDL HAL" into main 2024-01-10 23:02:04 +00:00
Treehugger Robot
bf0c331d59 Merge changes Iab6235b5,I19b7d1af,I1806d8a2,I8589ef14 into main am: 61ef14ec09
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2901010

Change-Id: I3580515b9efb831fcc5ded5b418c737b0958945d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-10 22:13:22 +00:00
Mikhail Naganov
ff52e4fcba audio: Add libaudioclient tests to postsubmit for the AIDL HAL
These framework-side tests are helpful in detecting breakages
caused by changes in the HAL code.

Add to postsubmit first because the presubmit check does not
allow adding to presubmit without accumulating some history first.

Bug: 311830316
Test: atest
Change-Id: I1f946c71a89117d25f39fde34877988ea7e1d466
2024-01-10 13:47:57 -08:00
Treehugger Robot
61ef14ec09 Merge changes Iab6235b5,I19b7d1af,I1806d8a2,I8589ef14 into main
* changes:
  Fix LeAudioCodecProvider failing offload setting file parsing
  Fix the bogus configs default-constructed as a2dp configs
  Fix filling the configuration map
  Skip unsupported functinality tests
2024-01-10 21:28:27 +00:00
Mikhail Naganov
13993da38a Merge "audio: Improve logging in remote submix module" into main am: 198e8f747c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2901102

Change-Id: I29e098bc24fd4669721332cb0fcbe7ecb09f431a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-10 19:34:48 +00:00
Mikhail Naganov
198e8f747c Merge "audio: Improve logging in remote submix module" into main 2024-01-10 17:53:05 +00:00
Shikha Panwar
1eae7abfaa VTS: Use encoding of policy on explicit key dice
As we make Dice policy work with explicit key format of dice chain, the
hard coded policy needs to change to be compatible with hard coded
explicit key chain in the TA.

Test: VTS
Bug: 291213394
Change-Id: Ib3740d8f12f0a5f4e680bd215170bc96596fbe06
2024-01-10 15:59:42 +00:00
Felix Obenhuber
a77f2df473 automotive: Add Rust backend to the vhal AIDL
This enables us to write a vhal service in Rust.

Test: Verified with a custom replacement of the DefaultVehicleHal and ran in cuttlefish
Change-Id: I53601e1a10cee75877e76ae04f7837e7d1a20ebd
2024-01-10 16:23:03 +01:00