summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2015-03-20 22:18:55 -0700
committerRuben Brunk <rubenbrunk@google.com>2015-03-31 12:01:22 -0700
commit9d21ee5d7755755cc5695a9d7cea00a05a4b92aa (patch)
tree6209cce943f5000f6ce4b4d03ac2ad075d813b4d /services/java
parent75e4f353835d62c8625fb145e3aba1d442f93a90 (diff)
downloadframeworks_base-9d21ee5d7755755cc5695a9d7cea00a05a4b92aa.zip
frameworks_base-9d21ee5d7755755cc5695a9d7cea00a05a4b92aa.tar.gz
frameworks_base-9d21ee5d7755755cc5695a9d7cea00a05a4b92aa.tar.bz2
Add CameraService to system server.
- Adds a camera service to system server that forwards events to the mediaserver camera service. - Notify the camera service when the device user changes. Bug: 19186859 Change-Id: I172a2ce46c8e8a131ae7e8dd99d60c5f4f0d6668
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/SystemServer.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 090c0f8..53da75b 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -53,6 +53,7 @@ import com.android.server.accessibility.AccessibilityManagerService;
import com.android.server.accounts.AccountManagerService;
import com.android.server.am.ActivityManagerService;
import com.android.server.audio.AudioService;
+import com.android.server.camera.CameraService;
import com.android.server.clipboard.ClipboardService;
import com.android.server.content.ContentService;
import com.android.server.devicepolicy.DevicePolicyManagerService;
@@ -408,6 +409,7 @@ public final class SystemServer {
AudioService audioService = null;
MmsServiceBroker mmsService = null;
EntropyMixer entropyMixer = null;
+ CameraService cameraService = null;
boolean disableStorage = SystemProperties.getBoolean("config.disable_storage", false);
boolean disableBluetooth = SystemProperties.getBoolean("config.disable_bluetooth", false);
@@ -436,6 +438,9 @@ public final class SystemServer {
mContentResolver = context.getContentResolver();
+ Slog.i(TAG, "Camera Service");
+ mSystemServiceManager.startService(CameraService.class);
+
// The AccountManager must come before the ContentService
try {
// TODO: seems like this should be disable-able, but req'd by ContentService