summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2017-03-28 01:29:52 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-03-28 01:29:56 +0000
commit84d7e77aceb2979270823e2eac2eebf2e22a786e (patch)
tree595d392a08d89d452853fd227a8c883b73202aad
parent212310ee71938ecc3771ff432eb1a6294f57a381 (diff)
parent53e100c468861807a9fef5b1b18a1c9533bad2fe (diff)
Merge "Provide deprecated API to avoid build breakage"
-rw-r--r--api/current.txt1
-rw-r--r--api/system-current.txt1
-rw-r--r--api/test-current.txt1
-rw-r--r--core/java/android/speech/tts/UtteranceProgressListener.java10
4 files changed, 12 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt
index c94ea8192bac..8d2790568f9b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -37853,6 +37853,7 @@ package android.speech.tts {
method public void onRangeStart(java.lang.String, int, int, int);
method public abstract void onStart(java.lang.String);
method public void onStop(java.lang.String, boolean);
+ method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
}
public class Voice implements android.os.Parcelable {
diff --git a/api/system-current.txt b/api/system-current.txt
index a60b7029abf5..779a1d38b864 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -40988,6 +40988,7 @@ package android.speech.tts {
method public void onRangeStart(java.lang.String, int, int, int);
method public abstract void onStart(java.lang.String);
method public void onStop(java.lang.String, boolean);
+ method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
}
public class Voice implements android.os.Parcelable {
diff --git a/api/test-current.txt b/api/test-current.txt
index 52e2b1305dda..4d9c6d3c4c8f 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -38054,6 +38054,7 @@ package android.speech.tts {
method public void onRangeStart(java.lang.String, int, int, int);
method public abstract void onStart(java.lang.String);
method public void onStop(java.lang.String, boolean);
+ method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
}
public class Voice implements android.os.Parcelable {
diff --git a/core/java/android/speech/tts/UtteranceProgressListener.java b/core/java/android/speech/tts/UtteranceProgressListener.java
index e59ec080e2c0..59ee8f360c12 100644
--- a/core/java/android/speech/tts/UtteranceProgressListener.java
+++ b/core/java/android/speech/tts/UtteranceProgressListener.java
@@ -137,7 +137,15 @@ public abstract class UtteranceProgressListener {
* @param end The end index of the range (exclusive) in the utterance text.
* @param frame The position in frames in the audio of the request where this range is spoken.
*/
- public void onRangeStart(String utteranceId, int start, int end, int frame) {}
+ public void onRangeStart(String utteranceId, int start, int end, int frame) {
+ onUtteranceRangeStart(utteranceId, start, end);
+ }
+
+ /**
+ * @deprecated Due to internal API changes. Remove when apps catch up.
+ */
+ public void onUtteranceRangeStart(String utteranceId, int start, int end) {
+ }
/**
* Wraps an old deprecated OnUtteranceCompletedListener with a shiny new progress listener.