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

Commit 273fbb15 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "StartHidlServices wait for StartSensorService."

parents 45030ba6 604c12c0
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -619,7 +619,6 @@ public final class SystemServer {
            startSensorService();
            traceLog.traceEnd();
        }, START_SENSOR_SERVICE);

    }

    /**
@@ -647,14 +646,6 @@ public final class SystemServer {
        traceBeginAndSlog("StartWebViewUpdateService");
        mWebViewUpdateService = mSystemServiceManager.startService(WebViewUpdateService.class);
        traceEnd();

        // Start receiving calls from HIDL services. Start in in a separate thread
        // because it need to connect to SensorManager.
        SystemServerInitThreadPool.get().submit(() -> {
            traceBeginAndSlog(START_HIDL_SERVICES);
            startHidlServices();
            traceEnd();
        }, START_HIDL_SERVICES);
    }

    /**
@@ -813,6 +804,15 @@ public final class SystemServer {
            ServiceManager.addService(Context.INPUT_SERVICE, inputManager);
            traceEnd();

            // Start receiving calls from HIDL services. Start in in a separate thread
            // because it need to connect to SensorManager. This have to start
            // after START_SENSOR_SERVICE is done.
            SystemServerInitThreadPool.get().submit(() -> {
                traceBeginAndSlog(START_HIDL_SERVICES);
                startHidlServices();
                traceEnd();
            }, START_HIDL_SERVICES);

            if (!disableVrManager) {
                traceBeginAndSlog("StartVrManagerService");
                mSystemServiceManager.startService(VrManagerService.class);