diff options
author | Sandeep Siddhartha <sansid@google.com> | 2014-07-29 14:41:50 -0700 |
---|---|---|
committer | Sandeep Siddhartha <sansid@google.com> | 2014-07-30 11:43:41 -0700 |
commit | 1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311 (patch) | |
tree | 98c42d193596c9c24dc94b8c1df391081160a7d3 /core/java/android/hardware/soundtrigger | |
parent | 38e2d104d80e092af7d997db025b2a9b47150470 (diff) | |
download | frameworks_base-1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311.zip frameworks_base-1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311.tar.gz frameworks_base-1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311.tar.bz2 |
Make startRecognition async
- This is needed for telephony and audio integration which should happen via async callbacks
that'll end up starting/stopping recognition.
e.g. if a startRecognition happens when in a phone call - the onDetectionStarted will get called once the phone
call ends.
For now the transient stoppages due to internal reasons will not be propagated back to the client.
Bug: 16514535
Bug: 16515468
Change-Id: I1b2b8edd28f5c5e67c453f66c23e1a67a626114e
Diffstat (limited to 'core/java/android/hardware/soundtrigger')
-rw-r--r-- | core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl b/core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl index b1a02c1..f279668 100644 --- a/core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl +++ b/core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl @@ -29,7 +29,9 @@ oneway interface IRecognitionStatusCallback { */ void onDetected(in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent); /** - * Called when the detection for the associated keyphrase stops. + * Called when the detection fails due to an error. + * + * @param status The error code that was seen. */ - void onDetectionStopped(); + void onError(int status); }
\ No newline at end of file |