Lines Matching refs:options_

756     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()
2828 } else if (ds.options_->wifi_only) { in PrepareToWriteToFile()
2832 if (ds.options_->do_screenshot) { in PrepareToWriteToFile()
2839 ? StringPrintf("[fd:%d]", ds.options_->bugreport_fd.get()) in PrepareToWriteToFile()
2875 if (ds.options_->OutputToCustomFile()) { in FinalizeFile()
2876 final_path = ds.GetPath(ds.options_->out_dir, ".zip"); in FinalizeFile()
2880 if (ds.options_->stream_to_socket) { in FinalizeFile()
2882 } else if (ds.options_->progress_updates_to_socket) { in FinalizeFile()
3058 options_ = std::move(options); in SetOptions()
3124 android::os::CopyFileToFd(path_, options_->bugreport_fd.get()); in RetrieveInternal()
3208 LogDumpOptions(*options_); in RunInternal()
3209 if (!options_->ValidateOptions()) { in RunInternal()
3239 if (options_->show_header_only) { in RunInternal()
3272 id_, options_->args.c_str(), options_->bugreport_mode_string.c_str(), version_.c_str()); in RunInternal()
3274 do_early_screenshot_ = options_->do_progress_updates; in RunInternal()
3278 if (options_->stream_to_socket || options_->progress_updates_to_socket) { in RunInternal()
3284 if (options_->progress_updates_to_socket) { in RunInternal()
3285 options_->do_progress_updates = 1; in RunInternal()
3295 if (options_->do_progress_updates) { in RunInternal()
3304 if (options_->progress_updates_to_socket) { in RunInternal()
3316 if (options_->do_vibrate) { in RunInternal()
3370 if (options_->use_predumped_ui_data && !system_trace_exists) { in RunInternal()
3372 options_->use_predumped_ui_data = false; in RunInternal()
3378 options_->telephony_only || options_->wifi_only || options_->limited_only; in RunInternal()
3397 if (options_->telephony_only) { in RunInternal()
3399 } else if (options_->wifi_only) { in RunInternal()
3401 } else if (options_->limited_only) { in RunInternal()
3403 } else if (options_->onboarding_only) { in RunInternal()
3426 if (CalledByApi() && !options_->is_consent_deferred) { in RunInternal()
3453 if (options_->do_vibrate) { in RunInternal()
3484 if (!options_->do_screenshot || !do_early_screenshot_) { in MaybeTakeEarlyScreenshot()
3500 if (options_->use_predumped_ui_data) { in MaybeSnapshotSystemTraceAsync()
3547 if (PropertiesHelper::IsUserBuild() || options_->use_predumped_ui_data) { in MaybeSnapshotUiTraces()
3599 !CalledByApi() || options_->is_consent_deferred || in MaybeCheckUserConsent()
3601 options_->skip_user_consent)) { in MaybeCheckUserConsent()
3614 if (IsConsentlessBugreportAllowed(*options_)) { in MaybeCheckUserConsent()
3630 return ds.options_->bugreport_fd.get() != -1 ? true : false; in CalledByApi()
3687 if (multiuser_get_app_id(calling_uid) == AID_SHELL || (options_->skip_user_consent in CopyBugreportIfUserConsented()
3699 uint64_t timeout_ms = options_->telephony_only ? TELEPHONY_REPORT_USER_CONSENT_TIMEOUT_MS in CopyBugreportIfUserConsented()
3714 bool copy_succeeded = android::os::CopyFileToFd(path_, options_->bugreport_fd.get()); in CopyBugreportIfUserConsented()
3717 if (options_->do_screenshot && in CopyBugreportIfUserConsented()
3718 options_->screenshot_fd.get() != -1 && in CopyBugreportIfUserConsented()
3719 !options_->is_screenshot_copied) { in CopyBugreportIfUserConsented()
3721 options_->screenshot_fd.get()); in CopyBugreportIfUserConsented()
3722 options_->is_screenshot_copied = copy_succeeded; in CopyBugreportIfUserConsented()
3753 assert(options_->bugreport_fd.get() == -1); in ParseCommandlineAndRun()
3790 options_(new Dumpstate::DumpOptions()), in Dumpstate()
4596 if (!options_->do_progress_updates) return; in UpdateProgress()