Home
last modified time | relevance | path

Searched refs:config_value (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp69 ResourceConfigValue* config_value = entry.first; in SelectValues() local
70 if (config_value->config.density == 0 && !entry.second) { in SelectValues()
72 if (density_independent_configs_.find(config_value->config) != in SelectValues()
74 selected.push_back(config_value); in SelectValues()
198 for (std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in SplitTable()
199 if (!options_.config_filter->Match(config_value->config)) { in SplitTable()
202 config_value.reset(); in SplitTable()
213 for (const std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in SplitTable() local
214 if (config_value) { in SplitTable()
215 config_claimed_map[config_value.get()] = false; in SplitTable()
[all …]
/frameworks/base/tools/aapt2/link/
DNoDefaultResourceRemover.cpp42 for (const auto& config_value : entry->values) { in KeepResource() local
43 const int config = ConfigDescription::DefaultConfig().diff(config_value->config); in KeepResource()
52 && config_value->config.sdkVersion <= minSdk) { in KeepResource()
59 && config_value->config.sdkVersion <= minSdk)) { in KeepResource()
85 for (const auto& config_value : (*iter)->values) { in Consume()
86 if (config_value->value != nullptr) { in Consume()
87 diag->Note(android::DiagMessage(config_value->value->GetSource()) << "defined here"); in Consume()
DAutoVersioner.cpp84 ResourceConfigValue* config_value = entry->values[i].get(); in Consume() local
85 if (config_value->config.sdkVersion >= SDK_LOLLIPOP_MR1) { in Consume()
92 if (Style* style = ValueCast<Style>(config_value->value.get())) { in Consume()
103 if (sdk_level > std::max<ApiVersion>(config_value->config.sdkVersion, 1)) { in Consume()
126 config_value->config, in Consume()
129 ConfigDescription new_config(config_value->config); in Consume()
DReferenceLinker.cpp492 for (auto& config_value : entry->values) { in Consume() local
493 config_value->value = config_value->value->Transform(reference_transformer); in Consume()
/frameworks/base/tools/aapt2/optimize/
DVersionCollapser.cpp128 for (std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in CollapseVersions()
129 if (config_value->config.sdkVersion != 0 && in CollapseVersions()
130 config_value->config.sdkVersion <= min_sdk) { in CollapseVersions()
134 config_value->config.CopyWithoutSdkVersion(), in CollapseVersions()
135 config_value->product); in CollapseVersions()
140 << config_value->config.to_string()); in CollapseVersions()
142 new_value->value = std::move(config_value->value); in CollapseVersions()
143 config_value = std::move(new_value); in CollapseVersions()
DObfuscator.cpp121 for (auto& config_value : entry->values) { in HandleShortenFilePaths() local
122 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in HandleShortenFilePaths()
/frameworks/base/tools/aapt2/process/
DProductFilter.cpp33 ResourceConfigValue* config_value = iter->get(); in SelectProductToKeep() local
34 if (products_.find(config_value->product) != products_.end()) { in SelectProductToKeep()
37 diag->Error(android::DiagMessage(config_value->value->GetSource()) in SelectProductToKeep()
38 << "selection of product '" << config_value->product << "' for resource " in SelectProductToKeep()
52 if (config_value->product.empty() || config_value->product == "default") { in SelectProductToKeep()
55 diag->Error(android::DiagMessage(config_value->value->GetSource()) in SelectProductToKeep()
DSymbolTable.cpp208 ResourceConfigValue* config_value = sr.entry->FindValue(kDefaultConfig); in FindByName() local
209 if (config_value) { in FindByName()
211 if (Attribute* attr = ValueCast<Attribute>(config_value->value.get())) { in FindByName()
/frameworks/base/tools/aapt2/test/
DCommon.cpp52 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct() local
53 if (config_value) { in GetValueForConfigAndProduct()
54 return config_value->value.get(); in GetValueForConfigAndProduct()
DCommon.h60 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct() local
61 if (config_value) { in GetValueForConfigAndProduct()
62 return ValueCast<T>(config_value->value.get()); in GetValueForConfigAndProduct()
/frameworks/base/tools/aapt2/integration-tests/DumpTest/
Dcomponents_full_proto.txt190 config_value {
213 config_value {
236 config_value {
259 config_value {
282 config_value {
305 config_value {
328 config_value {
356 config_value {
384 config_value {
410 config_value {
[all …]
/frameworks/base/cmds/idmap2/libidmap2/
DResourceMapping.cpp184 const auto& config_value = std::get<TargetValueWithConfig>(value); in AddMapping() local
185 if (config_map.find(config_value.config) != config_map.end()) { in AddMapping()
189 config_map.insert(config_value.to_pair()); in AddMapping()
/frameworks/base/tools/aapt2/
DResourceTable.cpp226 for (auto& config_value : values) { in HasDefaultValue() local
227 if (config_value->config == default_config) { in HasDefaultValue()
563 auto config_value = entry->FindOrCreateValue(res.config, res.product); in AddResource() local
564 if (!config_value->value) { in AddResource()
566 config_value->value = std::move(res.value); in AddResource()
570 auto result = validate ? ResolveValueCollision(config_value->value.get(), res.value.get()) in AddResource()
581 config_value->value = std::move(res.value); in AddResource()
679 for (const auto& config_value : entry->values) { in Clone() local
681 new_entry->FindOrCreateValue(config_value->config, config_value->product); in Clone()
682 new_value->value = config_value->value->Transform(cloner); in Clone()
DResourceTable.h154 for (auto& config_value : values) { in FindValuesIf()
155 if (f(config_value.get())) { in FindValuesIf()
156 results.push_back(config_value.get()); in FindValuesIf()
DValueVisitor.h201 for (auto& config_value : entry->values) {
202 config_value->value->Accept(visitor);
DLoadedApk.cpp214 for (auto& config_value : entry->values) { in WriteToArchive() local
215 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp795 ResourceConfigValue* config_value = entry->FindValue({}); in TEST() local
796 Reference* ref = ValueCast<Reference>(config_value->value.get()); in TEST()
803 config_value = entry->FindValue({}); in TEST()
804 BinaryPrimitive* bp = ValueCast<BinaryPrimitive>(config_value->value.get()); in TEST()
807 config_value = entry->FindValue(test::ParseConfigOrDie("v1")); in TEST()
808 bp = ValueCast<BinaryPrimitive>(config_value->value.get()); in TEST()
815 config_value = entry->FindValue({}); in TEST()
816 String* s = ValueCast<String>(config_value->value.get()); in TEST()
823 config_value = entry->FindValue({}); in TEST()
824 FileReference* f = ValueCast<FileReference>(config_value->value.get()); in TEST()
[all …]
DProtoSerialize.cpp423 for (const ResourceConfigValue* config_value : entry.values) { in SerializeTableToPb() local
425 SerializeConfig(config_value->config, pb_config_value->mutable_config()); in SerializeTableToPb()
426 pb_config_value->mutable_config()->set_product(config_value->product); in SerializeTableToPb()
427 SerializeValueToPb(*config_value->value, pb_config_value->mutable_value(), in SerializeTableToPb()
DProtoDeserialize.cpp522 for (const pb::ConfigValue& pb_config_value : pb_entry.config_value()) { in DeserializePackageFromPb()
530 ResourceConfigValue* config_value = entry->FindOrCreateValue(config, pb_config.product()); in DeserializePackageFromPb() local
531 if (config_value->value != nullptr) { in DeserializePackageFromPb()
536 config_value->value = DeserializeValueFromPb(pb_config_value.value(), src_pool, config, in DeserializePackageFromPb()
538 if (config_value->value == nullptr) { in DeserializePackageFromPb()
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp265 for (auto& config_value : entry->values) { in WriteSplitApk() local
266 auto* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk()
275 << config_value->config << "' not found"); in WriteSplitApk()
280 config_sorted_files[std::make_pair(config_value->config, entry_name)] = file_ref; in WriteSplitApk()
DLink.cpp542 for (auto& config_value : entry->values) { in Flatten() local
546 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten()
561 file_op.config = config_value->config; in Flatten()
602 file_op.xml_to_flatten->file.config = config_value->config; in Flatten()
613 config_sorted_files[std::make_pair(config_value->config, entry_name)] = in Flatten()
1024 for (const auto& config_value : entry->values) { in VerifyNoExternalPackages() local
1027 if (ValueCast<Id>(config_value->value.get()) && package->name == "android") { in VerifyNoExternalPackages()
1029 android::DiagMessage(config_value->value->GetSource()) in VerifyNoExternalPackages()
1034 android::DiagMessage(config_value->value->GetSource()) in VerifyNoExternalPackages()
1747 for (auto& config_value : icon_entry->values) { in AliasAdaptiveIcon() local
[all …]
DConvert.cpp303 for (const auto& config_value : entry->values) { in Convert() local
304 FileReference* file = ValueCast<FileReference>(config_value->value.get()); in Convert()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp485 static bool IsPseudolocalizable(ResourceConfigValue* config_value) { in IsPseudolocalizable() argument
486 const int diff = config_value->config.diff(ConfigDescription::DefaultConfig()); in IsPseudolocalizable()
490 return config_value->value->IsTranslatable(); in IsPseudolocalizable()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp503 for (auto& config_value : entry.values) { in FlattenTypes() local
504 config_to_entry_list_map[config_value->config].push_back( in FlattenTypes()
505 FlatEntry{&entry, config_value->value.get(), local_key_index}); in FlattenTypes()
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp519 for (auto& config_value : entry->values) { in CollectResourceReferences() local
522 config_value->value->Accept(&visitor); in CollectResourceReferences()

12