Merge "Revert "Revert "Revert "Adding getModelState API to sound trigger""""

This commit is contained in:
Michael Dooley
2018-09-28 07:38:34 +00:00
committed by Android (Google) Code Review
6 changed files with 1 additions and 157 deletions

View File

@@ -20,7 +20,6 @@ import android.annotation.UnsupportedAppUsage;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import java.lang.ref.WeakReference;
/**
@@ -132,14 +131,6 @@ public class SoundTriggerModule {
@UnsupportedAppUsage
public native int stopRecognition(int soundModelHandle);
/**
* Get the current state of a {@link SoundTrigger.SoundModel}
* @param soundModelHandle The sound model handle indicating which model's state to return
* @return - {@link SoundTrigger#RecognitionEvent} in case of success
* - null in case of an error or if not supported
*/
public native SoundTrigger.RecognitionEvent getModelState(int soundModelHandle);
private class NativeEventHandlerDelegate {
private final Handler mHandler;
@@ -216,3 +207,4 @@ public class SoundTriggerModule {
}
}
}