diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-04-25 14:20:21 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-04-30 01:36:12 +0000 |
commit | 458b877488c12ea4336d8fc00a95d9c0298bd6d0 (patch) | |
tree | 6169f78510254f6bde737279763049f00eaef200 /tools/aapt2/ResourceTable.h | |
parent | 832449800e2e5068ab0eb986bb359906ddf6efdc (diff) |
AAPT2: Add diff command
Adds the diff command and various small fixes to issues
discovered when diffing old AAPT built APKs with new AAPT2
built APKS.
Bug:22775504
Change-Id: I682a7fe1cf4b3efa7cbd5d18b333cf2d1046fe1b
Diffstat (limited to 'tools/aapt2/ResourceTable.h')
-rw-r--r-- | tools/aapt2/ResourceTable.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceTable.h b/tools/aapt2/ResourceTable.h index 7f5c2b8c0f37..5690ea6fa614 100644 --- a/tools/aapt2/ResourceTable.h +++ b/tools/aapt2/ResourceTable.h @@ -26,6 +26,7 @@ #include "io/File.h" #include <android-base/macros.h> +#include <functional> #include <map> #include <memory> #include <string> @@ -109,6 +110,9 @@ public: ResourceConfigValue* findOrCreateValue(const ConfigDescription& config, const StringPiece& product); std::vector<ResourceConfigValue*> findAllValues(const ConfigDescription& config); + std::vector<ResourceConfigValue*> findValuesIf( + const std::function<bool(ResourceConfigValue*)>& f); + private: DISALLOW_COPY_AND_ASSIGN(ResourceEntry); |