Commit Graph

6 Commits

Author SHA1 Message Date
Tom Bergan
8db0bc0131 Fix crash in SthalCli
SthalCli does not set all String fields of Properties, which results in
some fields being null, which causes a NullPointerExecption when the
Properties is converted to a SoundTrigger.ModuleProperties:
https://cs.android.com/android/platform/superproject/+/main:frameworks/base/core/java/android/hardware/soundtrigger/SoundTrigger.java;drc=e6ac0c57d7261d83870571c7198518998e0f1732;l=164

This CL fixes that problem by setting the uuid and model arch fields.
The uuid is set to a static randomly-generated UUID, instead of a
dynamic randomly-generated UUID, so the UUID is more easily grep-able.

Fixes: 300518031
Test: manually
Change-Id: I3746470551aed1e0e5a806195c124a70037f1baf
2023-09-14 21:55:14 +00: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
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
Ytai Ben-Tsvi
316f2fa1a3 Rearrange soundtrigger3 directory structure
Test: m
Change-Id: I35f041769c3835fa6d63bcb0d4bffac3c8a1aa46
2021-03-30 12:37:29 -07:00