OSDN Git Service

Move SchedulingPolicyService init code to SystemServerInitThreadPool
authorChong Zhang <chz@google.com>
Sat, 21 Apr 2018 00:09:14 +0000 (17:09 -0700)
committerChong Zhang <chz@google.com>
Mon, 23 Apr 2018 17:29:17 +0000 (10:29 -0700)
commit779df8080873ba8bdf984fa4d763de376a18cfb3
treef9a8a1408fa878d7791d023ff83876d0961ad862
parenta6b7a6fb33a843a2cea537494a5c9dfe0aa77e8f
Move SchedulingPolicyService init code to SystemServerInitThreadPool

To avoid slowing down service start time.

Also restrict cpuset change api use to mediaserve only.

bug: 78307194
Test:
- boottime test in go/atest-perf:
  atest google/perf/boottime/boottime-test

- Manual testing: play 1080pHDR content in modified exoplayer (that
  uses soft MediaCodec), verify media.codec is put into top-app; then
  kill system_server process during playback (using adb shell stop
  && adb shell start), and verify after restart that media.codec
  is put back into fg.

Change-Id: If761bd75a7ed893811db3f44bfd84ee3095e23e2
services/core/java/com/android/server/os/SchedulingPolicyService.java