diff options
author | Eric Laurent <elaurent@google.com> | 2015-03-05 15:18:44 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-03-13 15:34:50 -0700 |
commit | 2035ac85f61b0e7fa384d52fcfa99766424c122c (patch) | |
tree | 10ed78f42510184719a85f845ad51dc17a9bb465 /core/java/android/app/SystemServiceRegistry.java | |
parent | 633cb563f36001d6973b69291086cbdfe50612c5 (diff) | |
download | frameworks_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/app/SystemServiceRegistry.java')
-rw-r--r-- | core/java/android/app/SystemServiceRegistry.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/app/SystemServiceRegistry.java b/core/java/android/app/SystemServiceRegistry.java index 993f416..fd7bae7 100644 --- a/core/java/android/app/SystemServiceRegistry.java +++ b/core/java/android/app/SystemServiceRegistry.java @@ -49,6 +49,7 @@ import android.hardware.hdmi.IHdmiControlService; import android.hardware.input.InputManager; import android.hardware.usb.IUsbManager; import android.hardware.usb.UsbManager; +import android.hardware.radio.RadioManager; import android.location.CountryDetector; import android.location.ICountryDetector; import android.location.ILocationManager; @@ -683,6 +684,13 @@ final class SystemServiceRegistry { IBinder b = ServiceManager.getService(Context.MIDI_SERVICE); return new MidiManager(ctx, IMidiManager.Stub.asInterface(b)); }}); + + registerService(Context.RADIO_SERVICE, RadioManager.class, + new CachedServiceFetcher<RadioManager>() { + @Override + public RadioManager createService(ContextImpl ctx) { + return new RadioManager(ctx); + }}); } /** |