diff options
| author | Joanne Chung <joannechung@google.com> | 2020-12-22 23:13:51 +0800 |
|---|---|---|
| committer | Adam He <adamhe@google.com> | 2021-01-12 12:19:49 -0800 |
| commit | aa1949639a8bc62f1d5ce942ff636d2079766761 (patch) | |
| tree | dddc8c7cf1b550f9233d1dc761d06cce75757dbd /services/java/com/android | |
| parent | 5664e559d91e70918c6034c39cee3b47465263af (diff) | |
Register translation service.
Bug: 173243538
Test: manual. Make sure device can boot to home and we can get
the TranslationManager successfully.
Change-Id: Ib0e733d6b8f3792431d71f9791b5b2e43a029a7b
Diffstat (limited to 'services/java/com/android')
| -rw-r--r-- | services/java/com/android/server/SystemServer.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index d9350f39ee58..eb7162fada60 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -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); |
