OSDN Git Service

Deliver start service args with ParcelledListSlice.
authorDianne Hackborn <hackbod@google.com>
Tue, 4 Apr 2017 22:36:33 +0000 (15:36 -0700)
committerDianne Hackborn <hackbod@google.com>
Tue, 4 Apr 2017 23:12:10 +0000 (16:12 -0700)
commit3f7c9f2d0164f2b5826c194e9309791637f35c2c
treed355c4529c8065ecb743889bde33cd476c2c7edf
parent265dbc1f0916283e607d4de9062f48d533d06487
Deliver start service args with ParcelledListSlice.

We have seen issues where we fail restarting a process
because there are so many services with so many pending
start arguments that we hit IPC limits.  So instead of
doing an IPC for each service start, collect them together
in a list that is sent once, and send it inside of a
ParcelledListSlice to control how much data is written
inline in the IPC.

Test: boot and ran
Change-Id: Ifed26ccdf535871e577fc02c7ef1d09060ab06ca
core/java/android/app/ActivityThread.java
core/java/android/app/IApplicationThread.aidl
core/java/android/app/ServiceStartArgs.aidl [new file with mode: 0644]
core/java/android/app/ServiceStartArgs.java [new file with mode: 0644]
core/java/android/content/pm/BaseParceledListSlice.java
services/core/java/com/android/server/am/ActiveServices.java