Merge "Start blob store service synchronously." into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d5cee06acc
@@ -435,7 +435,6 @@ public final class SystemServer implements Dumpable {
|
|||||||
private static final String SYSPROP_START_UPTIME = "sys.system_server.start_uptime";
|
private static final String SYSPROP_START_UPTIME = "sys.system_server.start_uptime";
|
||||||
|
|
||||||
private Future<?> mZygotePreload;
|
private Future<?> mZygotePreload;
|
||||||
private Future<?> mBlobStoreServiceStart;
|
|
||||||
|
|
||||||
private final SystemServerDumper mDumper = new SystemServerDumper();
|
private final SystemServerDumper mDumper = new SystemServerDumper();
|
||||||
|
|
||||||
@@ -2250,12 +2249,9 @@ public final class SystemServer implements Dumpable {
|
|||||||
t.traceEnd();
|
t.traceEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
mBlobStoreServiceStart = SystemServerInitThreadPool.submit(() -> {
|
t.traceBegin(START_BLOB_STORE_SERVICE);
|
||||||
final TimingsTraceAndSlog traceLog = TimingsTraceAndSlog.newAsyncLog();
|
mSystemServiceManager.startService(BLOB_STORE_MANAGER_SERVICE_CLASS);
|
||||||
traceLog.traceBegin(START_BLOB_STORE_SERVICE);
|
t.traceEnd();
|
||||||
mSystemServiceManager.startService(BLOB_STORE_MANAGER_SERVICE_CLASS);
|
|
||||||
traceLog.traceEnd();
|
|
||||||
}, START_BLOB_STORE_SERVICE);
|
|
||||||
|
|
||||||
// Dreams (interactive idle-time views, a/k/a screen savers, and doze mode)
|
// Dreams (interactive idle-time views, a/k/a screen savers, and doze mode)
|
||||||
t.traceBegin("StartDreamManager");
|
t.traceBegin("StartDreamManager");
|
||||||
@@ -2650,9 +2646,6 @@ public final class SystemServer implements Dumpable {
|
|||||||
mSystemServiceManager.startService(MEDIA_COMMUNICATION_SERVICE_CLASS);
|
mSystemServiceManager.startService(MEDIA_COMMUNICATION_SERVICE_CLASS);
|
||||||
t.traceEnd();
|
t.traceEnd();
|
||||||
|
|
||||||
ConcurrentUtils.waitForFutureNoInterrupt(mBlobStoreServiceStart,
|
|
||||||
START_BLOB_STORE_SERVICE);
|
|
||||||
|
|
||||||
// These are needed to propagate to the runnable below.
|
// These are needed to propagate to the runnable below.
|
||||||
final NetworkManagementService networkManagementF = networkManagement;
|
final NetworkManagementService networkManagementF = networkManagement;
|
||||||
final NetworkStatsService networkStatsF = networkStats;
|
final NetworkStatsService networkStatsF = networkStats;
|
||||||
|
|||||||
Reference in New Issue
Block a user