Lines Matching refs:RunStatus

213         return Dumpstate::RunStatus::USER_CONSENT_DENIED;                                      \
1259 static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, int priority, in RunDumpsysTextByPriority()
1311 return Dumpstate::RunStatus::OK; in RunDumpsysTextByPriority()
1324 static Dumpstate::RunStatus RunDumpsysTextNormalPriority(const std::string& title, in RunDumpsysTextNormalPriority()
1339 static Dumpstate::RunStatus RunDumpsysProto(const std::string& title, int priority, in RunDumpsysProto()
1377 return Dumpstate::RunStatus::OK; in RunDumpsysProto()
1381 static Dumpstate::RunStatus RunDumpsysCritical() { in RunDumpsysCritical()
1392 static Dumpstate::RunStatus RunDumpsysHigh() { in RunDumpsysHigh()
1406 static Dumpstate::RunStatus RunDumpsysNormal() { in RunDumpsysNormal()
1654 Dumpstate::RunStatus Dumpstate::dumpstate() { in dumpstate()
1884 return Dumpstate::RunStatus::OK; in dumpstate()
1895 Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() { in DumpstateDefaultAfterCritical()
1988 return Dumpstate::RunStatus::ERROR; in DumpstateDefaultAfterCritical()
1992 Dumpstate::RunStatus status = dumpstate(); in DumpstateDefaultAfterCritical()
2266 Dumpstate::RunStatus Dumpstate::DumpTraces(const char** path) { in DumpTraces()
2280 return RunStatus::OK; in DumpTraces()
2290 return RunStatus::OK; in DumpTraces()
2296 return RunStatus::OK; in DumpTraces()
2385 return RunStatus::OK; in DumpTraces()
2995 Dumpstate::RunStatus Dumpstate::DumpOptions::Initialize(int argc, char* argv[]) { in Initialize()
2996 RunStatus status = RunStatus::OK; in Initialize()
3019 status = RunStatus::HELP; in Initialize()
3023 status = RunStatus::INVALID_INPUT; in Initialize()
3068 Dumpstate::RunStatus Dumpstate::Run(int32_t calling_uid, const std::string& calling_package) { in Run()
3069 Dumpstate::RunStatus status = RunInternal(calling_uid, calling_package); in Run()
3074 Dumpstate::RunStatus Dumpstate::Retrieve(int32_t calling_uid, const std::string& calling_package, in Retrieve()
3077 Dumpstate::RunStatus status = RetrieveInternal(calling_uid, calling_package, in Retrieve()
3084 Dumpstate::RunStatus Dumpstate::RetrieveInternal(int32_t calling_uid, in RetrieveInternal()
3103 return RunStatus::USER_CONSENT_TIMED_OUT; in RetrieveInternal()
3113 return RunStatus::USER_CONSENT_DENIED; in RetrieveInternal()
3119 return RunStatus::USER_CONSENT_TIMED_OUT; in RetrieveInternal()
3131 return copy_succeeded ? Dumpstate::RunStatus::OK in RetrieveInternal()
3132 : Dumpstate::RunStatus::ERROR; in RetrieveInternal()
3135 void Dumpstate::HandleRunStatus(Dumpstate::RunStatus status) { in HandleRunStatus()
3138 case Dumpstate::RunStatus::OK: in HandleRunStatus()
3141 case Dumpstate::RunStatus::HELP: in HandleRunStatus()
3143 case Dumpstate::RunStatus::INVALID_INPUT: in HandleRunStatus()
3146 case Dumpstate::RunStatus::ERROR: in HandleRunStatus()
3149 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in HandleRunStatus()
3152 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in HandleRunStatus()
3205 Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, in RunInternal()
3211 return RunStatus::INVALID_INPUT; in RunInternal()
3236 return RunStatus::INVALID_INPUT; in RunInternal()
3241 return RunStatus::OK; in RunInternal()
3407 RunStatus s = DumpstateDefaultAfterCritical(); in RunInternal()
3408 if (s != RunStatus::OK) { in RunInternal()
3409 if (s == RunStatus::USER_CONSENT_DENIED) { in RunInternal()
3425 Dumpstate::RunStatus status = Dumpstate::RunStatus::OK; in RunInternal()
3428 if (status != Dumpstate::RunStatus::OK && in RunInternal()
3429 status != Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
3436 if (status == Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT) { in RunInternal()
3480 : RunStatus::OK; in RunInternal()
3677 Dumpstate::RunStatus Dumpstate::HandleUserConsentDenied() { in HandleUserConsentDenied()
3683 Dumpstate::RunStatus Dumpstate::CopyBugreportIfUserConsented(int32_t calling_uid) { in CopyBugreportIfUserConsented()
3728 return copy_succeeded ? Dumpstate::RunStatus::OK : Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
3739 return Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT; in CopyBugreportIfUserConsented()
3743 return Dumpstate::RunStatus::ERROR; in CopyBugreportIfUserConsented()
3746 Dumpstate::RunStatus Dumpstate::ParseCommandlineAndRun(int argc, char* argv[]) { in ParseCommandlineAndRun()
3748 Dumpstate::RunStatus status = options->Initialize(argc, argv); in ParseCommandlineAndRun()
3749 if (status == Dumpstate::RunStatus::OK) { in ParseCommandlineAndRun()
3766 Dumpstate::RunStatus status = ds.ParseCommandlineAndRun(argc, argv); in run_main()
3769 case Dumpstate::RunStatus::OK: in run_main()
3771 case Dumpstate::RunStatus::HELP: in run_main()
3774 case Dumpstate::RunStatus::INVALID_INPUT: in run_main()
3778 case Dumpstate::RunStatus::ERROR: in run_main()
3780 case Dumpstate::RunStatus::USER_CONSENT_DENIED: in run_main()
3782 case Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT: in run_main()