summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorChris Thornton <thorntonc@google.com>2017-03-24 17:30:29 -0700
committerChris Thornton <thorntonc@google.com>2017-03-27 11:21:34 -0700
commita533b9942dd7a93804953d633eb842f0b7cd0ede (patch)
treeb9de46574f6e4436bccc9a52d712175620ed5661 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent2e0d5323171fcbf8055ce4ebc98faa4ac526d9d3 (diff)
SoundTriggerHelper: Remove unused models onLoad
If some process tries to start a recognition, the STH will now check to see if there are any other models that have been loaded and either: - Have a callback that's died (determined by pinging the binder) - Don't have a callback at all (meaning they didn't clean up after the last detection and didn't start it again). If it finds such a model, it will be stopped and unloaded, freeing up resources in the HAL. Test: Manually load model/kill the process and make sure that it is unloaded the next time some other model is loaded. Also made sure running models aren't evicted. Change-Id: Ia1139b47afe5f88102a3773d90f4f056ea3cdc92
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions