diff options
author | Ytai Ben-Tsvi <ytai@google.com> | 2020-06-09 15:50:20 -0700 |
---|---|---|
committer | Ytai Ben-Tsvi <ytai@google.com> | 2020-06-09 16:05:19 -0700 |
commit | 7caef40ad0fd1608d6f5ba849617db50d7b7e153 (patch) | |
tree | c916d5de35937c8305913d1b0eae6f0040431cbc /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 4f80e49f3d92cc6faad7181073567d19284252b1 (diff) |
Support null audio format in recognition event
The audio format doesn't always make sense in recognition events, for
example in a failure or abort event, so we allow it to be null.
However since the SoundTrigger.java API doesn't allow that, we inject
a default if it is not available.
Bug: 157496890
Test: Simulated a device that doesn't support concurrent capture,
reproduced the bug, applied the fix, verified.
Change-Id: I1e4adf9f3ccdc0f62cb9ca5e8c07df3c40a9d2cd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions