Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823 Change-Id: I6b27401db604eb10143912e457e94ff2ca4aec3e
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.internal.app;
|
||||
|
||||
import android.hardware.soundtrigger.SoundTrigger;
|
||||
import android.service.voice.HotwordDetectedResult;
|
||||
import android.service.voice.HotwordRejectedResult;
|
||||
|
||||
/**
|
||||
@@ -29,8 +30,11 @@ oneway interface IHotwordRecognitionStatusCallback {
|
||||
* @param recognitionEvent Object containing data relating to the
|
||||
* keyphrase recognition event such as keyphrase
|
||||
* extras.
|
||||
* @param result Successful detection result payload.
|
||||
*/
|
||||
void onKeyphraseDetected(in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent);
|
||||
void onKeyphraseDetected(
|
||||
in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent,
|
||||
in HotwordDetectedResult result);
|
||||
|
||||
/**
|
||||
* Called when a generic sound trigger event is witnessed.
|
||||
|
||||
Reference in New Issue
Block a user