summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorYtai Ben-Tsvi <ytai@google.com>2021-10-12 16:48:25 -0700
committerYtai Ben-tsvi <ytai@google.com>2021-10-18 16:37:03 +0000
commit78bb22a1c7db2b5d3b100b2d271eeb5c5e411c89 (patch)
tree32c8cc4e4db521c43b71c9962c36fa878e0bd98c /core/java/android/inputmethodservice/AbstractInputMethodService.java
parent1f3c7fd840a057d4b54b5aa825a1fb79f94737e9 (diff)
Support back-to-back soundtrigger recognitions
This change allows the HAL driver, at its discretion, indicate that recognition is still active after a success event. This is achieved by an additional flag added to the event. The behavior to support this case has already been in place, for the sake of supporting a FORCED event. This change just generalizes this behavior to be able to cover SUCCESS as well. For b/w compat, when the status is FORCED, we override the new flag with 'true', indicating that recognition is still active. We do not allow the flag to be set for status codes other than FORCED or SUCCESS. Test: atest FrameworksServicesTests:{SoundTriggerMiddlewareImplTest,SoundHw2CompatTest} Test: Manual verification of sound trigger operation by invoking the assistant and now playing multiple times. Bug: 186031938 Change-Id: Ie4edf82607c72ccb0b8d90a828b04c93153ec8f3
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions