Searched refs:ResourceConfigValue (Results 1 – 15 of 15) sorted by relevance
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 29 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/ |
D | ResourceTable.h | 54 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);
|
D | ResourceTable.cpp | 125 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 …]
|
D | ResourceTable_test.cpp | 146 std::vector<ResourceConfigValue*> values = sr.value().entry->findAllValues( in TEST()
|
/frameworks/base/tools/aapt2/link/ |
D | AutoVersioner_test.cpp | 32 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()
|
D | ProductFilter.cpp | 30 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()
|
D | ProductFilter.h | 30 using ResourceConfigValueIter = std::vector<std::unique_ptr<ResourceConfigValue>>::iterator;
|
D | AutoVersioner.cpp | 71 ResourceConfigValue* configValue = entry->values[i].get(); in consume()
|
D | TableMerger.cpp | 219 ResourceConfigValue* dstValue = dstEntry->findValue(srcValue->config, in doMerge()
|
D | Link.cpp | 440 ResourceConfigValue* configValue = entry->values[i].get(); in flatten()
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 188 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/ |
D | Diff.cpp | 140 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/ |
D | Common.h | 85 ResourceConfigValue* configValue = result.value().entry->findValue(config, product); in getValueForConfigAndProduct()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 125 ResourceConfigValue* configValue = sr.entry->findValue(kDefaultConfig); in findByName()
|
/frameworks/base/tools/aapt2/proto/ |
D | TableProtoDeserializer.cpp | 136 ResourceConfigValue* configValue = entry->findOrCreateValue(config, in deserializeFromPb()
|