Home
last modified time | relevance | path

Searched refs:jsonResult (Results 1 - 2 of 2) sorted by relevance

/base/account/os_account/services/accountmgr/src/
H A Daccount_info_report.cpp28 nlohmann::json jsonResult; in TransformIntoJson() local
30 jsonResult["type"] = 0; // default in TransformIntoJson()
31 jsonResult["subType"] = static_cast<int32_t>(event); in TransformIntoJson()
36 jsonResult["caller"] = userJson; in TransformIntoJson()
37 jsonResult["bootTime"] = std::to_string(MiscServices::TimeServiceClient::GetInstance()->GetBootTimeNs()); in TransformIntoJson()
38 jsonResult["wallTime"] = std::to_string(MiscServices::TimeServiceClient::GetInstance()->GetWallTimeNs()); in TransformIntoJson()
39 jsonResult["outcome"] = (result == 0) ? "Success" : "Fail"; in TransformIntoJson()
40 jsonResult["sourceInfo"] = ""; in TransformIntoJson()
41 jsonResult["targetInfo"] = ""; in TransformIntoJson()
42 jsonResult["extr in TransformIntoJson()
[all...]
/base/customization/enterprise_device_management/common/native/src/
H A Dsecurity_report.cpp37 nlohmann::json jsonResult; in ReportSecurityInfo() local
38 jsonResult["type"] = static_cast<int32_t>(reportInfo.operateType_); in ReportSecurityInfo()
39 jsonResult["subType"] = reportInfo.subType_; // reserved in ReportSecurityInfo()
40 jsonResult["caller"] = callPkgJson; in ReportSecurityInfo()
41 jsonResult["objectInfo"] = reportInfo.policyName_; in ReportSecurityInfo()
42 jsonResult["targettInfo"] = reportInfo.label_; // reserved in ReportSecurityInfo()
43 jsonResult["outcome"] = reportInfo.outcome_; in ReportSecurityInfo()
44 jsonResult["extra"] = reportInfo.extra_; // reserved in ReportSecurityInfo()
45 std::shared_ptr<EventInfo> eventInfo = std::make_shared<EventInfo>(EVENT_ID, "1.1", jsonResult.dump()); in ReportSecurityInfo()

Completed in 2 milliseconds