Home
last modified time | relevance | path

Searched refs:ResourceConfigValue (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp29 using ConfigClaimedMap = std::unordered_map<ResourceConfigValue*, bool>;
30 using ConfigDensityGroups = std::map<ConfigDescription, std::vector<ResourceConfigValue*>>;
53 std::vector<ResourceConfigValue*> selectValues(const ConfigDensityGroups& densityGroups, in selectValues()
55 std::vector<ResourceConfigValue*> selected; in selectValues()
60 ResourceConfigValue* configValue = entry.first; in selectValues()
78 const std::vector<ResourceConfigValue*>& relatedValues = entry.second; in selectValues()
86 ResourceConfigValue* bestValue = nullptr; in selectValues()
87 for (ResourceConfigValue* thisValue : relatedValues) { in selectValues()
118 const std::vector<ResourceConfigValue*>& relatedValues = entry.second; in markNonPreferredDensitiesAsClaimed()
122 ResourceConfigValue* bestValue = nullptr; in markNonPreferredDensitiesAsClaimed()
[all …]
/frameworks/base/tools/aapt2/
DResourceTable.h54 class ResourceConfigValue {
71 ResourceConfigValue(const ConfigDescription& config, const StringPiece& product) : in ResourceConfigValue() function
75 DISALLOW_COPY_AND_ASSIGN(ResourceConfigValue);
104 std::vector<std::unique_ptr<ResourceConfigValue>> values;
108 ResourceConfigValue* findValue(const ConfigDescription& config);
109 ResourceConfigValue* findValue(const ConfigDescription& config, const StringPiece& product);
110 ResourceConfigValue* findOrCreateValue(const ConfigDescription& config,
112 std::vector<ResourceConfigValue*> findAllValues(const ConfigDescription& config);
113 std::vector<ResourceConfigValue*> findValuesIf(
114 const std::function<bool(ResourceConfigValue*)>& f);
DResourceTable.cpp125 ResourceConfigValue* ResourceEntry::findValue(const ConfigDescription& config) { in findValue()
134 bool ltConfigKeyRef(const std::unique_ptr<ResourceConfigValue>& lhs, const ConfigKey& rhs) { in ltConfigKeyRef()
142 ResourceConfigValue* ResourceEntry::findValue(const ConfigDescription& config, in findValue()
147 ResourceConfigValue* value = iter->get(); in findValue()
155 ResourceConfigValue* ResourceEntry::findOrCreateValue(const ConfigDescription& config, in findOrCreateValue()
160 ResourceConfigValue* value = iter->get(); in findOrCreateValue()
165 ResourceConfigValue* newValue = values.insert( in findOrCreateValue()
166 iter, util::make_unique<ResourceConfigValue>(config, product))->get(); in findOrCreateValue()
170 std::vector<ResourceConfigValue*> ResourceEntry::findAllValues(const ConfigDescription& config) { in findAllValues()
171 std::vector<ResourceConfigValue*> results; in findAllValues()
[all …]
DResourceTable_test.cpp146 std::vector<ResourceConfigValue*> values = sr.value().entry->findAllValues( in TEST()
/frameworks/base/tools/aapt2/link/
DAutoVersioner_test.cpp32 entry.values.push_back(util::make_unique<ResourceConfigValue>(defaultConfig, "")); in TEST()
33 entry.values.push_back(util::make_unique<ResourceConfigValue>(landConfig, "")); in TEST()
34 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dpLandConfig, "")); in TEST()
46 entry.values.push_back(util::make_unique<ResourceConfigValue>(defaultConfig, "")); in TEST()
47 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dpV13Config, "")); in TEST()
48 entry.values.push_back(util::make_unique<ResourceConfigValue>(v21Config, "")); in TEST()
DProductFilter.cpp30 ResourceConfigValue* configValue = iter->get(); in selectProductToKeep()
38 ResourceConfigValue* previouslySelectedConfigValue = selectedProductIter->get(); in selectProductToKeep()
55 ResourceConfigValue* previouslyDefaultConfigValue = defaultProductIter->get(); in selectProductToKeep()
82 std::vector<std::unique_ptr<ResourceConfigValue>> newValues; in consume()
DProductFilter.h30 using ResourceConfigValueIter = std::vector<std::unique_ptr<ResourceConfigValue>>::iterator;
DAutoVersioner.cpp71 ResourceConfigValue* configValue = entry->values[i].get(); in consume()
DTableMerger.cpp219 ResourceConfigValue* dstValue = dstEntry->findValue(srcValue->config, in doMerge()
DLink.cpp440 ResourceConfigValue* configValue = entry->values[i].get(); in flatten()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp188 ResourceConfigValue* originalValue, in pseudolocalizeIfNeeded()
208 ResourceConfigValue* newConfigValue = entry->findOrCreateValue( in pseudolocalizeIfNeeded()
220 static bool isPseudolocalizable(ResourceConfigValue* configValue) { in isPseudolocalizable()
234 std::vector<ResourceConfigValue*> values = entry->findValuesIf(isPseudolocalizable); in consume()
236 for (ResourceConfigValue* value : values) { in consume()
/frameworks/base/tools/aapt2/diff/
DDiff.cpp140 ResourceConfigValue* configValueA, in emitResourceConfigValueDiff()
145 ResourceConfigValue* configValueB) { in emitResourceConfigValueDiff()
171 for (std::unique_ptr<ResourceConfigValue>& configValueA : entryA->values) { in emitResourceEntryDiff()
172 ResourceConfigValue* configValueB = entryB->findValue(configValueA->config); in emitResourceEntryDiff()
187 for (std::unique_ptr<ResourceConfigValue>& configValueB : entryB->values) { in emitResourceEntryDiff()
188 ResourceConfigValue* configValueA = entryA->findValue(configValueB->config); in emitResourceEntryDiff()
/frameworks/base/tools/aapt2/test/
DCommon.h85 ResourceConfigValue* configValue = result.value().entry->findValue(config, product); in getValueForConfigAndProduct()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp125 ResourceConfigValue* configValue = sr.entry->findValue(kDefaultConfig); in findByName()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp136 ResourceConfigValue* configValue = entry->findOrCreateValue(config, in deserializeFromPb()