diff options
| author | Suchi Amalapurapu <asuchitra@google.com> | 2009-09-02 11:03:18 -0700 |
|---|---|---|
| committer | Suchi Amalapurapu <asuchitra@google.com> | 2009-09-02 12:32:32 -0700 |
| commit | 0214e9475fa3b9aa00a784b5152bf4f1939c941e (patch) | |
| tree | 20b77f6204cfb82d8cde013472053ca191dadd20 /libs/rs/rsg_ScriptJavaClass.cpp | |
| parent | bb54f93ff66f382dc706b9fff508d386e046fdc2 (diff) | |
For intent ACTION_PACKAGE_CHANGED, there could be a lot of broadcasts related to enabling/disabling
components by apps which could result in thrashing on the PackageManager. For apps that
do not want to be restarted when such a broadcast is sent, we can just aggregate these broadcasts and
handle them at one go.
Changes include:
New structure to hold pending broadcasts by class name. If a component is enabled or disabled frequently
aggregate component enabled/disabled settings in this structure in a 10 second window and then
send out the accumulated list of broadcasts to the ActivityManager.
A new Handler implementation handles this message
Add new attribute name EXTRA_CHANGED_COMPONENT_NAME in broadcast intent Intent.ACTION_PACKAGE_CHANGED for
additional information for apps like Launcher.
Rename a couple of parameters, the names were too jarring.
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions
