diff options
| author | 2022-02-17 12:01:50 +0000 | |
|---|---|---|
| committer | 2022-02-17 12:01:50 +0000 | |
| commit | 68eb4fb58640a0a0fb65a2269da475afb1d6c257 (patch) | |
| tree | 000469dbd3e052bbc2da0125278ffdcd569f1866 | |
| parent | 7e360ad721e5b2a8f18868cb5f9f1c6e2ccb4bc9 (diff) | |
| parent | c015c5be72272d34001dd65422e1042af027aec6 (diff) | |
Merge "speech: Prefix trigger event with "on""
| -rw-r--r-- | core/api/current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/speech/RecognitionService.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 710deef0dfd3..c8d99d57c142 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -39513,7 +39513,7 @@ package android.speech { method public void onCheckRecognitionSupport(@NonNull android.content.Intent, @NonNull android.speech.RecognitionService.SupportCallback); method protected abstract void onStartListening(android.content.Intent, android.speech.RecognitionService.Callback); method protected abstract void onStopListening(android.speech.RecognitionService.Callback); - method public void triggerModelDownload(@NonNull android.content.Intent); + method public void onTriggerModelDownload(@NonNull android.content.Intent); field public static final String SERVICE_INTERFACE = "android.speech.RecognitionService"; field public static final String SERVICE_META_DATA = "android.speech"; } diff --git a/core/java/android/speech/RecognitionService.java b/core/java/android/speech/RecognitionService.java index 22cffc1579d1..6a65efb891ca 100644 --- a/core/java/android/speech/RecognitionService.java +++ b/core/java/android/speech/RecognitionService.java @@ -199,7 +199,7 @@ public abstract class RecognitionService extends Service { } private void dispatchTriggerModelDownload(Intent intent) { - RecognitionService.this.triggerModelDownload(intent); + RecognitionService.this.onTriggerModelDownload(intent); } private class StartListeningArgs { @@ -283,7 +283,7 @@ public abstract class RecognitionService extends Service { /** * Requests the download of the recognizer support for {@code recognizerIntent}. */ - public void triggerModelDownload(@NonNull Intent recognizerIntent) { + public void onTriggerModelDownload(@NonNull Intent recognizerIntent) { if (DBG) { Log.i(TAG, String.format("#downloadModel [%s]", recognizerIntent)); } |