Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed7f5488 authored by Wei Wang's avatar Wei Wang
Browse files

Rename CameraService to CameraServiceProxy

Bug: 32976450
Test: on marlin, camera app works fine
Change-Id: I71890c6814f97e461b0161fed6c31c041c9bfe59
parent 1335669b
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -40,11 +40,11 @@ import java.util.Collection;
import java.util.Set;

/**
 * CameraService is the system_server analog to the camera service running in mediaserver.
 * CameraServiceProxy is the system_server analog to the camera service running in mediaserver.
 *
 * @hide
 */
public class CameraService extends SystemService
public class CameraServiceProxy extends SystemService
        implements Handler.Callback, IBinder.DeathRecipient {
    private static final String TAG = "CameraService_proxy";
    private static final boolean DEBUG = false;
@@ -131,7 +131,7 @@ public class CameraService extends SystemService
        }
    };

    public CameraService(Context context) {
    public CameraServiceProxy(Context context) {
        super(context);
        mContext = context;
        mHandlerThread = new ServiceThread(TAG, Process.THREAD_PRIORITY_DISPLAY, /*allowTo*/false);
@@ -149,7 +149,7 @@ public class CameraService extends SystemService
                notifySwitchWithRetries(msg.arg1);
            } break;
            default: {
                Slog.e(TAG, "CameraService error, invalid message: " + msg.what);
                Slog.e(TAG, "CameraServiceProxy error, invalid message: " + msg.what);
            } break;
        }
        return true;
@@ -160,7 +160,8 @@ public class CameraService extends SystemService
        mUserManager = UserManager.get(mContext);
        if (mUserManager == null) {
            // Should never see this unless someone messes up the SystemServer service boot order.
            throw new IllegalStateException("UserManagerService must start before CameraService!");
            throw new IllegalStateException("UserManagerService must start before" +
                    " CameraServiceProxy!");
        }

        IntentFilter filter = new IntentFilter();
+4 −4
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ import com.android.internal.widget.ILockSettings;
import com.android.server.accessibility.AccessibilityManagerService;
import com.android.server.am.ActivityManagerService;
import com.android.server.audio.AudioService;
import com.android.server.camera.CameraService;
import com.android.server.camera.CameraServiceProxy;
import com.android.server.clipboard.ClipboardService;
import com.android.server.connectivity.IpConnectivityMetrics;
import com.android.server.coverage.CoverageService;
@@ -735,9 +735,9 @@ public final class SystemServer {
            mContentResolver = context.getContentResolver();

            if (!disableCameraService) {
                Slog.i(TAG, "Camera Service");
                traceBeginAndSlog("StartCameraService");
                mSystemServiceManager.startService(CameraService.class);
                Slog.i(TAG, "Camera Service Proxy");
                traceBeginAndSlog("StartCameraServiceProxy");
                mSystemServiceManager.startService(CameraServiceProxy.class);
                traceEnd();
            }