diff options
| author | 2022-07-25 20:28:14 -0600 | |
|---|---|---|
| committer | 2022-07-25 20:28:15 +0800 | |
| commit | 76422f53a9d0f4474af7ba0d28b28e099f6edcdc (patch) | |
| tree | 88696b0bea0ed47e49ec20ea32937d57d377f89e /tools/aapt2/ResourceTable.cpp | |
| parent | f4c8dd0528cc47e1bf757e0642cabb5994f0c99e (diff) | |
Reduce sending unnecessary CompatibilityInfo
Originally, compatibilityInfoForPackage is called for delivering
broadcast to receivers or starting services, which may easily
encounter lock contention between activity manager and window
manager.
Because CompatibilityInfo is package based, it is known when binding
application. If the info is changed, the update will be done by
IApplicationThread#updatePackageCompatibilityInfo. Hence this change
only keeps the 2 places to send CompatibilityInfo. Which would
improve performance and simplify the code path.
Bug: 204870457
Test: atest TransactionParcelTests
Change-Id: Ie030c9aa8ed363469e22061f959fa8f40e03965d
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions