Home
last modified time | relevance | path

Searched refs:options_ (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/tools/aapt2/cmd/
DLink.h112 AddRequiredFlag("-o", "Output path.", &options_.output_path, Command::kPath); in LinkCommand()
114 &options_.manifest_path, Command::kPath); in LinkCommand()
115 AddOptionalFlagList("-I", "Adds an Android APK to link against.", &options_.include_paths, in LinkCommand()
118 &options_.assets_dirs, Command::kPath); in LinkCommand()
126 &options_.generate_java_class_path, Command::kPath); in LinkCommand()
128 &options_.generate_proguard_rules_path, Command::kPath); in LinkCommand()
131 &options_.generate_main_dex_proguard_rules_path, Command::kPath); in LinkCommand()
134 &options_.generate_conditional_proguard_rules); in LinkCommand()
137 &options_.generate_minimal_proguard_rules); in LinkCommand()
139 &options_.no_auto_version); in LinkCommand()
[all …]
DOptimize.cpp122 : options_(options), context_(context) { in Optimizer()
129 if (!options_.resources_blacklist.empty()) { in Run()
130 ResourceFilter filter(options_.resources_blacklist); in Run()
148 if (options_.shorten_resource_paths) { in Run()
149 ResourcePathShortener shortener(options_.table_flattener_options.shortened_path_map); in Run()
154 if (options_.shortened_paths_map_path in Run()
155 && !WriteShortenedPathsMap(options_.table_flattener_options.shortened_path_map, in Run()
156 options_.shortened_paths_map_path.value())) { in Run()
165 options_.split_constraints = in Run()
166 AdjustSplitConstraintsForMinSdk(context_->GetMinSdkVersion(), options_.split_constraints); in Run()
[all …]
DCompile.h49 AddRequiredFlag("-o", "Output path", &options_.output_path, Command::kPath); in CompileCommand()
50 AddOptionalFlag("--dir", "Directory to scan for resources", &options_.res_dir, Command::kPath); in CompileCommand()
52 &options_.res_zip, Command::kPath); in CompileCommand()
55 "specified file", &options_.generate_text_symbols_path, Command::kPath); in CompileCommand()
57 "(en-XA and ar-XB)", &options_.pseudolocalize); in CompileCommand()
58 AddOptionalSwitch("--no-crunch", "Disables PNG processing", &options_.no_png_crunch); in CompileCommand()
60 &options_.legacy_mode); in CompileCommand()
65 &options_.preserve_visibility_of_styleables); in CompileCommand()
69 AddOptionalSwitch("-v", "Enables verbose logging", &options_.verbose); in CompileCommand()
78 CompileOptions options_; variable
DLink.cpp329 ResourceFileFlattenerOptions options_; member in aapt::ResourceFileFlattener
337 : options_(options), context_(context), keep_set_(keep_set) { in ResourceFileFlattener()
387 if (options_.do_not_compress_anything) { in GetCompressionFlags()
391 if (options_.regex_to_not_compress in GetCompressionFlags()
392 && std::regex_search(str.to_string(), options_.regex_to_not_compress.value())) { in GetCompressionFlags()
396 for (const std::string& extension : options_.extensions_to_not_compress) { in GetCompressionFlags()
445 if (options_.update_proguard_spec && !proguard::CollectProguardRules(context_, doc, keep_set_)) { in LinkAndVersionXmlFile()
449 if (options_.no_xml_namespaces) { in LinkAndVersionXmlFile()
456 if (options_.no_auto_version) { in LinkAndVersionXmlFile()
460 if (options_.no_version_vectors || options_.no_version_transitions) { in LinkAndVersionXmlFile()
[all …]
DOptimize.h70 AddOptionalFlag("-o", "Path to the output APK.", &options_.output_path, Command::kPath); in OptimizeCommand()
71 AddOptionalFlag("-d", "Path to the output directory (for splits).", &options_.output_dir, in OptimizeCommand()
106 &options_.table_flattener_options.use_sparse_entries); in OptimizeCommand()
109 &options_.table_flattener_options.collapse_key_stringpool); in OptimizeCommand()
112 &options_.shorten_resource_paths); in OptimizeCommand()
115 &options_.shortened_paths_map_path); in OptimizeCommand()
122 OptimizeOptions options_;
DCompile.cpp720 context.SetVerbose(options_.verbose); in Action()
724 options_.visibility = Visibility::Level::kPublic; in Action()
726 options_.visibility = Visibility::Level::kPrivate; in Action()
728 options_.visibility = Visibility::Level::kUndefined; in Action()
741 if (options_.res_dir && options_.res_zip) { in Action()
745 } else if (options_.res_dir) { in Action()
754 file_collection = io::FileCollection::Create(options_.res_dir.value(), &err); in Action()
756 context.GetDiagnostics()->Error(DiagMessage(options_.res_dir.value()) << err); in Action()
760 archive_writer = CreateZipFileArchiveWriter(context.GetDiagnostics(), options_.output_path); in Action()
761 } else if (options_.res_zip) { in Action()
[all …]
DDump.h128 &options_.include_meta_data); in DumpBadgingCommand()
132 return DumpManifest(apk, options_, GetPrinter(), GetDiagnostics()); in Dump()
136 DumpManifestOptions options_;
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp148 options_ = Dumpstate::DumpOptions(); in SetUp()
154 Dumpstate::DumpOptions options_; member in android::os::dumpstate::DumpOptionsTest
164 Dumpstate::RunStatus status = options_.Initialize(ARRAY_SIZE(argv), argv); in TEST_F()
168 EXPECT_FALSE(options_.do_add_date); in TEST_F()
169 EXPECT_FALSE(options_.do_zip_file); in TEST_F()
170 EXPECT_FALSE(options_.use_socket); in TEST_F()
171 EXPECT_FALSE(options_.use_control_socket); in TEST_F()
172 EXPECT_FALSE(options_.show_header_only); in TEST_F()
173 EXPECT_TRUE(options_.do_vibrate); in TEST_F()
174 EXPECT_FALSE(options_.do_fb); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp220 if (options_.rename_manifest_package) { in BuildRules()
221 if (!util::IsJavaPackageName(options_.rename_manifest_package.value())) { in BuildRules()
223 << options_.rename_manifest_package.value() in BuildRules()
229 if (options_.rename_instrumentation_target_package) { in BuildRules()
230 if (!util::IsJavaPackageName(options_.rename_instrumentation_target_package.value())) { in BuildRules()
233 << options_.rename_instrumentation_target_package.value() in BuildRules()
239 if (options_.rename_overlay_target_package) { in BuildRules()
240 if (!util::IsJavaPackageName(options_.rename_overlay_target_package.value())) { in BuildRules()
243 << options_.rename_overlay_target_package.value() in BuildRules()
275 if (options_.version_name_default) { in BuildRules()
[all …]
DManifestFixer.h87 explicit ManifestFixer(const ManifestFixerOptions& options) : options_(options) { in ManifestFixer()
97 ManifestFixerOptions options_; variable
DTableMerger.h82 TableMergerOptions options_; variable
DTableMerger.cpp34 : context_(context), master_table_(out_table), options_(options) { in TableMerger()
45 return MergeImpl(src, table, overlay, options_.auto_add_overlay || !overlay /*allow_new*/); in Merge()
260 if (!MergeEntry(context_, src, dst_entry, src_entry.get(), options_.strict_visibility)) { in DoMerge()
/frameworks/base/cmds/idmap2/libidmap2/
DCommandLineOptions.cpp42 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag()
51 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption()
60 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption()
69 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption()
78 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption()
83 const auto pivot = std::partition(options_.begin(), options_.end(), [](const Option& opt) { in Parse()
87 std::transform(options_.begin(), pivot, std::inserter(mandatory_opts, mandatory_opts.end()), in Parse()
99 for (const Option& opt : options_) { in Parse()
143 for (const Option& opt : options_) { in Usage()
171 for (const Option& opt : options_) { in Usage()
/frameworks/native/cmds/dumpstate/
DDumpstateService.cpp197 std::string destination = ds_->options_->bugreport_fd.get() != -1 in dump()
198 ? StringPrintf("[fd:%d]", ds_->options_->bugreport_fd.get()) in dump()
202 dprintf(fd, "update_progress: %s\n", ds_->options_->do_progress_updates ? "true" : "false"); in dump()
206 dprintf(fd, "args: %s\n", ds_->options_->args.c_str()); in dump()
207 dprintf(fd, "extra_options: %s\n", ds_->options_->extra_options.c_str()); in dump()
214 dprintf(fd, "extra_options: %s\n", ds_->options_->extra_options.c_str()); in dump()
220 dprintf(fd, "notification title: %s\n", ds_->options_->notification_title.c_str()); in dump()
221 dprintf(fd, "notification description: %s\n", ds_->options_->notification_description.c_str()); in dump()
Ddumpstate.cpp710 PropertiesHelper::IsDryRun(), options_->args.c_str(), options_->extra_options.c_str()); in PrintHeader()
1388 if (ds.options_->do_fb && !ds.do_early_screenshot_) { in dumpstate()
2129 if (ds.options_->do_add_date) { in PrepareToWriteToFile()
2137 if (ds.options_->telephony_only) { in PrepareToWriteToFile()
2139 } else if (ds.options_->wifi_only) { in PrepareToWriteToFile()
2143 if (ds.options_->do_fb) { in PrepareToWriteToFile()
2149 std::string destination = ds.options_->bugreport_fd.get() != -1 in PrepareToWriteToFile()
2150 ? StringPrintf("[fd:%d]", ds.options_->bugreport_fd.get()) in PrepareToWriteToFile()
2162 if (ds.options_->do_zip_file) { in PrepareToWriteToFile()
2209 if (ds.options_->do_zip_file) { in FinalizeFile()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.h40 : buffer_(buffer), options_(options) { in XmlFlattener()
51 XmlFlattenerOptions options_; variable
DTableFlattener.h54 : options_(options), buffer_(buffer) { in TableFlattener()
62 TableFlattenerOptions options_; variable
DXmlFlattener.cpp78 : buffer_(buffer), options_(options) { in XmlFlattenerVisitor()
292 if (options_.keep_raw_values) { in WriteAttributes()
297 } else if (options_.keep_raw_values && !xml_attr->value.empty()) { in WriteAttributes()
307 XmlFlattenerOptions options_; member in aapt::__anon788ae4f30111::XmlFlattenerVisitor
317 XmlFlattenerVisitor visitor(&node_buffer, options_); in Flatten()
340 if (options_.use_utf16) { in Flatten()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp192 : context_(context), table_(table), options_(options) {} in JavaClassGenerator()
195 switch (options_.types) { in SkipSymbol()
208 return !symbol || (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic && in SkipSymbol()
246 CHECK(!options_.use_final || attr.id) << "no ID set for Styleable entry"; in ProcessStyleable()
594 if (out != nullptr && options_.rewrite_callback_options) { in Generate()
598 options_.rewrite_callback_options.value().packages_to_callback) { in Generate()
604 const bool is_public = (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic); in Generate()
645 AppendJavaDocAnnotations(options_.javadoc_annotations, class_def->GetCommentBuilder()); in Generate()
656 AppendJavaDocAnnotations(options_.javadoc_annotations, r_class.GetCommentBuilder()); in Generate()
657 ClassDefinition::WriteJavaFile(&r_class, out_package_name, options_.use_final, !is_public, out); in Generate()
DJavaClassGenerator.h116 JavaClassGeneratorOptions options_; variable
/frameworks/base/tools/aapt2/split/
DTableSplitter.h54 : split_constraints_(splits), options_(options) { in TableSplitter()
69 TableSplitterOptions options_; variable
DTableSplitter.cpp198 if (options_.config_filter) { in SplitTable()
201 if (!options_.config_filter->Match(config_value->config)) { in SplitTable()
266 if (!options_.preferred_densities.empty()) { in SplitTable()
267 MarkNonPreferredDensitiesAsClaimed(options_.preferred_densities, in SplitTable()
/frameworks/base/tools/aapt2/
DResourceParser.cpp171 options_(options) {} in ResourceParser()
450 if (options_.visibility) { in ParseResources()
451 parsed_resource.visibility_level = options_.visibility.value(); in ParseResources()
802 bool translatable = options_.translatable; in ParseString()
828 if (options_.error_on_positional_arguments) { in ParseString()
844 if (options_.visibility) { in ParsePublic()
892 if (options_.visibility) { in ParsePublicGroup()
1020 if (options_.visibility) { in ParseSymbol()
1321 if (options_.visibility) { in ParseAttrImpl()
1322 child_resource.visibility_level = options_.visibility.value(); in ParseAttrImpl()
[all …]
DResourceParser.h124 ResourceParserOptions options_; variable
/frameworks/base/cmds/idmap2/include/idmap2/
DCommandLineOptions.h68 mutable std::vector<Option> options_; variable

12