Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 407df39b authored by lpeter's avatar lpeter
Browse files

Copy HotwordDetectionConnection into TrustedHotwordDetectorSession

The HotwordDetectionConnection controls the communication
with the HotwordDetectionService and handles the detection
of trusted hotword detector. We separate the detection of
trusted hotword detector into TrustedHotwordDetectorSession.

In order to make the code review easier, we copy the all
content of HotwordDetectionConnection class into the new
TrustedHotwordDetectorSession class.

Test: atest CtsVoiceInteractionTestCases
Bug: 241041976
Change-Id: I0943fdec5979440aaab23642caa5677470002466
parent b64f478e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -595,7 +595,7 @@ final class HotwordDetectionConnection {
        detectFromDspSource(event, callback);
    }

    private void detectFromDspSource(SoundTrigger.KeyphraseRecognitionEvent recognitionEvent,
    void detectFromDspSource(SoundTrigger.KeyphraseRecognitionEvent recognitionEvent,
            IHotwordRecognitionStatusCallback externalCallback) {
        if (DEBUG) {
            Slog.d(TAG, "detectFromDspSource");
+1324 −0

File added.

Preview size limit exceeded, changes collapsed.