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

Commit 7fe1e687 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Start blob store service synchronously." into sc-v2-dev am: 6ef8d619

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15717104

Change-Id: I674044c4637537977836a8f849da45e659c53b18
parents a7aba2bd 6ef8d619
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -438,7 +438,6 @@ public final class SystemServer implements Dumpable {
    private static final String SYSPROP_START_UPTIME = "sys.system_server.start_uptime";

    private Future<?> mZygotePreload;
    private Future<?> mBlobStoreServiceStart;

    private final SystemServerDumper mDumper = new SystemServerDumper();

@@ -2256,12 +2255,9 @@ public final class SystemServer implements Dumpable {
                t.traceEnd();
            }

            mBlobStoreServiceStart = SystemServerInitThreadPool.submit(() -> {
                final TimingsTraceAndSlog traceLog = TimingsTraceAndSlog.newAsyncLog();
                traceLog.traceBegin(START_BLOB_STORE_SERVICE);
            t.traceBegin(START_BLOB_STORE_SERVICE);
            mSystemServiceManager.startService(BLOB_STORE_MANAGER_SERVICE_CLASS);
                traceLog.traceEnd();
            }, START_BLOB_STORE_SERVICE);
            t.traceEnd();

            // Dreams (interactive idle-time views, a/k/a screen savers, and doze mode)
            t.traceBegin("StartDreamManager");
@@ -2664,9 +2660,6 @@ public final class SystemServer implements Dumpable {
        mSystemServiceManager.startService(APP_COMPAT_OVERRIDES_SERVICE_CLASS);
        t.traceEnd();

        ConcurrentUtils.waitForFutureNoInterrupt(mBlobStoreServiceStart,
                START_BLOB_STORE_SERVICE);

        // These are needed to propagate to the runnable below.
        final NetworkManagementService networkManagementF = networkManagement;
        final NetworkStatsService networkStatsF = networkStats;