summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2012-01-26 14:19:24 -0800
committerChristopher Tate <ctate@google.com>2012-02-01 14:36:34 -0800
commitf46723b41f723ebfc9ed18c7c409b319f4b5e539 (patch)
treec422815c0dee0488d32045d82693ee825a3f1217 /tools/aidl/generate_java.cpp
parentc97992b489161a47f156f03ba605273dfb5e5cc2 (diff)
Implement background vs foreground broadcasts
Before now, receiving a broadcast would cause a process to be hoisted to foreground priority / cgroup. This is no longer the case: broadcasts by default are handled in the background, with a suitably increased timeout interval. When a given broadcast needs to be dealt with in a more timely manner, the issuer can set the new FLAG_BROADCAST_FOREGROUND flag on the Intent, which will produce the old foreground-priority behavior. To avoid priority inversions, foreground broadcasts are tracked on a separate outgoing queue and can be in flight simultaneously with a background-priority broadcast. If there is already a background-level broadcast in flight to a given app and then a foreground-level one is dispatched to that app, the app [and its handling of both broadcasts] will be properly hoisted to foreground priority. This change is also essentially the first step towards refactoring the broadcast-handling portions of the Activity Manager into a more independent existence. Making BroadcastQueue a top-level class and regularizing its operation viz the primary Activity Manager operation is the next step. Change-Id: If1be33156dc22dcce318edbb5846b08df8e7bed5
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions