Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 103) sorted by relevance

12345

/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_listener.cpp48 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()
74 ProcessThermalEvent(data, root); in ProcessHiSysEvent()
77 ProcessWorkschedulerEvent(data, root); in ProcessHiSysEvent()
79 ProcessPhoneEvent(data, root, eventName); in ProcessHiSysEvent()
[all …]
Dbattery_stats_core.cpp772 void BatteryStatsCore::SaveForHardware(Json::Value& root) in SaveForHardware() argument
776 root["Hardware"]["bluetooth_br_on"] = in SaveForHardware()
778 root["Hardware"]["bluetooth_ble_on"] = in SaveForHardware()
782 root["Hardware"]["screen_on"] = in SaveForHardware()
785 root["Hardware"]["screen_brightness"][brightNess] = in SaveForHardware()
790 root["Hardware"]["wifi_on"] = in SaveForHardware()
792 root["Hardware"]["wifi_scan"] = in SaveForHardware()
796 root["Hardware"]["cpu_idle"] = in SaveForHardware()
801 root["Hardware"]["radio_on"][signalOn] = in SaveForHardware()
805 root["Hardware"]["radio_data"][signalData] = in SaveForHardware()
[all …]
/base/startup/init/services/etc/param/
Dohos.para.dac18 bootevent. = root:root:0777
22 const.debuggable = root:root:0755
23 const.build. = root:root:0775
24 const.SystemCapability. = root:root:0775
25 const.product. = root:root:0775
26 persist.init. = root:root:0775
27 startup.appspawn. = root:root:0750
30 persist.init.debug. = root:root:0775:int
31 persist.init.bootevent.enable = root:root:0775:bool
32 persist.appspawn. = root:root:0775
[all …]
/base/startup/init/services/etc/
Dinit.cfg18 "mkdir /data/service 0711 root root",
19 "mkdir /data/service/el0 0711 root root",
20 "mkdir /data/service/el0/startup 0755 root root",
21 "mkdir /data/service/el0/startup/init 0755 root root",
62 "mkdir /dev/fscklogs 0770 root system",
96 "chown root log /proc/vmallocinfo",
98 "chown root log /proc/slabinfo",
100 "chown root system /proc/kmsg",
113 "mkdir /data/app 0711 root root",
114 "mkdir /data/app/el1 0711 root root",
[all …]
Dinit.without_two_stages.cfg17 "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",
100 "mkdir /data/app 0711 root root",
101 "mkdir /data/app/el1 0711 root root",
102 "mkdir /data/app/el1/bundle 0711 root root",
103 "mkdir /data/app/el1/bundle/public 0711 root root",
[all …]
Dgroup1 root:x:0:
7 ueventd:x:1004:root
32 servicectrl:x:1050:root,shell,system,samgr,hdf_devmgr,foundation,update
33 powerctrl:x:1051:root,shell,system,update,power_host,charger,foundation
34 bootctrl:x:1052:root,shell,system
35 deviceprivate:x:1053:root,shell,system,samgr,hdf_devmgr,deviceinfo,dsoftbus,dms,account,useriam,acc…
/base/powermgr/battery_statistics/services/native/include/
Dbattery_stats_listener.h34 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/
Dlogger_event.cpp26 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/
Djson_parser.cpp74 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/global/i18n/frameworks/intl/etc/
Dlanguage_config.para.dac14 persist.global.language = root:root:0777
15 persist.global.locale = root:root:0777
16 persist.global.is24Hour = root:root:0777
17 persist.sys.preferredLanguages = root:root:0777
18 const.global.locale = root:root:0444
19 const.global.language = root:root:0444
20 const.global.region = root:root:0444
/base/security/selinux/interfaces/policycoreutils/src/
Dcontexts_trie.c30 static ParamHashNode *GetGroupNode(ParamContextsTrie *root, const char *name, uint32_t len) in GetGroupNode() argument
32 HashNode *node = HashMapGet(root->handle, name, len); in GetGroupNode()
39 static ParamHashNode *AddGroupNode(ParamContextsTrie *root, const char *name, ParamContextsTrie *ch… in AddGroupNode() argument
42 ParamHashNode *groupNode = GetGroupNode(root, name, nameLen); in AddGroupNode()
60 HashMapAdd(root->handle, &groupNode->hashNode); in AddGroupNode()
76 static bool InsertElementToTrie(ParamContextsTrie *root, const char *element, ParamContextsTrie **c… in InsertElementToTrie() argument
79 ParamHashNode *childNode = GetGroupNode(root, element, nameLen); in InsertElementToTrie()
95 if (AddGroupNode(root, element, childPtr) == NULL) { in InsertElementToTrie()
103 static bool InsertParamToTrie(ParamContextsTrie *root, const char *paramPrefix, const char *context… in InsertParamToTrie() argument
105 if (root == NULL || paramPrefix == NULL || contexts == NULL) { in InsertParamToTrie()
[all …]
Dselinux_map.c74 static HashNode *GetHashNodeByNode(HashNode *root, const HashNode *nodeKey) in GetHashNodeByNode() argument
76 while (root != NULL) { in GetHashNodeByNode()
77 int ret = GroupNodeNodeCompare(root, nodeKey); in GetHashNodeByNode()
79 return root; in GetHashNodeByNode()
81 root = root->next; in GetHashNodeByNode()
86 static HashNode *GetHashNodeByKey(HashNode *root, const char *key) in GetHashNodeByKey() argument
88 while (root != NULL) { in GetHashNodeByKey()
89 int ret = GroupNodeKeyCompare(root, key); in GetHashNodeByKey()
91 return root; in GetHashNodeByKey()
93 root = root->next; in GetHashNodeByKey()
[all …]
/base/update/updater/utils/json/
Djson_node.cpp57 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/startup/init/services/etc_lite/
Dgroup1 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/startup/init/services/init/
Dinit_config.c22 static void ParseAllImports(const cJSON *root);
24 static void ParseInitCfgContents(const char *cfgName, const cJSON *root) in ParseInitCfgContents() argument
26 INIT_ERROR_CHECK(root != NULL, return, "Root is null"); in ParseInitCfgContents()
27 ParseAllServices(root); in ParseInitCfgContents()
29 ParseAllJobs(root); in ParseInitCfgContents()
31 ParseAllImports(root); in ParseInitCfgContents()
60 static void ParseAllImports(const cJSON *root) in ParseAllImports() argument
65 cJSON *importAttr = cJSON_GetObjectItemCaseSensitive(root, "import"); in ParseAllImports()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_provision.c34 static char *GetStringTag(const cJSON *root, const char *tag) in GetStringTag() argument
36 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringTag()
74 static char **GetStringArrayTag(const cJSON *root, const char *tag, int *numReturn) in GetStringArrayTag() argument
76 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringArrayTag()
120 static int GetProfValidity(const cJSON *root, ProfValidity *profVal) in GetProfValidity() argument
122 cJSON *jsonObj = cJSON_GetObjectItem(root, "validity"); in GetProfValidity()
144 static int GetProfBundleInfo(const cJSON *root, ProfBundleInfo *profVal) in GetProfBundleInfo() argument
146 cJSON *jsonObj = cJSON_GetObjectItem(root, "bundle-info"); in GetProfBundleInfo()
180 static int GetProfPermission(const cJSON *root, ProfPermission *profVal) in GetProfPermission() argument
182 cJSON *jsonObj = cJSON_GetObjectItem(root, "permissions"); in GetProfPermission()
[all …]
/base/security/appverify/interfaces/innerkits/appverify/src/init/
Dtrusted_root_ca.cpp129 X509* root = FindMatchedRoot(rootCerts, caCert); in FindMatchedRoot() local
130 if (root != nullptr) { in FindMatchedRoot()
131 return root; in FindMatchedRoot()
136 root = FindMatchedRoot(rootCertsForTest, caCert); in FindMatchedRoot()
138 return root; in FindMatchedRoot()
143 for (auto root : rootCertMap) { in FindMatchedRoot() local
144 if (HapCertVerifyOpensslUtils::X509NameCompare(X509_get_subject_name(root.second), in FindMatchedRoot()
146 HapCertVerifyOpensslUtils::CertVerify(caCert, root.second)) { in FindMatchedRoot()
147 return X509_dup(root.second); in FindMatchedRoot()
/base/customization/enterprise_device_management/services/edm/src/utils/
Dmap_string_serializer.cpp26 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 dataObj.insert(std::pair<std::string, std::string>(member, root[member].asString())); in Deserialize()
54 Json::Value root; in Serialize() local
56 root[item.first] = item.second; in Serialize()
60 jsonString = Json::writeString(builder, root); in Serialize()
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dcompose_rule.cpp41 Json::Value root; in ParseComposeRule() local
43 bool ret = parseFromStream(builder, fin, &root, &errs); in ParseComposeRule()
44 if (!ret || !errs.empty() || !root.isMember(type)) { in ParseComposeRule()
50 if (!reader.parse(fin, root) || !root.isMember(type)) { in ParseComposeRule()
56 ParseRule(root[type], type, featureIds); in ParseComposeRule()
/base/theme/screenlock_mgr/etc/param/
Dscreenlock.para.dac14 const.theme.screenlockWhiteApp = root:root:0775
15 const.theme.screenlockApp = root:root:0775
/base/hiviewdfx/hiview/service/config/
Dhiview.cfg11 "mkdir /data/log/bbox/ 0771 root log",
12 "mkdir /dev/asanlog/ 2773 root log",
14 "chown root hiview /dev/asanlog",
15 "chown root hiview /dev/bbox",
16 "chown root system /proc/sysrq-trigger",
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp34 cJSON* root = cJSON_Parse(partitionInfo.c_str()); in ParsePartitionInfo() local
35 UPDATER_ERROR_CHECK(root != nullptr, "Error get root", return -1); in ParsePartitionInfo()
36 cJSON* partitions = cJSON_GetObjectItem(root, "Partition"); in ParsePartitionInfo()
37 … UPDATER_ERROR_CHECK(partitions != nullptr, "Error get Partitions", cJSON_Delete(root); return -1); in ParsePartitionInfo()
39 …R_CHECK(number > MIN_PARTITIONS_NUM, "Error partitions number < 3", cJSON_Delete(root); return -1); in ParsePartitionInfo()
40 …_CHECK(number < MAX_PARTITIONS_NUM, "Error partitions number > 20", cJSON_Delete(root); return -1); in ParsePartitionInfo()
47 cJSON_Delete(root); in ParsePartitionInfo()
77 cJSON_Delete(root); in ParsePartitionInfo()
/base/telephony/data_storage/common/src/
Dparser_util.cpp83 Json::Value root; in ParserPdpProfileJson() local
86 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserPdpProfileJson()
92 Json::Value itemRoots = root[ITEM_OPERATOR_INFOS]; in ParserPdpProfileJson()
101 void ParserUtil::ParserPdpProfileInfos(std::vector<PdpProfile> &vec, Json::Value &root) in ParserPdpProfileInfos() argument
103 for (int32_t i = 0; i < static_cast<int32_t>(root.size()); i++) { in ParserPdpProfileInfos()
104 Json::Value itemRoot = root[i]; in ParserPdpProfileInfos()
186 Json::Value root; in ParserOpKeyJson() local
189 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserOpKeyJson()
195 Json::Value itemRoots = root[ITEM_OPERATOR_ID]; in ParserOpKeyJson()
204 void ParserUtil::ParserOpKeyInfos(std::vector<OpKey> &vec, Json::Value &root) in ParserOpKeyInfos() argument
[all …]
/base/security/device_security_level/oem_property/common/
Ddslm_credential_utils.c76 PublicKeyAttestation root; member
132 FREE(list->root.data); in FreeAttestationList()
173 const PublicKeyAttestation *root = &credCb->root; in VerifyCredentialCb() local
179 … int32_t ret = EcdsaVerify(&root->publicKey, &root->signature, &root->publicKey, root->algorithm); in VerifyCredentialCb()
187 …ret = EcdsaVerify(&intermediate->publicKey, &intermediate->signature, &root->publicKey, intermedia… in VerifyCredentialCb()
244 FreePublicKeyAttestation(&credCb->root); in DestroyCredentialCb()
421 if (!ParsePublicKeyAttestation(json, PK_ATTEST_INDEX_ROOT, &credCb->root)) { in SplitCredentialAttestationList()
454 list->root.data = credCb->root.publicKey.data; in MovePublicKeysToAttestationList()
455 list->root.length = credCb->root.publicKey.length; in MovePublicKeysToAttestationList()
461 credCb->root.publicKey.data = NULL; in MovePublicKeysToAttestationList()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Devent_query_wrapper_builder.cpp67 bool ConditionParser::ParseJsonString(const Json::Value& root, const std::string& key, std::string&… in ParseJsonString() argument
69 if (!root.isMember(key.c_str()) || !root[key.c_str()].isString()) { in ParseJsonString()
72 value = root[key].asString(); in ParseJsonString()
98 bool ConditionParser::ParseLogicCondition(const Json::Value& root, const std::string& logic, in ParseLogicCondition() argument
101 if (!root.isMember(logic) || !root[logic].isArray()) { in ParseLogicCondition()
107 for (size_t i = 0; i < root[logic].size(); ++i) { in ParseLogicCondition()
108 auto cond = root[logic][static_cast<int>(i)]; in ParseLogicCondition()
135 bool ConditionParser::ParseOrCondition(const Json::Value& root, EventStore::Cond& condition) in ParseOrCondition() argument
137 return ParseLogicCondition(root, LOGIC_OR_COND, condition); in ParseOrCondition()
140 bool ConditionParser::ParseAndCondition(const Json::Value& root, EventStore::Cond& condition) in ParseAndCondition() argument
[all …]

12345