Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84d7e77a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Provide deprecated API to avoid build breakage"

parents 212310ee 53e100c4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+9 −1
Original line number Diff line number Diff line
@@ -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.