/ohos5.0/base/powermgr/battery_statistics/services/native/src/ |
H A D | battery_stats_listener.cpp | 59 Json::Value root; in OnEvent() local 130 if (root["ID"].isString() && !root["ID"].asString().empty()) { in ProcessCameraEvent() 207 if (root["STATE"].isString() && !root["STATE"].asString().empty()) { in ProcessGnssEvent() 319 if (root["name_"].isString() && !root["name_"].asString().empty()) { in ProcessPhoneDebugInfo() 427 if (root["NAME"].isString() && !root["NAME"].asString().empty()) { in ProcessWakelockEvent() 433 if (root["TAG"].isString() && !root["TAG"].asString().empty()) { in ProcessWakelockEvent() 443 if (root["name_"].isString() && !root["name_"].asString().empty()) { in ProcessDispalyDebugInfo() 522 if (root["name_"].isString() && !root["name_"].asString().empty()) { in ProcessThermalEvent() 525 if (root["NAME"].isString() && !root["NAME"].asString().empty()) { in ProcessThermalEvent() 597 if (!root["name_"].isString() || root["name_"].asString().empty()) { in ProcessWorkschedulerEvent() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_hisysevent.cpp | 49 Json::Value root; in WriteWifiStateHiSysEvent() local 93 Json::Value root; in WriteWifiOperateStateHiSysEvent() local 102 Json::Value root; in WriteWifiAbnormalDisconnectHiSysEvent() local 110 Json::Value root; in WriteWifiConnectionInfoHiSysEvent() local 118 Json::Value root; in WriteWifiOpenAndCloseFailedHiSysEvent() local 129 Json::Value root; in WriteSoftApOpenAndCloseFailedEvent() local 138 Json::Value root; in WriteWifiAccessIntFailedHiSysEvent() local 147 Json::Value root; in WriteWifiPnoScanHiSysEvent() local 156 Json::Value root; in WriteBrowserFailedForPortalHiSysEvent() local 165 Json::Value root; in WriteWifiConnectFailedEventHiSysEvent() local [all …]
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | hisysevent_observer.cpp | 170 if (root.contains("UID") && root.at("UID").is_number_integer()) { in ProcessRunningLockEvent() 176 if (root.contains("PID") && root.at("PID").is_number_integer()) { in ProcessRunningLockEvent() 182 if (root.contains("TYPE") && root.at("TYPE").is_number_integer()) { in ProcessRunningLockEvent() 223 if (root.contains("UID") && root.at("UID").is_number_integer()) { in ProcessAudioEvent() 229 if (root.contains("PID") && root.at("PID").is_number_integer()) { in ProcessAudioEvent() 270 if (root.contains("UID") && root.at("UID").is_number_integer()) { in ProcessCameraEvent() 276 if (root.contains("PID") && root.at("PID").is_number_integer()) { in ProcessCameraEvent() 295 if (root.contains("UID") && root.at("UID").is_number_integer()) { in ProcessBluetoothEvent() 301 if (root.contains("PID") && root.at("PID").is_number_integer()) { in ProcessBluetoothEvent() 330 if (root.contains("uid_") && root.at("uid_").is_number_integer()) { in ProcessWifiEvent() [all …]
|
/ohos5.0/base/startup/init/services/etc/ |
H A D | init.cfg | 20 "mkdir /data/service 0711 root root", 21 "mkdir /data/service/el0 0711 root root", 111 "mkdir /data/app 0711 root root", 112 "mkdir /data/app/el1 0711 root root", 115 "mkdir /data/app/el2 0711 root root", 116 "mkdir /data/app/el3 0711 root root", 117 "mkdir /data/app/el4 0711 root root", 118 "mkdir /data/app/el5 0711 root root", 130 "mkdir /data/chipset 0711 root root", 162 "mkdir /data/local 0751 root root", [all …]
|
H A D | init.without_two_stages.cfg | 17 "mkdir /data/service 0711 root root", 18 "mkdir /data/service/el0 0711 root root", 101 "mkdir /data/app 0711 root root", 102 "mkdir /data/app/el1 0711 root root", 105 "mkdir /data/app/el2 0711 root root", 106 "mkdir /data/app/el3 0711 root root", 107 "mkdir /data/app/el4 0711 root root", 112 "mkdir /data/chipset 0711 root root", 140 "mkdir /data/local 0751 root root", 142 "mkdir /data/vendor 0771 root root", [all …]
|
/ohos5.0/base/startup/init/services/etc/param/ |
H A 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 33 persist.appspawn. = root:root:0775 43 const.secure = root:root:0775 44 const.allow.mock.location = root:root:0775 [all …]
|
/ohos5.0/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/ |
H A D | netfirewall_default_rule_parser_test.cpp | 57 cJSON *root = cJSON_CreateObject(); variable 74 cJSON *root = cJSON_CreateObject(); variable 88 cJSON *root = cJSON_CreateObject(); variable 92 cJSON_AddItemToObject(root, NET_FIREWALL_DNS.c_str(), param); 100 cJSON *root = cJSON_CreateObject(); variable 103 cJSON_AddNumberToObject(root, NET_FIREWALL_IP_MASK.c_str(), 64); 112 cJSON *root = cJSON_CreateObject(); variable 124 cJSON *root = cJSON_CreateObject(); variable 127 cJSON_AddNumberToObject(root, NET_FIREWALL_IP_MASK.c_str(), 0); 137 cJSON *root = cJSON_CreateObject(); variable [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_message.c | 459 cJSON *root = NULL; in TransProxyPackHandshakeErrMsg() local 463 if (root == NULL) { in TransProxyPackHandshakeErrMsg() 474 cJSON_Delete(root); in TransProxyPackHandshakeErrMsg() 481 if (root == NULL) { in TransProxyPackHandshakeMsg() 528 cJSON_Delete(root); in TransProxyPackHandshakeMsg() 534 cJSON *root = NULL; in TransProxyPackHandshakeAckMsg() local 543 if (root == NULL) { in TransProxyPackHandshakeAckMsg() 582 cJSON_Delete(root); in TransProxyPackHandshakeAckMsg() 594 if (root == NULL) { in TransProxyUnPackHandshakeErrMsg() 605 cJSON_Delete(root); in TransProxyUnPackHandshakeErrMsg() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | convert_utils.cpp | 76 if (root == nullptr) { in ConvertAbilityInfoToString() 80 cJSON_Delete(root); in ConvertAbilityInfoToString() 90 if (root == nullptr) { in ConvertBundleInfoToString() 94 cJSON_Delete(root); in ConvertBundleInfoToString() 126 if (root == nullptr) { in ConvertStringToAbilityInfo() 136 cJSON_Delete(root); in ConvertStringToAbilityInfo() 154 if (root == nullptr) { in ConvertStringToBundleInfo() 164 cJSON_Delete(root); in ConvertStringToBundleInfo() 217 if (root == nullptr) { in GetJsonBundleInfo() 234 return root; in GetJsonBundleInfo() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-boot-init-ueventd.md | 51 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 boot_linux -> /dev/block/mmcblk0p5 52 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 bootctrl -> /dev/block/mmcblk0p3 54 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 misc -> /dev/block/mmcblk0p2 55 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 ramdisk -> /dev/block/mmcblk0p6 58 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 system -> /dev/block/mmcblk0p7 59 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 uboot -> /dev/block/mmcblk0p1 62 lrwxrwxrwx 1 root root 20 2017-08-10 16:22 vendor -> /dev/block/mmcblk0p8 90 …lrwxrwxrwx 1 root root u:object_r:dev_block_file:s0 20 2017-08-10 16:22 misc -> /dev/block/… 94 …lrwxrwxrwx 1 root root u:object_r:dev_block_file:s0 20 2017-08-10 16:22 system -> /dev/bloc… 95 …lrwxrwxrwx 1 root root u:object_r:dev_block_file:s0 20 2017-08-10 16:22 uboot -> /dev/block… [all …]
|
/ohos5.0/foundation/resourceschedule/work_scheduler/frameworks/test/unittest/src/ |
H A D | workinfo_test.cpp | 356 root.clear(); 361 root.clear(); 366 root.clear(); 372 root.clear(); 378 root.clear(); 384 root.clear(); 408 root["uid"] = 1; 465 root["uid"] = 1; 489 root.clear(); 494 root.clear(); [all …]
|
/ohos5.0/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); 36 void ProcessWakelockEvent(StatsUtils::StatsData& data, const Json::Value& root); 38 void ProcessBatteryEvent(StatsUtils::StatsData& data, const Json::Value& root); 39 void ProcessThermalEvent(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); 45 void ProcessAudioEvent(StatsUtils::StatsData& data, const Json::Value& root); 47 void ProcessGnssEvent(StatsUtils::StatsData& data, const Json::Value& root); 53 void ProcessAlarmEvent(StatsUtils::StatsData& data, const Json::Value& root); 54 void ProcessDispalyDebugInfo(StatsUtils::StatsData& data, const Json::Value& root); [all …]
|
/ohos5.0/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | json_parser.cpp | 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() 85 if (!root.isArray()) { in ParseStringVec() 88 for (size_t i = 0; i < root.size(); ++i) { in ParseStringVec() 96 Json::Value root; in ParsePluginStatsEvent() local 97 if (!ParseJsonString(root, jsonStr) || !CheckJsonValue(root, PLUGIN_STATS_FIELDS)) { in ParsePluginStatsEvent() 102 ParseUInt32Vec(root[KEY_OF_TOP_K_TIME], topKTimes); in ParsePluginStatsEvent() 106 ParseStringVec(root[KEY_OF_TOP_K_EVENT], topKEvents); in ParsePluginStatsEvent() 120 Json::Value root; in ParseSysUsageEvent() local [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/ |
H A D | dispatch_rule_parser.cpp | 33 Json::Value root; in DispatchRuleParser() local 42 if (!reader.parse(fin, root)) { in DispatchRuleParser() 49 ParseEventTypes(root); in DispatchRuleParser() 50 ParseEvents(root); in DispatchRuleParser() 51 ParseTagEvents(root); in DispatchRuleParser() 52 ParseDomainRule(root); in DispatchRuleParser() 65 if (root.isNull() || !root.isMember("types") || !root["types"].isArray()) { in DispatchRuleParser() 87 if (root.isNull() || !root.isMember("tags") || !root["tags"].isArray()) { in DispatchRuleParser() 91 auto jsonTagArray = root["tags"]; in DispatchRuleParser() 106 if (root.isNull() || !root.isMember("events") || !root["events"].isArray()) { in DispatchRuleParser() [all …]
|
/ohos5.0/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() 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[NotificationConfigParse::CFG_KEY_REMINDER_FLAGS].is_string() && in FromJson() 45 if (root.is_null() || root.find(AFFECTED_BY) == root.end()) { in ValidAndGetAffectedBy() 48 nlohmann::json affectedBysJson = root[AFFECTED_BY]; in ValidAndGetAffectedBy() 78 if (root.is_null() || root.find(STATUS) == root.end()) { in ValidStatus() [all …]
|
/ohos5.0/base/telephony/call_manager/utils/src/ |
H A D | call_dialog.cpp | 97 nlohmann::json root; in BuildStartCommand() local 102 root["slotId"] = slotId; in BuildStartCommand() 144 nlohmann::json root; in BuildStartPrivpacyModeCommand() local 152 root["dialType"] = dialType; in BuildStartPrivpacyModeCommand() 154 root["callType"] = callType; in BuildStartPrivpacyModeCommand() 155 root["isAnswer"] = false; in BuildStartPrivpacyModeCommand() 156 root["isVideo"] = isVideo; in BuildStartPrivpacyModeCommand() 165 nlohmann::json root; in BuildStartAnswerPrivpacyModeCommand() local 170 root["callId"] = callId; in BuildStartAnswerPrivpacyModeCommand() 172 root["isAnswer"] = true; in BuildStartAnswerPrivpacyModeCommand() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/event_report/event/ |
H A D | logger_event.cpp | 30 root[name] = value.GetUint8(); in AddUint8Value() 35 root[name] = value.GetUint16(); in AddUint16Value() 40 root[name] = value.GetUint32(); in AddUint32Value() 45 root[name] = value.GetUint64(); in AddUint64Value() 50 root[name] = value.GetString(); in AddStringValue() 57 root[name].append(num); in AddUint32VecValue() 65 root[name].append(str); in AddStringVecValue() 87 Json::Value root; in ToJsonString() local 89 root[KEY_OF_NAME] = this->eventName_; in ToJsonString() 90 root[KEY_OF_TYPE] = (int)this->eventType_; in ToJsonString() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/external/ability/stage/ |
H A D | stage_app_info.cpp | 21 if (!root) { in Parse() 26 bundleName_ = root->GetString("bundleName"); in Parse() 27 bundleType_ = root->GetString("bundleType"); in Parse() 28 icon_ = root->GetString("icon"); in Parse() 29 label_ = root->GetString("label"); in Parse() 30 vendor_ = root->GetString("vendor"); in Parse() 31 versionName_ = root->GetString("versionName"); in Parse() 32 debug_ = root->GetBool("debug", false); in Parse() 34 iconId_ = root->GetUInt("iconId", 0); in Parse() 35 labelId_ = root->GetUInt("labelId", 0); in Parse() [all …]
|
/ohos5.0/build/templates/metadata/ |
H A D | write_meta_data.py | 74 root = meta_data['root'] 77 root['resources'] = options.resources 79 root[options.type] = options.js_assets 81 root['js_forms'] = options.js_forms 85 root[options.type] = options.ets_assets 87 root[options.type] = options.raw_assets 92 root[options.type] = options.resources 97 if root.get(target_type): 110 root['hap_path'] = options.hap_path 112 root[target_type] = [] [all …]
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
H A D | contexts_trie.c | 124 root = child; in InsertParamToTrie() 128 root->prefixLabel = contexts; in InsertParamToTrie() 131 root->matchLabel = contexts; in InsertParamToTrie() 134 root->index = index; in InsertParamToTrie() 155 root = childNode->childPtr; in SearchFromParamTrie() 170 return root->prefixLabel; in SearchFromParamTrie() 191 root = childNode->childPtr; in GetLabelIndex() 206 return root->index; in GetLabelIndex() 287 *root = tmpRoot; in ReadParamFromSharedMemInit() 296 ParamContextsTrie *root = NULL; in ReadParamFromSharedMem() local [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | rb_tree.c | 44 root->rbNode = y; in FillpRbRotateLeft() 75 root->rbNode = y; in FillpRbRotateRight() 88 FillpRbRotateLeft(x, root); in EqualRight() 97 FillpRbRotateRight(x, root); in EqualLeft() 120 x = EqualRight(x, root); in FillpRbInsertColor() 138 x = EqualLeft(x, root); in FillpRbInsertColor() 146 root->rbNode->color = RB_BLACK; in FillpRbInsertColor() 179 (*x) = root->rbNode; in FillpRbEraseColorAtLeft() 214 (*x) = root->rbNode; in FillpRbEraseColorAtRight() 271 root->rbNode = node; in FillpRbEraseLowlvlNode() [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 205 def get_framework_lite_dir(root): argument 209 def get_vendor_root_dir(root): argument 213 def get_vendor_dir(root, vendor): argument 222 def module_save_file_info(root): argument 223 adapter_framework = get_vendor_hdf_dir_framework(root=root) 247 def get_vendor_lite_mk_path(root): argument 260 def get_module_dir(root, module=""): argument 264 def get_drv_root_dir(root, module): argument 272 def get_drv_src_dir(root, module): argument 344 def get_vendor_gn_path(root): argument [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/dash_test/ |
H A D | dash_xml_unit_test.cpp | 88 root->GetXmlNode(); 89 std::string attr = root->GetAttribute("test"); 91 std::string id = root->GetAttribute("id"); 95 std::shared_ptr<XmlElement> last = root->GetLast(); 103 std::string name = root->GetName(); 105 std::string text = root->GetText(); 107 std::string attr = root->GetAttribute("test"); 117 std::shared_ptr<XmlElement> last = root->GetLast(); 125 std::string name = root->GetName(); 127 std::string text = root->GetText(); [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/include/ |
H A D | image_napi_utils.h | 102 #define GET_BUFFER_BY_NAME(root, name, res, len) ImageNapiUtils::GetBufferByName(env, (root), (name… argument 103 #define GET_UINT32_BY_NAME(root, name, res) ImageNapiUtils::GetUint32ByName(env, (root), (name), &(… argument 104 #define GET_INT32_BY_NAME(root, name, res) ImageNapiUtils::GetInt32ByName(env, (root), (name), &(re… argument 105 #define GET_BOOL_BY_NAME(root, name, res) ImageNapiUtils::GetBoolByName(env, (root), (name), &(res)) argument 106 #define GET_NODE_BY_NAME(root, name, res) ImageNapiUtils::GetNodeByName(env, (root), (name), &(res)) argument 107 #define GET_DOUBLE_BY_NAME(root, name, res) ImageNapiUtils::GetDoubleByName(env, (root), (name), &(… argument 109 #define CREATE_NAPI_INT32(value, root) ImageNapiUtils::CreateNapiInt32(env, (value), (root)) argument 110 #define CREATE_NAPI_DOUBLE(value, root) ImageNapiUtils::CreateNapiDouble(env, (value), (root)) argument 149 static napi_valuetype getType(napi_env env, napi_value root); 151 static bool CreateNapiInt32(napi_env env, int32_t value, napi_value &root); [all …]
|
/ohos5.0/base/update/updater/utils/json/ |
H A D | json_node.cpp | 58 if (root == nullptr || cJSON_IsInvalid(root)) { in JsonNode() 59 cJSON_Delete(root); in JsonNode() 64 Init(root, true); in JsonNode() 69 if (root != nullptr && !cJSON_IsInvalid(root)) { in JsonNode() 70 Init(root, needDelete); in JsonNode() 83 Parse(root); in Init() 89 void JsonNode::Parse(const cJSON *root) in Parse() argument 97 cJSON_ArrayForEach(element, root) in Parse() 109 cJSON_ArrayForEach(element, root) in Parse() 136 if (root->string) { in Parse() [all …]
|