summaryrefslogtreecommitdiff
path: root/services/java/com
diff options
context:
space:
mode:
authorAlex Agranovich <alexagr@google.com>2021-02-18 09:19:33 +0000
committerAlex Agranovich <alexagr@google.com>2021-02-18 14:31:36 +0200
commit50c987fbb884b8c92ec2844e60ea76da2356d1c3 (patch)
treedaa0fe5add329e83b3c955cd42a4bbd4abd42715 /services/java/com
parent0f3b641f82b1fdca0dcf1e08b1927463ccda8e79 (diff)
Add a system TextToSpeech implementation that initiates the connection through the system server.
This change includes the new System Service that allows the supervised binding to the TextToSpeech service provider. It proxies the binding process from the client instead of the direct client -> texttospeech connection. Bug: 178112052 Test: atest CtsSpeechTestCases Test: forest apct/device_boot_health_check Change-Id: I0709e71460fa01ab025c92753a20bce38f562845
Diffstat (limited to 'services/java/com')
-rw-r--r--services/java/com/android/server/SystemServer.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 2b09d12c97c7..dd2dd8150165 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -326,6 +326,8 @@ public final class SystemServer implements Dumpable {
"com.android.server.musicrecognition.MusicRecognitionManagerService";
private static final String SYSTEM_CAPTIONS_MANAGER_SERVICE_CLASS =
"com.android.server.systemcaptions.SystemCaptionsManagerService";
+ private static final String TEXT_TO_SPEECH_MANAGER_SERVICE_CLASS =
+ "com.android.server.texttospeech.TextToSpeechManagerService";
private static final String TIME_ZONE_RULES_MANAGER_SERVICE_CLASS =
"com.android.server.timezone.RulesManagerService$Lifecycle";
private static final String IOT_SERVICE_CLASS =
@@ -1713,6 +1715,7 @@ public final class SystemServer implements Dumpable {
startAttentionService(context, t);
startRotationResolverService(context, t);
startSystemCaptionsManagerService(context, t);
+ startTextToSpeechManagerService(context, t);
// System Speech Recognition Service
if (deviceHasConfigString(context,
@@ -2918,6 +2921,13 @@ public final class SystemServer implements Dumpable {
t.traceEnd();
}
+ private void startTextToSpeechManagerService(@NonNull Context context,
+ @NonNull TimingsTraceAndSlog t) {
+ t.traceBegin("StartTextToSpeechManagerService");
+ mSystemServiceManager.startService(TEXT_TO_SPEECH_MANAGER_SERVICE_CLASS);
+ t.traceEnd();
+ }
+
private void startContentCaptureService(@NonNull Context context,
@NonNull TimingsTraceAndSlog t) {
// First check if it was explicitly enabled by DeviceConfig