Commit graph

44919 commits

Author SHA1 Message Date
Shraddha Basantwani
4ff8698a25 Audio AIDL : Add libeffects downmix implementation uuid
Bug: 258124419
Test: atest VtsHalDownmixTargetTest

Change-Id: I32d415d83e0a068efbea93ef4c2af3403db0f0a5
2022-12-19 15:31:54 +05:30
Treehugger Robot
2c48513a6f Merge "Add libaudio_aidl_conversion_common_cpp dependecy in hidl vts" 2022-12-19 09:20:39 +00:00
Sham Rathod
40f55bd520 Downmix: Add AIDL placeholder implementation and vts test
Bug: 258124419
Test: atest VtsHalDownmixTargetTest

Change-Id: I6c202d474b738e0e0d242dc91cafa3892b9e9987
2022-12-19 09:15:49 +05:30
Vlad Popa
f4fe41c873 Audio HAL: Add new HAL for sound dose
The new HAL is running as part of the HIDL audio HAL process. It is
meant as a workaround for HAL implementors that can not switch to the
audio AIDL yet and need to certify with IEC62368-1 3rd edition or
EN50332-3. Note that this HAL will be deprecated in the future.

Test: atest VtsHalSoundDoseFactoryTargetTest & flash bluejay-userdebug
Bug: 257937004
Change-Id: Ifbbf235bab58c1ee2f1ea246cf98c9e8966893c0
2022-12-18 10:18:10 +01:00
Treehugger Robot
7f62d4e5f6 Merge "Visualizer: Add AIDL placeholder implementation and vts test cases" 2022-12-17 09:33:21 +00:00
Treehugger Robot
2e9fe5d8d2 Merge "Audio AIDL : Add libeffects bass boost bundle uuid" 2022-12-17 09:32:04 +00:00
Treehugger Robot
b8e8ab3775 Merge changes from topic "cas-aidl-frameworks"
* changes:
  CAS: Add @hide annotations
  CAS: Update ScramblingMode enum order
2022-12-17 02:07:22 +00:00
Mikhail Naganov
7c2b5ed7a1 Merge "audio: Fix streamCommon nullptr check in VTS" 2022-12-17 01:23:47 +00:00
Shunkai Yao
5bd294ccfd Add libaudio_aidl_conversion_common_cpp dependecy in hidl vts
Bug: 261129656
Test: m VtsHalAudioV5_0TargetTest

Change-Id: I586d5360bdc71fa1c84d3a387fe5f25a6661a25c
Merged-In: I586d5360bdc71fa1c84d3a387fe5f25a6661a25c
2022-12-17 00:21:59 +00:00
Mikhail Naganov
383cd4277a audio: Add methods for controlling hw volume
Add the following methods:
 - IStreamIn.get/setHwGain;
 - IStreamOut.get/setHwVolume.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I8fc48c15a9211b5f0bf8bb4b5b0e50d414b859c2
2022-12-16 22:19:32 +00:00
Mikhail Naganov
8230457989 audio: Fix streamCommon nullptr check in VTS
Fix test code in AudioStream#GetStreamCommon test.
Avoid crashing if the HAL module returns a null
IStreamCommon instance pointer.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I118ea1df49a127780a901479cf8cd5787be601f7
2022-12-16 22:19:32 +00:00
Treehugger Robot
f49af6b686 Merge "Add AUDIO_ENCAPSULATION_TYPE_PCM." 2022-12-16 21:19:47 +00:00
Treehugger Robot
bfc2e1524d Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" 2022-12-16 18:51:44 +00:00
jiabin
d888772e3b Add AUDIO_ENCAPSULATION_TYPE_PCM.
Bug: 239435816
Test: n/a
Change-Id: I42ccbed4d0b2a2cd7d704ac42b1aa25b1e128de3
Merged-In: I42ccbed4d0b2a2cd7d704ac42b1aa25b1e128de3
2022-12-16 18:42:55 +00:00
Mikhail Naganov
e9f10fc9dc audio: Provide operations common to input and output streams
Introduce IStreamCommon which contains methods that apply
both to input and output streams. Move the 'close' method
to it. Add 'IStreamIn/Out.getStreamCommon' method to retrieve
the common interface.

