Lines Matching refs:Dumpstate
125 static Dumpstate& ds = Dumpstate::GetInstance();
136 CommandOptions Dumpstate::DEFAULT_DUMPSYS = CommandOptions::WithTimeout(30).Build();
138 typedef Dumpstate::ConsentCallback::ConsentResult UserConsentResult;
188 return Dumpstate::RunStatus::USER_CONSENT_DENIED; \
307 const CommandOptions& options = Dumpstate::DEFAULT_DUMPSYS, in RunDumpsys()
676 Dumpstate::ConsentCallback::ConsentCallback() : result_(UNAVAILABLE), start_time_(Nanotime()) { in ConsentCallback()
679 android::binder::Status Dumpstate::ConsentCallback::onReportApproved() { in onReportApproved()
704 android::binder::Status Dumpstate::ConsentCallback::onReportDenied() { in onReportDenied()
711 UserConsentResult Dumpstate::ConsentCallback::getResult() { in getResult()
716 uint64_t Dumpstate::ConsentCallback::getElapsedTimeMs() const { in getElapsedTimeMs()
720 void Dumpstate::PrintHeader() const { in PrintHeader()
767 status_t Dumpstate::AddZipEntryFromFd(const std::string& entry_name, int fd, in AddZipEntryFromFd()
857 bool Dumpstate::AddZipEntry(const std::string& entry_name, const std::string& entry_path) { in AddZipEntry()
873 void Dumpstate::AddDir(const std::string& dir, bool recursive) { in AddDir()
883 bool Dumpstate::AddTextZipEntry(const std::string& entry_name, const std::string& content) { in AddTextZipEntry()
1156 static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, int priority, in RunDumpsysTextByPriority()
1189 return Dumpstate::RunStatus::OK; in RunDumpsysTextByPriority()
1202 static Dumpstate::RunStatus RunDumpsysTextNormalPriority(const std::string& title, in RunDumpsysTextNormalPriority()
1217 static Dumpstate::RunStatus RunDumpsysProto(const std::string& title, int priority, in RunDumpsysProto()
1222 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1259 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1263 static Dumpstate::RunStatus RunDumpsysCritical() { in RunDumpsysCritical()
1274 static Dumpstate::RunStatus RunDumpsysHigh() { in RunDumpsysHigh()
1288 static Dumpstate::RunStatus RunDumpsysNormal() { in RunDumpsysNormal()
1439 static Dumpstate::RunStatus dumpstate() { in dumpstate()
1654 return Dumpstate::RunStatus::OK; in dumpstate()
1665 Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() { in DumpstateDefaultAfterCritical()
1717 return Dumpstate::RunStatus::ERROR; in DumpstateDefaultAfterCritical()
1721 Dumpstate::RunStatus status = dumpstate(); in DumpstateDefaultAfterCritical()
1873 Dumpstate::RunStatus Dumpstate::DumpTraces(const char** path) { in DumpTraces()
1983 void Dumpstate::DumpstateBoard() { in DumpstateBoard()
2143 bool Dumpstate::FinishZipFile() { in FinishZipFile()
2316 static inline const char* ModeToString(Dumpstate::BugreportMode mode) { in ModeToString()
2318 case Dumpstate::BugreportMode::BUGREPORT_FULL: in ModeToString()
2320 case Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE: in ModeToString()
2322 case Dumpstate::BugreportMode::BUGREPORT_REMOTE: in ModeToString()
2324 case Dumpstate::BugreportMode::BUGREPORT_WEAR: in ModeToString()
2326 case Dumpstate::BugreportMode::BUGREPORT_TELEPHONY: in ModeToString()
2328 case Dumpstate::BugreportMode::BUGREPORT_WIFI: in ModeToString()
2330 case Dumpstate::BugreportMode::BUGREPORT_DEFAULT: in ModeToString()
2335 static void SetOptionsFromMode(Dumpstate::BugreportMode mode, Dumpstate::DumpOptions* options, in SetOptionsFromMode()
2341 case Dumpstate::BugreportMode::BUGREPORT_FULL: in SetOptionsFromMode()
2345 case Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE: in SetOptionsFromMode()
2352 case Dumpstate::BugreportMode::BUGREPORT_REMOTE: in SetOptionsFromMode()
2358 case Dumpstate::BugreportMode::BUGREPORT_WEAR: in SetOptionsFromMode()
2366 case Dumpstate::BugreportMode::BUGREPORT_TELEPHONY: in SetOptionsFromMode()
2372 case Dumpstate::BugreportMode::BUGREPORT_WIFI: in SetOptionsFromMode()
2378 case Dumpstate::BugreportMode::BUGREPORT_DEFAULT: in SetOptionsFromMode()
2383 static void LogDumpOptions(const Dumpstate::DumpOptions& options) { in LogDumpOptions()
2396 void Dumpstate::DumpOptions::Initialize(BugreportMode bugreport_mode, in Initialize()
2412 Dumpstate::RunStatus Dumpstate::DumpOptions::Initialize(int argc, char* argv[]) { in Initialize()
2457 bool Dumpstate::DumpOptions::ValidateOptions() const { in ValidateOptions()
2476 void Dumpstate::SetOptions(std::unique_ptr<DumpOptions> options) { in SetOptions()
2480 void Dumpstate::Initialize() { in Initialize()
2487 Dumpstate::RunStatus Dumpstate::Run(int32_t calling_uid, const std::string& calling_package) { in Run()
2488 Dumpstate::RunStatus status = RunInternal(calling_uid, calling_package); in Run()
2491 case Dumpstate::RunStatus::OK: in Run()
2494 case Dumpstate::RunStatus::HELP: in Run()
2496 case Dumpstate::RunStatus::INVALID_INPUT: in Run()
2499 case Dumpstate::RunStatus::ERROR: in Run()
2502 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in Run()
2505 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in Run()
2513 void Dumpstate::Cancel() { in Cancel()
2545 Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, in RunInternal()
2760 Dumpstate::RunStatus status = Dumpstate::RunStatus::OK; in RunInternal()
2763 if (status != Dumpstate::RunStatus::OK && in RunInternal()
2764 status != Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
2771 if (status == Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
2818 void Dumpstate::MaybeTakeEarlyScreenshot() { in MaybeTakeEarlyScreenshot()
2826 void Dumpstate::onUiIntensiveBugreportDumpsFinished(int32_t calling_uid, in onUiIntensiveBugreportDumpsFinished()
2839 void Dumpstate::MaybeCheckUserConsent(int32_t calling_uid, const std::string& calling_package) { in MaybeCheckUserConsent()
2859 bool Dumpstate::IsUserConsentDenied() const { in IsUserConsentDenied()
2864 bool Dumpstate::CalledByApi() const { in CalledByApi()
2868 void Dumpstate::CleanupTmpFiles() { in CleanupTmpFiles()
2874 Dumpstate::RunStatus Dumpstate::HandleUserConsentDenied() { in HandleUserConsentDenied()
2880 Dumpstate::RunStatus Dumpstate::CopyBugreportIfUserConsented(int32_t calling_uid) { in CopyBugreportIfUserConsented()
2924 return copy_succeeded ? Dumpstate::RunStatus::OK : Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
2930 return Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT; in CopyBugreportIfUserConsented()
2934 return Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
2937 Dumpstate::RunStatus Dumpstate::ParseCommandlineAndRun(int argc, char* argv[]) { in ParseCommandlineAndRun()
2938 std::unique_ptr<Dumpstate::DumpOptions> options = std::make_unique<Dumpstate::DumpOptions>(); in ParseCommandlineAndRun()
2939 Dumpstate::RunStatus status = options->Initialize(argc, argv); in ParseCommandlineAndRun()
2940 if (status == Dumpstate::RunStatus::OK) { in ParseCommandlineAndRun()
2957 Dumpstate::RunStatus status = ds.ParseCommandlineAndRun(argc, argv); in run_main()
2960 case Dumpstate::RunStatus::OK: in run_main()
2962 case Dumpstate::RunStatus::HELP: in run_main()
2965 case Dumpstate::RunStatus::INVALID_INPUT: in run_main()
2969 case Dumpstate::RunStatus::ERROR: in run_main()
2971 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in run_main()
2973 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in run_main()
2979 Dumpstate::Dumpstate(const std::string& version) in Dumpstate() function in Dumpstate
2981 options_(new Dumpstate::DumpOptions()), in Dumpstate()
2987 Dumpstate& Dumpstate::GetInstance() { in GetInstance()
2988 static Dumpstate singleton_(android::base::GetProperty("dumpstate.version", VERSION_CURRENT)); in GetInstance()
3121 bool Dumpstate::IsZipping() const { in IsZipping()
3125 std::string Dumpstate::GetPath(const std::string& suffix) const { in GetPath()
3129 std::string Dumpstate::GetPath(const std::string& directory, const std::string& suffix) const { in GetPath()
3134 void Dumpstate::SetProgress(std::unique_ptr<Progress> progress) { in SetProgress()
3473 int Dumpstate::DumpFile(const std::string& title, const std::string& path) { in DumpFile()
3592 int Dumpstate::RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand()
3607 void Dumpstate::RunDumpsys(const std::string& title, const std::vector<std::string>& dumpsys_args, in RunDumpsys()
3736 void Dumpstate::UpdateProgress(int32_t delta_sec) { in UpdateProgress()
3776 void Dumpstate::TakeScreenshot(const std::string& path) { in TakeScreenshot()