summaryrefslogtreecommitdiffstats
path: root/api/current.txt
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-07-29 14:41:50 -0700
committerSandeep Siddhartha <sansid@google.com>2014-07-30 11:43:41 -0700
commit1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311 (patch)
tree98c42d193596c9c24dc94b8c1df391081160a7d3 /api/current.txt
parent38e2d104d80e092af7d997db025b2a9b47150470 (diff)
downloadframeworks_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 'api/current.txt')
-rw-r--r--api/current.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/api/current.txt b/api/current.txt
index d6bba56..e4a41aa 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -27467,8 +27467,8 @@ package android.service.voice {
public class AlwaysOnHotwordDetector {
method public android.content.Intent getManageIntent(int);
method public int getSupportedRecognitionModes();
- method public int startRecognition(int);
- method public int stopRecognition();
+ method public void startRecognition(int);
+ method public void stopRecognition();
field public static final int MANAGE_ACTION_ENROLL = 0; // 0x0
field public static final int MANAGE_ACTION_RE_ENROLL = 1; // 0x1
field public static final int MANAGE_ACTION_UN_ENROLL = 2; // 0x2
@@ -27481,14 +27481,14 @@ package android.service.voice {
field public static final int STATE_KEYPHRASE_ENROLLED = 2; // 0x2
field public static final int STATE_KEYPHRASE_UNENROLLED = 1; // 0x1
field public static final int STATE_KEYPHRASE_UNSUPPORTED = -1; // 0xffffffff
- field public static final int STATUS_ERROR = -2147483648; // 0x80000000
- field public static final int STATUS_OK = 0; // 0x0
}
public static abstract interface AlwaysOnHotwordDetector.Callback {
method public abstract void onAvailabilityChanged(int);
method public abstract void onDetected(byte[]);
+ method public abstract void onDetectionStarted();
method public abstract void onDetectionStopped();
+ method public abstract void onError();
}
public class VoiceInteractionService extends android.app.Service {
@@ -29005,9 +29005,9 @@ package android.telecomm {
public static class VideoCallProfile.VideoState {
ctor public VideoCallProfile.VideoState();
method public static boolean isAudioOnly(int);
+ method public static boolean isBidirectional(int);
method public static boolean isPaused(int);
method public static boolean isReceptionEnabled(int);
- method public static boolean isBidirectional(int);
method public static boolean isTransmissionEnabled(int);
field public static final int AUDIO_ONLY = 0; // 0x0
field public static final int BIDIRECTIONAL = 3; // 0x3