Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/cmd/
DLink.h124 AddRequiredFlag("-o", "Output path.", &options_.output_path, Command::kPath); in LinkCommand()
126 &options_.manifest_path, Command::kPath); in LinkCommand()
127 AddOptionalFlagList("-I", "Adds an Android APK to link against.", &options_.include_paths, in LinkCommand()
130 &options_.assets_dirs, Command::kPath); in LinkCommand()
138 &options_.generate_java_class_path, Command::kPath); in LinkCommand()
140 &options_.generate_proguard_rules_path, Command::kPath); in LinkCommand()
143 &options_.generate_main_dex_proguard_rules_path, Command::kPath); in LinkCommand()
146 &options_.generate_conditional_proguard_rules); in LinkCommand()
149 &options_.generate_minimal_proguard_rules); in LinkCommand()
151 &options_.no_auto_version); in LinkCommand()
[all …]
DOptimize.cpp132 : options_(options), context_(context) { in Optimizer()
139 if (!options_.resources_exclude_list.empty()) { in Run()
140 ResourceFilter filter(options_.resources_exclude_list); in Run()
158 Obfuscator obfuscator(options_); in Run()
166 if (options_.obfuscation_map_path && in Run()
167 !obfuscator.WriteObfuscationMap(options_.obfuscation_map_path.value())) { in Run()
174 if (options_.shortened_paths_map_path in Run()
175 && !WriteShortenedPathsMap(options_.table_flattener_options.shortened_path_map, in Run()
176 options_.shortened_paths_map_path.value())) { in Run()
185 options_.split_constraints = in Run()
[all …]
DCompile.h56 AddRequiredFlag("-o", "Output path", &options_.output_path, Command::kPath); in CompileCommand()
57 AddOptionalFlag("--dir", "Directory to scan for resources", &options_.res_dir, Command::kPath); in CompileCommand()
59 &options_.res_zip, Command::kPath); in CompileCommand()
62 "specified file", &options_.generate_text_symbols_path, Command::kPath); in CompileCommand()
64 "(en-XA and ar-XB)", &options_.pseudolocalize); in CompileCommand()
65 AddOptionalSwitch("--no-crunch", "Disables PNG processing", &options_.no_png_crunch); in CompileCommand()
67 &options_.legacy_mode); in CompileCommand()
72 &options_.preserve_visibility_of_styleables); in CompileCommand()
76 AddOptionalSwitch("-v", "Enables verbose logging", &options_.verbose); in CompileCommand()
81 &options_.source_path); in CompileCommand()
[all …]
DOptimize.h78 AddOptionalFlag("-o", "Path to the output APK.", &options_.output_path, Command::kPath); in OptimizeCommand()
79 AddOptionalFlag("-d", "Path to the output directory (for splits).", &options_.output_dir, in OptimizeCommand()
113 &options_.enable_sparse_encoding); in OptimizeCommand()
118 &options_.force_sparse_encoding); in OptimizeCommand()
123 &options_.table_flattener_options.collapse_key_stringpool); in OptimizeCommand()
127 &options_.shorten_resource_paths); in OptimizeCommand()
131 &options_.shortened_paths_map_path); in OptimizeCommand()
134 &options_.obfuscation_map_path); in OptimizeCommand()
142 &options_.table_flattener_options.deduplicate_entry_values); in OptimizeCommand()
149 OptimizeOptions options_;
DLink.cpp379 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()
[all …]
DCompile.cpp755 context.SetVerbose(options_.verbose); in Action()
759 options_.visibility = Visibility::Level::kPublic; in Action()
761 options_.visibility = Visibility::Level::kPrivate; in Action()
763 options_.visibility = Visibility::Level::kUndefined; in Action()
776 if (options_.res_dir && options_.res_zip) { in Action()
780 } else if ((options_.res_dir || options_.res_zip) && in Action()
781 options_.source_path && args.size() > 1) { in Action()
785 } else if (options_.res_dir) { in Action()
794 file_collection = io::FileCollection::Create(options_.res_dir.value(), &err); in Action()
796 context.GetDiagnostics()->Error(android::DiagMessage(options_.res_dir.value()) << err); in Action()
[all …]
DDump.h132 &options_.include_meta_data); in DumpBadgingCommand()
136 options_.include_meta_data = value; in SetIncludeMetaData()
140 options_.only_permissions = value; in SetOnlyPermissions()
144 return DumpManifest(apk, options_, GetPrinter(), GetDiagnostics()); in Dump()
148 DumpManifestOptions options_;
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp165 options_ = Dumpstate::DumpOptions(); in SetUp()
169 Dumpstate::DumpOptions options_; member in android::os::dumpstate::DumpOptionsTest
180 Dumpstate::RunStatus status = options_.Initialize(ARRAY_SIZE(argv), argv); in TEST_F()
184 EXPECT_EQ("", options_.out_dir); in TEST_F()
185 EXPECT_FALSE(options_.stream_to_socket); in TEST_F()
186 EXPECT_FALSE(options_.progress_updates_to_socket); in TEST_F()
187 EXPECT_FALSE(options_.show_header_only); in TEST_F()
188 EXPECT_TRUE(options_.do_vibrate); in TEST_F()
189 EXPECT_FALSE(options_.do_screenshot); in TEST_F()
190 EXPECT_FALSE(options_.do_progress_updates); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp387 if (options_.rename_manifest_package) { in BuildRules()
388 if (!util::IsJavaPackageName(options_.rename_manifest_package.value())) { in BuildRules()
390 << options_.rename_manifest_package.value() << "'"); in BuildRules()
395 if (options_.rename_instrumentation_target_package) { in BuildRules()
396 if (!util::IsJavaPackageName(options_.rename_instrumentation_target_package.value())) { in BuildRules()
399 << options_.rename_instrumentation_target_package.value() << "'"); in BuildRules()
404 if (options_.rename_overlay_target_package) { in BuildRules()
405 if (!util::IsJavaPackageName(options_.rename_overlay_target_package.value())) { in BuildRules()
407 << options_.rename_overlay_target_package.value() << "'"); in BuildRules()
449 if (options_.version_name_default) { in BuildRules()
[all …]
DFeatureFlagsFilter.cpp38 : diagnostics_(diagnostics), feature_flag_values_(feature_flag_values), options_(options) { in FlagsVisitor()
69 if (options_.remove_disabled_elements) { in ShouldRemove()
73 } else if (options_.flags_must_have_value) { in ShouldRemove()
80 } else if (options_.fail_on_unrecognized_flags) { in ShouldRemove()
94 const FeatureFlagsFilterOptions& options_; member in aapt::FlagsVisitor
99 FlagsVisitor visitor(context->GetDiagnostics(), feature_flag_values_, options_); in Consume()
DFeatureFlagsFilter.h67 : feature_flag_values_(std::move(feature_flag_values)), options_(options) { in FeatureFlagsFilter()
76 const FeatureFlagsFilterOptions options_; variable
DManifestFixer.h105 explicit ManifestFixer(const ManifestFixerOptions& options) : options_(options) { in ManifestFixer()
115 ManifestFixerOptions options_; variable
DTableMerger.cpp34 : context_(context), main_table_(out_table), options_(options) { in TableMerger()
44 return MergeImpl(src, table, overlay, options_.auto_add_overlay || !overlay /*allow_new*/); in Merge()
271 if (!MergeEntry(context_, src, dst_entry, src_entry.get(), options_.strict_visibility)) { in DoMerge()
283 context_, res_name, overlay, options_.override_styles_instead_of_overlaying, in DoMerge()
DTableMerger.h85 TableMergerOptions options_; variable
/frameworks/base/cmds/idmap2/libidmap2/
DCommandLineOptions.cpp44 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag()
53 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption()
62 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption()
71 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption()
80 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption()
85 const auto pivot = std::partition(options_.begin(), options_.end(), [](const Option& opt) { in Parse()
89 std::transform(options_.begin(), pivot, std::inserter(mandatory_opts, mandatory_opts.end()), in Parse()
101 for (const Option& opt : options_) { in Parse()
145 for (const Option& opt : options_) { in Usage()
173 for (const Option& opt : options_) { in Usage()
/frameworks/base/tools/aapt2/optimize/
DObfuscator.cpp38 : options_(optimizeOptions.table_flattener_options), in Obfuscator()
217 HandleCollapseKeyStringPool(table, options_.collapse_key_stringpool, in Consume()
218 options_.name_collapse_exemptions, options_.id_resource_map); in Consume()
220 return HandleShortenFilePaths(table, options_.shortened_path_map, in Consume()
221 options_.path_shorten_exemptions); in Consume()
228 for (const auto& [id, name] : options_.id_resource_map) { in WriteObfuscationMap()
234 for (const auto& [original_path, shortened_path] : options_.shortened_path_map) { in WriteObfuscationMap()
DObfuscator.h64 TableFlattenerOptions& options_; variable
/frameworks/native/cmds/dumpstate/
DDumpstateService.cpp254 std::string destination = ds_->options_->bugreport_fd.get() != -1 in dump()
255 ? StringPrintf("[fd:%d]", ds_->options_->bugreport_fd.get()) in dump()
259 dprintf(fd, "update_progress: %s\n", ds_->options_->do_progress_updates ? "true" : "false"); in dump()
263 dprintf(fd, "args: %s\n", ds_->options_->args.c_str()); in dump()
264 dprintf(fd, "bugreport_mode: %s\n", ds_->options_->bugreport_mode_string.c_str()); in dump()
274 dprintf(fd, "notification title: %s\n", ds_->options_->notification_title.c_str()); in dump()
275 dprintf(fd, "notification description: %s\n", ds_->options_->notification_description.c_str()); in dump()
Ddumpstate.cpp756 if (ds.options_->is_screenshot_copied) { in onReportApproved()
760 if (!ds.options_->do_screenshot || ds.options_->screenshot_fd.get() == -1 || in onReportApproved()
766 ds.options_->screenshot_fd.get()); in onReportApproved()
767 ds.options_->is_screenshot_copied = copy_succeeded; in onReportApproved()
835 PropertiesHelper::IsStrictRun(), options_->args.c_str(), in PrintHeader()
836 options_->bugreport_mode_string.c_str()); in PrintHeader()
1738 if (ds.options_->do_screenshot && !ds.do_early_screenshot_) { in dumpstate()
2657 DoDumpstateBoardAidl(dumpstate_hal_handle_aidl, dumpstate_fds, options_->bugreport_mode, in DumpstateBoard()
2661 DoDumpstateBoardHidl(dumpstate_hal_handle_hidl_1_0, dumpstate_fds, options_->bugreport_mode, in DumpstateBoard()
2826 if (ds.options_->telephony_only) { in PrepareToWriteToFile()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.h39 : buffer_(buffer), options_(options) { in XmlFlattener()
50 XmlFlattenerOptions options_; variable
DTableFlattener.h90 : options_(options), buffer_(buffer) { in TableFlattener()
96 TableFlattenerOptions options_;
DXmlFlattener.cpp78 : buffer_(buffer), options_(options) { in XmlFlattenerVisitor()
293 if (options_.keep_raw_values) { in WriteAttributes()
298 } else if (options_.keep_raw_values && !xml_attr->value.empty()) { in WriteAttributes()
308 XmlFlattenerOptions options_; member in aapt::__anon788ae4f30111::XmlFlattenerVisitor
318 XmlFlattenerVisitor visitor(&node_buffer, options_); in Flatten()
342 if (options_.use_utf16) { in Flatten()
/frameworks/base/tools/aapt2/split/
DTableSplitter.h54 : split_constraints_(splits), options_(options) { in TableSplitter()
69 TableSplitterOptions options_; variable
DTableSplitter.cpp196 if (options_.config_filter) { in SplitTable()
199 if (!options_.config_filter->Match(config_value->config)) { in SplitTable()
261 if (!options_.preferred_densities.empty()) { in SplitTable()
262 MarkNonPreferredDensitiesAsClaimed(options_.preferred_densities, in SplitTable()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp195 : context_(context), table_(table), options_(options) {} in JavaClassGenerator()
198 switch (options_.types) { in SkipSymbol()
211 return !symbol || (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic && in SkipSymbol()
254 CHECK(!options_.use_final || attr.id) << "no ID set for Styleable entry"; in ProcessStyleable()
607 if (out != nullptr && options_.rewrite_callback_options) { in Generate()
611 options_.rewrite_callback_options.value().packages_to_callback) { in Generate()
618 const bool is_public = (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic); in Generate()
661 AppendJavaDocAnnotations(options_.javadoc_annotations, class_def->GetCommentBuilder()); in Generate()
672 AppendJavaDocAnnotations(options_.javadoc_annotations, r_class.GetCommentBuilder()); in Generate()
673 ClassDefinition::WriteJavaFile(&r_class, out_package_name, options_.use_final, !is_public, out); in Generate()

12