Lines Matching refs:options_
132 : 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()
186 AdjustSplitConstraintsForMinSdk(context_->GetMinSdkVersion(), options_.split_constraints); in Run()
190 TableSplitter splitter(options_.split_constraints, options_.table_splitter_options); in Run()
196 auto path_iter = options_.split_paths.begin(); in Run()
197 auto split_constraints_iter = options_.split_constraints.begin(); in Run()
208 GenerateSplitManifest(options_.app_info, *split_constraints_iter); in Run()
223 if (options_.apk_artifacts && options_.output_dir) { in Run()
226 options_.output_dir.value(), options_.apk_artifacts.value(), in Run()
227 options_.table_flattener_options, options_.kept_artifacts}; in Run()
233 if (options_.output_path) { in Run()
235 CreateZipFileArchiveWriter(context_->GetDiagnostics(), options_.output_path.value()); in Run()
236 if (!apk->WriteToArchive(context_, options_.table_flattener_options, writer.get())) { in Run()
295 TableFlattener table_flattener(options_.table_flattener_options, &table_buffer); in WriteSplitApk()
315 OptimizeOptions options_; member in aapt::Optimizer
365 options_.apk_artifacts = for_path.value().WithDiagnostics(diag).Parse(apk_path); in Action()
366 if (!options_.apk_artifacts) { in Action()
377 for (const OutputArtifact& artifact : options_.apk_artifacts.value()) { in Action()
386 options_.kept_artifacts.emplace(artifact); in Action()
393 if (!options_.output_dir) { in Action()
409 if (options_.enable_sparse_encoding) { in Action()
410 options_.table_flattener_options.sparse_entries = SparseEntriesMode::Enabled; in Action()
412 if (options_.force_sparse_encoding) { in Action()
413 options_.table_flattener_options.sparse_entries = SparseEntriesMode::Forced; in Action()
423 options_.table_splitter_options.preferred_densities.push_back(target_density.value()); in Action()
433 options_.table_splitter_options.config_filter = filter.get(); in Action()
438 options_.split_paths.emplace_back(); in Action()
439 options_.split_constraints.emplace_back(); in Action()
440 if (!ParseSplitParameter(split_arg, diag, &options_.split_paths.back(), in Action()
441 &options_.split_constraints.back())) { in Action()
448 if (!ExtractConfig(path, &context, &options_)) { in Action()
453 if (!ExtractAppDataFromManifest(&context, apk.get(), &options_)) { in Action()
457 Optimizer cmd(&context, options_); in Action()