/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 69 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() 200 for (std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in SplitTable() 201 if (!options_.config_filter->Match(config_value->config)) { in SplitTable() 204 config_value.reset(); in SplitTable() 215 for (const std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in SplitTable() local 216 if (config_value) { in SplitTable() 217 config_claimed_map[config_value.get()] = false; in SplitTable() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | NoDefaultResourceRemover.cpp | 42 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(DiagMessage(config_value->value->GetSource()) << "defined here"); in Consume()
|
D | ProductFilter.cpp | 31 ResourceConfigValue* config_value = iter->get(); in SelectProductToKeep() local 32 if (products_.find(config_value->product) != products_.end()) { in SelectProductToKeep() 35 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep() 36 << "selection of product '" << config_value->product in SelectProductToKeep() 52 if (config_value->product.empty() || config_value->product == "default") { in SelectProductToKeep() 55 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep()
|
D | AutoVersioner.cpp | 83 ResourceConfigValue* config_value = entry->values[i].get(); in Consume() local 84 if (config_value->config.sdkVersion >= SDK_LOLLIPOP_MR1) { in Consume() 91 if (Style* style = ValueCast<Style>(config_value->value.get())) { in Consume() 102 if (sdk_level > std::max<ApiVersion>(config_value->config.sdkVersion, 1)) { in Consume() 125 config_value->config, in Consume() 128 ConfigDescription new_config(config_value->config); in Consume()
|
D | ReferenceLinker.cpp | 391 for (auto& config_value : entry->values) { in Consume() local 392 config_value->value->Accept(&visitor); in Consume()
|
/frameworks/base/tools/aapt2/optimize/ |
D | VersionCollapser.cpp | 121 for (std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in CollapseVersions() 122 if (config_value->config.sdkVersion != 0 && in CollapseVersions() 123 config_value->config.sdkVersion <= min_sdk) { in CollapseVersions() 127 config_value->config.CopyWithoutSdkVersion(), in CollapseVersions() 128 config_value->product); in CollapseVersions() 129 new_value->value = std::move(config_value->value); in CollapseVersions() 130 config_value = std::move(new_value); in CollapseVersions()
|
D | ResourcePathShortener.cpp | 84 for (auto& config_value : entry->values) { in Consume() local 85 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Consume()
|
/frameworks/base/tools/aapt2/test/ |
D | Common.cpp | 53 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct() local 54 if (config_value) { in GetValueForConfigAndProduct() 55 return config_value->value.get(); in GetValueForConfigAndProduct()
|
D | Common.h | 60 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/ |
D | ResourceTable.cpp | 244 for (auto& config_value : values) { in HasDefaultValue() local 245 if (config_value->config == default_config) { in HasDefaultValue() 440 ResourceConfigValue* config_value = entry->FindOrCreateValue(config, product); in AddResourceImpl() local 441 if (!config_value->value) { in AddResourceImpl() 443 config_value->value = std::move(value); in AddResourceImpl() 445 switch (conflict_resolver(config_value->value.get(), value.get(), false /* overlay */)) { in AddResourceImpl() 454 config_value->value = std::move(value); in AddResourceImpl() 662 for (const auto& config_value : entry->values) { in Clone() local 664 new_entry->FindOrCreateValue(config_value->config, config_value->product); in Clone() 665 new_value->value.reset(config_value->value->Clone(&new_table->string_pool)); in Clone()
|
D | ResourceTable.h | 165 for (auto& config_value : values) { in FindValuesIf() 166 if (f(config_value.get())) { in FindValuesIf() 167 results.push_back(config_value.get()); in FindValuesIf()
|
D | ValueVisitor.h | 195 for (auto& config_value : entry->values) { 196 config_value->value->Accept(visitor);
|
D | LoadedApk.cpp | 211 for (auto& config_value : entry->values) { in WriteToArchive() local 212 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive()
|
D | Resources.proto | 218 repeated ConfigValue config_value = 6; field
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.cpp | 244 for (auto& config_value : entry->values) { in WriteSplitApk() local 245 auto* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk() 254 << config_value->config << "' not found"); in WriteSplitApk() 259 config_sorted_files[std::make_pair(config_value->config, entry_name)] = file_ref; in WriteSplitApk()
|
D | Convert.cpp | 291 for (const auto& config_value : entry->values) { in Convert() local 292 FileReference* file = ValueCast<FileReference>(config_value->value.get()); in Convert()
|
D | Link.cpp | 512 for (auto& config_value : entry->values) { in Flatten() local 516 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten() 531 file_op.config = config_value->config; in Flatten() 572 file_op.xml_to_flatten->file.config = config_value->config; in Flatten() 582 config_sorted_files[std::make_pair(config_value->config, entry_name)] = in Flatten() 988 for (const auto& config_value : entry->values) { in VerifyNoExternalPackages() local 991 if (ValueCast<Id>(config_value->value.get()) && package->name == "android") { in VerifyNoExternalPackages() 992 context_->GetDiagnostics()->Warn(DiagMessage(config_value->value->GetSource()) in VerifyNoExternalPackages() 997 context_->GetDiagnostics()->Error(DiagMessage(config_value->value->GetSource()) in VerifyNoExternalPackages()
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 344 static bool IsPseudolocalizable(ResourceConfigValue* config_value) { in IsPseudolocalizable() argument 345 const int diff = config_value->config.diff(ConfigDescription::DefaultConfig()); in IsPseudolocalizable() 349 return config_value->value->IsTranslatable(); in IsPseudolocalizable()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 207 ResourceConfigValue* config_value = sr.entry->FindValue(kDefaultConfig); in FindByName() local 208 if (config_value) { in FindByName() 210 if (Attribute* attr = ValueCast<Attribute>(config_value->value.get())) { in FindByName()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.cpp | 375 for (const std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in SerializeTableToPb() local 377 SerializeConfig(config_value->config, pb_config_value->mutable_config()); in SerializeTableToPb() 378 pb_config_value->mutable_config()->set_product(config_value->product); in SerializeTableToPb() 379 SerializeValueToPb(*config_value->value, pb_config_value->mutable_value(), &source_pool); in SerializeTableToPb()
|
D | ProtoDeserialize.cpp | 505 for (const pb::ConfigValue& pb_config_value : pb_entry.config_value()) { in DeserializePackageFromPb() 513 ResourceConfigValue* config_value = entry->FindOrCreateValue(config, pb_config.product()); in DeserializePackageFromPb() local 514 if (config_value->value != nullptr) { in DeserializePackageFromPb() 519 config_value->value = DeserializeValueFromPb(pb_config_value.value(), src_pool, config, in DeserializePackageFromPb() 521 if (config_value->value == nullptr) { in DeserializePackageFromPb()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 663 for (auto& config_value : entry->values) { in FlattenTypes() local 664 config_to_entry_list_map[config_value->config].push_back( in FlattenTypes() 665 FlatEntry{entry, config_value->value.get(), local_key_index}); in FlattenTypes()
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 499 for (auto& config_value : entry->values) { in CollectResourceReferences() local 502 config_value->value->Accept(&visitor); in CollectResourceReferences()
|
D | JavaClassGenerator.cpp | 464 for (const auto& config_value : entry.values) { in ProcessResource() local 465 processor->AppendComment(config_value->value->GetComment()); in ProcessResource()
|