/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 68 ResourceConfigValue* config_value = entry.first; in SelectValues() local 69 if (config_value->config.density == 0 && !entry.second) { in SelectValues() 71 if (density_independent_configs_.find(config_value->config) != in SelectValues() 73 selected.push_back(config_value); in SelectValues() 196 for (std::unique_ptr<ResourceConfigValue>& config_value : in SplitTable() 198 if (!options_.config_filter->Match(config_value->config)) { in SplitTable() 201 config_value.reset(); in SplitTable() 216 for (const std::unique_ptr<ResourceConfigValue>& config_value : in SplitTable() local 218 if (config_value) { in SplitTable() 219 config_claimed_map[config_value.get()] = false; in SplitTable() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ProductFilter.cpp | 30 ResourceConfigValue* config_value = iter->get(); in SelectProductToKeep() local 31 if (products_.find(config_value->product) != products_.end()) { in SelectProductToKeep() 34 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep() 35 << "selection of product '" << config_value->product in SelectProductToKeep() 51 if (config_value->product.empty() || config_value->product == "default") { in SelectProductToKeep() 54 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep()
|
D | AutoVersioner.cpp | 79 ResourceConfigValue* config_value = entry->values[i].get(); in Consume() local 80 if (config_value->config.sdkVersion >= SDK_LOLLIPOP_MR1) { in Consume() 87 if (Style* style = ValueCast<Style>(config_value->value.get())) { in Consume() 98 if (sdk_level > std::max<ApiVersion>(config_value->config.sdkVersion, 1)) { in Consume() 121 config_value->config, in Consume() 124 ConfigDescription new_config(config_value->config); in Consume()
|
D | ReferenceLinker.cpp | 348 for (auto& config_value : entry->values) { in Consume() local 349 config_value->value->Accept(&visitor); in Consume()
|
/frameworks/base/tools/aapt2/optimize/ |
D | VersionCollapser.cpp | 124 for (std::unique_ptr<ResourceConfigValue>& config_value : entry->values) { in CollapseVersions() 125 if (config_value->config.sdkVersion != 0 && in CollapseVersions() 126 config_value->config.sdkVersion <= min_sdk) { in CollapseVersions() 130 config_value->config.CopyWithoutSdkVersion(), in CollapseVersions() 131 config_value->product); in CollapseVersions() 132 new_value->value = std::move(config_value->value); in CollapseVersions() 133 config_value = std::move(new_value); in CollapseVersions()
|
/frameworks/base/tools/aapt2/test/ |
D | Common.cpp | 51 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct() local 52 if (config_value) { in GetValueForConfigAndProduct() 53 return config_value->value.get(); in GetValueForConfigAndProduct()
|
D | Common.h | 69 ResourceConfigValue* config_value = result.value().entry->FindValue(config, product); in GetValueForConfigAndProduct() local 70 if (config_value) { in GetValueForConfigAndProduct() 71 return ValueCast<T>(config_value->value.get()); in GetValueForConfigAndProduct()
|
/frameworks/base/tools/aapt2/proto/ |
D | TableProtoSerializer.cpp | 257 for (auto& config_value : entry->values) { in SerializeTableToPb() local 259 SerializeConfig(config_value->config, pb_config_value->mutable_config()); in SerializeTableToPb() 260 if (!config_value->product.empty()) { in SerializeTableToPb() 261 pb_config_value->mutable_config()->set_product(config_value->product); in SerializeTableToPb() 265 SerializeSourceToPb(config_value->value->GetSource(), &source_pool, in SerializeTableToPb() 267 if (!config_value->value->GetComment().empty()) { in SerializeTableToPb() 268 pb_value->set_comment(config_value->value->GetComment()); in SerializeTableToPb() 271 if (config_value->value->IsWeak()) { in SerializeTableToPb() 276 config_value->value->Accept(&visitor); in SerializeTableToPb()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.cpp | 208 for (auto& config_value : entry->values) { in WriteSplitApk() local 209 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk() 218 << config_value->config << "' not found"); in WriteSplitApk() 223 config_sorted_files[std::make_pair(config_value->config, entry_name)] = file_ref; in WriteSplitApk()
|
D | Link.cpp | 515 for (auto& config_value : entry->values) { in Flatten() local 519 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten() 534 file_op.config = config_value->config; in Flatten() 554 file_op.xml_to_flatten->file.config = config_value->config; in Flatten() 564 config_sorted_files[std::make_pair(config_value->config, entry_name)] = in Flatten() 836 for (const auto& config_value : entry->values) { in VerifyNoExternalPackages() local 839 if (ValueCast<Id>(config_value->value.get()) && package->name == "android") { in VerifyNoExternalPackages() 840 context_->GetDiagnostics()->Warn(DiagMessage(config_value->value->GetSource()) in VerifyNoExternalPackages() 845 context_->GetDiagnostics()->Error(DiagMessage(config_value->value->GetSource()) in VerifyNoExternalPackages()
|
/frameworks/base/tools/aapt2/ |
D | LoadedApk.cpp | 65 for (auto& config_value : entry->values) { in WriteToArchive() local 66 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive()
|
D | ResourceTable.cpp | 410 ResourceConfigValue* config_value = entry->FindOrCreateValue(config, product); in AddResourceImpl() local 411 if (!config_value->value) { in AddResourceImpl() 413 config_value->value = std::move(value); in AddResourceImpl() 416 switch (conflictResolver(config_value->value.get(), value.get())) { in AddResourceImpl() 419 config_value->value = std::move(value); in AddResourceImpl() 426 diag->Error(DiagMessage(config_value->value->GetSource()) in AddResourceImpl()
|
D | ValueVisitor.h | 152 for (auto& config_value : entry->values) { 153 config_value->value->Accept(visitor);
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 343 static bool IsPseudolocalizable(ResourceConfigValue* config_value) { in IsPseudolocalizable() argument 344 const int diff = config_value->config.diff(ConfigDescription::DefaultConfig()); in IsPseudolocalizable() 348 return config_value->value->IsTranslatable(); in IsPseudolocalizable()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 200 ResourceConfigValue* config_value = sr.entry->FindValue(kDefaultConfig); in FindByName() local 201 if (config_value) { in FindByName() 203 if (Attribute* attr = ValueCast<Attribute>(config_value->value.get())) { in FindByName()
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener.cpp | 504 for (auto& config_value : entry->values) { in FlattenTypes() local 505 config_to_entry_list_map[config_value->config].push_back( in FlattenTypes() 506 FlatEntry{entry, config_value->value.get(), key_index}); in FlattenTypes()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 453 for (const auto& config_value : entry.values) { in ProcessResource() local 454 processor->AppendComment(config_value->value->GetComment()); in ProcessResource()
|