summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Joanne Chung <joannechung@google.com> 2021-04-14 21:41:25 +0800
committer Joanne Chung <joannechung@google.com> 2021-04-14 22:49:46 +0800
commitad099e9f2bc21e5fde7211f207968c5c9b4e0586 (patch)
tree7ffb1d4d1886236d920607b6d4253f45d0f95d9a
parentf379c17e98f4f0e24ba6b346ddafabed60bee0dd (diff)
[FW] Change the fake translation name to formal name.
We use a fake name to prevent feature leak, we should change it back before API freeze. Bug: 181179744 Test: build pass and can run service correctly Test: atest CtsTranslationTestCases Change-Id: I9c5752e4ce37ff4af8175b6d7527b8a8117588d3
-rw-r--r--core/api/system-current.txt2
-rw-r--r--core/java/android/content/Context.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt
index 8d03d17f1308..fa42ef8771bf 100644
--- a/core/api/system-current.txt
+++ b/core/api/system-current.txt
@@ -2320,7 +2320,7 @@ package android.content {
field public static final String SYSTEM_CONFIG_SERVICE = "system_config";
field public static final String SYSTEM_UPDATE_SERVICE = "system_update";
field public static final String TETHERING_SERVICE = "tethering";
- field public static final String TRANSLATION_MANAGER_SERVICE = "transformer";
+ field public static final String TRANSLATION_MANAGER_SERVICE = "translation";
field public static final String UI_TRANSLATION_SERVICE = "ui_translation";
field public static final String VR_SERVICE = "vrmanager";
field public static final String WIFI_NL80211_SERVICE = "wifinl80211";
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 09ac8103c526..f5ae4821769f 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -4694,10 +4694,9 @@ public abstract class Context {
* @hide
* @see #getSystemService(String)
*/
- // TODO(b/176208267): change it back to translation before S release.
@SystemApi
@SuppressLint("ServiceName")
- public static final String TRANSLATION_MANAGER_SERVICE = "transformer";
+ public static final String TRANSLATION_MANAGER_SERVICE = "translation";
/**
* Official published name of the translation service which supports ui translation function.