Commit graph

46232 commits

Author SHA1 Message Date
David Zeuthen
a6fc69d339 identity: VTS: allow for multiple interpretations of AuthKey validity.
Bug: 271948315
Test: atest VtsHalIdentityTargetTest
Change-Id: Iedb9caad933b0df2b190915f5cc7177e507f15b5
(cherry picked from https://android-review.googlesource.com/q/commit:719920700e0e8c0849ef25eeaad8de2bf2442b6e)
Merged-In: Iedb9caad933b0df2b190915f5cc7177e507f15b5
2023-03-13 18:46:52 +00:00
Treehugger Robot
2b29469dbe Merge "identity: VTS: allow for multiple interpretations of AuthKey validity." am: 5086f13180
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2482276

Change-Id: I5958f7ca0b5e57d148adfcd6b6ead5dbd9432940
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-13 17:17:06 +00:00
Andrew Scull
a601d07478 Validate DICE chain based on context
The DICE chain in the ProtectedData objects are evaluated against the
specification from v1 and v2 of the HAL whereas the chain in
AuthenticatedMessage objects are evaluated against the specification
from v3.

There are only small differences with v3 aligning to the standards where
there was previously more leniency.

Fix: 262599829
Test: TH
Change-Id: Ied14362b5530485eb6c2302a0ae0f21da9cdb33f
2023-03-13 16:52:40 +00:00
Treehugger Robot
5086f13180 Merge "identity: VTS: allow for multiple interpretations of AuthKey validity." 2023-03-13 16:41:37 +00:00
David Zeuthen
719920700e identity: VTS: allow for multiple interpretations of AuthKey validity.
Bug: 271948315
Test: atest VtsHalIdentityTargetTest
Change-Id: Iedb9caad933b0df2b190915f5cc7177e507f15b5
2023-03-13 11:32:01 -04:00
Treehugger Robot
3e619b8cc5 Merge "Updated to enforce leaf certificate containing attestation record to not to hold the CRL Distribution Points extension in it." am: adff54caf4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2427795

Change-Id: I7f525d24b58a1c73e99b7e9e670c40aa1997433a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-11 23:01:01 +00:00
Treehugger Robot
adff54caf4 Merge "Updated to enforce leaf certificate containing attestation record to not to hold the CRL Distribution Points extension in it." 2023-03-11 22:25:35 +00:00
Treehugger Robot
99e5af4b2f Merge "audio: Put audio/aidl/common/include/Utils.h into 'aidl' NS" am: 7260130baf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2480537

Change-Id: If989453ea55808d193adca90d73b779605376831
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 23:08:37 +00:00
Treehugger Robot
7260130baf Merge "audio: Put audio/aidl/common/include/Utils.h into 'aidl' NS" 2023-03-10 22:31:37 +00:00
Mikhail Naganov
104c4286f5 Merge "audio: Add offload reconfiguration event to IBluetoothLe" am: b708d292d3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2480536

Change-Id: I9494995912345c8ad775ecb477a271f254b64d6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 22:14:47 +00:00
Mikhail Naganov
b708d292d3 Merge "audio: Add offload reconfiguration event to IBluetoothLe" 2023-03-10 22:06:22 +00:00
Treehugger Robot
0f3597e7d5 Merge "audio test service guaranteed log" am: 6b466603c6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2472165

Change-Id: I841237e0eac97aed4cd05cfac5d5005ea947b27d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 21:41:21 +00:00
Treehugger Robot
6b466603c6 Merge "audio test service guaranteed log" 2023-03-10 21:30:14 +00:00
zijunzhao
ea6967d4e8 Fix the missing std am: 7edcd7cd66
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2482275

Change-Id: I8d152c6b221fd05515f2627a8c77bc67cf5c901f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 21:21:24 +00:00
Mikhail Naganov
b4f8e67e1c audio: Add offload reconfiguration event to IBluetoothLe
Since BT LE can also have offloaded codecs, it might need
a reconfiguration event similar to the one that BT A2DP
receives.

Bug: 272658632
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I04fb7c99f0457f87e1f4aaf7e77165317163387b
2023-03-10 12:44:52 -08:00
Mikhail Naganov
872d4a6518 audio: Put audio/aidl/common/include/Utils.h into 'aidl' NS
These utilities are for types generated from AIDL. Since
the types end up in the 'aidl' namespace (NDK backend), it makes
sense to keep the utilities in the same namespace.

While changing the namespace, I've found numerous useless
includes of 'Utils.h' and removing them, also reorganizing
lists of includes along the way to match the style guide.

Bug: 205884982
Test: m
Test: atest --test-mapping hardware/interfaces/audio/aidl/TEST_MAPPING
Change-Id: Ib23b47092364046f632f9503b92b9baff5b902f5
2023-03-10 11:34:31 -08:00
zijunzhao
7edcd7cd66 Fix the missing std
Bug: b/239662094
Test: enable Wunqualified-std-cast-call locally and run m to build
Change-Id: I79b79a9fdaf8e78a39346190200f67ccf5a66aab
2023-03-10 17:04:09 +00:00
David Drysdale
7bd7dac78e Merge "Re-order skip checks for attestation tests" am: 475bb11af0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2479695

Change-Id: Iae354db3266af485f5ead62dd554f4545807627e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 07:39:11 +00:00
David Drysdale
475bb11af0 Merge "Re-order skip checks for attestation tests" 2023-03-10 07:11:56 +00:00
Shunkai Yao
94c87272b2 Merge "Add sleep in EffectThread to avoid busy wait" am: ac46ddb969
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2478089

Change-Id: Ia72d2a551b6875f7f41128432405015857f2fc5a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 02:47:03 +00:00
Shunkai Yao
ac46ddb969 Merge "Add sleep in EffectThread to avoid busy wait" 2023-03-10 02:18:30 +00:00
Tri Vo
40d4cc52a5 Merge "Update challenge size check" am: 1be04ec2d2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2481095

Change-Id: I080988a0b85094389e0c697729b8fe3472fb7ece
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 23:09:10 +00:00
Tri Vo
1be04ec2d2 Merge "Update challenge size check" 2023-03-09 22:47:12 +00:00
Seth Moore
ca0abefa7e Merge "Fix minimum size description of challenge" am: ceeb357048
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2480181

Change-Id: I7debe63345b9a03789a39ac4bc6ec926cf4bb8c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 21:24:21 +00:00
Tri Vo
2fcd4b6bc3 Update challenge size check
aosp/2480181 changed minimum challenge size to 16.

Bug: 272392463
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I420f230651192e8fd67aab2ceff916a9c8b6db92
2023-03-09 13:23:09 -08:00
Seth Moore
ceeb357048 Merge "Fix minimum size description of challenge" 2023-03-09 20:58:22 +00:00
Seth Moore
3182cc00a3 Fix minimum size description of challenge
The server-provided challenge is almost always smaller than 32 bytes,
so we cannot enforce that as a minimum. I fixed up the CDDL a while
back, but missed one mention of the 32 byte minimum in the description.

Test: n/a (it's a comment)
Bug: 272392463
Change-Id: Ia5994e2b7cf107ab131c6b028bee7881d0e657ac
2023-03-09 12:54:08 -08:00
Treehugger Robot
431c0d4dff Merge "audio: Add vendor tags handling for AIDL" am: a3a1c665fb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2479295

Change-Id: Ib4dfa979c57815a0cf203c6362492f5c5b44a4d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 18:54:21 +00:00
Treehugger Robot
a3a1c665fb Merge "audio: Add vendor tags handling for AIDL" 2023-03-09 18:22:51 +00:00
David Drysdale
5b94874691 Re-order skip checks for attestation tests
Put the test arm that just involves checking a property
first, so that tests which involve a round trip to the Package
Manager are only executed when they're needed.

Test: VtsAidlKeyMintTargetTest
Bug: 271026714
Change-Id: I4caad6243a3b9d511a32717fd95f58864b857eeb
2023-03-09 11:03:10 +00:00
David Drysdale
257e32b6b0 Merge "Allow for 32-bit VTS builds" am: 5196f93ae1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2474566

Change-Id: I6f992cc6cdc1e18101f9af6e35f92bc3647d2ff3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 08:25:27 +00:00
David Drysdale
92a2820fb7 Merge "Add more Gatekeeper OWNERS" am: fbeda1e4bf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2477535

Change-Id: I0f19ecb8c824fdfc99188052777c76f17aa1d1ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 08:24:12 +00:00
David Drysdale
5196f93ae1 Merge "Allow for 32-bit VTS builds" 2023-03-09 07:49:24 +00:00
David Drysdale
fbeda1e4bf Merge "Add more Gatekeeper OWNERS" 2023-03-09 07:48:22 +00:00
Shunkai Yao
eae5c56fb4 Add sleep in EffectThread to avoid busy wait
Bug: 261129656
Test: Enable AIDL and run YTM on pixel phone
Change-Id: If7ea5324b8a884e8f07b6855b70cb33b4c7868e4
2023-03-09 02:30:15 +00:00
Mikhail Naganov
817da7d0be audio: Add vendor tags handling for AIDL
Vendor tags are used in audio attributes and in
source/sink metadata. The definition for vendor tag
syntax is the same as it used to be in HIDL.

Bug: 205884982
Bug: 272188499
Test: m
Change-Id: Iffab15edaec10f0dfccff2512bbff9dff557725a
2023-03-08 17:40:35 -08:00
Mikhail Naganov
1202d57e63 audio: Add IBluetoothLe am: b5647da1ad
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2477536

Change-Id: I00c7d4d4114acd560ce77f302142aabf9e9ed426
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 19:09:25 +00:00
Mikhail Naganov
b5647da1ad audio: Add IBluetoothLe
Similar to IBluetooth and IBluetoothA2dp interfaces,
IBluetoothLe controls the LE profile. This interface
replaces the following string parameter:

"LeAudioSuspended"

Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I9df28053cd270fc2d446ba9a8ada4dd6ab761c7b
Merged-In: I9df28053cd270fc2d446ba9a8ada4dd6ab761c7b
2023-03-08 09:28:00 -08:00
David Drysdale
0de676d38a Add more Gatekeeper OWNERS
Test: none
Change-Id: I3bbe76b0d9cfd9eddc53301566e1761d0a3876e2
2023-03-08 16:48:57 +00:00
dheda.shin
57adc381fc Patch for VTS am: 93945c1d25 am: ef3b519c03
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2473685

Change-Id: I8df968c13e908d7603c5858c3d5b45347985f3a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 02:31:01 +00:00
dheda.shin
ef3b519c03 Patch for VTS am: 93945c1d25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2473685

Change-Id: I8c549e5424c249398bad43480997ff3d5ae07252
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 01:38:40 +00:00
Treehugger Robot
1dbc39ea23 Merge "audio: Add IStreamCommon.prepareToClose method" am: 940ca8996a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2475087

Change-Id: Ie919fad86d8da35b0fa297bcf66e4322d0ae0611
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 21:15:55 +00:00
Treehugger Robot
940ca8996a Merge "audio: Add IStreamCommon.prepareToClose method" 2023-03-07 20:18:14 +00:00
Treehugger Robot
8be35e964b Merge "identity: Clarify validity period for auth keys." am: 3522198eb4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2475025

Change-Id: If9283963190f517e3da3b232ef6ff7f1cd274b7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 18:35:02 +00:00
Treehugger Robot
3522198eb4 Merge "identity: Clarify validity period for auth keys." 2023-03-07 17:58:53 +00:00
Mikhail Naganov
7c0a635b6d Merge "audio: Make I/O operations in default stub more realistic" am: b862e6e20b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2473366

Change-Id: Ife2fe1318f7603d61b7ff0d5e22a69a9348f7341
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 17:42:13 +00:00
Mikhail Naganov
6f3474a98e audio: Add IStreamCommon.prepareToClose method
This method is needed to implement HAL modules that
are proxies for other subsystems, for example
the "bluetooth" and "r_submix" modules. This method
replaces string parameters "exiting=1" and "closing=true"
which the framework sends to streams prior to closing
them in order to unblock the I/O thread of the stream.

Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3d13fe34535ab853c9f8237a08c31cdafadbb390
Merged-In: I3d13fe34535ab853c9f8237a08c31cdafadbb390
2023-03-07 09:41:08 -08:00
Mikhail Naganov
b862e6e20b Merge "audio: Make I/O operations in default stub more realistic" 2023-03-07 17:11:05 +00:00
David Zeuthen
ecb4a83214 identity: Clarify validity period for auth keys.
The AIDL said "one year in the future (365 days)" which is not a
constant amount of time given that leap years and leap seconds may
exist. Change this to be a constant amount of seconds instead.

Bug: 271948315
Test: atest VtsHalIdentityTargetTest
Change-Id: I324a809900feb898d2343e02066f2fb237a46e86
2023-03-07 11:52:33 -05:00
David Drysdale
4cbe215e34 Allow for 32-bit VTS builds
In 32-bit builds a `long` may be 32 bits, but the `long` values on an
AIDL interface are 64 bits.  Therefore need to use `int64_t` for the
corresponding C++ type, not `long`.

Bug: 271056044
Test: VtsAidlKeyMintTargetTest --gtest_filter="*AuthTest*" (32-b)
Change-Id: I19f5a1d825dfcc45087534bbd4239a13cdfec3f7
2023-03-07 14:47:11 +00:00