Lines Matching refs:RunStatus
188 return Dumpstate::RunStatus::USER_CONSENT_DENIED; \
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()
1889 return RunStatus::OK; in DumpTraces()
1899 return RunStatus::OK; in DumpTraces()
1905 return RunStatus::OK; in DumpTraces()
1980 return RunStatus::OK; in DumpTraces()
2412 Dumpstate::RunStatus Dumpstate::DumpOptions::Initialize(int argc, char* argv[]) { in Initialize()
2413 RunStatus status = RunStatus::OK; in Initialize()
2434 status = RunStatus::HELP; in Initialize()
2438 status = RunStatus::INVALID_INPUT; 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()
2545 Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, in RunInternal()
2550 return RunStatus::INVALID_INPUT; in RunInternal()
2576 return RunStatus::INVALID_INPUT; in RunInternal()
2581 return RunStatus::OK; in RunInternal()
2740 RunStatus s = DumpstateDefaultAfterCritical(); in RunInternal()
2741 if (s != RunStatus::OK) { in RunInternal()
2742 if (s == RunStatus::USER_CONSENT_DENIED) { 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()
2815 : RunStatus::OK; in RunInternal()
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()
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()