Merge "Formatting fixes in TTS tests."
diff --git a/tests/tests/speech/src/android/speech/tts/cts/StubTextToSpeechService.java b/tests/tests/speech/src/android/speech/tts/cts/StubTextToSpeechService.java
index 804af52..7b5baca 100644
--- a/tests/tests/speech/src/android/speech/tts/cts/StubTextToSpeechService.java
+++ b/tests/tests/speech/src/android/speech/tts/cts/StubTextToSpeechService.java
@@ -61,7 +61,7 @@
if (synthesizeTextWait != null) {
synchronized (synthesizeTextWait) {
try {
- synthesizeTextWait.wait(10000); // 10s timeout
+ synthesizeTextWait.wait(10000); // 10s timeout
} catch (InterruptedException e) {
Log.e(LOG_TAG, "onSynthesizeText wait interrupted", e);
}
diff --git a/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechServiceTest.java b/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechServiceTest.java
index f704936..7425ecf 100644
--- a/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechServiceTest.java
+++ b/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechServiceTest.java
@@ -82,7 +82,8 @@
getTts().stop();
final int iterations = 20;
for (int i = 0; i < iterations; i++) {
- int result = getTts().speak(UTTERANCE, TextToSpeech.QUEUE_ADD, null, UTTERANCE_ID + Integer.toString(i));
+ int result = getTts().speak(UTTERANCE, TextToSpeech.QUEUE_ADD, null,
+ UTTERANCE_ID + Integer.toString(i));
assertEquals("speak() failed", TextToSpeech.SUCCESS, result);
}
getTts().stop();
@@ -93,7 +94,8 @@
}
for (int i = 0; i < iterations; i++) {
- assertTrue("speak() stop callback timeout", mTts.waitForStop(UTTERANCE_ID + Integer.toString(i)));
+ assertTrue("speak() stop callback timeout", mTts.waitForStop(
+ UTTERANCE_ID + Integer.toString(i)));
}
}
diff --git a/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java b/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java
index 57e505c..c83304c 100644
--- a/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java
+++ b/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java
@@ -129,12 +129,14 @@
getTts().stop();
final int iterations = 20;
for (int i = 0; i < iterations; i++) {
- int result = getTts().speak(SAMPLE_TEXT, TextToSpeech.QUEUE_ADD, null, UTTERANCE_ID + Integer.toString(i));
+ int result = getTts().speak(SAMPLE_TEXT, TextToSpeech.QUEUE_ADD, null,
+ UTTERANCE_ID + Integer.toString(i));
assertEquals("speak() failed", TextToSpeech.SUCCESS, result);
}
getTts().stop();
for (int i = 0; i < iterations; i++) {
- assertTrue("speak() stop callback timeout", mTts.waitForStop(UTTERANCE_ID + Integer.toString(i)));
+ assertTrue("speak() stop callback timeout", mTts.waitForStop(
+ UTTERANCE_ID + Integer.toString(i)));
}
}