summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJacky Kao <jackykao@google.com>2022-01-04 11:21:55 +0800
committerJacky Kao <jackykao@google.com>2022-01-05 08:10:40 +0800
commitb5764cd804aa828d3af588a3ca72e3cb508c0296 (patch)
treedff5393121e71d2ebcfae7a70de18fb2439fec69 /core/java/android
parentfb42cf7e451395cffc257ce6cf619f2aa90567c8 (diff)
Adds APIs to let live caption can access the data in the DB (1/n)
Adds a new setting key, ODI_CAPTIONS_VOLUME_UI_ENABLED, in the secure settings, to indicate the live caption button show or hide in the volume rocker. Bug: 136282740 Test: atest SettingsBackupTest Change-Id: Ibcf3be36903450538696c75325c4a866942ce693
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/provider/Settings.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 190b8f66949b..1a70634cb0f5 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -6524,6 +6524,16 @@ public final class Settings {
@Readable
public static final String ODI_CAPTIONS_ENABLED = "odi_captions_enabled";
+
+ /**
+ * Setting to indicate live caption button show or hide in the volume
+ * rocker.
+ *
+ * @hide
+ */
+ public static final String ODI_CAPTIONS_VOLUME_UI_ENABLED =
+ "odi_captions_volume_ui_enabled";
+
/**
* On Android 8.0 (API level 26) and higher versions of the platform,
* a 64-bit number (expressed as a hexadecimal string), unique to