summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager2.cpp
diff options
context:
space:
mode:
author sangyun <sangyun@google.com> 2023-08-07 15:31:24 +0900
committer Sangyun Yun <sangyun@google.com> 2023-08-16 16:28:30 +0000
commit62c0da5661243049733ffe54e2e54345a38eda5e (patch)
tree6d37f46a04c0e6b063f84e7fcfde3584be97a1c9 /libs/androidfw/AssetManager2.cpp
parentf480c1626115590c87c06b91617038a9810a9e6e (diff)
Change the resource cache key and limit the maximum size of cache
Change the key valus of ResoucesCache. Key contains package name and configuration of resources. Even the same context object can return different resources depending on its state, such as language changes. So a Configuration that can logically distinguish whether a resource is logically equal can be used as a key. (context does not have localical equals for resources) Also, since unique resources can be used for each package, package name is added as a resource cache key. Bug: 289045241 Test: atest CtsTelephonyTestCases Test: atest CellBroadcastServiceTests Test: atest GoogleCellBroadcastReceiverUnitTests Test: manually perform telephony tests and sanity checks Change-Id: Iacd2b350a4f32d52aae63038303413c0768185fa
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
0 files changed, 0 insertions, 0 deletions