Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shadow for AlwaysOnHotwordDetector #8536

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

Add shadow for AlwaysOnHotwordDetector

The goal of this change is to allow testing of a VoiceInteractionService that calls createAlwaysOnHotwordDetector and have the detector return true when startRecognition is called.

I've removed some unneeded shadowing in ShadowVoiceInteractionService in favor of real code. For the detector, there are two critical fields that I'm now setting when the object is created. Note that a test hoping to achieve this result should also provide some fake metadata in its manifest to convince KeyphraseEnrollmentInfo that an enrollment apk is present.

@copybara-service copybara-service bot force-pushed the piper_572953926 branch 6 times, most recently from 418ded4 to 62c1923 Compare October 17, 2023 14:13
@copybara-service copybara-service bot closed this Oct 17, 2023
@copybara-service copybara-service bot deleted the piper_572953926 branch October 17, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants