/base/powermgr/battery_statistics/services/native/src/ |
D | battery_stats_listener.cpp | 48 Json::Value root; in OnEvent() local 52 if (parseFromStream(reader, is, &root, &errors)) { in OnEvent() 53 ProcessHiSysEvent(eventName, root); in OnEvent() 59 void BatteryStatsListener::ProcessHiSysEvent(const std::string& eventName, const Json::Value& root) in ProcessHiSysEvent() argument 66 ProcessWakelockEvent(data, root); in ProcessHiSysEvent() 69 ProcessDispalyEvent(data, root, eventName); in ProcessHiSysEvent() 71 ProcessBatteryEvent(data, root); in ProcessHiSysEvent() 75 ProcessThermalEvent(data, root); in ProcessHiSysEvent() 79 ProcessWorkschedulerEvent(data, root); in ProcessHiSysEvent() 81 ProcessPhoneEvent(data, root, eventName); in ProcessHiSysEvent() [all …]
|
/base/startup/init/services/etc/param/ |
D | ohos.para.dac | 18 bootevent. = root:root:0775 23 const.debuggable = root:root:0755 24 const.build. = root:root:0775 25 const.SystemCapability. = root:root:0775 26 const.product. = root:root:0775 27 persist.init. = root:root:0775 28 startup.appspawn. = root:root:0750 31 persist.init.debug. = root:root:0775:int 32 persist.init.bootevent.enable = root:root:0775:bool 33 persist.appspawn. = root:root:0775 [all …]
|
/base/startup/init/services/etc/ |
D | init.cfg | 20 "mkdir /data/service 0711 root root", 21 "mkdir /data/service/el0 0711 root root", 22 "mkdir /data/service/el0/startup 0755 root root", 23 "mkdir /data/service/el0/startup/init 0755 root root", 65 "mkdir /dev/fscklogs 0770 root system", 99 "chown root log /proc/vmallocinfo", 101 "chown root log /proc/slabinfo", 103 "chown root system /proc/kmsg", 116 "mkdir /data/app 0711 root root", 117 "mkdir /data/app/el1 0711 root root", [all …]
|
D | init.without_two_stages.cfg | 17 "mkdir /data/service 0711 root root", 18 "mkdir /data/service/el0 0711 root root", 53 "mkdir /dev/fscklogs 0770 root system", 84 "chown root log /proc/vmallocinfo", 86 "chown root log /proc/slabinfo", 88 "chown root system /proc/kmsg", 101 "mkdir /data/app 0711 root root", 102 "mkdir /data/app/el1 0711 root root", 103 "mkdir /data/app/el1/bundle 0711 root root", 104 "mkdir /data/app/el1/bundle/public 0711 root root", [all …]
|
/base/powermgr/battery_statistics/services/native/include/ |
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& ev… 36 void ProcessWakelockEvent(StatsUtils::StatsData& data, const Json::Value& root); 37 …void ProcessDispalyEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& … 38 void ProcessBatteryEvent(StatsUtils::StatsData& data, const Json::Value& root); 39 void ProcessThermalEvent(StatsUtils::StatsData& data, const Json::Value& root); 40 void ProcessWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root); 41 void ProcessFlashlightEvent(StatsUtils::StatsData& data, const Json::Value& root); 42 …void ProcessCameraEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& e… 43 void ProcessAudioEvent(StatsUtils::StatsData& data, const Json::Value& root); [all …]
|
/base/hiviewdfx/hiview/base/event_report/event/ |
D | logger_event.cpp | 26 using ParamValueAdder = void (*)(Json::Value &root, const std::string &name, const ParamValue& valu… 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, const std::string &name, const ParamValue& value) in AddStringValue() argument [all …]
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
D | json_parser.cpp | 74 void JsonParser::ParseUInt32Vec(const Json::Value& root, std::vector<uint32_t>& vec) in ParseUInt32Vec() argument 76 if (!root.isArray()) { in ParseUInt32Vec() 79 for (size_t i = 0; i < root.size(); ++i) { in ParseUInt32Vec() 80 vec.push_back(ParseUInt32(root[static_cast<int>(i)])); in ParseUInt32Vec() 84 void JsonParser::ParseStringVec(const Json::Value& root, std::vector<std::string>& vec) in ParseStringVec() argument 86 if (!root.isArray()) { in ParseStringVec() 89 for (size_t i = 0; i < root.size(); ++i) { in ParseStringVec() 90 vec.push_back(ParseString(root[static_cast<int>(i)])); in ParseStringVec() 97 Json::Value root; in ParsePluginStatsEvent() local 98 if (!ParseJsonString(root, jsonStr) || !CheckJsonValue(root, PLUGIN_STATS_FIELDS)) { in ParsePluginStatsEvent() [all …]
|
/base/hiviewdfx/hiview/base/ |
D | dispatch_config.cpp | 34 Json::Value root; in HiviewRuleParser() local 40 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) { in HiviewRuleParser() 43 if (!reader.parse(fin, root)) { in HiviewRuleParser() 50 ParseEventTypes(root); in HiviewRuleParser() 51 ParseEvents(root); in HiviewRuleParser() 52 ParseTagEvents(root); in HiviewRuleParser() 53 ParseDomainRule(root); in HiviewRuleParser() 61 void HiviewRuleParser::ParseEventTypes(const Json::Value &root) in HiviewRuleParser() argument 66 if (root.isNull() || !root.isMember("types") || !root["types"].isArray()) { in HiviewRuleParser() 70 auto jsonTypeArray = root["types"]; in HiviewRuleParser() [all …]
|
/base/global/i18n/frameworks/intl/etc/ |
D | language_config.para.dac | 14 persist.global.language = root:root:0775 15 persist.global.locale = root:root:0775 16 persist.global.is24Hour = root:root:0775 17 persist.sys.preferredLanguages = root:root:0775 18 const.global.locale = root:root:0444 19 const.global.language = root:root:0444 20 const.global.region = root:root:0444
|
/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
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 *ch… 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 **c… 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 *context… in InsertParamToTrie() argument 109 if (root == NULL || paramPrefix == NULL || contexts == NULL) { in InsertParamToTrie() [all …]
|
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() 88 root = root->next; in GetHashNodeByKey() [all …]
|
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 = this; in Clear() local [all …]
|
/base/update/updater/utils/json/ |
D | json_node.cpp | 57 cJSON *root = cJSON_Parse(content.c_str()); in JsonNode() local 58 if (root == nullptr || cJSON_IsInvalid(root)) { in JsonNode() 63 Init(root, true); in JsonNode() 66 JsonNode::JsonNode(const cJSON *root, bool needDelete) in JsonNode() argument 68 if (root != nullptr && !cJSON_IsInvalid(root)) { in JsonNode() 69 Init(root, needDelete); in JsonNode() 77 void JsonNode::Init(const cJSON *root, bool needDelete) in Init() argument 79 if (auto it = GetJsonTypeMap().find(root->type); it != GetJsonTypeMap().end()) { in Init() 82 Parse(root); in Init() 84 cJSON_Delete(const_cast<cJSON *>(root)); in Init() [all …]
|
/base/update/updateservice/services/firmware/utils/src/ |
D | firmware_check_analyze_utils.cpp | 41 nlohmann::json root; in DoAnalyze() local 42 if (!JsonUtils::ParseAndGetJsonObject(rawJson, root)) { in DoAnalyze() 48 JsonUtils::GetValueAndSetTo(root, "searchStatus", status); in DoAnalyze() 56 ret += AnalyzeBlVersionCheckResults(root, response); in DoAnalyze() 57 ret += AnalyzeComponents(root); in DoAnalyze() 66 int32_t FirmwareCheckAnalyzeUtils::AnalyzeBlVersionCheckResults(nlohmann::json &root, BlCheckRespon… in AnalyzeBlVersionCheckResults() argument 68 if (root.find("checkResults") == root.end()) { in AnalyzeBlVersionCheckResults() 72 FIRMWARE_LOGI("checkResults size is %{public}lu ", root["checkResults"].size()); in AnalyzeBlVersionCheckResults() 74 for (auto &result : root["checkResults"]) { in AnalyzeBlVersionCheckResults() 76 JsonUtils::GetValueAndSetTo(root, "searchStatus", status); in AnalyzeBlVersionCheckResults() [all …]
|
/base/startup/init/services/etc_lite/ |
D | group | 1 root:x:0: 4 servicectrl:x:1050:root,shell,system,samgr,hdf_devmgr 6 faultloggerd:x:1202:root,system 7 watchdog:x:2001:root 8 ueventd:x:2002:root
|
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
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:… in Deserialize() 44 …root[member].type() != Json::ValueType::uintValue && root[member].type() != Json::ValueType::boole… in Deserialize() 48 dataObj.insert(std::pair<std::string, std::string>(member, root[member].asString())); in Deserialize() 59 Json::Value root; in Serialize() local 61 root[item.first] = item.second; in Serialize() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/src/init/ |
D | trusted_root_ca.cpp | 136 X509* root = FindMatchedRoot(rootCerts, caCert); in FindMatchedRoot() local 137 if (root != nullptr) { in FindMatchedRoot() 138 return root; in FindMatchedRoot() 143 root = FindMatchedRoot(rootCertsForTest, caCert); in FindMatchedRoot() 145 return root; in FindMatchedRoot() 150 for (auto root : rootCertMap) { in FindMatchedRoot() local 151 if (root.first == OPENHARMONY_CERT && devMode == DevMode::NON_DEV) { in FindMatchedRoot() 154 if (HapCertVerifyOpensslUtils::X509NameCompare(X509_get_subject_name(root.second), in FindMatchedRoot() 156 HapCertVerifyOpensslUtils::CertVerify(caCert, root.second)) { in FindMatchedRoot() 157 return X509_dup(root.second); in FindMatchedRoot()
|
/base/update/updateservice/services/startup/manage/src/ |
D | schedule_config.cpp | 29 nlohmann::json root = in InitConfig() local 31 if (root.is_discarded()) { in InitConfig() 35 pullupInterval_ = ParseConfig(root, Startup::PULLUP_INTERVAL_CONFIG, Startup::PULLUP_INTERVAL); in InitConfig() 36 …idleCheckInterval_ = ParseConfig(root, Startup::IDLE_CHECK_INTERVAL_CONFIG, Startup::IDLE_CHECK_IN… in InitConfig() 51 uint64_t ScheduleConfig::ParseConfig(nlohmann::json &root, const std::string &key, uint64_t default… in ParseConfig() argument 54 int32_t ret = JsonUtils::GetValueAndSetTo(root, key, value); in ParseConfig()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | app_provision.c | 40 static char *GetStringTag(const cJSON *root, const char *tag) in GetStringTag() argument 42 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringTag() 80 static char **GetStringArrayTag(const cJSON *root, const char *tag, int32_t *numReturn) in GetStringArrayTag() argument 82 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringArrayTag() 126 static int32_t GetProfValidity(const cJSON *root, ProfValidity *profVal) in GetProfValidity() argument 128 cJSON *jsonObj = cJSON_GetObjectItem(root, "validity"); in GetProfValidity() 150 static int32_t GetProfBundleInfo(const cJSON *root, ProfBundleInfo *profVal) in GetProfBundleInfo() argument 152 cJSON *jsonObj = cJSON_GetObjectItem(root, "bundle-info"); in GetProfBundleInfo() 186 static int32_t GetProfPermission(const cJSON *root, ProfPermission *profVal) in GetProfPermission() argument 188 cJSON *jsonObj = cJSON_GetObjectItem(root, "permissions"); in GetProfPermission() [all …]
|
/base/startup/init/services/init/ |
D | init_config.c | 22 static void ParseAllImports(const cJSON *root); 38 static void ParseInitCfgContents(const char *cfgName, const cJSON *root) in ParseInitCfgContents() argument 40 INIT_ERROR_CHECK(root != NULL, return, "Root is null"); in ParseInitCfgContents() 44 ParseAllServices(root, &context); in ParseInitCfgContents() 46 ParseAllJobs(root, &context); in ParseInitCfgContents() 48 ParseAllImports(root); in ParseInitCfgContents() 68 static void ParseAllImports(const cJSON *root) in ParseAllImports() argument 73 cJSON *importAttr = cJSON_GetObjectItemCaseSensitive(root, "import"); in ParseAllImports()
|
/base/update/updateservice/services/core/ability/utils/include/ |
D | json_utils.h | 55 static bool ParseAndGetJsonObject(const std::string &jsonStr, nlohmann::json &root) in ParseAndGetJsonObject() argument 57 root = nlohmann::json::parse(jsonStr, nullptr, false); in ParseAndGetJsonObject() 58 if (root.is_discarded() || !root.is_object()) { in ParseAndGetJsonObject() 64 static bool ParseAndGetJsonArray(const std::string &jsonStr, nlohmann::json &root) in ParseAndGetJsonArray() argument 66 root = nlohmann::json::parse(jsonStr, nullptr, false); in ParseAndGetJsonArray() 67 if (root.is_discarded() || !root.is_array()) { in ParseAndGetJsonArray()
|
/base/hiviewdfx/hiview/base/event_store/config/src/ |
D | event_store_config.cpp | 35 uint32_t ParseUint32(const Json::Value& root, const std::string& key) in ParseUint32() argument 37 return (root.isMember(key) && root[key].isUInt()) ? root[key].asUInt() : 0; in ParseUint32() 47 Json::Value root; in Init() local 52 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) { in Init() 56 std::vector<std::string> members = root.getMemberNames(); in Init() 61 if (auto node = root[*iter]; node.type() == Json::objectValue) { in Init()
|
/base/hiviewdfx/hiview/base/include/ |
D | dispatch_config.h | 35 void ParseEventTypes(const Json::Value& root); 36 void ParseTagEvents(const Json::Value& root); 37 void ParseEvents(const Json::Value& root); 38 void ParseDomainRule(const Json::Value& root);
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | widget_json_test.cpp | 176 nlohmann::json root = widgetCommand; variable 177 std::string cmdData = root.dump(); 207 nlohmann::json root = widgetCommand; variable 208 std::string cmdData = root.dump(); 246 nlohmann::json root = widgetCmdParameters; variable 247 std::string cmdData = root.dump(); 276 nlohmann::json root = widgetCmdParameters; variable 277 std::string cmdData = root.dump(); 295 nlohmann::json root = widgetNotice; variable 296 std::string cmdData = root.dump(); [all …]
|
/base/startup/init/test/moduletest/ |
D | chipset.init.test.cfg | 7 "mkdir /data/test_verdor_init 0711 root root", 27 "rmdir /data/test_verdor_init 0711 root root" 34 "mkdir /data/test_verdor_init_2 0711 root root"
|