Add methods for dealing with HW AV Sync and vendor parameters.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ie1a7b32e28425f5398afc95192fcbc5403b5c332
2022-12-16 16:40:28 +00:00
Mikhail Naganov
df5feba141 audio: Retain IBinder for instances with MinSchedulerPolicy
The binder passed to AIBinder_setMinSchedulerPolicy must also be
returned to the client, otherwise setting the policy for it does
not make any sense. However, server side interface instance
classes only hold a weak binder reference. It's the caller of the
'asBinder' method who must retain a strong reference. This
reference must be retained past exiting from the method which
returns the instance to the client.

To solve this issue, add storing of binders along with server
object references. These binders get released after the client
calls a 'close'/'destroy'-type method to release instance
resources.

Bug: 205884982
Test: run `atest VtsHalAudioCoreTargetTest` and effect VTS,
      and grep logcat for
     'destroyed after setMinSchedulerPolicy before being parceled'
Change-Id: I8b905b85cb8263c85edae8839a126ffe4e4d1e69
2022-12-16 15:27:10 +00:00
Treehugger Robot
2100e6323c Merge changes Ib89e0924,Id2816580
* changes:
  Add default implementation and VTS for ISoundDose
  Add HAL interface definition for sound dose
2022-12-16 15:06:16 +00:00
Sham Rathod
94aae5e51d Visualizer: Add AIDL placeholder implementation and vts test cases
Bug: 258124419
Test: atest VtsHalVisualizerTargetTest

Change-Id: I8bfdb234d1ac3f57b12096d3f02dd1bad92b1d0f
2022-12-16 18:07:34 +05:30
Shunkai Yao
cb0fc410d7 Effect AIDL: Add VTS test cases cleanup in TearDown
Remove output FMQ reset in EffectImpl
Update vts cases with ASSERT_* for critical errors
And update vts case naming

Bug: 261646550
Test: atest VtsHalAudioEffectTargetTest
Test: atest VtsHalEqualizerTargetTest
Test: atest VtsHalBassBoostTargetTest
Test: atest VtsHalLoudnessEnhancerTargetTest
Test: atest VtsHalAudioEffectFactoryTargetTest

Change-Id: If8d8aab0d4a68b13c488c053af1f36b58b7c99a1
2022-12-16 02:10:10 +00:00
Treehugger Robot
83ea817a8c Merge changes Iee37bb97,If7c549b8
* changes:
  Adjust IMapperMetadataTypes.h to match gralloc4 encoding
  Add some more tests & tweak spec around SMPTE2094-40
2022-12-15 21:02:54 +00:00
Vlad Popa
943b7e2b91 Add default implementation and VTS for ISoundDose
The ISoundDose HAL interface is used for reporting the sound dose
relevant information from/to the HAL. This is necessary for all devices
that certify with the IEC62368-1 3rd edition and EN50332-3 standard
for safe hearing.

Bug: 248567177
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ib89e09243a01cebc2f7996b6b572384a1471867a
Merged-In: Ib89e09243a01cebc2f7996b6b572384a1471867a
(cherry picked from commit 83a2146546)
2022-12-15 19:41:32 +00:00
Vlad Popa
83a6d82793 Add HAL interface definition for sound dose
The interface is used to configure the sound dose parameters and
retrieve new changes that can affect the dose. Used for the
certification with IEC62368-1 3rd edition.

Test: TODO
Bug: 257937004
Change-Id: Id2816580fdbfbf09c2278720b4d78d0b3604fbf4
Merged-In: Id2816580fdbfbf09c2278720b4d78d0b3604fbf4
(cherry picked from commit 10905ef92e)
2022-12-15 19:41:03 +00:00
Trevor David Black
060a59992d The aidl changes necessary to add requested AHB format enums
PIXEL_FORMAT_R_16_UINT
- AHARDWAREBUFFER_FORMAT_R16_UINT
PIXEL_FORMAT_RG_1616_UINT
- AHARDWAREBUFFER_FORMAT_R16G16_UINT
PIXEL_FORMAT_RGBA_10101010
- AHARDWAREBUFFER_FORMAT_R10G10B10A10_UNORM

