Home
last modified time | relevance | path

Searched refs:ConfigDescription (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tools/aapt/
DConfigDescription.h26 struct ConfigDescription : public android::ResTable_config { struct
27 ConfigDescription() { in ConfigDescription() function
32 ConfigDescription(const android::ResTable_config&o) { in ConfigDescription() function
37 ConfigDescription(const ConfigDescription&o) { in ConfigDescription() argument
41 ConfigDescription& operator=(const android::ResTable_config& o) {
47 ConfigDescription& operator=(const ConfigDescription& o) {
52 inline bool operator<(const ConfigDescription& o) const { return compare(o) < 0; }
53 inline bool operator<=(const ConfigDescription& o) const { return compare(o) <= 0; }
54 inline bool operator==(const ConfigDescription& o) const { return compare(o) == 0; }
55 inline bool operator!=(const ConfigDescription& o) const { return compare(o) != 0; }
[all …]
DResourceFilter.h52 ConfigDescription mDefault;
54 android::Vector<std::pair<ConfigDescription, uint32_t> > mConfigs;
81 StrongResourceFilter(const std::set<ConfigDescription>& configs) in StrongResourceFilter()
87 std::set<ConfigDescription>::const_iterator iter = mConfigs.begin(); in match()
96 inline const std::set<ConfigDescription>& getConfigs() const { in getConfigs()
101 std::set<ConfigDescription> mConfigs;
DApkBuilder.cpp27 mSplits.add(new ApkSplit(std::set<ConfigDescription>(), mDefaultFilter, true)); in ApkBuilder()
30 status_t ApkBuilder::createSplitForConfigs(const std::set<ConfigDescription>& configs) { in createSplitForConfigs()
33 const std::set<ConfigDescription>& splitConfigs = mSplits[i]->getConfigs(); in createSplitForConfigs()
34 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in createSplitForConfigs()
81 ApkSplit::ApkSplit(const std::set<ConfigDescription>& configs, const sp<ResourceFilter>& filter, bo… in ApkSplit()
83 std::set<ConfigDescription>::const_iterator iter = configs.begin(); in ApkSplit()
DApkBuilder.h44 android::status_t createSplitForConfigs(const std::set<ConfigDescription>& configs);
78 const std::set<ConfigDescription>& getConfigs() const { in getConfigs()
111 …ApkSplit(const std::set<ConfigDescription>& configs, const android::sp<ResourceFilter>& filter, bo…
113 std::set<ConfigDescription> mConfigs;
DSymbol.h47 inline SymbolDefinition(const Symbol& s, const ConfigDescription& c, const SourcePos& src);
51 ConfigDescription config;
84 SymbolDefinition::SymbolDefinition(const Symbol& s, const ConfigDescription& c, const SourcePos& sr… in SymbolDefinition()
DAaptConfig.h37 bool parse(const android::String8& str, ConfigDescription* out = NULL);
45 bool parseCommaSeparatedList(const android::String8& str, std::set<ConfigDescription>* outSet);
52 void applyVersionForCompatibility(ConfigDescription* config);
DResourceFilter.cpp27 std::pair<ConfigDescription, uint32_t>& entry = mConfigs.editItemAt(i); in parse()
69 const std::pair<ConfigDescription, uint32_t>& entry = mConfigs[i]; in match()
99 ConfigDescription config; in parse()
DAaptConfig.cpp34 bool parse(const String8& str, ConfigDescription* out) { in parse()
37 ConfigDescription config; in parse()
225 bool parseCommaSeparatedList(const String8& str, std::set<ConfigDescription>* outSet) { in parseCommaSeparatedList()
229 ConfigDescription config; in parseCommaSeparatedList()
238 void applyVersionForCompatibility(ConfigDescription* config) { in applyVersionForCompatibility()
813 const ConfigDescription nullConfig; in isDensityOnly()
DResourceTable.h237 const ConfigDescription* config = NULL);
368 const String8* configTypeName, const ConfigDescription* config);
416 … const DefaultKeyedVector<ConfigDescription, sp<Entry> >& getEntries() const { return mEntries; } in getEntries()
425 DefaultKeyedVector<ConfigDescription, sp<Entry> > mEntries;
479 SortedVector<ConfigDescription> getUniqueConfigs() const;
DAaptAssets.h108 AaptGroupEntry(const ConfigDescription& config) : mParams(config) {} in AaptGroupEntry()
112 inline const ConfigDescription& toParams() const { return mParams; } in toParams()
128 ConfigDescription mParams;
DResourceTable.cpp2214 const ConfigDescription* config) in stringToValue()
2758 const ConfigDescription nullConfig; in flatten()
2842 ConfigDescription config = c->getEntries().keyAt(ei); in flatten()
2855 ConfigDescription* valueConfig = NULL; in flatten()
3025 const SortedVector<ConfigDescription> uniqueConfigs(t->getUniqueConfigs()); in flatten()
3031 const ConfigDescription& config = uniqueConfigs[ci]; in flatten()
3563 const String8* configTypeName, const ConfigDescription* config) in prepareFlatten()
3803 ConfigDescription cdesc; in getEntry()
3876 SortedVector<ConfigDescription> ResourceTable::Type::getUniqueConfigs() const { in getUniqueConfigs()
3877 SortedVector<ConfigDescription> unique; in getUniqueConfigs()
[all …]
DResource.cpp1620 const std::set<ConfigDescription>& splitConfigs = split->getConfigs(); in buildResources()
1621 for (std::set<ConfigDescription>::const_iterator iter = splitConfigs.begin(); in buildResources()
1624 const ConfigDescription& config = *iter; in buildResources()
DAaptAssets.cpp566 ConfigDescription withoutVersion = file->getGroupEntry().toParams(); in addFile()
DCommand.cpp2341 std::set<ConfigDescription> configs; in doPackage()
/frameworks/base/tools/aapt/tests/
DResourceFilter_test.cpp34 ConfigDescription config; in TEST()
49 ConfigDescription config; in TEST()
59 ConfigDescription config; in TEST()
70 ConfigDescription config; in TEST()
82 ConfigDescription config; in TEST()
93 ConfigDescription config; in TEST()
104 ConfigDescription config; in TEST()
117 ConfigDescription config; in TEST()
130 ConfigDescription config; in TEST()
146 ConfigDescription config; in TEST()
[all …]
DAaptConfig_test.cpp26 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse()
33 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse()
52 ConfigDescription config; in TEST()
66 ConfigDescription config; in TEST()
72 ConfigDescription config; in TEST()
/frameworks/base/tools/split-select/
DRuleGenerator_test.cpp50 EXPECT_LT(263, (int) ConfigDescription::DENSITY_XHIGH); in TEST()
51 EXPECT_GT(262, (int) ConfigDescription::DENSITY_HIGH); in TEST()
52 EXPECT_LT(363, (int) ConfigDescription::DENSITY_XXHIGH); in TEST()
53 EXPECT_GT(362, (int) ConfigDescription::DENSITY_XHIGH); in TEST()
58 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); in TEST()
59 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); in TEST()
60 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); in TEST()
81 const ssize_t highIndex = densities.add(ConfigDescription::DENSITY_HIGH); in TEST()
82 const ssize_t xhighIndex = densities.add(ConfigDescription::DENSITY_XHIGH); in TEST()
83 const ssize_t xxhighIndex = densities.add(ConfigDescription::DENSITY_XXHIGH); in TEST()
[all …]
DSplitDescription.h31 ConfigDescription config;
DMain.cpp108 static void removeRuntimeQualifiers(ConfigDescription* outConfig) { in removeRuntimeQualifiers()