diff options
author | Felipe Leme <felipeal@google.com> | 2016-02-09 16:56:32 -0800 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2016-02-10 11:33:40 -0800 |
commit | 47585ba14352d20f8e8633f5409f1fe954cc8511 (patch) | |
tree | 9b975dd4c789c1bc9bf4b43207001daa012309b9 /tools/aapt2/diff/Diff.cpp | |
parent | b251a2f51e636d036598ad27473b9cc55fdac1d7 (diff) |
Optimized add|removeRestrictBackgroundWhitelistedUid().
The initial implementation of these methods was calling
updateRulesForGlobalChangeLocked(), which is expensive.
The new implementation is optimized by:
- quitting earlier if there is no change
- only calling setUidNetworkRules
- only broadcasting a ACTION_RESTRICT_BACKGROUND_CHANGED it the status
of the app changed.
This change also removed the unnecessary onPackageRemovedAllUsers()
callback (just onPackageRemoved() is enough).
BUG: 26685616
Change-Id: If38b8b870e992c48e40b4362e8170c64ff8b2a9d
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions