summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kaiqiang Wang <kaiqw@google.com> 2021-07-20 00:07:37 +0200
committer Kaiqiang Wang <kaiqw@google.com> 2021-08-11 23:15:50 +0200
commitf56bbfb555fe73b01ed14601af8086c9e5299b30 (patch)
tree93d1301f455e2c02e20c497b9b584b4ef29f466f
parent9a7939872ae3ddd4f583ef492b8ecc7eae661595 (diff)
Add ENABLE_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT to Setting.Global
to store the settings preference of audio description. Test: local test. Bug: 160823970 Change-Id: I22e29cd5269db14bc8a535d01a38966a84edda9a
-rw-r--r--core/java/android/provider/Settings.java8
-rw-r--r--packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java1
2 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 88e7ffc18ec2..c02860c2fffb 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -10276,6 +10276,14 @@ public final class Settings {
"enable_accessibility_global_gesture_enabled";
/**
+ * Whether select sound track with audio description by default.
+ * @hide
+ */
+ @Readable
+ public static final String ENABLE_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT =
+ "enable_accessibility_audio_description_by_default";
+
+ /**
* Whether Airplane Mode is on.
*/
@Readable
diff --git a/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java b/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
index a35ec99a1837..7d5a2c861eb4 100644
--- a/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
+++ b/packages/SettingsProvider/test/src/android/provider/SettingsBackupTest.java
@@ -269,6 +269,7 @@ public class SettingsBackupTest {
Settings.Global.DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD,
Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS,
Settings.Global.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS,
+ Settings.Global.ENABLE_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT,
Settings.Global.ENABLE_ADB_INCREMENTAL_INSTALL_DEFAULT,
Settings.Global.ENABLE_MULTI_SLOT_TIMEOUT_MILLIS,
Settings.Global.ENHANCED_4G_MODE_ENABLED,