]>
git.saurik.com Git - android/aapt.git/blob - ResourceFilter.h
2 // Copyright 2011 The Android Open Source Project
4 // Build resource files from raw assets.
7 #ifndef RESOURCE_FILTER_H
8 #define RESOURCE_FILTER_H
10 #include "AaptAssets.h"
13 * Implements logic for parsing and handling "-c" and "--preferred-configurations"
19 ResourceFilter() : mData(), mContainsPseudo(false) {}
20 status_t
parse(const char* arg
);
22 bool match(int axis
, uint32_t value
) const;
23 bool match(int axis
, const ResTable_config
& config
) const;
24 bool match(const ResTable_config
& config
) const;
25 const SortedVector
<uint32_t>* configsForAxis(int axis
) const;
26 inline bool containsPseudo() const { return mContainsPseudo
; }
29 KeyedVector
<int,SortedVector
<uint32_t> > mData
;