summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2023-07-19 18:25:28 -0700
committer Felix Oghina <hackz@google.com> 2023-07-24 11:12:45 +0000
commit5f6455ece8130655469004829db9d38597409ac4 (patch)
tree4b5922167276b9082e3806153d1531f7955677b1 /api/api.go
parent3490e6fb8fe5282134aa542f2cde6d66aafbbea4 (diff)
Re-add partial hotword indicator exemption
The hotword indicator exemption was totally removed, instead of conditionally removed on UDC. Correct the implementation so devices without the hds_required sysprop set do not display the indicator when hds/trusted is not used. If HDS is not required, treat non-HDS VIService clients as trusted from the ST perspective. Then fire an RECORD_AUDIO_HOTWORD op when detection occurs (non-HDS clients only). This op is conditionally reported to the user if HDS is required. Addtl notes - Plumb args to do permission checks in the detector callback - Handle lack of perms identical to ST stack (return a pause) - Add logging for the requirement This does not change any HDS behavior. Fixes: 291869628 Test: CtsVoiceInteractionTestCases Test: Indicator behavior on 2nd stage fail w + w/o requirement set for non-HDS Change-Id: I7be92224bccf6f715ca492a2ffb124b242001cf1 (cherry picked from commit 22198594b669283112a9be1f9bf82f48ed5a0018)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions