summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-03-05 15:18:44 -0800
committerEric Laurent <elaurent@google.com>2015-03-13 15:34:50 -0700
commit2035ac85f61b0e7fa384d52fcfa99766424c122c (patch)
tree10ed78f42510184719a85f845ad51dc17a9bb465 /core/java/android/content
parent633cb563f36001d6973b69291086cbdfe50612c5 (diff)
downloadframeworks_base-2035ac85f61b0e7fa384d52fcfa99766424c122c.zip
frameworks_base-2035ac85f61b0e7fa384d52fcfa99766424c122c.tar.gz
frameworks_base-2035ac85f61b0e7fa384d52fcfa99766424c122c.tar.bz2
broadcast radio API
Initial implementation of system APIs for broadcast radio framework. Added manager and interfaces to control a broadcast radio function exposed by the radio HAL. - RadioManager: contains data structures and definitions as well as top level API for feature discovery and tuner interface instantiation. - RadioTuner: interface to control a broadcast radio tuner. - RadioModule: framework component implementing the RadioTuner interface and controlling a HW radio module via the radio HAL. - RadioMetadata: representation of radio meta data (Station name, PTY, song title, artwork, etc...) communicated by the framework to the client. Change-Id: Iee42a185c694503e25f0b2dcfa417d88f5e9549b
Diffstat (limited to 'core/java/android/content')
-rw-r--r--core/java/android/content/Context.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 61cdec3..80b5e0b 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -2200,6 +2200,7 @@ public abstract class Context {
//@hide: PERSISTENT_DATA_BLOCK_SERVICE,
MEDIA_PROJECTION_SERVICE,
MIDI_SERVICE,
+ RADIO_SERVICE,
})
@Retention(RetentionPolicy.SOURCE)
public @interface ServiceName {}
@@ -3026,6 +3027,17 @@ public abstract class Context {
*/
public static final String MIDI_SERVICE = "midi";
+
+ /**
+ * Use with {@link #getSystemService} to retrieve a
+ * {@link android.hardware.radio.RadioManager} for accessing the broadcast radio service.
+ *
+ * @see #getSystemService
+ * @hide
+ */
+ public static final String RADIO_SERVICE = "radio";
+
+
/**
* Determine whether the given permission is allowed for a particular
* process and user ID running in the system.