Home
last modified time | relevance | path

Searched refs:ResourceConfigValue (Results 1 – 24 of 24) 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.h97 class ResourceConfigValue {
108 ResourceConfigValue(const android::ConfigDescription& config, const android::StringPiece& product) in ResourceConfigValue() function
112 DISALLOW_COPY_AND_ASSIGN(ResourceConfigValue);
137 std::vector<std::unique_ptr<ResourceConfigValue>> values;
141 ResourceConfigValue* FindValue(const android::ConfigDescription& config,
143 const ResourceConfigValue* FindValue(const android::ConfigDescription& config,
146 ResourceConfigValue* FindOrCreateValue(const android::ConfigDescription& config,
148 std::vector<ResourceConfigValue*> FindAllValues(const android::ConfigDescription& config);
151 std::vector<ResourceConfigValue*> FindValuesIf(Func f) { in FindValuesIf()
152 std::vector<ResourceConfigValue*> results; in FindValuesIf()
[all …]
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.cpp151 ResourceConfigValue* ResourceEntry::FindValue(const ConfigDescription& config, in FindValue()
154 lt_config_key_ref<std::unique_ptr<ResourceConfigValue>>); in FindValue()
156 ResourceConfigValue* value = iter->get(); in FindValue()
164 const ResourceConfigValue* ResourceEntry::FindValue(const android::ConfigDescription& config, in FindValue()
167 lt_config_key_ref<std::unique_ptr<ResourceConfigValue>>); in FindValue()
169 ResourceConfigValue* value = iter->get(); in FindValue()
177 ResourceConfigValue* ResourceEntry::FindOrCreateValue(const ConfigDescription& config, in FindOrCreateValue()
180 lt_config_key_ref<std::unique_ptr<ResourceConfigValue>>); in FindOrCreateValue()
182 ResourceConfigValue* value = iter->get(); in FindOrCreateValue()
187 ResourceConfigValue* newValue = in FindOrCreateValue()
[all …]
DDominatorTree.cpp29 const std::vector<std::unique_ptr<ResourceConfigValue>>& configs) { in DominatorTree()
DResourceTable_test.cpp168 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()
67 ResourceConfigValue* sibling_value = sibling->value(); in VisitConfig()
106 [](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.cpp201 ResourceConfigValue* dst_config_value, in MergeConfigValue()
202 ResourceConfigValue* src_config_value, in MergeConfigValue()
277 ResourceConfigValue* dst_config_value = dst_entry->FindValue( in DoMerge()
DAutoVersioner.cpp84 ResourceConfigValue* config_value = entry->values[i].get(); in Consume()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp316 ResourceConfigValue* original_value, in PseudolocalizeIfNeeded()
335 ResourceConfigValue* new_config_value = in PseudolocalizeIfNeeded()
345 static bool IsPseudolocalizable(ResourceConfigValue* config_value) { in IsPseudolocalizable()
359 std::vector<ResourceConfigValue*> values = entry->FindValuesIf(IsPseudolocalizable); in Consume()
360 for (ResourceConfigValue* value : values) { in Consume()
/frameworks/base/tools/aapt2/cmd/
DDiff.cpp101 const ResourceConfigValue* config_value_a, LoadedApk* apk_b, in EmitResourceConfigValueDiff()
103 const ResourceTableEntryView& entry_b, const ResourceConfigValue* config_value_b) { in EmitResourceConfigValueDiff()
127 for (const ResourceConfigValue* config_value_a : entry_a.values) { in EmitResourceEntryDiff()
142 for (const ResourceConfigValue* config_value_b : entry_b.values) { in EmitResourceEntryDiff()
/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.cpp208 ResourceConfigValue* config_value = sr.entry->FindValue(kDefaultConfig); in FindByName()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp790 ResourceConfigValue* config_value = entry->FindValue({}); in TEST()
872 ResourceConfigValue* config_value = entry->FindValue({}); in TEST()
DProtoSerialize.cpp412 for (const ResourceConfigValue* config_value : entry.values) { in SerializeTableToPb()
DProtoDeserialize.cpp529 ResourceConfigValue* config_value = entry->FindOrCreateValue(config, pb_config.product()); in DeserializePackageFromPb()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp173 ResourceConfigValue* best_value = nullptr; in BestConfigValue()