summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2013-08-29 12:23:48 -0700
committerAlan Viverette <alanv@google.com>2013-08-29 12:23:48 -0700
commit69ce69b0e1500bcf0bfa87eaf0b89ae47f552f5c (patch)
tree4293e3e6fab2022ae017ef5ddb9166dde0902a12 /core/java/android/content/Context.java
parent107e2d418b335263da01aaa9bafb69475e79d7f7 (diff)
downloadframeworks_base-69ce69b0e1500bcf0bfa87eaf0b89ae47f552f5c.zip
frameworks_base-69ce69b0e1500bcf0bfa87eaf0b89ae47f552f5c.tar.gz
frameworks_base-69ce69b0e1500bcf0bfa87eaf0b89ae47f552f5c.tar.bz2
Update captioning APIs
CaptioningManager is now a first-class service in Context and can have listeners added to it to monitor changes. BUG: 10260603, 10461210 Change-Id: I2df5b2997537bb343d902b7ace3343ad483f3717
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index cd1f87b..2ff9182 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -2011,6 +2011,17 @@ public abstract class Context {
/**
* Use with {@link #getSystemService} to retrieve a
+ * {@link android.view.accessibility.CaptioningManager} for obtaining
+ * captioning properties and listening for changes in captioning
+ * preferences.
+ *
+ * @see #getSystemService
+ * @see android.view.accessibility.CaptioningManager
+ */
+ public static final String CAPTIONING_SERVICE = "captioning";
+
+ /**
+ * Use with {@link #getSystemService} to retrieve a
* {@link android.app.NotificationManager} for controlling keyguard.
*
* @see #getSystemService