Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp76 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST()
77 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
78 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
79 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
96 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST()
97 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
99 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
100 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "phablet")); in TEST()
125 std::vector<std::unique_ptr<ResourceConfigValue>> configs; in TEST()
[all …]
DResourceTable.h112 class ResourceConfigValue {
123 ResourceConfigValue(const android::ConfigDescription& config, const android::StringPiece& product) in ResourceConfigValue() function
127 DISALLOW_COPY_AND_ASSIGN(ResourceConfigValue);
149 std::vector<std::unique_ptr<ResourceConfigValue>> values;
153 ResourceConfigValue* FindValue(const android::ConfigDescription& config);
155 ResourceConfigValue* FindValue(const android::ConfigDescription& config,
158 ResourceConfigValue* FindOrCreateValue(const android::ConfigDescription& config,
160 std::vector<ResourceConfigValue*> FindAllValues(const android::ConfigDescription& config);
163 std::vector<ResourceConfigValue*> FindValuesIf(Func f) { in FindValuesIf()
164 std::vector<ResourceConfigValue*> results; in FindValuesIf()
DDominatorTree.h51 const std::vector<std::unique_ptr<ResourceConfigValue>>& configs);
55 explicit Node(ResourceConfigValue* value = nullptr, Node* parent = nullptr)
58 inline ResourceConfigValue* value() const { return value_; } in value()
74 ResourceConfigValue* value_;
DResourceTable.cpp173 ResourceConfigValue* ResourceEntry::FindValue(const ConfigDescription& config) { in FindValue()
182 bool lt_config_key_ref(const std::unique_ptr<ResourceConfigValue>& lhs, const ConfigKey& rhs) { in lt_config_key_ref()
190 ResourceConfigValue* ResourceEntry::FindValue(const ConfigDescription& config, in FindValue()
195 ResourceConfigValue* value = iter->get(); in FindValue()
203 ResourceConfigValue* ResourceEntry::FindOrCreateValue(const ConfigDescription& config, in FindOrCreateValue()
208 ResourceConfigValue* value = iter->get(); in FindOrCreateValue()
213 ResourceConfigValue* newValue = in FindOrCreateValue()
214 values.insert(iter, util::make_unique<ResourceConfigValue>(config, product))->get(); in FindOrCreateValue()
218 std::vector<ResourceConfigValue*> ResourceEntry::FindAllValues(const ConfigDescription& config) { in FindAllValues()
219 std::vector<ResourceConfigValue*> results; in FindAllValues()
[all …]
DDominatorTree.cpp29 const std::vector<std::unique_ptr<ResourceConfigValue>>& configs) { in DominatorTree()
DResourceTable_test.cpp155 std::vector<ResourceConfigValue*> values = in TEST()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp37 using ConfigClaimedMap = std::unordered_map<ResourceConfigValue*, bool>;
38 using ConfigDensityGroups = std::map<ConfigDescription, std::vector<ResourceConfigValue*>>;
61 std::vector<ResourceConfigValue*> SelectValues( in SelectValues()
64 std::vector<ResourceConfigValue*> selected; in SelectValues()
69 ResourceConfigValue* config_value = entry.first; in SelectValues()
87 const std::vector<ResourceConfigValue*>& related_values = entry.second; in SelectValues()
96 ResourceConfigValue* best_value = nullptr; in SelectValues()
97 for (ResourceConfigValue* this_value : related_values) { in SelectValues()
130 const std::vector<ResourceConfigValue*>& related_values = entry.second; in MarkNonPreferredDensitiesAsClaimed()
133 std::unordered_set<ResourceConfigValue*> best_values; in MarkNonPreferredDensitiesAsClaimed()
[all …]
/frameworks/base/tools/aapt2/optimize/
DVersionCollapser.cpp89 auto pred = [&](const std::unique_ptr<ResourceConfigValue>& val) -> bool { in CollapseVersions()
113 [](const std::unique_ptr<ResourceConfigValue>& val) in CollapseVersions()
121 for (std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in CollapseVersions()
125 std::unique_ptr<ResourceConfigValue> new_value = in CollapseVersions()
126 util::make_unique<ResourceConfigValue>( in CollapseVersions()
140 [](const std::unique_ptr<ResourceConfigValue>& a, in CollapseVersions()
141 const std::unique_ptr<ResourceConfigValue>& b) -> bool { in CollapseVersions()
DResourceDeduper.cpp54 ResourceConfigValue* node_value = node->value(); in VisitConfig()
55 ResourceConfigValue* parent_value = parent->value(); in VisitConfig()
105 [](const std::unique_ptr<ResourceConfigValue>& val) -> bool { in DedupeEntry()
/frameworks/base/tools/aapt2/link/
DAutoVersioner_test.cpp33 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
34 entry.values.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
35 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
46 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
47 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dp_v13_config, "")); in TEST()
48 entry.values.push_back(util::make_unique<ResourceConfigValue>(v21_config, "")); in TEST()
DProductFilter.cpp31 ResourceConfigValue* config_value = iter->get(); in SelectProductToKeep()
39 ResourceConfigValue* previously_selected_config_value = in SelectProductToKeep()
59 ResourceConfigValue* previously_default_config_value = in SelectProductToKeep()
90 std::vector<std::unique_ptr<ResourceConfigValue>> new_values; in Consume()
DResourceExcluder.cpp34 ResourceConfigValue* value) { in RemoveIfExcluded()
81 [](const std::unique_ptr<ResourceConfigValue>& val) -> bool { in Consume()
DLinkers.h95 class ResourceConfigValue; variable
99 using ResourceConfigValueIter = std::vector<std::unique_ptr<ResourceConfigValue>>::iterator;
DTableMerger.cpp197 ResourceConfigValue* dst_config_value, in MergeConfigValue()
198 ResourceConfigValue* src_config_value, in MergeConfigValue()
268 ResourceConfigValue* dst_config_value = dst_entry->FindValue( in DoMerge()
DAutoVersioner.cpp83 ResourceConfigValue* config_value = entry->values[i].get(); in Consume()
/frameworks/base/tools/aapt2/cmd/
DDiff.cpp94 ResourceEntry* entry_a, ResourceConfigValue* config_value_a, in EmitResourceConfigValueDiff()
97 ResourceConfigValue* config_value_b) { in EmitResourceConfigValueDiff()
119 for (std::unique_ptr<ResourceConfigValue>& config_value_a : entry_a->values) { in EmitResourceEntryDiff()
120 ResourceConfigValue* config_value_b = entry_b->FindValue(config_value_a->config); in EmitResourceEntryDiff()
135 for (std::unique_ptr<ResourceConfigValue>& config_value_b : entry_b->values) { in EmitResourceEntryDiff()
136 ResourceConfigValue* config_value_a = entry_a->FindValue(config_value_b->config); in EmitResourceEntryDiff()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp315 ResourceConfigValue* original_value, in PseudolocalizeIfNeeded()
334 ResourceConfigValue* new_config_value = in PseudolocalizeIfNeeded()
344 static bool IsPseudolocalizable(ResourceConfigValue* config_value) { in IsPseudolocalizable()
358 std::vector<ResourceConfigValue*> values = entry->FindValuesIf(IsPseudolocalizable); in Consume()
359 for (ResourceConfigValue* value : values) { in Consume()
/frameworks/base/tools/aapt2/test/
DCommon.cpp53 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct()
DCommon.h60 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp207 ResourceConfigValue* config_value = sr.entry->FindValue(kDefaultConfig); in FindByName()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp375 for (const std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in SerializeTableToPb()
DProtoDeserialize.cpp513 ResourceConfigValue* config_value = entry->FindOrCreateValue(config, pb_config.product()); in DeserializePackageFromPb()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp163 ResourceConfigValue* best_value = nullptr; in BestConfigValue()