Commit Graph

45357 Commits

Author SHA1 Message Date
Mikhail Naganov
248e950798 audio: Accept I/O handle for mix ports from the client
The client can pass the I/O handle to the HAL as part of
the requested audio port config. The HAL can store that handle
and use it as a cookie to match the port config with other HALs
(for example, SoundTrigger).

Updated behavior of IModule.setAudioPortConfig to copy
the handle for mix ports, and pass it back with the applied
config. Enforced this behavior in VTS.

Bug: 269551518
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ibc3f9eea4169610f1680937c764de42b4fe5194a
2023-02-21 16:39:58 -08:00
Treehugger Robot
efd4cf71e5 Merge "Enforce boot and vendor patch level format always" 2023-02-21 18:36:50 +00:00
Rajesh Nyamagoud
5283f81f64 Adding a test using second IMEI as attestation ids.
1. Using second IMEI as attestation id without using first IMEI.
       Test should generate a key using second IMEI as attestation id
       without using first IMEI as attestation id. Test should validate
       second IMEI in attesation record.

    2. Using first IMEI as well as second IMEI as attestation ids.
       Test should generate a key using first IMEI and second IMEI as
       attestation ids. Test should validate first IMEI and second IMEI
       in attestation record.

Test: atest -c VtsAidlKeyMintTargetTest
Bug: 263197083, 264979486
Change-Id: I61c3f32e15a8d478a838d14e7db9917a33682267
2023-02-20 20:40:12 +00:00
Treehugger Robot
72394c7c55 Merge "health: update owners" 2023-02-18 02:54:19 +00:00
Alec Mouri
bedde5e845 Check the correct sysprop for P010 support for gralloc 3 and 4. am: 960c14db22
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2441523

Change-Id: I86b2df035255b94e8a682c1870efea0df450aec4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-18 02:10:40 +00:00
Tri Vo
b21e6df7c2 Enforce boot and vendor patch level format always
Test: atest VtsAidlKeyMintTargetTest
Change-Id: I80bc96a6aee62474b33b015b6d04de7527fe757c
2023-02-17 14:55:51 -08:00
Treehugger Robot
249640be0a Merge "[dice] Adapt dice service and tests to the new DiceArtifacts trait" 2023-02-17 15:54:04 +00:00
Treehugger Robot
86d2173992 Merge "Fix test assumption for KeyMint+RKP integration" 2023-02-17 15:05:22 +00:00
AleX Pelosi
8a1f34f1b7 health: update owners
+apelosi

Bug: N/A
Test: N/A
Change-Id: Ia698145eda18b8a6e34e80303ac14524c036b1fe
Signed-off-by: AleX Pelosi <apelosi@google.com>
2023-02-17 13:19:32 +00:00
Treehugger Robot
4cf91c5144 Merge "audio VTS: Consider device connection for external device address" 2023-02-16 23:20:17 +00:00
Alec Mouri
960c14db22 Check the correct sysprop for P010 support for gralloc 3 and 4.
We need to check the first api level that the vendor shipped with.

Also check P010 support in the preamble of the relevant test rather than in allocate(), since otherwise either allocate() may incorrectly skip some tests or allocate() may succeed but with the wrong layout information.

Bug: 257442231
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I00ae5aa01117704158c38f0689e91df99473e208
Merged-In: I00ae5aa01117704158c38f0689e91df99473e208
2023-02-16 23:16:14 +00:00
Shunkai Yao
d789add493 Merge "Effect AIDL: Add line change between parameters print for debug" 2023-02-16 18:39:49 +00:00
Mikhail Naganov
e1ad6497a9 Merge "audio: Move Microphone[Dynamic]Info structs from core" 2023-02-16 15:39:31 +00:00
Tommy Chiu
7cabdc10db Fix test assumption for KeyMint+RKP integration
According to the API Level definition (https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels), both 31 and 32 are belong to Android-12 (S).

