OSDN Git Service

AssetManager: Cache a pre-filtered list of configurations
authorAdam Lesinski <adamlesinski@google.com>
Wed, 24 Feb 2016 01:49:53 +0000 (17:49 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Thu, 25 Feb 2016 23:29:17 +0000 (15:29 -0800)
commitd4b169173ad7805369204277580d3942cb08174a
tree0acb1db94d43505bbb2db989a9d23757b6729976
parentab9a9b09fdd9b8c9f666149f9840a09a97b91885
AssetManager: Cache a pre-filtered list of configurations

When we set the parameters for a ResTable, we can pre-filter which
resources match and only look at that smaller list when getting entries.
This helps A LOT with types that have many configurations, like strings
and all their various locales.

Bug:25499111
Change-Id: Ie6894c44bc67e16a10dbe028c8f3e119e5c29ac7
include/androidfw/ResourceTypes.h
libs/androidfw/ResourceTypes.cpp