/frameworks/base/tools/aapt2/cmd/ |
D | Link.h | 117 AddRequiredFlag("-o", "Output path.", &options_.output_path, Command::kPath); in LinkCommand() 119 &options_.manifest_path, Command::kPath); in LinkCommand() 120 AddOptionalFlagList("-I", "Adds an Android APK to link against.", &options_.include_paths, in LinkCommand() 123 &options_.assets_dirs, Command::kPath); in LinkCommand() 131 &options_.generate_java_class_path, Command::kPath); in LinkCommand() 133 &options_.generate_proguard_rules_path, Command::kPath); in LinkCommand() 136 &options_.generate_main_dex_proguard_rules_path, Command::kPath); in LinkCommand() 139 &options_.generate_conditional_proguard_rules); in LinkCommand() 142 &options_.generate_minimal_proguard_rules); in LinkCommand() 144 &options_.no_auto_version); in LinkCommand() [all …]
|
D | Optimize.cpp | 128 : options_(options), context_(context) { in Optimizer() 135 if (!options_.resources_exclude_list.empty()) { in Run() 136 ResourceFilter filter(options_.resources_exclude_list); in Run() 154 if (options_.shorten_resource_paths) { in Run() 155 ResourcePathShortener shortener(options_.table_flattener_options.shortened_path_map); in Run() 160 if (options_.shortened_paths_map_path in Run() 161 && !WriteShortenedPathsMap(options_.table_flattener_options.shortened_path_map, in Run() 162 options_.shortened_paths_map_path.value())) { in Run() 171 options_.split_constraints = in Run() 172 AdjustSplitConstraintsForMinSdk(context_->GetMinSdkVersion(), options_.split_constraints); in Run() [all …]
|
D | Compile.h | 53 AddRequiredFlag("-o", "Output path", &options_.output_path, Command::kPath); in CompileCommand() 54 AddOptionalFlag("--dir", "Directory to scan for resources", &options_.res_dir, Command::kPath); in CompileCommand() 56 &options_.res_zip, Command::kPath); in CompileCommand() 59 "specified file", &options_.generate_text_symbols_path, Command::kPath); in CompileCommand() 61 "(en-XA and ar-XB)", &options_.pseudolocalize); in CompileCommand() 62 AddOptionalSwitch("--no-crunch", "Disables PNG processing", &options_.no_png_crunch); in CompileCommand() 64 &options_.legacy_mode); in CompileCommand() 69 &options_.preserve_visibility_of_styleables); in CompileCommand() 73 AddOptionalSwitch("-v", "Enables verbose logging", &options_.verbose); in CompileCommand() 78 &options_.source_path); in CompileCommand() [all …]
|
D | Link.cpp | 374 ResourceFileFlattenerOptions options_; member in aapt::ResourceFileFlattener 382 : options_(options), context_(context), keep_set_(keep_set) { in ResourceFileFlattener() 466 if (!options_.do_not_fail_on_missing_resources && !xml_linker.Consume(context_, doc)) { in LinkAndVersionXmlFile() 470 if (options_.update_proguard_spec && !proguard::CollectProguardRules(context_, doc, keep_set_)) { in LinkAndVersionXmlFile() 474 if (options_.no_xml_namespaces) { in LinkAndVersionXmlFile() 481 if (options_.no_auto_version) { in LinkAndVersionXmlFile() 485 if (options_.no_version_vectors || options_.no_version_transitions) { in LinkAndVersionXmlFile() 489 if ((options_.no_version_vectors && IsVectorElement(el->name)) || in LinkAndVersionXmlFile() 490 (options_.no_version_transitions && IsTransitionElement(el->name))) { in LinkAndVersionXmlFile() 595 file_ref->type = XmlFileTypeForOutputFormat(options_.output_format); in Flatten() [all …]
|
D | Optimize.h | 70 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() 102 &options_.table_flattener_options.use_sparse_entries); in OptimizeCommand() 107 &options_.table_flattener_options.collapse_key_stringpool); in OptimizeCommand() 110 &options_.shorten_resource_paths); in OptimizeCommand() 113 &options_.shortened_paths_map_path); in OptimizeCommand() 120 OptimizeOptions options_;
|
D | Compile.cpp | 721 context.SetVerbose(options_.verbose); in Action() 725 options_.visibility = Visibility::Level::kPublic; in Action() 727 options_.visibility = Visibility::Level::kPrivate; in Action() 729 options_.visibility = Visibility::Level::kUndefined; in Action() 741 if (options_.res_dir && options_.res_zip) { in Action() 745 } else if ((options_.res_dir || options_.res_zip) && in Action() 746 options_.source_path && args.size() > 1) { in Action() 750 } else if (options_.res_dir) { in Action() 759 file_collection = io::FileCollection::Create(options_.res_dir.value(), &err); in Action() 761 context.GetDiagnostics()->Error(DiagMessage(options_.res_dir.value()) << err); in Action() [all …]
|
D | Dump.h | 131 &options_.include_meta_data); in DumpBadgingCommand() 135 return DumpManifest(apk, options_, GetPrinter(), GetDiagnostics()); in Dump() 139 DumpManifestOptions options_;
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_test.cpp | 163 options_ = Dumpstate::DumpOptions(); in SetUp() 167 Dumpstate::DumpOptions options_; member in android::os::dumpstate::DumpOptionsTest 178 Dumpstate::RunStatus status = options_.Initialize(ARRAY_SIZE(argv), argv); in TEST_F() 182 EXPECT_EQ("", options_.out_dir); in TEST_F() 183 EXPECT_FALSE(options_.stream_to_socket); in TEST_F() 184 EXPECT_FALSE(options_.progress_updates_to_socket); in TEST_F() 185 EXPECT_FALSE(options_.show_header_only); in TEST_F() 186 EXPECT_TRUE(options_.do_vibrate); in TEST_F() 187 EXPECT_FALSE(options_.do_screenshot); in TEST_F() 188 EXPECT_FALSE(options_.do_progress_updates); in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.cpp | 300 if (options_.rename_manifest_package) { in BuildRules() 301 if (!util::IsJavaPackageName(options_.rename_manifest_package.value())) { in BuildRules() 303 << options_.rename_manifest_package.value() in BuildRules() 309 if (options_.rename_instrumentation_target_package) { in BuildRules() 310 if (!util::IsJavaPackageName(options_.rename_instrumentation_target_package.value())) { in BuildRules() 313 << options_.rename_instrumentation_target_package.value() in BuildRules() 319 if (options_.rename_overlay_target_package) { in BuildRules() 320 if (!util::IsJavaPackageName(options_.rename_overlay_target_package.value())) { in BuildRules() 323 << options_.rename_overlay_target_package.value() in BuildRules() 363 if (options_.version_name_default) { in BuildRules() [all …]
|
D | ManifestFixer.h | 91 explicit ManifestFixer(const ManifestFixerOptions& options) : options_(options) { in ManifestFixer() 101 ManifestFixerOptions options_; variable
|
D | TableMerger.cpp | 34 : 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() 269 if (!MergeEntry(context_, src, dst_entry, src_entry.get(), options_.strict_visibility)) { in DoMerge() 281 context_, res_name, overlay, options_.override_styles_instead_of_overlaying, in DoMerge()
|
D | TableMerger.h | 84 TableMergerOptions options_; variable
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | CommandLineOptions.cpp | 42 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/ |
D | DumpstateService.cpp | 185 std::string destination = ds_->options_->bugreport_fd.get() != -1 in dump() 186 ? StringPrintf("[fd:%d]", ds_->options_->bugreport_fd.get()) in dump() 190 dprintf(fd, "update_progress: %s\n", ds_->options_->do_progress_updates ? "true" : "false"); in dump() 194 dprintf(fd, "args: %s\n", ds_->options_->args.c_str()); in dump() 195 dprintf(fd, "bugreport_mode: %s\n", ds_->options_->bugreport_mode_string.c_str()); in dump() 205 dprintf(fd, "notification title: %s\n", ds_->options_->notification_title.c_str()); in dump() 206 dprintf(fd, "notification description: %s\n", ds_->options_->notification_description.c_str()); in dump()
|
D | dumpstate.cpp | 730 if (ds.options_->is_screenshot_copied) { in onReportApproved() 734 if (!ds.options_->do_screenshot || ds.options_->screenshot_fd.get() == -1 || in onReportApproved() 740 ds.options_->screenshot_fd.get()); in onReportApproved() 741 ds.options_->is_screenshot_copied = copy_succeeded; in onReportApproved() 803 options_->args.c_str(), options_->bugreport_mode_string.c_str()); in PrintHeader() 1632 if (ds.options_->do_screenshot && !ds.do_early_screenshot_) { in dumpstate() 2424 DoDumpstateBoardAidl(dumpstate_hal_handle_aidl, dumpstate_fds, options_->bugreport_mode, in DumpstateBoard() 2428 DoDumpstateBoardHidl(dumpstate_hal_handle_hidl_1_0, dumpstate_fds, options_->bugreport_mode, in DumpstateBoard() 2590 if (ds.options_->telephony_only) { in PrepareToWriteToFile() 2592 } else if (ds.options_->wifi_only) { in PrepareToWriteToFile() [all …]
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener.h | 40 : buffer_(buffer), options_(options) { in XmlFlattener() 51 XmlFlattenerOptions options_; variable
|
D | TableFlattener.h | 55 : options_(options), buffer_(buffer) { in TableFlattener() 63 TableFlattenerOptions options_; variable
|
D | XmlFlattener.cpp | 78 : 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::__anon240b2f1f0111::XmlFlattenerVisitor 317 XmlFlattenerVisitor visitor(&node_buffer, options_); in Flatten() 340 if (options_.use_utf16) { in Flatten()
|
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.h | 54 : split_constraints_(splits), options_(options) { in TableSplitter() 69 TableSplitterOptions options_; variable
|
D | TableSplitter.cpp | 198 if (options_.config_filter) { in SplitTable() 201 if (!options_.config_filter->Match(config_value->config)) { in SplitTable() 263 if (!options_.preferred_densities.empty()) { in SplitTable() 264 MarkNonPreferredDensitiesAsClaimed(options_.preferred_densities, in SplitTable()
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator.cpp | 192 : context_(context), table_(table), options_(options) {} in JavaClassGenerator() 195 switch (options_.types) { in SkipSymbol() 208 return !symbol || (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic && in SkipSymbol() 252 CHECK(!options_.use_final || attr.id) << "no ID set for Styleable entry"; in ProcessStyleable() 604 if (out != nullptr && options_.rewrite_callback_options) { in Generate() 608 options_.rewrite_callback_options.value().packages_to_callback) { in Generate() 615 const bool is_public = (options_.types == JavaClassGeneratorOptions::SymbolTypes::kPublic); in Generate() 656 AppendJavaDocAnnotations(options_.javadoc_annotations, class_def->GetCommentBuilder()); in Generate() 667 AppendJavaDocAnnotations(options_.javadoc_annotations, r_class.GetCommentBuilder()); in Generate() 668 ClassDefinition::WriteJavaFile(&r_class, out_package_name, options_.use_final, !is_public, out); in Generate()
|
D | JavaClassGenerator.h | 116 JavaClassGeneratorOptions options_; variable
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser.cpp | 186 options_(options) {} in ResourceParser() 465 if (options_.visibility) { in ParseResources() 466 parsed_resource.visibility_level = options_.visibility.value(); in ParseResources() 850 bool translatable = options_.translatable; in ParseString() 876 if (options_.error_on_positional_arguments) { in ParseString() 921 if (options_.visibility) { in ParsePublic() 1086 if (options_.visibility) { in ParsePublicGroup() 1122 if (options_.visibility) { in ParseSymbol() 1417 if (options_.visibility) { in ParseAttrImpl() 1418 child_resource.visibility_level = options_.visibility.value(); in ParseAttrImpl() [all …]
|
D | ResourceParser.h | 140 ResourceParserOptions options_; variable
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | CommandLineOptions.h | 68 mutable std::vector<Option> options_; variable
|