Bug: 263844771
Change-Id: I92e3f9015607ad9421c02442033e9b586ae07bcb
Test: VtsAidlKeyMintTargetTest #EcdsaWithRkpAttestation
2023-02-16 09:39:25 +00:00
Shunkai Yao
eea1994dad Effect AIDL: Add line change between parameters print for debug
Bug: 258124419
Test: atest AudioEffectTargetTest
Change-Id: I3a757e4fa8482176bf1f3e7142bb9f7c007451a7
2023-02-16 02:31:24 +00:00
Mikhail Naganov
4590949e12 audio VTS: Consider device connection for external device address
When generating an address for an external device, consider
the connection type and choose the appropriate variant of
the AudioDeviceAddress struct.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ic791ba7de80e482c7e721e082fc9678f0f564b62
2023-02-15 18:28:41 -08:00
Shunkai Yao
c2e1b5f7f1 Merge "Effect AIDL: Add default extension with vector<uint8_t>" 2023-02-16 02:24:38 +00:00
Steven Moreland
26ebfab53f Merge "audio: save vndbinder threads" 2023-02-16 02:12:57 +00:00
Treehugger Robot
adce82f9b5 Merge "Audio AIDL : Add placeholder implementation and VTS test case for AGC1" 2023-02-16 01:02:36 +00:00
Treehugger Robot
b240b7ca2e Merge "Audio AIDL : Rename AutomaticGainControl to AutomaticGainControlV2" 2023-02-16 01:02:26 +00:00
Shunkai Yao
85b0169fca Effect AIDL: Add default extension with vector<uint8_t>
Bug: 258124419
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I3fa7f78ed2227d00b999c7e594d1b1d205f585e7
2023-02-16 00:28:21 +00:00
Mikhail Naganov
6725ef536b audio: Move Microphone[Dynamic]Info structs from core
These parcelables are also used by the framework.

Bug: 263964254
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ib30b69c325040e474fb58a8e7e515912fccab4c7
Merged-In: Ib30b69c325040e474fb58a8e7e515912fccab4c7
2023-02-15 10:15:42 -08:00
Shraddha Basantwani
cac2e68b40 Audio AIDL : Add placeholder implementation and VTS test case for AGC1
Bug: 258124419
Test: atest VtsHalAGC1TargetTest
Change-Id: Ia9894ac21b284a554f8c2d66966d07e5e4621ccd
2023-02-15 23:36:06 +05:30
Alice Wang
e585065a4d [dice] Adapt dice service and tests to the new DiceArtifacts trait
The code needed to be adpated because the public fields the code
accessed previously now become private. We need to access them
via the trait now.

This cl also deletes unused dependence libdiced_open_dice_cbor in
the dice service and tests targets.

Bug: 267575445
Test: m android.hardware.security.dice-service.non-secure-software
Test: atest VtsAidlDiceTargetTest VtsAidlDiceDemoteTargetTest
Change-Id: I16e18226c0bce8a90ed764ba598e90e7c1c854ab
2023-02-15 16:34:50 +00:00
Nathalie Le Clair
3d593db9df Unify OWNERS file
So that the same group also has OWNERS for the hdmi/ folder itself.

Test: make
Bug: 265906860
Change-Id: I2d6f4f6e0a86de80138598662c0b490667aa6239
2023-02-15 15:03:14 +01:00
Shraddha Basantwani
84ea32e419 Audio AIDL : Rename AutomaticGainControl to AutomaticGainControlV2
Bug: 258124419
Test: atest VtsHalAGC2TargetTest
Change-Id: Ia3de57a109852e21d2f6e2b003e8f4286f8278b3
2023-02-15 18:11:11 +05:30
Shunkai Yao
0a0c45efa4 Effect AIDL: Refactor effect capability with Range vts test cases
Disable dynamicsProcessing in presubmit temporary because it's currently
not following the range definition, and needs customize inRange method
implementationm which will be a followup.

Bug: 258124419
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: Ib38145896d66b65c093c247c86a9fba76489ba84
2023-02-14 20:39:34 +00:00
Shunkai Yao
8781102d74 Effect AIDL: Refactor effect capability with Range implementation
Bug: 258124419
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: Ie76270e91471a30f7dda1883c510cd318745855f
2023-02-14 20:39:22 +00:00
Shunkai Yao
376dbd96d3 Effect AIDL: Refactor effect capability with Range
Bug: 258124419
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: I608fb7654591fb46061ecd5edbff20ccc977c5dd
2023-02-14 20:38:17 +00:00
Steven Moreland
35bcd1cd41 audio: save vndbinder threads
Bug: 264617136
Test: boot
Change-Id: Ife224bbcf43e4fead359982b44c80e58b5c20726
2023-02-14 19:21:18 +00:00
Treehugger Robot
abe7b164e4 Merge "Marking HIDL version of gatekeeper as optional." 2023-02-14 17:48:17 +00:00
Treehugger Robot
f2d9196a6c Merge "Add field isStreamActive in LeAudioConfiguration to indicate the stream status" 2023-02-14 02:58:34 +00:00
Himanshu Rawat
80514eeee5 Merge "Interface change for setting path for head tracking data" 2023-02-14 00:51:47 +00:00
Blair Prescott
5cb7621f1e Wifi: P2P VTS tests fail with no P2P support am: c4f8e466e6 am: d696599f99
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2432472

