Lines Matching refs:RunStatus

182         return Dumpstate::RunStatus::USER_CONSENT_DENIED;                                      \
1086 static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, int priority, in RunDumpsysTextByPriority()
1119 return Dumpstate::RunStatus::OK; in RunDumpsysTextByPriority()
1132 static Dumpstate::RunStatus RunDumpsysTextNormalPriority(const std::string& title, in RunDumpsysTextNormalPriority()
1147 static Dumpstate::RunStatus RunDumpsysProto(const std::string& title, int priority, in RunDumpsysProto()
1152 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1189 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1193 static Dumpstate::RunStatus RunDumpsysCritical() { in RunDumpsysCritical()
1204 static Dumpstate::RunStatus RunDumpsysHigh() { in RunDumpsysHigh()
1218 static Dumpstate::RunStatus RunDumpsysNormal() { in RunDumpsysNormal()
1329 static Dumpstate::RunStatus dumpstate() { in dumpstate()
1541 return Dumpstate::RunStatus::OK; in dumpstate()
1552 static Dumpstate::RunStatus DumpstateDefault() { in DumpstateDefault()
1608 return Dumpstate::RunStatus::ERROR; in DumpstateDefault()
1612 Dumpstate::RunStatus status = dumpstate(); in DumpstateDefault()
1755 Dumpstate::RunStatus Dumpstate::DumpTraces(const char** path) { in DumpTraces()
1771 return RunStatus::OK; in DumpTraces()
1781 return RunStatus::OK; in DumpTraces()
1787 return RunStatus::OK; in DumpTraces()
1862 return RunStatus::OK; in DumpTraces()
2443 Dumpstate::RunStatus Dumpstate::DumpOptions::Initialize(int argc, char* argv[]) { in Initialize()
2444 RunStatus status = RunStatus::OK; in Initialize()
2467 status = RunStatus::HELP; in Initialize()
2471 status = RunStatus::INVALID_INPUT; in Initialize()
2518 Dumpstate::RunStatus Dumpstate::Run(int32_t calling_uid, const std::string& calling_package) { in Run()
2519 Dumpstate::RunStatus status = RunInternal(calling_uid, calling_package); in Run()
2522 case Dumpstate::RunStatus::OK: in Run()
2525 case Dumpstate::RunStatus::HELP: in Run()
2527 case Dumpstate::RunStatus::INVALID_INPUT: in Run()
2530 case Dumpstate::RunStatus::ERROR: in Run()
2533 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in Run()
2536 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in Run()
2565 Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, in RunInternal()
2570 return RunStatus::INVALID_INPUT; in RunInternal()
2596 return RunStatus::INVALID_INPUT; in RunInternal()
2601 return RunStatus::OK; in RunInternal()
2762 RunStatus s = DumpstateDefault(); in RunInternal()
2763 if (s != RunStatus::OK) { in RunInternal()
2764 if (s == RunStatus::USER_CONSENT_DENIED) { in RunInternal()
2782 Dumpstate::RunStatus status = Dumpstate::RunStatus::OK; in RunInternal()
2785 if (status != Dumpstate::RunStatus::OK && in RunInternal()
2786 status != Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
2800 if (status == Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
2850 : RunStatus::OK; in RunInternal()
2878 Dumpstate::RunStatus Dumpstate::HandleUserConsentDenied() { in HandleUserConsentDenied()
2884 Dumpstate::RunStatus Dumpstate::CopyBugreportIfUserConsented() { in CopyBugreportIfUserConsented()
2913 return copy_succeeded ? Dumpstate::RunStatus::OK : Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
2919 return Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT; in CopyBugreportIfUserConsented()
2923 return Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
2926 Dumpstate::RunStatus Dumpstate::ParseCommandlineAndRun(int argc, char* argv[]) { in ParseCommandlineAndRun()
2928 Dumpstate::RunStatus status = options->Initialize(argc, argv); in ParseCommandlineAndRun()
2929 if (status == Dumpstate::RunStatus::OK) { in ParseCommandlineAndRun()
2945 Dumpstate::RunStatus status = ds.ParseCommandlineAndRun(argc, argv); in run_main()
2948 case Dumpstate::RunStatus::OK: in run_main()
2950 case Dumpstate::RunStatus::HELP: in run_main()
2953 case Dumpstate::RunStatus::INVALID_INPUT: in run_main()
2957 case Dumpstate::RunStatus::ERROR: in run_main()
2959 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in run_main()
2961 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in run_main()