Register translation service.
Bug: 173243538 Test: manual. Make sure device can boot to home and we can get the TranslationManager successfully. Change-Id: Ib0e733d6b8f3792431d71f9791b5b2e43a029a7b
This commit is contained in:
@@ -299,6 +299,8 @@ public final class SystemServer implements Dumpable {
|
||||
"com.android.server.autofill.AutofillManagerService";
|
||||
private static final String CONTENT_CAPTURE_MANAGER_SERVICE_CLASS =
|
||||
"com.android.server.contentcapture.ContentCaptureManagerService";
|
||||
private static final String TRANSLATION_MANAGER_SERVICE_CLASS =
|
||||
"com.android.server.translation.TranslationManagerService";
|
||||
private static final String MUSIC_RECOGNITION_MANAGER_SERVICE_CLASS =
|
||||
"com.android.server.musicrecognition.MusicRecognitionManagerService";
|
||||
private static final String SYSTEM_CAPTIONS_MANAGER_SERVICE_CLASS =
|
||||
@@ -2291,6 +2293,13 @@ public final class SystemServer implements Dumpable {
|
||||
t.traceEnd();
|
||||
}
|
||||
|
||||
// Translation manager service
|
||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TRANSLATION)) {
|
||||
t.traceBegin("StartTranslationManagerService");
|
||||
mSystemServiceManager.startService(TRANSLATION_MANAGER_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
}
|
||||
|
||||
// NOTE: ClipboardService depends on ContentCapture and Autofill
|
||||
t.traceBegin("StartClipboardService");
|
||||
mSystemServiceManager.startService(ClipboardService.class);
|
||||
|
||||
Reference in New Issue
Block a user