Commit graph

13 commits

Author SHA1 Message Date
Lorena Torres-Huerta
9ae4f224ab Add AudioAttributes and AudioFlag for use in HAL interface for engine configuration.
This requires a version bump to android.media.audio.common.types.

cc_defaults and java_defaults are used in order to avoid explicitly updating version references in several Android.bp files when we do future version bumps.

Bug: 242678729
Test: m
Merged-In: Id17820f210f625e370992db4f9f85e37887b088b
Change-Id: Id17820f210f625e370992db4f9f85e37887b088b
(cherry picked from commit bf94fa32cb)
2022-09-01 21:37:43 +00:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
Jiyong Park
46c1214761 Implement getInterfaceHash/Version for SoundTrigger
As the soundtrigger AIDL interface gets frozen for TM, java services
implementing the interface are required to implement getInterfaceHash
and getInterfaceVersion [1].

[1]
https://source.android.com/devices/architecture/aidl/stable-aidl#new-meta-interface-methods

Bug: 225941299
Test: m
Change-Id: I71f27131d2619cea2ae10a53c01ca883a459d159
2022-03-31 12:01:44 +09:00
Jiyong Park
bb73ba4e68 Add -Wno-missing-permission-annotation for soundtrigger3
Soundtrigger3 has been built with "-Werror -Weverything" (from
Android.bp) and "-Weverything -Wno-missing-permission-annotation" (from
the AIDL build system). The former is added only for the ToT version of
an AIDL interface.

So far, soundtrigger3 wasn't frozen and therefore the implicit version 1
was the ToT version. As a result, absence of @RequiresPermission in its
interface didn't break the build due to the automatically added
"-Wno-missing-permission-annotation" despite that it had "-Werror".

However, this is causing build breakage as soundtrigger3 now has version
1 and 2 (ToT) and the version 1 is built *without*
  "-Wno-missing-permission-annotation".

Fixing this by manually adding the diag flag so that it's applied to all
versions.

Bug: 225941299
Test: m
Change-Id: I3a43fc77997ef900b0f173c88530f570e436bc77
2022-03-31 12:01:43 +09:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Rios Kao
acd3c8d964 Merge "soundtrigger: add host_supported" 2022-01-25 04:27:47 +00:00
Rios Kao
f68d9c42b8 soundtrigger: add host_supported
support host build for development.

Test: build pass
Bug: 206738138
Change-Id: I55d1b2bcdbf234efc9ca98aca00b9777327fe16c
2022-01-21 07:40:23 +00:00
Ytai Ben-Tsvi
0996ac8a44 Organize imports and fix formatting
Test: m
Fixes: 215567445
Change-Id: I1077b3fb609acde6d6dbda92139f52ad8fed7784
2022-01-20 13:48:03 -08:00
Mikhail Naganov
6dcf4f5c53 Update use of a.m.a.c.AudioConfig in sthal_cli_3
Bug: 188932434
Test: m sthal_cli_3
Change-Id: Ifcc94ecfa7aa9d9a5292f45a35083c4681223529
2021-08-31 18:13:20 -07:00
Mikhail Naganov
43a6ce023f Follow-up after ag/15645323
Make 'createConfig' a static function.

Fix OWNERS file to point to the correct location.

Bug: 188932434
Test: m sthal_cli_3
Change-Id: I7a35096acb71a246691f9bb9ddf41660f3e7cf8f
2021-08-25 21:26:15 +00:00
Mikhail Naganov
e9f41f1fff Move common audio AIDL types to audio.media.audio.common
Since tests depend statically on libaudiofoundation,
they also need to depend on the generated interfaces code,
which contains vtables for interface classes.

Update 'sthal_cli_3' test app.

Bug: 188932434
Test: m HalAudioV6_0GeneratorTest
Test: m sthal_cli_3
Change-Id: Ifb8f81d02764f7710ce207603aa6fe2d20123e89
2021-08-23 17:43:20 -07:00
Bob Badour
d99d544f08 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  soundtrigger/aidl/Android.bp
  soundtrigger/aidl/cli/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I5bb1bf59e40996301a0b002211669de320d3cfb3
2021-04-07 14:12:12 -07:00
Ytai Ben-Tsvi
316f2fa1a3 Rearrange soundtrigger3 directory structure
Test: m
Change-Id: I35f041769c3835fa6d63bcb0d4bffac3c8a1aa46
2021-03-30 12:37:29 -07:00