summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Ytai Ben-Tsvi <ytai@google.com> 2022-03-15 11:34:18 -0700
committer Ytai Ben-Tsvi <ytai@google.com> 2022-03-17 14:07:06 -0700
commit6e2eb81ac4687ac5340673ff996c0591154def7f (patch)
tree94259ac5b820d51e8fda8646606fa5eeb147198f /libs/androidfw/StringPool.cpp
parent3b660525f37bdb6c549d9ce483658d4a8f189438 (diff)
Wait for an abort event when stopping a model
Because the client callbacks from SoundTriggerMiddleware service are async, if a client quickly stops and starts a model, then receives a detection event for that model, it is impossible for it to tell whether the event corresponding to the previous or current session, and thus is unable to reason about the resulting state of the model. To mitigate that, we will always wait for an abort event when a model is stopped before any other operation is attempted. This way the model state stays synchronized. Fixes: 191935600 Test: Manual verification of soundtrigger use-cases. Specifically, quick toggling of Assitant and Now Playing via Settings. Change-Id: I010558e8fa1891922f20dcdb7b0ca04c9500c2e1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions