Lines Matching refs:sectionMap
254 info.sectionMap["DEVICE_INFO"] = Parameter::GetString("const.product.name", "Unknown"); in AddPublicInfo()
255 if (info.sectionMap.find("BUILD_INFO") == info.sectionMap.end()) { in AddPublicInfo()
256 … info.sectionMap["BUILD_INFO"] = Parameter::GetString("const.product.software.version", "Unknown"); in AddPublicInfo()
258 info.sectionMap["UID"] = std::to_string(info.id); in AddPublicInfo()
259 info.sectionMap["PID"] = std::to_string(info.pid); in AddPublicInfo()
261 info.sectionMap["MODULE"] = info.module; in AddPublicInfo()
265 info.sectionMap["VERSION"] = bundleInfo.versionName; in AddPublicInfo()
266 info.sectionMap["VERSION_CODE"] = std::to_string(bundleInfo.versionCode); in AddPublicInfo()
270 info.sectionMap["PRE_INSTALL"] = "Yes"; in AddPublicInfo()
272 info.sectionMap["PRE_INSTALL"] = "No"; in AddPublicInfo()
276 if (info.sectionMap["FOREGROUND"].empty() && info.id >= MIN_APP_USERID) { in AddPublicInfo()
279 info.sectionMap["FOREGROUND"] = "Yes"; in AddPublicInfo()
285 info.sectionMap["FOREGROUND"] = "Yes"; in AddPublicInfo()
287 info.sectionMap["FOREGROUND"] = "No"; in AddPublicInfo()
293 info.reason = info.sectionMap["REASON"]; in AddPublicInfo()
295 info.sectionMap["REASON"] = GetSanitizerReason(info.faultLogType, info.reason); in AddPublicInfo()
299 info.summary = GetSummaryFromSectionMap(info.faultLogType, info.sectionMap); in AddPublicInfo()
301 info.sectionMap["SUMMARY"] = info.summary; in AddPublicInfo()
306 info.sectionMap.insert(info.parsedLogInfo.begin(), info.parsedLogInfo.end()); in AddPublicInfo()
313 info.sectionMap["KEY_THREAD_REGISTERS"] = info.registers; in AddCppCrashInfo()
316 info.sectionMap["APPEND_ORIGIN_LOG"] = GetCppCrashTempLogName(info); in AddCppCrashInfo()
320 info.sectionMap["HILOG"] = log; in AddCppCrashInfo()
498 info.sectionMap = sysEvent->GetKeyValuePairs(); in OnEvent()
505 sysEvent->SetEventValue("VERSION", info.sectionMap["VERSION"]); in OnEvent()
506 sysEvent->SetEventValue("VERSION_CODE", info.sectionMap["VERSION_CODE"]); in OnEvent()
507 sysEvent->SetEventValue("PRE_INSTALL", info.sectionMap["PRE_INSTALL"]); in OnEvent()
508 sysEvent->SetEventValue("FOREGROUND", info.sectionMap["FOREGROUND"]); in OnEvent()
745 info.sectionMap["PROCESS_NAME"] = info.module; // save process name in AddFaultLogIfNeed()
748 if (!isSystemProcess && info.sectionMap["SCBPROCESS"] != "YES") { in AddFaultLogIfNeed()
762 info.sectionMap.erase("APPEND_ORIGIN_LOG"); in AddFaultLogIfNeed()
766 info.sectionMap["STACK"] = GetThreadStack(info.logPath, info.pid); in AddFaultLogIfNeed()
885 if (info.sectionMap.count("VERSION") == 1) { in GetStackInfo()
886 stackInfoObj["bundle_version"] = info.sectionMap.at("VERSION"); in GetStackInfo()
888 if (info.sectionMap.count("FOREGROUND") == 1) { in GetStackInfo()
889 stackInfoObj["foreground"] = (info.sectionMap.at("FOREGROUND") == "Yes") ? true : false; in GetStackInfo()
891 if (info.sectionMap.count("FINGERPRINT") == 1) { in GetStackInfo()
892 stackInfoObj["uuid"] = info.sectionMap.at("FINGERPRINT"); in GetStackInfo()
894 if (info.sectionMap.count("HILOG") == 1) { in GetStackInfo()
896 auto hilogStr = info.sectionMap.at("HILOG"); in GetStackInfo()
1067 if (info.sectionMap.count("FOREGROUND") == 1) { in GetFreezeJsonCollector()
1068 std::string foreground = info.sectionMap.at("FOREGROUND"); in GetFreezeJsonCollector()
1072 if (info.sectionMap.count("VERSION") == 1) { in GetFreezeJsonCollector()
1073 collector.version = info.sectionMap.at("VERSION"); in GetFreezeJsonCollector()
1076 if (info.sectionMap.count("FINGERPRINT") == 1) { in GetFreezeJsonCollector()
1077 collector.uuid = info.sectionMap.at("FINGERPRINT"); in GetFreezeJsonCollector()