Bug: 233033456
Test: Build
Change-Id: I7b9829f549dd6d931531f14fef458d1fecc82ac9
2022-12-15 19:18:11 +00:00
John Reck
0e4732c1a5 Adjust IMapperMetadataTypes.h to match gralloc4 encoding
Specifically include the header encoding. Initially
omitted as it's a bit redundant, the value in having
bit-for-bit identical encoding between gralloc4 &
imapper5 seems worthwhile enough to keep it.

Test: impltests + VtsHalGraphicsMapperStableC
Change-Id: Iee37bb97acf40362c301a06f9118938b1a0c2cd9
2022-12-15 13:50:07 -05:00
John Reck
749f5af092 Add some more tests & tweak spec around SMPTE2094-40
Test: this
Change-Id: If7c549b8efcf490859f10c225a700188b76a54fa
2022-12-15 13:49:55 -05:00
Bob Badour
0468ee6201 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  media/bufferpool/aidl/Android.bp
  media/c2/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Icfbfae758bef55aa82873350a9e119833bacbafb
2022-12-15 07:20:02 -08:00
Eran Messeri
b9346f5146 Enforce KeyMint v3 for VSR level 14
Enforce that devices shipped with VSR-14 chipsets have KeyMint 3.

Bug: 251242992
Bug: 251510880
Test: atest VtsAidlKeyMintTargetTest
Change-Id: I21716ce02772266ce414c213a199c838cb2ef28a
2022-12-15 14:59:52 +00:00
Lorena Torres-Huerta
0f4d68964c Test fix for finalization branch
Bug: 262594867
Merged-In: Idf2546030d6ea6cd43acab8f93e3b479aae6a9db
Change-Id: Idf2546030d6ea6cd43acab8f93e3b479aae6a9db
Test: m android.hardware.audio.service-aidl.example
2022-12-14 18:37:28 -08:00
Max Bires
a9b3bb96b2 Add VSR enforcement testing for IRPC versioning.
Check the VSR API level for the device under test and ensure that the
appropriate HAL version for the IRemotelyProvisionedComponent interface
is present. E.g. a VSR 13 chipset should have IRPC v2 or newer.

Bug: 251185719
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I136cac27953d1d5acaa45510ad9efec2a75d8038
2022-12-14 15:16:35 -08:00
Treehugger Robot
2f8a148a26 Merge "Add flag for bit-perfect playback." 2022-12-14 22:40:19 +00:00
Treehugger Robot
94a68d04b7 Merge changes from topic "c2aidl"
* changes:
  Add Codec2 AIDL interface
  Add bufferpool AIDL definitions
2022-12-14 20:24:14 +00:00
Shraddha Basantwani
3a2fb0344b Audio AIDL : Add libeffects bass boost bundle uuid
Bug: 258124419
Test: atest VtsHalBassBoostTargetTest
Change-Id: I7048ee71e16a1e9c7ca6850a216b9f3ae62a0452
2022-12-14 23:56:06 +05:30
Steven Moreland
13666147e9 Mark modules frozen explicitly.
Makes it easier to see which versions are available.

Bug: 188871598
Test: N/A
Change-Id: Iec656df1d0008d95ab50f9bd8806517b95242f00
Merged-In: Ica76a8225fec8dc5267362cbfd43e06e65ad3f1e
2022-12-14 01:47:26 +00:00
Jiabin Huang
867ea3a35e Add flag for bit-perfect playback.
Bug: 239435816
Change-Id: Iacec6ab373d82978a7d682c377edc40eb36641bd
Test: n/a
2022-12-13 16:13:59 -08:00
Seth Moore
9dc8e53e7c Merge changes I844f3e88,Ia4feb8ce,Ia87d3ea0
* changes:
  Add RKP-specific owners file
  Enable RKP+KeyMint integration test
  Move remotely provisioned component tests to rkp directory
