OSDN Git Service

Added SystemServerInitThreadPool
authorFyodor Kupolov <fkupolov@google.com>
Sat, 17 Dec 2016 00:14:17 +0000 (16:14 -0800)
committerFyodor Kupolov <fkupolov@google.com>
Thu, 5 Jan 2017 21:12:37 +0000 (13:12 -0800)
commite29a5a11529dc7df82911b48b9f95461383cbcc2
treeb5090d36e20516de0dee6e0d689b81125557f628
parentc9facc0a1f6f3facb7d67ddae9b8a04af78dad0c
Added SystemServerInitThreadPool

System services can use it during the boot to submit tasks that can be run in
parallel with the main thread.

Switched PersistentDataBlockService and FingerprintService from FgThread to
the new thread pool.

UiModeManagerService: update initial configurations on init thread. They run
while holding the mLock so no extra synchronization barriers are needed at a
later stage.

Test: manual - device boots without errors
Test: ParallelPackageParserTest passes
Change-Id: I548f34b0a18f61924e09a39afb12e085cde35442
core/java/com/android/internal/util/ConcurrentUtils.java [new file with mode: 0644]
services/core/java/com/android/server/PersistentDataBlockService.java
services/core/java/com/android/server/SystemServerInitThreadPool.java [new file with mode: 0644]
services/core/java/com/android/server/UiModeManagerService.java
services/core/java/com/android/server/fingerprint/FingerprintService.java
services/core/java/com/android/server/pm/ParallelPackageParser.java
services/java/com/android/server/SystemServer.java