Lines Matching refs:Dumpstate
130 static Dumpstate& ds = Dumpstate::GetInstance();
141 CommandOptions Dumpstate::DEFAULT_DUMPSYS = CommandOptions::WithTimeout(30).Build();
143 typedef Dumpstate::ConsentCallback::ConsentResult UserConsentResult;
195 return Dumpstate::RunStatus::USER_CONSENT_DENIED; \
341 const CommandOptions& options = Dumpstate::DEFAULT_DUMPSYS, in RunDumpsys()
347 return ds.RunDumpsys(title, dumpsysArgs, Dumpstate::DEFAULT_DUMPSYS, 0, out_fd); in RunDumpsys()
727 Dumpstate::ConsentCallback::ConsentCallback() : result_(UNAVAILABLE), start_time_(Nanotime()) { in ConsentCallback()
730 android::binder::Status Dumpstate::ConsentCallback::onReportApproved() { in onReportApproved()
755 android::binder::Status Dumpstate::ConsentCallback::onReportDenied() { in onReportDenied()
762 UserConsentResult Dumpstate::ConsentCallback::getResult() { in getResult()
767 uint64_t Dumpstate::ConsentCallback::getElapsedTimeMs() const { in getElapsedTimeMs()
771 void Dumpstate::PrintHeader() const { in PrintHeader()
822 status_t Dumpstate::AddZipEntryFromFd(const std::string& entry_name, int fd, in AddZipEntryFromFd()
912 bool Dumpstate::AddZipEntry(const std::string& entry_name, const std::string& entry_path) { in AddZipEntry()
928 void Dumpstate::AddDir(const std::string& dir, bool recursive) { in AddDir()
938 bool Dumpstate::AddTextZipEntry(const std::string& entry_name, const std::string& content) { in AddTextZipEntry()
1226 static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, int priority, in RunDumpsysTextByPriority()
1266 return Dumpstate::RunStatus::OK; in RunDumpsysTextByPriority()
1279 static Dumpstate::RunStatus RunDumpsysTextNormalPriority(const std::string& title, in RunDumpsysTextNormalPriority()
1294 static Dumpstate::RunStatus RunDumpsysProto(const std::string& title, int priority, in RunDumpsysProto()
1299 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1336 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1340 static Dumpstate::RunStatus RunDumpsysCritical() { in RunDumpsysCritical()
1351 static Dumpstate::RunStatus RunDumpsysHigh() { in RunDumpsysHigh()
1365 static Dumpstate::RunStatus RunDumpsysNormal() { in RunDumpsysNormal()
1593 static Dumpstate::RunStatus dumpstate() { in dumpstate()
1604 ds.dump_pool_->enqueueTaskWithFd(DUMP_BOARD_TASK, &Dumpstate::DumpstateBoard, &ds, _1); in dumpstate()
1806 return Dumpstate::RunStatus::OK; in dumpstate()
1817 Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() { in DumpstateDefaultAfterCritical()
1832 dump_pool_->enqueueTask(DUMP_TRACES_TASK, &Dumpstate::DumpTraces, &ds, &dump_traces_path); in DumpstateDefaultAfterCritical()
1887 return Dumpstate::RunStatus::ERROR; in DumpstateDefaultAfterCritical()
1891 Dumpstate::RunStatus status = dumpstate(); in DumpstateDefaultAfterCritical()
1965 ds.dump_pool_->enqueueTaskWithFd(DUMP_BOARD_TASK, &Dumpstate::DumpstateBoard, &ds, _1); in DumpstateTelephonyOnly()
2085 Dumpstate::RunStatus Dumpstate::DumpTraces(const char** path) { in DumpTraces()
2193 void Dumpstate::DumpstateBoard(int out_fd) { in DumpstateBoard()
2373 bool Dumpstate::FinishZipFile() { in FinishZipFile()
2545 static inline const char* ModeToString(Dumpstate::BugreportMode mode) { in ModeToString()
2547 case Dumpstate::BugreportMode::BUGREPORT_FULL: in ModeToString()
2549 case Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE: in ModeToString()
2551 case Dumpstate::BugreportMode::BUGREPORT_REMOTE: in ModeToString()
2553 case Dumpstate::BugreportMode::BUGREPORT_WEAR: in ModeToString()
2555 case Dumpstate::BugreportMode::BUGREPORT_TELEPHONY: in ModeToString()
2557 case Dumpstate::BugreportMode::BUGREPORT_WIFI: in ModeToString()
2559 case Dumpstate::BugreportMode::BUGREPORT_DEFAULT: in ModeToString()
2564 static void SetOptionsFromMode(Dumpstate::BugreportMode mode, Dumpstate::DumpOptions* options, in SetOptionsFromMode()
2570 case Dumpstate::BugreportMode::BUGREPORT_FULL: in SetOptionsFromMode()
2574 case Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE: in SetOptionsFromMode()
2580 case Dumpstate::BugreportMode::BUGREPORT_REMOTE: in SetOptionsFromMode()
2586 case Dumpstate::BugreportMode::BUGREPORT_WEAR: in SetOptionsFromMode()
2592 case Dumpstate::BugreportMode::BUGREPORT_TELEPHONY: in SetOptionsFromMode()
2598 case Dumpstate::BugreportMode::BUGREPORT_WIFI: in SetOptionsFromMode()
2603 case Dumpstate::BugreportMode::BUGREPORT_DEFAULT: in SetOptionsFromMode()
2608 static void LogDumpOptions(const Dumpstate::DumpOptions& options) { in LogDumpOptions()
2621 void Dumpstate::DumpOptions::Initialize(BugreportMode bugreport_mode, in Initialize()
2632 Dumpstate::RunStatus Dumpstate::DumpOptions::Initialize(int argc, char* argv[]) { in Initialize()
2679 bool Dumpstate::DumpOptions::ValidateOptions() const { in ValidateOptions()
2694 void Dumpstate::SetOptions(std::unique_ptr<DumpOptions> options) { in SetOptions()
2698 void Dumpstate::Initialize() { in Initialize()
2705 Dumpstate::RunStatus Dumpstate::Run(int32_t calling_uid, const std::string& calling_package) { in Run()
2706 Dumpstate::RunStatus status = RunInternal(calling_uid, calling_package); in Run()
2709 case Dumpstate::RunStatus::OK: in Run()
2712 case Dumpstate::RunStatus::HELP: in Run()
2714 case Dumpstate::RunStatus::INVALID_INPUT: in Run()
2717 case Dumpstate::RunStatus::ERROR: in Run()
2720 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in Run()
2723 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in Run()
2731 void Dumpstate::Cancel() { in Cancel()
2770 Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, in RunInternal()
2973 Dumpstate::RunStatus status = Dumpstate::RunStatus::OK; in RunInternal()
2976 if (status != Dumpstate::RunStatus::OK && in RunInternal()
2977 status != Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
2984 if (status == Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
3029 void Dumpstate::MaybeTakeEarlyScreenshot() { in MaybeTakeEarlyScreenshot()
3037 void Dumpstate::MaybeSnapshotSystemTrace() { in MaybeSnapshotSystemTrace()
3057 void Dumpstate::MaybeSnapshotWinTrace() { in MaybeSnapshotWinTrace()
3068 void Dumpstate::onUiIntensiveBugreportDumpsFinished(int32_t calling_uid) { in onUiIntensiveBugreportDumpsFinished()
3079 void Dumpstate::MaybeCheckUserConsent(int32_t calling_uid, const std::string& calling_package) { in MaybeCheckUserConsent()
3099 bool Dumpstate::IsUserConsentDenied() const { in IsUserConsentDenied()
3104 bool Dumpstate::CalledByApi() const { in CalledByApi()
3108 void Dumpstate::CleanupTmpFiles() { in CleanupTmpFiles()
3117 void Dumpstate::EnableParallelRunIfNeeded() { in EnableParallelRunIfNeeded()
3125 void Dumpstate::ShutdownDumpPool() { in ShutdownDumpPool()
3136 void Dumpstate::EnqueueAddZipEntryAndCleanupIfNeeded(const std::string& entry_name, in EnqueueAddZipEntryAndCleanupIfNeeded()
3153 Dumpstate::RunStatus Dumpstate::HandleUserConsentDenied() { in HandleUserConsentDenied()
3159 Dumpstate::RunStatus Dumpstate::CopyBugreportIfUserConsented(int32_t calling_uid) { in CopyBugreportIfUserConsented()
3203 return copy_succeeded ? Dumpstate::RunStatus::OK : Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
3214 return Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT; in CopyBugreportIfUserConsented()
3218 return Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
3221 Dumpstate::RunStatus Dumpstate::ParseCommandlineAndRun(int argc, char* argv[]) { in ParseCommandlineAndRun()
3222 std::unique_ptr<Dumpstate::DumpOptions> options = std::make_unique<Dumpstate::DumpOptions>(); in ParseCommandlineAndRun()
3223 Dumpstate::RunStatus status = options->Initialize(argc, argv); in ParseCommandlineAndRun()
3224 if (status == Dumpstate::RunStatus::OK) { in ParseCommandlineAndRun()
3241 Dumpstate::RunStatus status = ds.ParseCommandlineAndRun(argc, argv); in run_main()
3244 case Dumpstate::RunStatus::OK: in run_main()
3246 case Dumpstate::RunStatus::HELP: in run_main()
3249 case Dumpstate::RunStatus::INVALID_INPUT: in run_main()
3253 case Dumpstate::RunStatus::ERROR: in run_main()
3255 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in run_main()
3257 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in run_main()
3263 Dumpstate::Dumpstate(const std::string& version) in Dumpstate() function in Dumpstate
3265 options_(new Dumpstate::DumpOptions()), in Dumpstate()
3272 Dumpstate& Dumpstate::GetInstance() { in GetInstance()
3273 static Dumpstate singleton_(android::base::GetProperty("dumpstate.version", VERSION_CURRENT)); in GetInstance()
3408 bool Dumpstate::IsZipping() const { in IsZipping()
3412 std::string Dumpstate::GetPath(const std::string& suffix) const { in GetPath()
3416 std::string Dumpstate::GetPath(const std::string& directory, const std::string& suffix) const { in GetPath()
3421 void Dumpstate::SetProgress(std::unique_ptr<Progress> progress) { in SetProgress()
3760 int Dumpstate::DumpFile(const std::string& title, const std::string& path) { in DumpFile()
3879 int Dumpstate::RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand()
3895 void Dumpstate::RunDumpsys(const std::string& title, const std::vector<std::string>& dumpsys_args, in RunDumpsys()
4010 void Dumpstate::UpdateProgress(int32_t delta_sec) { in UpdateProgress()
4055 void Dumpstate::TakeScreenshot(const std::string& path) { in TakeScreenshot()