Forgot to deprecate a method in current.txt before merging earlier change.

Also includes a comment fix and line size changes in TextToSpeech.java.

Change-Id: Ia5842b694bca6cd9cae035164ffc605451e72d8b
This commit is contained in:
Niels Egberts
2014-07-02 16:41:34 +01:00
parent df7deefe8e
commit 795d777ee1
2 changed files with 11 additions and 7 deletions

View File

@@ -1039,7 +1039,8 @@ public class TextToSpeech {
*/
@Deprecated
public int speak(final String text, final int queueMode, final HashMap<String, String> params) {
return speak(text, queueMode, params, params == null ? null : params.get(Engine.KEY_PARAM_UTTERANCE_ID));
return speak(text, queueMode, params,
params == null ? null : params.get(Engine.KEY_PARAM_UTTERANCE_ID));
}
/**
@@ -1109,7 +1110,8 @@ public class TextToSpeech {
@Deprecated
public int playEarcon(final String earcon, final int queueMode,
final HashMap<String, String> params) {
return playEarcon(earcon, queueMode, params, params == null ? null : params.get(Engine.KEY_PARAM_UTTERANCE_ID));
return playEarcon(earcon, queueMode, params,
params == null ? null : params.get(Engine.KEY_PARAM_UTTERANCE_ID));
}
/**
@@ -1138,7 +1140,8 @@ public class TextToSpeech {
return runAction(new Action<Integer>() {
@Override
public Integer run(ITextToSpeechService service) throws RemoteException {
return service.playSilence(getCallerIdentity(), durationInMs, queueMode, utteranceId);
return service.playSilence(getCallerIdentity(), durationInMs,
queueMode, utteranceId);
}
}, ERROR, "playSilence");
}
@@ -1165,12 +1168,13 @@ public class TextToSpeech {
*
* @return {@link #ERROR} or {@link #SUCCESS} of <b>queuing</b> the playSilence operation.
* @deprecated As of API level 20, replaced by
* {@link #playEarcon(String, int, HashMap, String)}.
* {@link #playSilence(String, int, HashMap, String)}.
*/
@Deprecated
public int playSilence(final long durationInMs, final int queueMode,
final HashMap<String, String> params) {
return playSilence(durationInMs, queueMode, params, params == null ? null : params.get(Engine.KEY_PARAM_UTTERANCE_ID));
return playSilence(durationInMs, queueMode, params,
params == null ? null : params.get(Engine.KEY_PARAM_UTTERANCE_ID));
}
/**