summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Ytai Ben-Tsvi <ytai@google.com> 2022-04-06 15:53:38 -0700
committer Ytai Ben-Tsvi <ytai@google.com> 2022-04-11 11:55:20 -0700
commitf3e7be00588ea67dfaeb8be3847802d238a9a974 (patch)
tree2c2b41a45bbb4813430440ade0cbfea12fc176b6 /libs/androidfw/AttributeResolution.cpp
parent64c62ca506e104885518a9bb7f48aaa9670ccfd5 (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. Bug: 191935600 Fixes: 226926627 Test: Manual verification of soundtrigger use-cases. Specifically, quick toggling of Assitant and Now Playing via Settings. Change-Id: Ia1b91e78aa6981a7b3612ae9213af1b37a333d00
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions