Skip to content
Commit b32371dd authored by Atneya Nair's avatar Atneya Nair
Browse files

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
parent 31b112fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment