Commit graph

46351 commits

Author SHA1 Message Date
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
Shunkai Yao
4c4f3cd153 AIDL effect: Effect factory add EffectProxy information in proxy
Effect factory have the knowledge of all effect configurations, in the
default implementation, this configuration defined in
audio_effects_config.xml.

Bug: 261129656
Test: Enable AIDL, atest
CtsMediaAudioTestCases: android.media.audio.cts.BassBoostTest
Test: atest VtsHalAudioEffectTargetTest
Change-Id: Ie9bd4070acdca53c4236bae533957b8fde6e9183
2023-03-08 01:53:05 +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
David Drysdale
d1ebed1d58 Merge "Link static version of KeyMint lib in VTS tests" am: c3177488e9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2458193

Change-Id: I84602e2920e333d8ad4edeb4641d037a3f0cab22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 11:14:56 +00:00
David Drysdale
c3177488e9 Merge "Link static version of KeyMint lib in VTS tests" 2023-03-07 10:41:15 +00:00
Tai Kuo
b590aa27b6 Merge "vibrator: update OWNERS" am: 67ff3b4c3c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2473784

Change-Id: I7e08bdc4e9117e5cab306733ad2d79fcfa59a2f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 06:42:11 +00:00
Tai Kuo
67ff3b4c3c Merge "vibrator: update OWNERS" 2023-03-07 06:11:27 +00:00
dheda.shin
93945c1d25 Patch for VTS
we changed to store event information in bitmap format
so that overlapping events can be handled.

Bug: 270650316
Test: startPublishRequest_1_6
Change-Id: I6f3cb8026d54dfa692bfd6eb64b24005ba663a1f
Signed-off-by: dheda.shin <dheda.shin@samsung.com>
2023-03-07 13:45:47 +09:00
Tai Kuo
cda7c33620 vibrator: update OWNERS
Bug: 271938764
Test: n/a
Change-Id: I8e69d48c46b377c1dcc9452fdd8cbb1e121940e0
2023-03-07 11:56:38 +08:00
Treehugger Robot
449402300f Merge "Add vendor extension effect example" am: 9e741d67b5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2470400

Change-Id: Ie55eb219b4e204fca769f46ac5a33d871047ce57
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-07 03:06:24 +00:00
Mikhail Naganov
e48e5737f3 audio: Make I/O operations in default stub more realistic
1. Increase the minimum buffer size to 256 frames. This is
   more realistic than 16 frames: 256 frames is ~5ms @ 48 kHz.

2. Make transfer delay in the stub module dependent on the frame
   count for synchronous transfers.

Bug: 270154517
Test: atest VtsHalAudioCoreTargetTest
Test: atest android.media.audio.cts.LoudnessEnhancerTest (w/AIDL enabled)
Change-Id: If968e30d145b52220f4dc3c33af48dbc163c78cd
2023-03-06 18:51:03 -08:00
Treehugger Robot
9e741d67b5 Merge "Add vendor extension effect example" 2023-03-07 02:22:08 +00:00
Steven Moreland
705c39b274 audio test service guaranteed log
The logs in this service and others disappear sometimes.

Bug: 210919187
Test: logd_integration_test
Change-Id: I63b88ec4b88048ed64907df21d5a049a3abda2ec
2023-03-06 14:30:49 +00:00
Treehugger Robot
c74317cabf Merge "Remove uses of deprecated GTest macro." am: 3eed07ead0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2469729

Change-Id: Id5b7eeef1da01e57e45008d696ee75758d7620a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-04 06:51:32 +00:00
Treehugger Robot
453240f61f Merge "Do not include internal GTest header." am: 1a6e2031fc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2469730

Change-Id: I5d2cfbee355fd2e11a81cd0825a91634f815704f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-04 06:45:25 +00:00
Treehugger Robot
3eed07ead0 Merge "Remove uses of deprecated GTest macro." 2023-03-04 02:58:37 +00:00
Treehugger Robot
1a6e2031fc Merge "Do not include internal GTest header." 2023-03-04 02:14:36 +00:00
Shunkai Yao
b2325e55e9 Add vendor extension effect example
Update Parameter.id from int to ParcelableHolder

Bug: 271601435
Test: Build, atest VtsHalAudioEffectTargetTest
Change-Id: I5450fa90e95bdebe931c222f6bb177dbdef35c69
2023-03-04 02:01:33 +00:00
Krzysztof Kosiński
a3a78a688d Do not include internal GTest header.
Only the headers gtest.h and gtest-spi.h are public.  This
inclusion is causing a build break when upgrading googletest
to version 1.13.0.

Bug: 271622675
Test: local build, presubmit
Change-Id: I698e4d4464c131e9dad73a23a6f65908a07e9f60
2023-03-04 00:58:52 +00:00
Krzysztof Kosiński
c30ca3077d Remove uses of deprecated GTest macro.
Bug: 271622675
Test: local build, presubmit
Change-Id: I525be287361e65d0c4194bc93d7f17ce3369da5d
2023-03-04 00:46:48 +00:00
Treehugger Robot
f0fb395c98 Merge "Linking Component Id within the ConfirmationUI OWNERS file." am: 6f51538682
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2412036

Change-Id: Ie28c82446211601e03a429e60ac83b06bc13d937
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 17:10:02 +00:00
Treehugger Robot
a4ab908631 Merge "Fix the missing std" am: 39337adcc9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2468920

Change-Id: I152bcab905b232b5fc7e2a2cdf48735caf9edd11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 17:08:03 +00:00
Rajesh Nyamagoud
e98263ec55 Updated to enforce leaf certificate containing attestation record
to not to hold the CRL Distribution Points extension in it.

Bug: 260332189
Test: atest VtsAidlKeyMintTargetTest
Change-Id: I7b191b4351984ce82db0e9440027ddbfc14b1c3a
2023-03-03 16:48:28 +00:00
Treehugger Robot
6f51538682 Merge "Linking Component Id within the ConfirmationUI OWNERS file." 2023-03-03 16:13:48 +00:00
Treehugger Robot
39337adcc9 Merge "Fix the missing std" 2023-03-03 14:46:48 +00:00
zijunzhao
ab9e5bcdea Fix the missing std
Bug: b/239662094
Test: enable Wunqualified-std-cast-call locally and run m to build
Change-Id: Ifc51be5ee13296e9711c91ffac320d1cc7048ff0
2023-03-03 03:42:02 +00:00
Myles Watson
1b3643dd0f Merge "VtsHalBluetoothV1: Always wait for completed packets" am: 5d57ab1a45
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2467840

Change-Id: I6940f66a9c0227a8f139246bc3f72d379ca39a52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 01:39:59 +00:00
Mikhail Naganov
95ba30ccbb Merge "audio: Make libaudioserviceexampleimpl just 'library'" am: 79cb295819
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2464079

Change-Id: Idbd589d0a0eb2e1d1e11b28c1d035ae18162f4dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 01:32:26 +00:00
Myles Watson
5d57ab1a45 Merge "VtsHalBluetoothV1: Always wait for completed packets" 2023-03-03 01:27:40 +00:00
Mikhail Naganov
79cb295819 Merge "audio: Make libaudioserviceexampleimpl just 'library'" 2023-03-03 00:00:08 +00:00
Mikhail Naganov
d48a13b1bd audio: Make libaudioserviceexampleimpl just 'library'
Remove the '_static' suffix to allow vendors compile
it as a dynamic library if needed.

Add missing dependency on SoundDose interface libs.

Bug: 205884982
Test: m
Change-Id: Id85945c7c680d1a718e2d692ffd435f30c029521
2023-03-02 14:14:05 -08:00
Myles Watson
a794f83162 VtsHalBluetoothV1: Always wait for completed packets
Bug: 266140831
Test: atest VtsHalBluetoothV1_1TargetTest
Change-Id: I09503e2e4596c2488da65c7ca3a5580798dc2bce
2023-03-02 13:45:53 -08:00
Treehugger Robot
d8b77aef82 Merge "AHAL: support volume control for USB audio HAL." am: 0abca2170b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2461293

Change-Id: Ia3194a312ecbb90d9b2cc19dcf4a3c31d374a4d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-02 18:01:02 +00:00
Treehugger Robot
0abca2170b Merge "AHAL: support volume control for USB audio HAL." 2023-03-02 17:19:36 +00:00