Lines Matching defs:para
543 FILE *DumpFileUtil::OpenDumpFileInner(const std::string ¶, const std::string &fileName)
548 bool res = GetSysPara(para.c_str(), dumpPara);
550 DHLOGI("%{public}s is not set, dump dcamera is not required", para.c_str());
551 g_lastPara[para] = dumpPara;
554 DHLOGI("%{public}s = %{public}s, filePath: %{public}s", para.c_str(), dumpPara.c_str(), filePath.c_str());
562 g_lastPara[para] = dumpPara;
584 void DumpFileUtil::ChangeDumpFileState(const std::string ¶, FILE **dumpFile, const std::string &filePath)
586 CHECK_AND_RETURN_LOG(*dumpFile == nullptr, "Invalid file para");
587 CHECK_AND_RETURN_LOG(g_lastPara[para] != "w" || g_lastPara[para] != "a", "Invalid input para");
589 bool res = GetSysPara(para.c_str(), dumpPara);
591 DHLOGE("get %{public}s fail", para.c_str());
593 if (g_lastPara[para] == "w" && dumpPara == "w") {
597 OpenDumpFile(para, filePath, dumpFile);
600 void DumpFileUtil::OpenDumpFile(const std::string ¶, const std::string &fileName, FILE **file)
603 DumpFileUtil::ChangeDumpFileState(para, file, fileName);
607 if (para == DUMP_SERVER_PARA) {
608 *file = DumpFileUtil::OpenDumpFileInner(para, fileName);