diff options
| author | 2023-03-09 17:35:00 -0800 | |
|---|---|---|
| committer | 2023-04-06 23:00:21 -0700 | |
| commit | b32371dde1fa308f4164892ac48bdc7d7e7456c4 (patch) | |
| tree | 745843fda4e3a5738dad506ce4ebc2720717a03e /libs/androidfw/ApkParsing.cpp | |
| parent | 31b112febfca30acad744e0a3b364b12eaac48d9 (diff) | |
Add VIMService model enrollment override
In order to test voiceinteraction, we must be able to override the
persistent model enrollment database with an in-memory equivalent.
- Abstract DatabaseHelper into IEnrolledModelDb interface
- Implement the Test version of this interface as a hashmap
- Add VIMService APIs and client-side equivalent to override the Db with
the test version
- Remove incorrect GuardedBy annotations (no GuardedBy(this) on a
public interface boundary)
Test: atest
AlwaysOnHotwordDetectorTest#testAlwaysOnHotwordDetector_startRecognitionWithData
Fixes: 273309878
Change-Id: Icf4f1aaf147519ef45534ee8c7ae26c6040fa4cd
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions