Lines Matching refs:options_

379   ResourceFileFlattenerOptions options_;  member in aapt::ResourceFileFlattener
387 : options_(options), context_(context), keep_set_(keep_set) { in ResourceFileFlattener()
471 if (!options_.do_not_fail_on_missing_resources && !xml_linker.Consume(context_, doc)) { in LinkAndVersionXmlFile()
475 if (options_.update_proguard_spec && !proguard::CollectProguardRules(context_, doc, keep_set_)) { in LinkAndVersionXmlFile()
479 if (options_.no_xml_namespaces) { in LinkAndVersionXmlFile()
486 if (options_.no_auto_version) { in LinkAndVersionXmlFile()
490 if (options_.no_version_vectors || options_.no_version_transitions) { in LinkAndVersionXmlFile()
494 if ((options_.no_version_vectors && IsVectorElement(el->name)) || in LinkAndVersionXmlFile()
495 (options_.no_version_transitions && IsTransitionElement(el->name))) { in LinkAndVersionXmlFile()
600 file_ref->type = XmlFileTypeForOutputFormat(options_.output_format); in Flatten()
663 file_ref->type = XmlFileTypeForOutputFormat(options_.output_format); in Flatten()
674 error |= !FlattenXml(context_, *doc, dst_path, options_.keep_raw_values, in Flatten()
675 false /*utf16*/, options_.output_format, archive_writer); in Flatten()
679 GetCompressionFlags(file_op.dst_path, options_), in Flatten()
765 : options_(options), in Linker()
799 if (!options_.manifest_fixer_options.compile_sdk_version) { in ExtractCompileSdkVersions()
802 auto& compile_sdk_version = options_.manifest_fixer_options.compile_sdk_version; in ExtractCompileSdkVersions()
822 if (!options_.manifest_fixer_options.compile_sdk_version_codename) { in ExtractCompileSdkVersions()
826 options_.manifest_fixer_options.compile_sdk_version_codename; in ExtractCompileSdkVersions()
839 TRACE_NAME("LoadSymbolsFromIncludePaths: #" + std::to_string(options_.include_paths.size())); in LoadSymbolsFromIncludePaths()
841 for (const std::string& path : options_.include_paths) { in LoadSymbolsFromIncludePaths()
876 if (options_.no_static_lib_packages && !table->packages.empty()) { in LoadSymbolsFromIncludePaths()
1182 if (options_.output_to_directory) { in MakeArchiveWriter()
1194 TableFlattener flattener(options_.table_flattener_options, &buffer); in FlattenTable()
1209 options_.proto_table_flattener_options); in FlattenTable()
1220 if (!options_.generate_java_class_path && !out_text_symbols_path) {
1226 if (options_.generate_java_class_path) {
1227 out_path = options_.generate_java_class_path.value();
1273 template_options.javadoc_annotations = options_.javadoc_annotations; in GenerateJavaClasses()
1275 if (context_->GetPackageType() == PackageType::kStaticLib || options_.generate_non_final_ids) { in GenerateJavaClasses()
1286 if (options_.custom_java_package) { in GenerateJavaClasses()
1288 output_package = options_.custom_java_package.value(); in GenerateJavaClasses()
1292 if (options_.private_symbols) { in GenerateJavaClasses()
1293 packages_to_callback.push_back(options_.private_symbols.value()); in GenerateJavaClasses()
1299 if (!WriteJavaFile(&final_table_, actual_package, options_.private_symbols.value(), in GenerateJavaClasses()
1307 for (const std::string& extra_package : options_.extra_java_packages) { in GenerateJavaClasses()
1333 if (options_.private_symbols) { in GenerateJavaClasses()
1343 options_.generate_text_symbols_path)) { in GenerateJavaClasses()
1352 if (!options_.generate_java_class_path) { in WriteManifestJavaFile()
1370 for (const std::string& annotation : options_.javadoc_annotations) { in WriteManifestJavaFile()
1377 options_.custom_java_package.value_or(context_->GetCompilationPackage()); in WriteManifestJavaFile()
1379 std::string out_path = options_.generate_java_class_path.value(); in WriteManifestJavaFile()
1423 proguard::WriteKeepSet(keep_set, &fout, options_.generate_minimal_proguard_rules, in WriteProguardFile()
1424 options_.no_proguard_location_reference); in WriteProguardFile()
1461 if (options_.no_static_lib_packages) { in MergeStaticLibrary()
1468 options_.extra_java_packages.insert(pkg->name); in MergeStaticLibrary()
1678 for (const std::string& assets_dir : options_.assets_dirs) { in CopyAssetsDirsToApk()
1702 uint32_t compression_flags = GetCompressionFlags(entry.first, options_); in CopyAssetsDirsToApk()
1812 if (options_.manifest_fixer_options.warn_validation) { in VerifySharedUserId()
1849 || options_.keep_raw_values; in WriteApk()
1851 true /*utf16*/, options_.output_format, writer); in WriteApk()
1871 file_flattener_options.do_not_compress_anything = options_.do_not_compress_anything; in WriteApk()
1872 file_flattener_options.extensions_to_not_compress = options_.extensions_to_not_compress; in WriteApk()
1873 file_flattener_options.regex_to_not_compress = options_.regex_to_not_compress; in WriteApk()
1874 file_flattener_options.no_auto_version = options_.no_auto_version; in WriteApk()
1875 file_flattener_options.no_version_vectors = options_.no_version_vectors; in WriteApk()
1876 file_flattener_options.no_version_transitions = options_.no_version_transitions; in WriteApk()
1877 file_flattener_options.no_xml_namespaces = options_.no_xml_namespaces; in WriteApk()
1879 static_cast<bool>(options_.generate_proguard_rules_path); in WriteApk()
1880 file_flattener_options.output_format = options_.output_format; in WriteApk()
1881 file_flattener_options.do_not_fail_on_missing_resources = options_.merge_only; in WriteApk()
1899 const bool isSplitPackage = (options_.allow_reserved_package_id && in WriteApk()
1902 || (!options_.allow_reserved_package_id && context_->GetPackageId() > kAppPackageId); in WriteApk()
1923 bool success = FlattenTable(table, options_.output_format, writer); in WriteApk()
1946 LoadXml(options_.manifest_path, context_->GetDiagnostics()); in Run()
1959 if (options_.rename_resources_package) { in Run()
1960 if (!options_.custom_java_package) { in Run()
1963 options_.custom_java_package = context_->GetCompilationPackage(); in Run()
1965 context_->SetCompilationPackage(options_.rename_resources_package.value()); in Run()
1974 ManifestFixer manifest_fixer(options_.manifest_fixer_options); in Run()
2001 FeatureFlagsFilter flags_filter(options_.feature_flag_values, flags_filter_options); in Run()
2019 table_merger_options.auto_add_overlay = options_.auto_add_overlay; in Run()
2021 options_.override_styles_instead_of_overlaying; in Run()
2022 table_merger_options.strict_visibility = options_.strict_visibility; in Run()
2052 for (const std::string& input : options_.overlay_files) { in Run()
2073 IdAssigner id_assigner(&options_.stable_id_map); in Run()
2080 if (options_.resource_id_map_path) { in Run()
2086 options_.stable_id_map[std::move(name)] = entry->id.value(); in Run()
2091 if (!WriteStableIdMapToPath(context_->GetDiagnostics(), options_.stable_id_map, in Run()
2092 options_.resource_id_map_path.value())) { in Run()
2128 if (!options_.no_resource_removal) { in Run()
2137 if (!options_.merge_only && !linker.Consume(context_, &final_table_)) { in Run()
2143 if (!options_.products.empty()) { in Run()
2148 ProductFilter product_filter(options_.products, /* remove_default_config_values = */ false); in Run()
2155 if (!options_.no_auto_version) { in Run()
2176 if (!options_.exclude_configs_.empty()) { in Run()
2179 for (auto& config_string : options_.exclude_configs_) { in Run()
2200 if (!options_.no_resource_deduping) { in Run()
2209 proguard::KeepSet(options_.generate_conditional_proguard_rules); in Run()
2213 if (options_.table_splitter_options.config_filter != nullptr || in Run()
2214 !options_.table_splitter_options.preferred_densities.empty()) { in Run()
2221 const size_t origConstraintSize = options_.split_constraints.size(); in Run()
2222 options_.split_constraints = in Run()
2223 AdjustSplitConstraintsForMinSdk(context_->GetMinSdkVersion(), options_.split_constraints); in Run()
2225 if (origConstraintSize != options_.split_constraints.size()) { in Run()
2230 TableSplitter table_splitter(options_.split_constraints, options_.table_splitter_options); in Run()
2237 auto path_iter = options_.split_paths.begin(); in Run()
2238 auto split_constraints_iter = options_.split_constraints.begin(); in Run()
2275 std::unique_ptr<IArchiveWriter> archive_writer = MakeArchiveWriter(options_.output_path); in Run()
2289 if (options_.merge_only || manifest_linker.Consume(context_, manifest_xml.get())) { in Run()
2290 if (options_.generate_proguard_rules_path && in Run()
2295 if (options_.generate_main_dex_proguard_rules_path && in Run()
2301 if (options_.generate_java_class_path) { in Run()
2312 if (options_.no_xml_namespaces) { in Run()
2342 if (options_.generate_java_class_path || options_.generate_text_symbols_path) { in Run()
2348 if (!WriteProguardFile(options_.generate_proguard_rules_path, proguard_keep_set)) { in Run()
2352 if (!WriteProguardFile(options_.generate_main_dex_proguard_rules_path, in Run()
2360 LinkOptions options_; member in aapt::Linker
2412 if (!file::AppendArgsFromFile(path, &options_.overlay_files, &error)) { in Action()
2417 options_.overlay_files.push_back(arg); in Action()
2432 if (shared_lib_ && options_.private_symbols) { in Action()
2442 if (options_.merge_only && !static_lib_) { in Action()
2448 if (options_.use_sparse_encoding) { in Action()
2449 options_.table_flattener_options.sparse_entries = SparseEntriesMode::Enabled; in Action()
2461 options_.output_format = OutputFormat::kProto; in Action()
2463 options_.output_format = OutputFormat::kProto; in Action()
2485 || (!options_.allow_reserved_package_id && package_id_int < kAppPackageId)) { in Action()
2498 options_.extra_java_packages.emplace(package); in Action()
2505 options_.products.emplace(product); in Action()
2516 options_.table_splitter_options.config_filter = filter.get(); in Action()
2525 options_.table_splitter_options.preferred_densities.push_back(density.value()); in Action()
2530 options_.split_paths.push_back({}); in Action()
2531 options_.split_constraints.push_back({}); in Action()
2532 if (!ParseSplitParameter(split_arg, context.GetDiagnostics(), &options_.split_paths.back(), in Action()
2533 &options_.split_constraints.back())) { in Action()
2555 if (!ParseFeatureFlagsParameter(arg, context.GetDiagnostics(), &options_.feature_flag_values)) { in Action()
2562 &options_.stable_id_map)) { in Action()
2572 if (!file::AppendSetArgsFromFile(path, &options_.extensions_to_not_compress, &error)) { in Action()
2577 options_.regex_to_not_compress = GetRegularExpression(no_compress_regex.value()); in Action()
2582 options_.extensions_to_not_compress.insert({ in Action()
2594 options_.no_auto_version = true; in Action()
2595 options_.no_version_vectors = true; in Action()
2596 options_.no_version_transitions = true; in Action()
2599 Linker cmd(&context, options_); in Action()