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

Commit 4dea10af authored by Tom Chan's avatar Tom Chan
Browse files

Fix javadoc that references the non-existent WearableHotwordAudioConsumer

It should be replaced by
Consumer<android.service.voice.HotwordAudioStream>.

Test: None
Bug: 344973028
Flag: DOCS_ONLY

Change-Id: Ib53cd26116775514fba5449102a9c8980ac83287
parent 4e1de135
Loading
Loading
Loading
Loading
+10 −10
Original line number Original line Diff line number Diff line
@@ -436,18 +436,18 @@ public class WearableSensingManager {
    /**
    /**
     * Requests the wearable to start hotword recognition.
     * Requests the wearable to start hotword recognition.
     *
     *
     * <p>When this method is called, the system will attempt to provide a {@link
     * <p>When this method is called, the system will attempt to provide a {@code
     * android.service.wearable.WearableHotwordAudioConsumer} to {@link WearableSensingService}.
     * Consumer<android.service.voice.HotwordAudioStream>} to {@link WearableSensingService}. After
     * After first-stage hotword is detected on a wearable, {@link WearableSensingService} should
     * first-stage hotword is detected on a wearable, {@link WearableSensingService} should send the
     * send the hotword audio to the {@link android.service.wearable.WearableHotwordAudioConsumer},
     * hotword audio to the {@code Consumer<android.service.voice.HotwordAudioStream>}, which will
     * which will forward the data to the {@link android.service.voice.HotwordDetectionService} for
     * forward the data to the {@link android.service.voice.HotwordDetectionService} for
     * second-stage hotword validation. If hotword is detected there, the audio data will be
     * second-stage hotword validation. If hotword is detected there, the audio data will be
     * forwarded to the {@link android.service.voice.VoiceInteractionService}.
     * forwarded to the {@link android.service.voice.VoiceInteractionService}.
     *
     *
     * <p>If the {@code targetVisComponentName} provided here is not null, when {@link
     * <p>If the {@code targetVisComponentName} provided here is not null, when {@link
     * WearableSensingService} sends hotword audio to the {@link
     * WearableSensingService} sends hotword audio to the {@code
     * android.service.wearable.WearableHotwordAudioConsumer}, the system will check whether the
     * Consumer<android.service.voice.HotwordAudioStream>}, the system will check whether the {@link
     * {@link android.service.voice.VoiceInteractionService} at that time is {@code
     * android.service.voice.VoiceInteractionService} at that time is {@code
     * targetVisComponentName}. If not, the system will call {@link
     * targetVisComponentName}. If not, the system will call {@link
     * WearableSensingService#onActiveHotwordAudioStopRequested()} and will not forward the audio
     * WearableSensingService#onActiveHotwordAudioStopRequested()} and will not forward the audio
     * data to the current {@link android.service.voice.HotwordDetectionService} nor {@link
     * data to the current {@link android.service.voice.HotwordDetectionService} nor {@link
@@ -457,8 +457,8 @@ public class WearableSensingManager {
     * android.service.voice.VoiceInteractionService} is the same as {@code targetVisComponentName}.
     * android.service.voice.VoiceInteractionService} is the same as {@code targetVisComponentName}.
     * The check here is just a protection against race conditions.
     * The check here is just a protection against race conditions.
     *
     *
     * <p>Calling this method again will send a new {@link
     * <p>Calling this method again will send a new {@code
     * android.service.wearable.WearableHotwordAudioConsumer} to {@link WearableSensingService}. For
     * Consumer<android.service.voice.HotwordAudioStream>} to {@link WearableSensingService}. For
     * audio data sent to the new consumer, the system will perform the above check using the newly
     * audio data sent to the new consumer, the system will perform the above check using the newly
     * provided {@code targetVisComponentName}. The {@link WearableSensingService} should not
     * provided {@code targetVisComponentName}. The {@link WearableSensingService} should not
     * continue to use the previous consumers after receiving a new one.
     * continue to use the previous consumers after receiving a new one.