diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-10-13 16:26:02 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-10-16 11:52:17 -0700 |
commit | e6b680364dd992907a8d2037685a2e500d188dfb (patch) | |
tree | 3d931a3139f058da9ae934e5cf50cd6dc50f7e64 /tools/aapt/ResourceTable.h | |
parent | d814d4fa0c76a0384f7e32816e1ca36f237911c6 (diff) |
New aapt feature to do smarter filtering of configurations.
This adds a --preferred-configurations flag that specifies the
specific configurations you would like to have.
It is smarter than "-c" because it will avoid stripping a
configuration if that would result in there being no value
for the resource.
It is dumber than "-c" because it can't process as many kinds
of resources. It is really only intended for bitmaps and use
with density configs.
This required re-arranging AaptAssets to group files together
by config again, like they used to be. I think this hasn't
broken anything. Hopefully.
Change-Id: I4e9d12ff6e6dbd1abb8fd4cb1814c6674b19d0e5
Diffstat (limited to 'tools/aapt/ResourceTable.h')
-rw-r--r-- | tools/aapt/ResourceTable.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/aapt/ResourceTable.h b/tools/aapt/ResourceTable.h index 80f2192da4f6..8123bb3d4226 100644 --- a/tools/aapt/ResourceTable.h +++ b/tools/aapt/ResourceTable.h @@ -549,19 +549,4 @@ private: map<String16, set<String8> > mLocalizations; }; -class ResourceFilter -{ -public: - ResourceFilter() : mData(), mContainsPseudo(false) {} - status_t parse(const char* arg); - bool match(int axis, uint32_t value) const; - bool match(const ResTable_config& config) const; - inline bool containsPseudo() const { return mContainsPseudo; } - -private: - KeyedVector<int,SortedVector<uint32_t> > mData; - bool mContainsPseudo; -}; - - #endif |