summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/SystemServiceRegistry.java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-03-16 18:30:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-16 18:30:23 +0000
commitaff57b7519a2c2700f6259a99faa05fb673d184a (patch)
tree968b4117f5cb7b552e9d1bbe5872ce8786911c55 /core/java/android/app/SystemServiceRegistry.java
parentd92e28255e21d6d1830995b7acefe77c22ce3a14 (diff)
parent2035ac85f61b0e7fa384d52fcfa99766424c122c (diff)
downloadframeworks_base-aff57b7519a2c2700f6259a99faa05fb673d184a.zip
frameworks_base-aff57b7519a2c2700f6259a99faa05fb673d184a.tar.gz
frameworks_base-aff57b7519a2c2700f6259a99faa05fb673d184a.tar.bz2
Merge "broadcast radio API"
Diffstat (limited to 'core/java/android/app/SystemServiceRegistry.java')
-rw-r--r--core/java/android/app/SystemServiceRegistry.java8
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);
+ }});
}
/**