diff options
author | Ye Wen <ywen@google.com> | 2014-07-24 12:56:45 -0700 |
---|---|---|
committer | Ye Wen <ywen@google.com> | 2014-07-29 16:32:07 -0700 |
commit | d97e1fdb29db15c5117e2502da2f1f1fb82233b6 (patch) | |
tree | 0ba3e9fb285376d2799b35b6d322fd303ccb6b16 /services/java/com/android/server/SystemServer.java | |
parent | 8b5a858ee388729cc6e1c386965d5c31cd2a47aa (diff) | |
download | frameworks_base-d97e1fdb29db15c5117e2502da2f1f1fb82233b6.zip frameworks_base-d97e1fdb29db15c5117e2502da2f1f1fb82233b6.tar.gz frameworks_base-d97e1fdb29db15c5117e2502da2f1f1fb82233b6.tar.bz2 |
Implement broker pattern for imms (1/3)
b/16324360
Change-Id: I41dc9823820eed60406973f5edb5a71deb4b0130
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 70266ee..d955354 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -406,6 +406,7 @@ public final class SystemServer { TelephonyRegistry telephonyRegistry = null; ConsumerIrService consumerIr = null; AudioService audioService = null; + MmsServiceBroker mmsService = null; boolean disableStorage = SystemProperties.getBoolean("config.disable_storage", false); boolean disableMedia = SystemProperties.getBoolean("config.disable_media", false); @@ -976,6 +977,9 @@ public final class SystemServer { VMRuntime.getRuntime().startJitCompilation(); } + // MMS service broker + mmsService = mSystemServiceManager.startService(MmsServiceBroker.class); + // It is now time to start up the app processes... try { @@ -1057,6 +1061,7 @@ public final class SystemServer { final TelephonyRegistry telephonyRegistryF = telephonyRegistry; final MediaRouterService mediaRouterF = mediaRouter; final AudioService audioServiceF = audioService; + final MmsServiceBroker mmsServiceF = mmsService; // We now tell the activity manager it is okay to run third party // code. It will call back into us once it has gotten to the state @@ -1187,6 +1192,11 @@ public final class SystemServer { reportWtf("Notifying MediaRouterService running", e); } + try { + if (mmsServiceF != null) mmsServiceF.systemRunning(); + } catch (Throwable e) { + reportWtf("Notifying MmsService running", e); + } mSystemServiceManager.startBootPhase(SystemService.PHASE_BOOT_COMPLETE); } }); |