/base/powermgr/battery_statistics/services/native/src/ |
H A D | battery_stats_listener.cpp | 59 Json::Value root;
in OnEvent() local 63 if (parseFromStream(reader, is, &root, &errors)) {
in OnEvent() 64 ProcessHiSysEvent(eventName, root);
in OnEvent() 70 void BatteryStatsListener::ProcessHiSysEvent(const std::string& eventName, const Json::Value& root)
in ProcessHiSysEvent() argument 77 ProcessWakelockEvent(data, root);
in ProcessHiSysEvent() 80 ProcessDispalyEvent(data, root, eventName);
in ProcessHiSysEvent() 82 ProcessBatteryEvent(data, root);
in ProcessHiSysEvent() 86 ProcessThermalEvent(data, root);
in ProcessHiSysEvent() 90 ProcessWorkschedulerEvent(data, root);
in ProcessHiSysEvent() 92 ProcessPhoneEvent(data, root, eventNam in ProcessHiSysEvent() 119 ProcessCameraEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessCameraEvent() argument 148 ProcessAudioEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessAudioEvent() argument 174 ProcessSensorEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessSensorEvent() argument 198 ProcessGnssEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessGnssEvent() argument 216 ProcessBluetoothBrEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessBluetoothBrEvent() argument 250 ProcessBluetoothBleEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessBluetoothBleEvent() argument 280 ProcessBluetoothEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessBluetoothEvent() argument 291 ProcessWifiEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessWifiEvent() argument 317 ProcessPhoneDebugInfo(StatsUtils::StatsData& data, const Json::Value& root) ProcessPhoneDebugInfo() argument 333 ProcessPhoneEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessPhoneEvent() argument 372 ProcessFlashlightEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessFlashlightEvent() argument 390 ProcessWakelockEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessWakelockEvent() argument 441 ProcessDispalyDebugInfo(StatsUtils::StatsData& data, const Json::Value& root) ProcessDispalyDebugInfo() argument 469 ProcessDispalyEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName) ProcessDispalyEvent() argument 499 ProcessBatteryEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessBatteryEvent() argument 519 ProcessThermalEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessThermalEvent() argument 546 ProcessPowerWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessPowerWorkschedulerEvent() argument 566 ProcessOthersWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessOthersWorkschedulerEvent() argument 595 ProcessWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessWorkschedulerEvent() argument 607 ProcessDistributedSchedulerEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessDistributedSchedulerEvent() argument 636 ProcessAlarmEvent(StatsUtils::StatsData& data, const Json::Value& root) ProcessAlarmEvent() argument [all...] |
/base/powermgr/battery_statistics/services/native/include/ |
H A D | battery_stats_listener.h | 34 void ProcessHiSysEvent(const std::string& eventName, const Json::Value& root);
35 void ProcessPhoneEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
36 void ProcessWakelockEvent(StatsUtils::StatsData& data, const Json::Value& root);
37 void ProcessDispalyEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
38 void ProcessBatteryEvent(StatsUtils::StatsData& data, const Json::Value& root);
39 void ProcessThermalEvent(StatsUtils::StatsData& data, const Json::Value& root);
40 void ProcessPowerWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root);
41 void ProcessOthersWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root);
42 void ProcessWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root);
43 void ProcessFlashlightEvent(StatsUtils::StatsData& data, const Json::Value& root);
[all...] |
/base/hiviewdfx/hiview/base/ |
H A D | dispatch_rule_parser.cpp | 33 Json::Value root;
in DispatchRuleParser() local 42 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) {
in DispatchRuleParser() 48 ParseEventTypes(root);
in DispatchRuleParser() 49 ParseEvents(root);
in DispatchRuleParser() 50 ParseTagEvents(root);
in DispatchRuleParser() 51 ParseDomainRule(root);
in DispatchRuleParser() 59 void DispatchRuleParser::ParseEventTypes(const Json::Value& root)
in ParseEventTypes() argument 64 if (root.isNull() || !root.isMember("types") || !root["type in ParseEventTypes() 81 ParseTagEvents(const Json::Value& root) ParseTagEvents() argument 100 ParseEvents(const Json::Value& root) ParseEvents() argument 119 ParseDomainRule(const Json::Value& root) ParseDomainRule() argument [all...] |
/base/hiviewdfx/hiview/base/event_report/event/ |
H A D | logger_event.cpp | 26 using ParamValueAdder = void (*)(Json::Value &root, const std::string &name, const ParamValue& value);
28 void AddUint8Value(Json::Value &root, const std::string &name, const ParamValue& value)
in AddUint8Value() argument 30 root[name] = value.GetUint8();
in AddUint8Value() 33 void AddUint16Value(Json::Value &root, const std::string &name, const ParamValue& value)
in AddUint16Value() argument 35 root[name] = value.GetUint16();
in AddUint16Value() 38 void AddUint32Value(Json::Value &root, const std::string &name, const ParamValue& value)
in AddUint32Value() argument 40 root[name] = value.GetUint32();
in AddUint32Value() 43 void AddUint64Value(Json::Value &root, const std::string &name, const ParamValue& value)
in AddUint64Value() argument 45 root[name] = value.GetUint64();
in AddUint64Value() 48 void AddStringValue(Json::Value &root, cons argument 53 AddUint32VecValue(Json::Value &root, const std::string &name, const ParamValue& value) AddUint32VecValue() argument 61 AddStringVecValue(Json::Value &root, const std::string &name, const ParamValue& value) AddStringVecValue() argument 87 Json::Value root; ToJsonString() local [all...] |
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | json_parser.cpp | 73 void JsonParser::ParseUInt32Vec(const Json::Value& root, std::vector<uint32_t>& vec)
in ParseUInt32Vec() argument 75 if (!root.isArray()) {
in ParseUInt32Vec() 78 for (size_t i = 0; i < root.size(); ++i) {
in ParseUInt32Vec() 79 vec.push_back(ParseUInt32(root[static_cast<int>(i)]));
in ParseUInt32Vec() 83 void JsonParser::ParseStringVec(const Json::Value& root, std::vector<std::string>& vec)
in ParseStringVec() argument 85 if (!root.isArray()) {
in ParseStringVec() 88 for (size_t i = 0; i < root.size(); ++i) {
in ParseStringVec() 89 vec.push_back(ParseString(root[static_cast<int>(i)]));
in ParseStringVec() 96 Json::Value root;
in ParsePluginStatsEvent() 97 if (!ParseJsonString(root, jsonSt in ParsePluginStatsEvent() [all...] |
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/ |
H A D | fingerprint_policy_serializer.cpp | 26 cJSON* root = cJSON_Parse(data.c_str()); in Deserialize() local 27 if (root == nullptr) { in Deserialize() 30 if (cJSON_IsBool(root)) { in Deserialize() 31 result.globalDisallow = cJSON_IsTrue(root); in Deserialize() 32 cJSON_Delete(root); in Deserialize() 36 cJSON_ArrayForEach(item, root) { in Deserialize() 42 cJSON_Delete(root); in Deserialize() 55 cJSON* root = nullptr; in Serialize() local 56 CJSON_CREATE_ARRAY_AND_CHECK(root, false); in Serialize() 59 cJSON_AddItemToArray(root, ite in Serialize() [all...] |
H A D | password_policy_serializer.cpp | 32 cJSON* root = cJSON_Parse(jsonString.c_str()); in Deserialize() local 33 if (root == nullptr) { in Deserialize() 36 cJSON* complexityReg = cJSON_GetObjectItem(root, COMPLEXITY_REG.c_str()); in Deserialize() 37 cJSON* validityPeriod = cJSON_GetObjectItem(root, VALIDITY_PERIOD.c_str()); in Deserialize() 38 cJSON* additionalDescription = cJSON_GetObjectItem(root, ADDITIONAL_DESCRIPTION.c_str()); in Deserialize() 41 cJSON_Delete(root); in Deserialize() 47 cJSON_Delete(root); in Deserialize() 54 cJSON* root = nullptr; in Serialize() local 55 CJSON_CREATE_OBJECT_AND_CHECK(root, false); in Serialize() 56 cJSON_AddStringToObject(root, COMPLEXITY_RE in Serialize() [all...] |
H A D | clipboard_policy_serializer.cpp | 26 cJSON* root = cJSON_Parse(data.c_str()); in Deserialize() local 27 if (root == nullptr) { in Deserialize() 31 cJSON_ArrayForEach(item, root) { in Deserialize() 35 cJSON_Delete(root); in Deserialize() 44 cJSON_Delete(root); in Deserialize() 53 cJSON* root = nullptr; in Serialize() local 54 CJSON_CREATE_ARRAY_AND_CHECK(root, false); in Serialize() 57 CJSON_CREATE_OBJECT_AND_CHECK_AND_CLEAR(item, false, root); in Serialize() 60 if (!cJSON_AddItemToArray(root, item)) { in Serialize() 61 cJSON_Delete(root); in Serialize() [all...] |
H A D | watermark_image_serializer.cpp | 36 cJSON* root = cJSON_Parse(policy.c_str()); in Deserialize() local 37 if (root == nullptr) { in Deserialize() 41 cJSON_ArrayForEach(item, root) { in Deserialize() 50 cJSON_Delete(root); in Deserialize() 58 cJSON_Delete(root); in Deserialize() 68 cJSON* root = nullptr; in Serialize() local 69 CJSON_CREATE_ARRAY_AND_CHECK(root, false); in Serialize() 72 CJSON_CREATE_OBJECT_AND_CHECK_AND_CLEAR(item, false, root); in Serialize() 78 cJSON_AddItemToArray(root, item); in Serialize() 80 char* jsonStr = cJSON_Print(root); in Serialize() [all...] |
/base/notification/distributed_notification_service/services/ans/src/notification_smart_reminder/ |
H A D | reminder_affected.cpp | 23 bool ReminderAffected::FromJson(const nlohmann::json &root) in FromJson() argument 25 if (root.is_null() || !root.is_object()) { in FromJson() 26 ANS_LOGE("ReminderAffected fromJson failed as root is null."); in FromJson() 30 ValidStatus(root, status_); in FromJson() 31 ValidAndGetAffectedBy(root, affectedBy_); in FromJson() 32 if (root.find(NotificationConfigParse::CFG_KEY_REMINDER_FLAGS) != root.end() && in FromJson() 33 !root[NotificationConfigParse::CFG_KEY_REMINDER_FLAGS].is_null() && in FromJson() 34 root[NotificationConfigPars in FromJson() 42 ValidAndGetAffectedBy( const nlohmann::json &root, std::vector<std::pair<std::string, std::string>> &affectedBy) ValidAndGetAffectedBy() argument 76 ValidStatus(const nlohmann::json &root, std::string &status) ValidStatus() argument [all...] |
/base/telephony/call_manager/utils/src/ |
H A D | call_dialog.cpp | 101 nlohmann::json root; in BuildStartCommand() local 103 root["ability.want.params.uiExtensionType"] = uiExtensionType; in BuildStartCommand() 104 root["sysDialogZOrder"] = SOURCE_SCREENLOCKED; in BuildStartCommand() 105 root["dialogReason"] = dialogReason; in BuildStartCommand() 106 root["slotId"] = slotId; in BuildStartCommand() 107 std::string startCommand = root.dump(); in BuildStartCommand() 170 nlohmann::json root; in BuildStartPrivpacyModeCommand() local 172 root["ability.want.params.uiExtensionType"] = uiExtensionType; in BuildStartPrivpacyModeCommand() 173 root["sysDialogZOrder"] = SOURCE_SCREENLOCKED; in BuildStartPrivpacyModeCommand() 174 root["dialogReaso in BuildStartPrivpacyModeCommand() 193 nlohmann::json root; BuildStartAnswerPrivpacyModeCommand() local 211 nlohmann::json root; BuildCallingPrivacyModeCommand() local [all...] |
/base/update/updater/utils/json/ |
H A D | json_node.cpp | 55 // get root node in JsonNode() 57 cJSON *root = cJSON_Parse(content.c_str()); in JsonNode() local 58 if (root == nullptr || cJSON_IsInvalid(root)) { in JsonNode() 59 cJSON_Delete(root); in JsonNode() 64 Init(root, true); in JsonNode() 67 JsonNode::JsonNode(const cJSON *root, bool needDelete) in JsonNode() argument 69 if (root != nullptr && !cJSON_IsInvalid(root)) { in JsonNode() 70 Init(root, needDelet in JsonNode() 78 Init(const cJSON *root, bool needDelete) Init() argument 89 Parse(const cJSON *root) Parse() argument [all...] |
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | sehap_contexts_trie.cpp | 88 SehapContextsTrie* root = this; in Search() local 91 auto child = root->FindChild(word); in Search() 95 root = child; in Search() 96 if ((root->prefixInfo.isEnd) && (i != words.size() - 1)) { in Search() 98 type = root->prefixInfo.domain; in Search() 100 type = root->prefixInfo.type; in Search() 103 if ((root->matchedInfo.isEnd) && (i == words.size() - 1)) { in Search() 105 type = root->matchedInfo.domain; in Search() 107 type = root->matchedInfo.type; in Search() 116 SehapContextsTrie* root in Clear() local [all...] |
H A D | selinux_map.c | 69 static HashNode *GetHashNodeByNode(HashNode *root, const HashNode *nodeKey) in GetHashNodeByNode() argument 71 while (root != NULL) { in GetHashNodeByNode() 72 int ret = GroupNodeNodeCompare(root, nodeKey); in GetHashNodeByNode() 74 return root; in GetHashNodeByNode() 76 root = root->next; in GetHashNodeByNode() 81 static HashNode *GetHashNodeByKey(HashNode *root, const char *key) in GetHashNodeByKey() argument 83 while (root != NULL) { in GetHashNodeByKey() 84 int ret = GroupNodeKeyCompare(root, key); in GetHashNodeByKey() 86 return root; in GetHashNodeByKey() 125 HashListFree(HashNode *root) HashListFree() argument [all...] |
H A D | contexts_trie.c | 33 static ParamHashNode *GetGroupNode(ParamContextsTrie *root, const char *name, uint32_t len) in GetGroupNode() argument 35 HashNode *node = HashMapGet(root->handle, name, len); in GetGroupNode() 42 static ParamHashNode *AddGroupNode(ParamContextsTrie *root, const char *name, ParamContextsTrie *child) in AddGroupNode() argument 45 ParamHashNode *groupNode = GetGroupNode(root, name, nameLen); in AddGroupNode() 63 HashMapAdd(root->handle, &groupNode->hashNode); in AddGroupNode() 79 static bool InsertElementToTrie(ParamContextsTrie *root, const char *element, ParamContextsTrie **child) in InsertElementToTrie() argument 82 ParamHashNode *childNode = GetGroupNode(root, element, nameLen); in InsertElementToTrie() 99 if (AddGroupNode(root, element, childPtr) == NULL) { in InsertElementToTrie() 107 static bool InsertParamToTrie(ParamContextsTrie *root, const char *paramPrefix, const char *contexts, int index) in InsertParamToTrie() argument 109 if (root in InsertParamToTrie() 139 SearchFromParamTrie(ParamContextsTrie *root, const char *paraName) SearchFromParamTrie() argument 175 GetLabelIndex(ParamContextsTrie *root, const char *paraName) GetLabelIndex() argument 261 ReadParamFromSharedMemInit(ParamContextsTrie **root, ParamContextsList **listPtr, SharedMem **memPtr) ReadParamFromSharedMemInit() argument 296 ParamContextsTrie *root = NULL; ReadParamFromSharedMem() local [all...] |
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
H A D | map_string_serializer.cpp | 26 Json::Value root; in Deserialize() local 31 if (!reader->parse(jsonString.c_str(), jsonString.c_str() + rawJsonLength, &root, &err)) { in Deserialize() 35 if (!root.isObject()) { in Deserialize() 39 if (root.empty()) { in Deserialize() 42 for (auto &member : root.getMemberNames()) { in Deserialize() 43 if (root[member].type() != Json::ValueType::stringValue && root[member].type() != Json::ValueType::intValue && in Deserialize() 44 root[member].type() != Json::ValueType::uintValue && root[member].type() != Json::ValueType::booleanValue) { in Deserialize() 48 dataObj.insert(std::pair<std::string, std::string>(member, root[membe in Deserialize() 59 Json::Value root; Serialize() local [all...] |
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | system_dialog_connect_stb.cpp | 52 nlohmann::json root = nlohmann::json::parse(commandStr_); in OnAbilityConnectDone() local 53 if (root.is_null() or !root.is_object()) { in OnAbilityConnectDone() 57 if (!root.contains("bundleName") || !root.contains("bundleUid")) { in OnAbilityConnectDone() 61 if (!root["bundleName"].is_string() || !root["bundleUid"].is_number_integer()) { in OnAbilityConnectDone() 65 std::string bundleName = root["bundleName"]; in OnAbilityConnectDone() 66 int32_t bundleUid = root["bundleUid"]; in OnAbilityConnectDone()
|
/base/update/updateservice/services/firmware/utils/src/ |
H A D | firmware_check_analyze_utils.cpp | 40 nlohmann::json root; in DoAnalyze() local 41 if (!JsonUtils::ParseAndGetJsonObject(rawJson, root)) { in DoAnalyze() 47 JsonUtils::GetValueAndSetTo(root, "searchStatus", status); in DoAnalyze() 55 ret += AnalyzeBlVersionCheckResults(root, response); in DoAnalyze() 56 ret += AnalyzeComponents(root); in DoAnalyze() 65 int32_t FirmwareCheckAnalyzeUtils::AnalyzeBlVersionCheckResults(nlohmann::json &root, BlCheckResponse &response) in AnalyzeBlVersionCheckResults() argument 67 if (root.find("checkResults") == root.end()) { in AnalyzeBlVersionCheckResults() 71 FIRMWARE_LOGI("checkResults size is %{public}" PRIu64 "", static_cast<uint64_t>(root["checkResults"].size())); in AnalyzeBlVersionCheckResults() 73 for (auto &result : root["checkResult in AnalyzeBlVersionCheckResults() 105 AnalyzeComponents(nlohmann::json &root) AnalyzeComponents() argument [all...] |
/base/inputmethod/imf/services/json/src/ |
H A D | serializable.cpp | 22 auto root = cJSON_Parse(content.c_str()); in Unmarshall() local 23 if (root == NULL) { in Unmarshall() 27 auto ret = Unmarshal(root); in Unmarshall() 28 cJSON_Delete(root); in Unmarshall() 34 cJSON *root = cJSON_CreateObject(); in Marshall() local 35 if (root == NULL) { in Marshall() 38 auto ret = Marshal(root); in Marshall() 40 cJSON_Delete(root); in Marshall() 43 auto str = cJSON_PrintUnformatted(root); in Marshall() 45 cJSON_Delete(root); in Marshall() [all...] |
/base/update/updateservice/services/startup/manage/src/ |
H A D | schedule_config.cpp | 30 nlohmann::json root = in InitConfig() local 32 if (root.is_discarded()) { in InitConfig() 36 pullupInterval_ = ParseConfig(root, Startup::PULLUP_INTERVAL_CONFIG, Startup::PULLUP_INTERVAL); in InitConfig() 37 idleCheckInterval_ = ParseConfig(root, Startup::IDLE_CHECK_INTERVAL_CONFIG, Startup::IDLE_CHECK_INTERVAL); in InitConfig() 52 uint64_t ScheduleConfig::ParseConfig(nlohmann::json &root, const std::string &key, uint64_t defaultValue) in ParseConfig() argument 55 int32_t ret = JsonUtils::GetValueAndSetTo(root, key, value); in ParseConfig()
|
/base/security/appverify/interfaces/innerkits/appverify/src/init/ |
H A D | trusted_root_ca.cpp | 57 HAPVERIFY_LOG_INFO("parse root certs test success, certs num: %{public}zu", rootCertsForTest.size());
in EnableDebug() 84 HAPVERIFY_LOG_INFO("parse root certs success, certs num: %{public}zu", rootCerts.size());
in Init() 122 HAPVERIFY_LOG_ERROR("no root cert");
in GetTrustedRootCAFromJson() 136 X509* root = FindMatchedRoot(rootCerts, caCert);
in FindMatchedRoot() local 137 if (root != nullptr) {
in FindMatchedRoot() 138 return root;
in FindMatchedRoot() 142 HAPVERIFY_LOG_INFO("try to match with test root");
in FindMatchedRoot() 143 root = FindMatchedRoot(rootCertsForTest, caCert);
in FindMatchedRoot() 145 return root;
in FindMatchedRoot() 150 for (auto root in FindMatchedRoot() [all...] |
/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_update_verify.cpp | 35 bool GetHmpType(const JsonNode &root, std::string &type) in GetHmpType() argument 37 const JsonNode &typeJson = root["type"]; in GetHmpType() 79 bool GetPackInfoVer(const JsonNode &root, const std::string &key, std::string &version) in GetPackInfoVer() argument 81 const JsonNode &package = root["package"]; in GetPackInfoVer() 96 JsonNode root(packInfo); in CheckPackInfoVer() 98 if (!GetHmpType(root, type)) { in CheckPackInfoVer() 103 if (type == HMP_APP_TYPE && GetPackInfoVer(root, HMP_API_VERSION, apiVersion)) { in CheckPackInfoVer() 108 GetPackInfoVer(root, HMP_SA_SDK_VERSION, saSdkVersion)) { in CheckPackInfoVer() 112 GetPackInfoVer(root, HMP_SA_SDK_VERSION, saSdkVersion) && in CheckPackInfoVer() 113 GetPackInfoVer(root, HMP_API_VERSIO in CheckPackInfoVer() [all...] |
/base/powermgr/display_manager/brightness_manager/src/ |
H A D | calculation_config_parser.cpp | 35 const Json::Value root = ConfigParserBase::Get().LoadConfigRoot(displayId, CONFIG_NAME);
in ParseConfig() local 36 if (root.isNull()) {
in ParseConfig() 39 if (root["defaultBrightness"].isNumeric()) {
in ParseConfig() 40 data.defaultBrightness = root["defaultBrightness"].asFloat();
in ParseConfig() 44 ConfigParserBase::Get().ParsePointXy(root, "defaultPoints", data.defaultPoints);
in ParseConfig()
|
/base/startup/appspawn/service/devicedebug/kill/src/ |
H A D | devicedebug_kill.c | 44 cJSON *root = cJSON_CreateObject(); in DeviceDebugJsonStringGeneral() local 45 if (root == NULL) { in DeviceDebugJsonStringGeneral() 46 DEVICEDEBUG_LOGE("devicedebug json write create root object unsuccess"); in DeviceDebugJsonStringGeneral() 50 cJSON_AddNumberToObject(root, "app", pid); in DeviceDebugJsonStringGeneral() 51 cJSON_AddStringToObject(root, "op", op); in DeviceDebugJsonStringGeneral() 52 cJSON_AddItemToObject(root, "args", args); in DeviceDebugJsonStringGeneral() 54 char *jsonString = cJSON_Print(root); in DeviceDebugJsonStringGeneral() 55 cJSON_Delete(root); in DeviceDebugJsonStringGeneral()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | app_provision.c | 41 static char *GetStringTag(const cJSON *root, const char *tag) in GetStringTag() argument 43 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringTag() 81 static char **GetStringArrayTag(const cJSON *root, const char *tag, int32_t *numReturn) in GetStringArrayTag() argument 83 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringArrayTag() 128 static int32_t GetProfValidity(const cJSON *root, ProfValidity *profVal) in GetProfValidity() argument 130 cJSON *jsonObj = cJSON_GetObjectItem(root, "validity"); in GetProfValidity() 152 static int32_t GetProfBundleInfo(const cJSON *root, ProfBundleInfo *profVal) in GetProfBundleInfo() argument 154 cJSON *jsonObj = cJSON_GetObjectItem(root, "bundle-info"); in GetProfBundleInfo() 188 static int32_t GetProfPermission(const cJSON *root, ProfPermission *profVal) in GetProfPermission() argument 190 cJSON *jsonObj = cJSON_GetObjectItem(root, "permission in GetProfPermission() 200 GetProfDebugInfo(const cJSON *root, ProfDebugInfo *profVal) GetProfDebugInfo() argument 216 GetProfIssuerInfo(const cJSON *root, ProfileProf *pf) GetProfIssuerInfo() argument 295 cJSON *root = cJSON_Parse(pfStr); ParseProfile() local [all...] |