Loading services/core/java/com/android/server/SystemServerInitThreadPool.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -133,9 +133,11 @@ public class SystemServerInitThreadPool { /** /** * Shuts it down. * Shuts it down. * * * <p>Note:</p> should only be called by {@link SystemServer}. * <p>Note:</p> should only be called *after* {@code PHASE_BOOT_COMPLETED} is sent to the * {@link SystemService system services}. */ */ static void shutdown() { static void shutdown() { Slog.d(TAG, "Shutdown requested"); synchronized (LOCK) { synchronized (LOCK) { TimingsTraceAndSlog t = new TimingsTraceAndSlog(); TimingsTraceAndSlog t = new TimingsTraceAndSlog(); t.traceBegin("WaitInitThreadPoolShutdown"); t.traceBegin("WaitInitThreadPoolShutdown"); Loading services/core/java/com/android/server/SystemServiceManager.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -222,6 +222,7 @@ public class SystemServiceManager { if (phase == SystemService.PHASE_BOOT_COMPLETED) { if (phase == SystemService.PHASE_BOOT_COMPLETED) { final long totalBootTime = SystemClock.uptimeMillis() - mRuntimeStartUptime; final long totalBootTime = SystemClock.uptimeMillis() - mRuntimeStartUptime; t.logDuration("TotalBootTime", totalBootTime); t.logDuration("TotalBootTime", totalBootTime); SystemServerInitThreadPool.shutdown(); } } } } Loading services/java/com/android/server/SystemServer.java +0 −1 Original line number Original line Diff line number Diff line Loading @@ -592,7 +592,6 @@ public final class SystemServer { startBootstrapServices(t); startBootstrapServices(t); startCoreServices(t); startCoreServices(t); startOtherServices(t); startOtherServices(t); SystemServerInitThreadPool.shutdown(); } catch (Throwable ex) { } catch (Throwable ex) { Slog.e("System", "******************************************"); Slog.e("System", "******************************************"); Slog.e("System", "************ Failure starting system services", ex); Slog.e("System", "************ Failure starting system services", ex); Loading Loading
services/core/java/com/android/server/SystemServerInitThreadPool.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -133,9 +133,11 @@ public class SystemServerInitThreadPool { /** /** * Shuts it down. * Shuts it down. * * * <p>Note:</p> should only be called by {@link SystemServer}. * <p>Note:</p> should only be called *after* {@code PHASE_BOOT_COMPLETED} is sent to the * {@link SystemService system services}. */ */ static void shutdown() { static void shutdown() { Slog.d(TAG, "Shutdown requested"); synchronized (LOCK) { synchronized (LOCK) { TimingsTraceAndSlog t = new TimingsTraceAndSlog(); TimingsTraceAndSlog t = new TimingsTraceAndSlog(); t.traceBegin("WaitInitThreadPoolShutdown"); t.traceBegin("WaitInitThreadPoolShutdown"); Loading
services/core/java/com/android/server/SystemServiceManager.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -222,6 +222,7 @@ public class SystemServiceManager { if (phase == SystemService.PHASE_BOOT_COMPLETED) { if (phase == SystemService.PHASE_BOOT_COMPLETED) { final long totalBootTime = SystemClock.uptimeMillis() - mRuntimeStartUptime; final long totalBootTime = SystemClock.uptimeMillis() - mRuntimeStartUptime; t.logDuration("TotalBootTime", totalBootTime); t.logDuration("TotalBootTime", totalBootTime); SystemServerInitThreadPool.shutdown(); } } } } Loading
services/java/com/android/server/SystemServer.java +0 −1 Original line number Original line Diff line number Diff line Loading @@ -592,7 +592,6 @@ public final class SystemServer { startBootstrapServices(t); startBootstrapServices(t); startCoreServices(t); startCoreServices(t); startOtherServices(t); startOtherServices(t); SystemServerInitThreadPool.shutdown(); } catch (Throwable ex) { } catch (Throwable ex) { Slog.e("System", "******************************************"); Slog.e("System", "******************************************"); Slog.e("System", "************ Failure starting system services", ex); Slog.e("System", "************ Failure starting system services", ex); Loading