Home
last modified time | relevance | path

Searched refs:Value (Results 1 - 25 of 126) sorted by relevance

123456

/base/powermgr/battery_statistics/services/native/include/
H A 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& 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
[all...]
/base/security/asset/frameworks/definition/src/
H A Dextension.rs24 Result, Tag, Value,
43 fn into_value(self) -> Value { in into_value()
44 Value::Number(self as u32) in into_value()
48 impl Conversion for Value {
51 Value::Bool(_) => DataType::Bool, in data_type()
52 Value::Number(_) => DataType::Number, in data_type()
53 Value::Bytes(_) => DataType::Bytes, in data_type()
57 fn into_value(self) -> Value { in into_value()
67 fn into_value(self) -> Value { in into_value()
68 Value in into_value()
[all...]
/base/hiviewdfx/hisysevent/frameworks/native/include/
H A Dhisysevent_json_decorator.h33 using BaseInfoHandler = std::function<bool(const Json::Value&)>;
34 using ExtensiveInfoHander = std::function<bool(const Json::Value&, const Json::Value&)>;
43 bool CheckAttrDecorationNeed(const Json::Value& eventJson, const std::string& key,
44 const Json::Value& standard);
45 Validity CheckAttrValidity(const Json::Value& eventJson, const std::string& key,
46 const Json::Value& standard);
47 Validity CheckLevelValidity(const Json::Value& baseInfo);
48 bool CheckEventDecorationNeed(const Json::Value& eventJson, BaseInfoHandler baseJsonInfoHandler,
52 bool JudgeDataType(const std::string& dataType, const Json::Value
[all...]
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/utils/
H A Djson_serializer.h25 * Policy data serializer of type Json::Value.
27 class JsonSerializer : public IPolicySerializer<Json::Value>, public DelayedSingleton<JsonSerializer> {
29 bool Deserialize(const std::string &jsonString, Json::Value &dataObj) override;
31 bool Serialize(const Json::Value &dataObj, std::string &jsonString) override;
33 bool GetPolicy(MessageParcel &data, Json::Value &result) override;
35 bool WritePolicy(MessageParcel &reply, Json::Value &result) override;
37 bool MergePolicy(std::vector<Json::Value> &data, Json::Value &result) override;
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_stack_info_formatter.cpp38 void FillJsFrame(const DfxFrame& frame, Json::Value& jsonInfo) in FillJsFrame()
40 Json::Value frameJson; in FillJsFrame()
55 Json::Value jsonInfo; in GetStackInfo()
66 bool DfxStackInfoFormatter::GetStackInfo(bool isJsonDump, Json::Value& jsonInfo) const in GetStackInfo()
80 void DfxStackInfoFormatter::GetNativeCrashInfo(Json::Value& jsonInfo) const in GetNativeCrashInfo()
90 Json::Value signal; in GetNativeCrashInfo()
98 Json::Value exception; in GetNativeCrashInfo()
103 Json::Value frames(Json::arrayValue); in GetNativeCrashInfo()
115 Json::Value threadsJsonArray(Json::arrayValue); in GetNativeCrashInfo()
121 void DfxStackInfoFormatter::GetDumpInfo(Json::Value
[all...]
H A Ddfx_stack_info_formatter.h44 bool GetStackInfo(bool isJsonDump, Json::Value& jsonInfo) const;
45 void GetNativeCrashInfo(Json::Value& jsonInfo) const;
46 void GetDumpInfo(Json::Value& jsonInfo) const;
47 bool FillFrames(const std::shared_ptr<DfxThread>& thread, Json::Value& jsonInfo) const;
48 void FillNativeFrame(const DfxFrame& frame, Json::Value& jsonInfo) const;
49 void AppendThreads(const std::vector<std::shared_ptr<DfxThread>>& threads, Json::Value& jsonInfo) const;
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
H A Djson_parser.h33 static bool ParseJsonString(Json::Value& root, const std::string& jsonStr);
34 static bool CheckJsonValue(const Json::Value& value, const std::vector<std::string>& fields);
35 static uint32_t ParseUInt32(const Json::Value& value);
36 static uint64_t ParseUInt64(const Json::Value& value);
37 static std::string ParseString(const Json::Value& value);
38 static void ParseUInt32Vec(const Json::Value& value, std::vector<uint32_t>& vec);
39 static void ParseStringVec(const Json::Value& value, std::vector<std::string>& vec);
/base/security/asset/services/core_service/src/operations/
H A Doperation_add.rs29 SyncStatus, SyncType, Tag, Value,
41 db_data.insert(column::SECRET, Value::Bytes(cipher)); in encrypt_secret()
53 Some(Value::Number(num)) if *num == ConflictResolution::Overwrite as u32 => { in resolve_conflict()
59 condition.insert(column::SYNC_TYPE, Value::Number(SyncType::TrustedAccount as u32)); in resolve_conflict()
60 condition.insert(column::SYNC_STATUS, Value::Number(SyncStatus::SyncDel as u32)); in resolve_conflict()
74 query.insert(column::ALIAS, Value::Bytes(alias.clone())); in get_query_condition()
75 query.insert(column::OWNER, Value::Bytes(calling_info.owner_info().clone())); in get_query_condition()
76 query.insert(column::OWNER_TYPE, Value::Number(calling_info.owner_type())); in get_query_condition()
81 db_data.insert(column::VERSION, Value::Number(DB_DATA_VERSION)); in add_system_attrs()
84 db_data.insert(column::CREATE_TIME, Value in add_system_attrs()
[all...]
/base/hiviewdfx/hiview/base/include/
H A Ddispatch_rule_parser.h32 void ParseEventTypes(const Json::Value& root);
33 void ParseTagEvents(const Json::Value& root);
34 void ParseEvents(const Json::Value& root);
35 void ParseDomainRule(const Json::Value& root);
36 void ParseDomains(const Json::Value& json, DomainRule &domainRule);
/base/hiviewdfx/hiview/plugins/sysevent_source/include/
H A Devent_json_parser.h44 using JSON_VALUE_LOOP_HANDLER = std::function<void(const std::string&, const Json::Value&)>;
59 bool HasIntMember(const Json::Value& jsonObj, const std::string& name) const;
60 bool HasStringMember(const Json::Value& jsonObj, const std::string& name) const;
61 bool HasBoolMember(const Json::Value& jsonObj, const std::string& name) const;
62 void InitEventInfoMapRef(const Json::Value& jsonObj, JSON_VALUE_LOOP_HANDLER handler) const;
63 BaseInfo ParseBaseConfig(const Json::Value& eventNameJson) const;
64 void ParseHiSysEventDef(const Json::Value& hiSysEventDef, std::shared_ptr<DOMAIN_INFO_MAP> sysDefMap);
65 NAME_INFO_MAP ParseNameConfig(const Json::Value& domainJson) const;
/base/sensors/sensor/vibration_convert/core/native/src/
H A Dgenerate_vibration_json_file.cpp35 Json::Value meta; in GenerateJsonFile()
40 Json::Value root; in GenerateJsonFile()
42 Json::Value pattern; in GenerateJsonFile()
44 Json::Value eventValue; in GenerateJsonFile()
52 Json::Value ev; in GenerateJsonFile()
56 Json::Value channel; in GenerateJsonFile()
59 Json::Value channels; in GenerateJsonFile()
83 Json::Value dataValue; in DebugJsonFile()
/base/security/asset/services/db_operator/src/test/
H A Dtest_table.rs19 use asset_definition::{DataType, Extension, Value};
59 let count = table.insert_row(&DbMap::from([("Id", Value::Number(1))])).unwrap(); in table_restore()
121 assert!(stmt.bind_data(1, &Value::Number(1)).is_ok()); in execute_sql()
147 assert_eq!(1, table.update_row(&datas, false, &DbMap::from([("value", Value::Bytes(b"dddd".to_vec()))])).unwrap()); in data_life_circle()
167 stmt.bind_data(1, &Value::Number(1000)).unwrap(); in single_data()
198 [Value::Number(2), Value::Bytes(b"test2".to_vec())], in multiple_data()
199 [Value::Number(3), Value::Bytes(b"test3".to_vec())], in multiple_data()
200 [Value in multiple_data()
[all...]
H A Dtest_database.rs24 use asset_definition::{ErrCode, Extension, Value};
32 const DB_DATA: [(&str, Value); 9] = [
33 (column::OWNER_TYPE, Value::Number(1)),
34 (column::SYNC_TYPE, Value::Number(1)),
35 (column::ACCESSIBILITY, Value::Number(1)),
36 (column::AUTH_TYPE, Value::Number(1)),
37 (column::IS_PERSISTENT, Value::Bool(true)),
38 (column::VERSION, Value::Number(2)),
39 (column::REQUIRE_PASSWORD_SET, Value::Bool(false)),
40 (column::LOCAL_STATUS, Value
[all...]
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/
H A Djson_serializer.cpp21 bool JsonSerializer::Deserialize(const std::string &jsonString, Json::Value &dataObj) in Deserialize()
34 bool JsonSerializer::Serialize(const Json::Value &dataObj, std::string &jsonString) in Serialize()
42 bool JsonSerializer::GetPolicy(MessageParcel &data, Json::Value &result) in GetPolicy()
48 bool JsonSerializer::WritePolicy(MessageParcel &reply, Json::Value &result) in WritePolicy()
57 bool JsonSerializer::MergePolicy(std::vector<Json::Value> &data, Json::Value &result) in MergePolicy()
/base/powermgr/battery_manager/test/unittest/mock/source/
H A Dmock_json.cpp19 bool Value::isArray() const in isArray()
24 bool Value::isObject() const in isObject()
29 bool Value::isNull() const in isNull()
/base/security/asset/services/core_service/src/operations/common/
H A Dargument_check.rs21 ReturnType, Tag, Value,
42 fn check_data_type(tag: &Tag, value: &Value) -> Result<()> { in check_data_type()
54 fn check_array_size(tag: &Tag, value: &Value, min: usize, max: usize) -> Result<()> { in check_array_size()
55 let Value::Bytes(v) = value else { in check_array_size()
69 fn check_enum_variant<T: TryFrom<u32>>(tag: &Tag, value: &Value) -> Result<()> { in check_enum_variant()
70 let Value::Number(n) = value else { in check_enum_variant()
84 fn check_valid_bits(tag: &Tag, value: &Value, min_bits: u32, max_bits: u32) -> Result<()> { in check_valid_bits()
85 let Value::Number(n) = value else { in check_valid_bits()
100 fn check_number_range(tag: &Tag, value: &Value, min: u32, max: u32) -> Result<()> { in check_number_range()
101 let Value in check_number_range()
[all...]
/base/hiviewdfx/hiview/base/event_report/event/
H A Dlogger_event.cpp26 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()
33 void AddUint16Value(Json::Value &root, const std::string &name, const ParamValue& value) in AddUint16Value()
38 void AddUint32Value(Json::Value &root, const std::string &name, const ParamValue& value) in AddUint32Value()
43 void AddUint64Value(Json::Value &root, const std::string &name, const ParamValue& value) in AddUint64Value()
48 void AddStringValue(Json::Value &root, const std::string &name, const ParamValue& value) in AddStringValue()
53 void AddUint32VecValue(Json::Value &root, const std::string &name, const ParamValue& value) in AddUint32VecValue()
61 void AddStringVecValue(Json::Value &root, const std::string &name, const ParamValue& value) in AddStringVecValue()
87 Json::Value root; in ToJsonString()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
H A Dhisysevent_value.h31 HiSysEventValue(Json::Value jsonVal): jsonVal_(jsonVal), hasInitialized_(true) {} in HiSysEventValue()
50 Json::Value Index(const int index) const;
51 Json::Value GetParamValue(const std::string& key) const;
59 Json::Value jsonVal_;
/base/customization/enterprise_device_management/services/edm_plugin/include/utils/
H A Dwifi_device_config_serializer.h42 Json::Value SerializerIpAddress(const Wifi::WifiIpAddress &address);
43 Wifi::WifiIpAddress DeserializeIpAddress(const Json::Value &ipAddressJson);
44 void ConvertStrToJson(const std::string &str, Json::Value &json);
45 void ConvertJsonToStr(const Json::Value &json, std::string &str);
/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Devent_json_parser.cpp40 bool ReadSysEventDefFromFile(const std::string& path, Json::Value& hiSysEventDef) in ReadSysEventDefFromFile()
96 bool EventJsonParser::HasIntMember(const Json::Value& jsonObj, const std::string& name) const in HasIntMember()
101 bool EventJsonParser::HasStringMember(const Json::Value& jsonObj, const std::string& name) const in HasStringMember()
106 bool EventJsonParser::HasBoolMember(const Json::Value& jsonObj, const std::string& name) const in HasBoolMember()
111 void EventJsonParser::InitEventInfoMapRef(const Json::Value& eventJson, JSON_VALUE_LOOP_HANDLER handler) const in InitEventInfoMapRef()
128 BaseInfo EventJsonParser::ParseBaseConfig(const Json::Value& eventNameJson) const in ParseBaseConfig()
136 Json::Value baseJsonInfo = eventNameJson[BASE]; in ParseBaseConfig()
171 void EventJsonParser::ParseHiSysEventDef(const Json::Value& hiSysEventDef, std::shared_ptr<DOMAIN_INFO_MAP> sysDefMap) in ParseHiSysEventDef()
173 InitEventInfoMapRef(hiSysEventDef, [this, sysDefMap] (const std::string& key, const Json::Value& value) { in ParseHiSysEventDef()
178 NAME_INFO_MAP EventJsonParser::ParseNameConfig(const Json::Value
[all...]
/base/powermgr/battery_manager/services/native/src/
H A Dbattery_config.cpp96 Json::Value value = GetValue(key); in GetInt()
144 Json::Value soc = GetValue("light." + level + ".soc"); in ParseLightConf()
145 Json::Value rgb = GetValue("light." + level + ".rgb"); in ParseLightConf()
172 Json::Value bootActionsConfig = GetValue("boot_actions"); in ParseBootActionsConf()
180 void BatteryConfig::ParseCommonEventConf(const Json::Value& bootActionsConfig) in ParseCommonEventConf()
182 Json::Value commonEventConfs = bootActionsConfig["sendcommonevent"]; in ParseCommonEventConf()
190 Json::Value eventName = commonEventConf["event_name"]; in ParseCommonEventConf()
191 Json::Value sceneConfigName = commonEventConf["scene_config"]["name"]; in ParseCommonEventConf()
192 Json::Value sceneConfigEqual = commonEventConf["scene_config"]["equal"]; in ParseCommonEventConf()
193 Json::Value sceneConfigNotEqua in ParseCommonEventConf()
[all...]
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
H A Djson_parser.cpp39 bool JsonParser::ParseJsonString(Json::Value& eventJson, const std::string& jsonStr) in ParseJsonString()
48 bool JsonParser::CheckJsonValue(const Json::Value& eventJson, const std::vector<std::string>& fields) in CheckJsonValue()
58 uint32_t JsonParser::ParseUInt32(const Json::Value& value) in ParseUInt32()
63 uint64_t JsonParser::ParseUInt64(const Json::Value& value) in ParseUInt64()
68 std::string JsonParser::ParseString(const Json::Value& value) in ParseString()
73 void JsonParser::ParseUInt32Vec(const Json::Value& root, std::vector<uint32_t>& vec) in ParseUInt32Vec()
83 void JsonParser::ParseStringVec(const Json::Value& root, std::vector<std::string>& vec) in ParseStringVec()
96 Json::Value root; in ParsePluginStatsEvent()
120 Json::Value root; in ParseSysUsageEvent()
/base/hiviewdfx/hiview/adapter/service/server/src/
H A Dhiview_log_config_manager.cpp31 Json::Value ParseJsonFile(const std::string& path) in ParseJsonFile()
33 Json::Value jsonRoot; in ParseJsonFile()
37 return Json::Value(); in ParseJsonFile()
44 return Json::Value(); in ParseJsonFile()
49 inline bool IsStringMember(const Json::Value& jsonRoot, const std::string& key) in IsStringMember()
54 inline bool IsBoolMember(const Json::Value& jsonRoot, const std::string& key) in IsBoolMember()
72 Json::Value jsonRoot = ParseJsonFile(CONFIG_FILE_PATH); in GetLogConfigFromFile()
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
H A Dextract_rule.h39 void ParseSegStatusCfg(const Json::Value& json);
40 void ParseRule(const std::string& eventType, const Json::Value& json, const std::string& fullPath);
44 std::vector<std::string> SplitFeatureId(const Json::Value& oject) const;
45 void ParseRule(const Json::Value& oject, std::list<FeatureRule>& features) const;
46 void ParseRuleParam(const Json::Value& oject, std::list<FeatureRule>& features, const std::string& type) const;
47 void GetExtractParam(const Json::Value& rules,
49 std::vector<std::string> GetJsonArray(const Json::Value& json, const std::string& param);
/base/security/asset/test/unittest/inner_kits_rust/src/
H A Dremove.rs27 AssetMap::from([(Tag::DataLabelCritical1, Value::Bytes("remove_condition_non_exist".as_bytes().to_vec()))]); in remove_condition_non_exist()
36 (Tag::Alias, Value::Bytes(function_name.to_owned())), in remove_condition_exist_and_query()
37 (Tag::Secret, Value::Bytes(function_name.to_owned())), in remove_condition_exist_and_query()
38 (Tag::DataLabelCritical2, Value::Bytes(critical_label.to_owned())), in remove_condition_exist_and_query()

Completed in 8 milliseconds

123456