Change-Id: Ib602a7449393869a85e47fc346a41f212138ef1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 00:50:16 +00:00
Blair Prescott
d696599f99 Wifi: P2P VTS tests fail with no P2P support am: c4f8e466e6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2432472

Change-Id: Ifdaf2ba4c16712720eb4a04ae3d35799150f1db1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-13 23:50:33 +00:00
Xiang Wang
5b7246bc75 Merge "Generate toString for Thermal AIDL parcelable" 2023-02-13 22:53:52 +00:00
Himanshu Rawat
50f5a577e9 Interface change for setting path for head tracking data
Added two new latency modes for Audio HAL to enable Dynamic Spatial
audio with LE audio, and the path through which the head tracking data
has to be routed.

Bug: 268568163
Test: m android.hardware.bluetooth.audio-update-api
Tag: #feature
Change-Id: I92b529e4eee3c862934d46164117450975e017ef
2023-02-13 21:07:06 +00:00
David Drysdale
bf0ae8a0f0 Merge "RKP spec: fix public key info description" 2023-02-13 16:37:49 +00:00
Blair Prescott
c4f8e466e6 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
(cherry picked from commit b676061cd5)
(cherry picked from commit 4d81b6562dca69a3334bcb87756539fbdaedcd2d)
2023-02-13 15:12:30 +00:00
David Drysdale
cdf8ed3f6f RKP spec: fix public key info description
The PartyInfo for a P-256 public key is encoded as (x||y) not
(0x04||x||y).

Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: Iae5dc624228d4e1e538e230968443925ec8b55fc
2023-02-13 12:07:17 +00:00
Steven Moreland
6410234d7c Merge "rkp: add keymint v1 hash into rkp v1" 2023-02-11 01:27:43 +00:00
Henri Chataing
6ec1d545c9 Merge "secure_element: Check for support of basic channel in VTS tests" 2023-02-10 23:40:38 +00:00
Steven Moreland
5419c2dbe5 rkp: add keymint v1 hash into rkp v1
When we split the rkp interface, we only added one hash to rkp v1, but
on Android S devices, this interface was in keymint v1, and so it used
the keymint v1 hash.

In order for that old implementation to be recognized, we need to add the keymint v1 hash into rkp v1.

The hash added here is copied from this file:
hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/1/.hash

Bug: 264549860
Change-Id: I3fce46b3e9bd09d79fa8e2f203b4eb9ebb517c15
Test: vts_treble_vintf_vendor_test
2023-02-10 22:44:28 +00:00
Henri Chataing
9ba974d817 secure_element: Check for support of basic channel in VTS tests
Do not use the basic channel in VTS tests if the channel is not
supported by the SE.

Bug: 266384111
Test: m VtsHalSecureElementTargetTest
Change-Id: Id40e7f43f5437f8e682bbd41495d89a4a4c45997
2023-02-10 17:32:26 +00:00
Rongxuan Liu
6945dd3bb3 Update android.hardware.bluetooth.audio to V3
Tag: #feature
Bug: 266740545
Test: m android.hardware.bluetooth.audio-update-api &&
      atest VtsHalBluetoothAudioTargetTest
Change-Id: Ia92043aeedf12a8c68d7f4ee18a1dd52ac5a252f
Merged-In: Ia92043aeedf12a8c68d7f4ee18a1dd52ac5a252f
2023-02-10 04:11:44 +00:00
Rongxuan Liu
c1aea3238f Add new field 'pcmStreamId' in LeAudioBroadcastConfiguration
This field is used to indicate the PCM stream source for given stream
handle

Tag: #feature
Bug: 264692800
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I3df9066e98ca552329bb58ae5fbc5346d1021b10
Merged-In: I3df9066e98ca552329bb58ae5fbc5346d1021b10
2023-02-10 04:10:58 +00:00
Xiang Wang
2e10dc4842 Generate toString for Thermal AIDL parcelable
Bug: b/268508448
Test: n/a
Change-Id: I007fe97b57049042623c395d574ff710bb11d29a
2023-02-09 15:54:58 -08:00
Greg Kaiser
219c4e8d75 Merge "Effect AIDL: Fix a couple logging statements" 2023-02-09 20:23:31 +00:00
Treehugger Robot
dbfdb659e0 Merge "uwb: Allow Java backened jar to be created" 2023-02-09 19:21:56 +00:00
Treehugger Robot
125ec2bb9c Merge "H4ProtocolTest: Time out after 5 seconds" 2023-02-09 19:15:10 +00:00