2022-12-13 23:41:30 +00:00
Seth Moore
34d856e8f7 Add RKP-specific owners file
Test: N/A
Change-Id: I844f3e88b2b89337d843f63e63c9dcbcbb921b77
2022-12-13 13:26:41 -08:00
Seth Moore
7dc1fda7a4 Enable RKP+KeyMint integration test
This integration was technically a requirement on keymint v2, but we
weren't enforcing it with a test. So realistically we are only able
to start enforcing the test with keymint v3.

Test: atest VtsAidlKeyMintTargetTest
Change-Id: Ia4feb8ce4b7fd1e47a5c6c9b06ddb12276a9c5ee
2022-12-13 13:25:32 -08:00
Treehugger Robot
b55e63fb51 Merge "audio: Bring default HAL configuration closer to cuttlefish" 2022-12-13 19:30:00 +00:00
Seth Moore
8f810b1303 Move remotely provisioned component tests to rkp directory
Now that the RKP HAL AIDL has been moved to it's own directory, we
should keep the tests with the AIDL.

Test: atest VtsAidlKeyMintTargetTest
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: Ia87d3ea0a1b9e6704f0dea8f98b0bbaa049472fe
2022-12-13 11:03:59 -08:00
Eran Messeri
7536e36ded Merge "Update the KeyMint feature version to 300" 2022-12-13 17:58:17 +00:00
Shunkai Yao
f0a217d07a Merge "Effect AIDL: queryEffect with Descriptor for all effects implementation" 2022-12-13 15:29:14 +00:00
Shraddha Basantwani
22834eab2c Audio AIDL : Add libeffects loudness enhancer implementation uuid
Bug: 258124419
Test: atest VtsHalLoudnessEnhancerTargetTest

Change-Id: I55449dc58cc65ae8697f2b33e190f3fd6aa5e4f9
2022-12-13 19:32:00 +05:30
Shunkai Yao
20e5c1733e Effect AIDL: update IFactory.queryEffects to return Descriptor
Add queryEffect for effect libraries.
Change Descriptor in each effect implementation to be static so
extern C function can access.

Bug: 261646550
Test: atest VtsHalAudioEffectTargetTest
Change-Id: Id7badec592becf37b27be6022106f443e5976880
2022-12-13 02:46:54 +00:00
Shunkai Yao
c12e0821e6 Effect AIDL: queryEffect with Descriptor for all effects implementation
Add queryEffect for effect libraries.
Change Descriptor in each effect implementation to be static so
extern C function can access.
Update vts test cases.

Bug: 261646550
Test: atest VtsHalAudioEffectTargetTest
Change-Id: I8e5d7240db31a0d09b17541c39d9e4c15e1eea73
2022-12-13 02:46:40 +00:00
Mikhail Naganov
c8e4312da8 audio: Bring default HAL configuration closer to cuttlefish
This is to simplify switching of cuttlefish to
the AIDL implementation. Split out 'r_submix' module.

Add all IModule instance names to the compatibility
matrix.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I424db14257281671eea87aa743deb778ca75f388
2022-12-13 01:17:55 +00:00
Darren Hsu
72a3964894 Merge "powerstats: add new EnergyConsumerType for camera" 2022-12-13 00:50:42 +00:00
Treehugger Robot
4c02ef2b4e Merge "identity: Add support for ECDSA auth and don't require session encryption." 2022-12-12 23:06:06 +00:00
Lorena Torres-Huerta
2ea44dd872 Merge changes from topic "engineConfigHalInterface"
* changes:
  Default implementation for IConfig engine configuration.
  Add engine configuration to the AIDL Audio HAL interface.
2022-12-12 22:41:36 +00:00
Lorena Torres-Huerta
00be453d3a Merge "VTS for IConfig getEngineConfig" 2022-12-12 22:41:36 +00:00
Lorena Torres-Huerta
aff8a1f8fd VTS for IConfig getEngineConfig
Bug: 242678729
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I051d0778bbad447e49dd4b99a2797333d0d67862
2022-12-12 19:34:39 +00:00