Commit graph

45023 commits

Author SHA1 Message Date
Shunkai Yao
5bd4a30758 Effect AIDL: Add AEC, AGC and NS AIDL vts
Bug: 238913361
Test: atest VtsHalAECTargetTest
Test: atest VtsHalAGCTargetTest
Test: atest VtsHalNSTargetTest
Change-Id: Ie28ceda35a7ed3fa7857b439bdd4180d9c202f92
2022-12-20 18:09:31 +00:00
Shunkai Yao
bd862b8287 Effect AIDL: Add AEC, AGC and NS AIDL and placeholder implmentation
Bug: 238913361
Test: atest VtsHalAECTargetTest
Test: atest VtsHalAGCTargetTest
Test: atest VtsHalNSTargetTest

Change-Id: I13de3fb554a3161d993fbe69942019546c7a96a6
2022-12-20 18:09:27 +00:00
Shunkai Yao
0b58d826f6 Effect AIDL: Add AEC, AGC and NS AIDL interface definition
Bug: 238913361
Test: atest VtsHalAECTargetTest
Test: atest VtsHalAGCTargetTest
Test: atest VtsHalNSTargetTest
Change-Id: I31aad9571623cec48b8cf921e1c778d33b015530
2022-12-20 18:08:45 +00:00
Sham Rathod
2d319dc8f3 Virtualizer: Add AIDL placeholder implementation and vts test
Bug: 258124419
Test: atest VtsHalVirtualizerTargetTest

Change-Id: Id286ca2e7e201c065969fa70dc707d6a3a010c97
2022-12-20 23:30:11 +05:30
Treehugger Robot
b02f80b5c4 Merge "Audio AIDL : Add libeffects downmix implementation uuid" 2022-12-20 15:08:55 +00:00
Sham Rathod
d4f15e31c9 HapticGenerator: Add AIDL placeholder implementation and vts test
Bug: 258124419
Test: atest VtsHalHapticGeneratorTargetTest

Change-Id: I576eb32d64412f4eea024d49fd68d3e725483db6
2022-12-20 20:19:27 +05:30
Shraddha Basantwani
f6a5027eea EnvironmentalReverb: Add AIDL placeholder implementation and its unit test
Bug: 258124419
Test: atest VtsHalEnvironmentalReverbTargetTest

Change-Id: I4bb3ef907be726fbfbcd905db9c304b8ac42ecdd
2022-12-20 18:43:58 +05:30
Treehugger Robot
6109a9c6bf Merge "audio VTS: Exclude '1' from 'invalid' buffer size list" 2022-12-20 05:16:16 +00:00
Treehugger Robot
1ad0ff0f79 Merge "Downmix: Add AIDL placeholder implementation and vts test" 2022-12-20 04:39:34 +00:00
Mikhail Naganov
6fdc6e700f Merge "audio: Add effect attachment to devices and streams" 2022-12-20 03:01:01 +00:00
Treehugger Robot
11fa86bbb4 Merge "Mark modules frozen explicitly." 2022-12-20 00:01:29 +00:00
Shunkai Yao
2af598bfa5 Merge "Audio AIDL : Add libeffects loudness enhancer implementation uuid" 2022-12-19 21:15:33 +00:00
Max Bires
f76f9b52c3 Merge "Add VSR enforcement testing for IRPC versioning." 2022-12-19 21:14:30 +00:00
Mikhail Naganov
5659221d4c audio VTS: Exclude '1' from 'invalid' buffer size list
This affects AudioStream{In|Out}.OpenInvalidBufferSize test.
Leave only values that are obviously invalid.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I148b823761175959a1cf658599c038378ac4b116
2022-12-19 20:07:05 +00:00
Treehugger Robot
4c4ebb3208 Merge "Audio HAL: Add new HAL for sound dose" 2022-12-19 19:07:33 +00:00
Mikhail Naganov
0ae5167223 Merge "audio: Add methods for controlling hw volume" 2022-12-19 17:31:52 +00:00
Mikhail Naganov
fb1acdec67 audio: Add effect attachment to devices and streams
Add the following methods:
  - IModule.{add|remove}DeviceEffect;
  - IStream.{add|remove}Effect.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I4066e2d10a8e08d634010cfe9eb8f832157e725f
2022-12-19 17:23:30 +00:00
Venkatarama Avadhani
af99386918 CAS: Add missing @hide annotations
Add the annotations that in the 3 enumeration classes so they are not
public.

Bug: 230377377, 227673974, 233862815
Test: build
Change-Id: Ia02b89069ee6fb85a2f16bcfe306d3482fe4bdb7
2022-12-19 22:02:09 +05:30
Vikram Gaur
dc34dfe8ed Merge "Remove obsolete libcppbor code from identity module" 2022-12-19 15:57:25 +00:00
David Drysdale
9f5c0c5734 KeyMint manual key upgrade tests
Test: VtsAidlKeyMintTargetTest
Change-Id: I95d74cec80e94da316dab02b7a88b855742c877c
2022-12-19 15:52:52 +00:00
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