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

Commit 346357bd authored by Charles Chen's avatar Charles Chen Committed by charleschen
Browse files

Passing AudioFlinger to VisualQueryDetectionService

Allow VisualQueryDetectionService to use the audio flinger binder passed
from the HotwordDetectionConnection.

Bug: 267134219
Test: manual & atest CtsVoiceInteractionTestCases
Change-Id: Iea238119f02786ad2eaf1cbb4f6c6856f02b5c55
parent bf0224ca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.content.ContentCaptureOptions;
import android.content.Intent;
import android.hardware.soundtrigger.SoundTrigger;
import android.media.AudioFormat;
import android.media.AudioSystem;
import android.os.IBinder;
import android.os.IRemoteCallback;
import android.os.ParcelFileDescriptor;
@@ -129,7 +130,7 @@ public abstract class VisualQueryDetectionService extends Service

        @Override
        public void updateAudioFlinger(IBinder audioFlinger) {
            Log.v(TAG, "Ignore #updateAudioFlinger");
            AudioSystem.setAudioFlingerBinder(audioFlinger);
        }

        @Override