Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 25 of 137) sorted by relevance

123456

/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 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/security/asset/frameworks/definition/src/
Dextension.rs24 Result, Tag, Value,
43 fn into_value(self) -> Value { in into_value() argument
44 Value::Number(self as u32) in into_value()
48 impl Conversion for Value { implementation
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() argument
67 fn into_value(self) -> Value { in into_value() argument
68 Value::Bytes(self) in into_value()
[all …]
/base/hiviewdfx/hisysevent/frameworks/native/include/
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& eventJson);
55 Json::Value root;
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_stack_info_formatter.cpp32 void FillJsFrame(const DfxFrame& frame, Json::Value& jsonInfo) in FillJsFrame()
34 Json::Value frameJson; in FillJsFrame()
49 Json::Value jsonInfo; in GetStackInfo()
60 bool DfxStackInfoFormatter::GetStackInfo(bool isJsonDump, Json::Value& jsonInfo) const in GetStackInfo()
74 void DfxStackInfoFormatter::GetNativeCrashInfo(Json::Value& jsonInfo) const in GetNativeCrashInfo()
82 Json::Value signal; in GetNativeCrashInfo()
85 Json::Value exception; in GetNativeCrashInfo()
90 Json::Value frames; in GetNativeCrashInfo()
102 Json::Value threadsJsonArray; in GetNativeCrashInfo()
108 void DfxStackInfoFormatter::GetDumpInfo(Json::Value& jsonInfo) const in GetDumpInfo()
[all …]
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) …
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/utils/
Djson_serializer.h27 class JsonSerializer : public IPolicySerializer<Json::Value>, public DelayedSingleton<JsonSerialize…
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/hiview/plugins/usage_event_report/cache/include/
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/db_operator/src/test/
Dtest_database.rs23 use asset_definition::{ErrCode, Extension, Value};
31 const DB_DATA: [(&str, Value); 7] = [
32 (column::OWNER_TYPE, Value::Number(1)),
33 (column::SYNC_TYPE, Value::Number(1)),
34 (column::ACCESSIBILITY, Value::Number(1)),
35 (column::AUTH_TYPE, Value::Number(1)),
36 (column::IS_PERSISTENT, Value::Bool(true)),
37 (column::VERSION, Value::Number(1)),
38 (column::REQUIRE_PASSWORD_SET, Value::Bool(false)),
60 db_data.insert(column::SECRET, Value::Bytes(column::SECRET.as_bytes().to_vec())); in add_bytes_column()
[all …]
Dtest_table.rs18 use asset_definition::{DataType, Extension, Value};
52 let count = table.insert_row(&DbMap::from([("Id", Value::Number(1))])).unwrap(); in table_recovery()
104 assert!(stmt.bind_data(1, &Value::Number(1)).is_ok()); in execute_sql()
130 …assert_eq!(1, table.update_row(&datas, &DbMap::from([("value", Value::Bytes(b"dddd".to_vec()))])).… in data_life_circle()
148 stmt.bind_data(1, &Value::Number(1000)).unwrap(); in single_data()
177 [Value::Number(2), Value::Bytes(b"test2".to_vec())], in multiple_data()
178 [Value::Number(3), Value::Bytes(b"test3".to_vec())], in multiple_data()
179 [Value::Number(4), Value::Bytes(b"test4".to_vec())], in multiple_data()
190 stmt.bind_data(1, &Value::Number(1000)).unwrap(); in multiple_data()
198 assert_eq!(data_set[index][0], Value::Number(id)); in multiple_data()
[all …]
/base/hiviewdfx/hiview/base/include/
Ddispatch_config.h35 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);
39 void ParseDomains(const Json::Value& json, DomainRule &domainRule);
/base/sensors/sensor/vibration_convert/core/native/src/
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/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/
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/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()
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/security/asset/services/core_service/src/operations/
Doperation_add.rs28 Value,
61 db_data.insert(column::SECRET, Value::Bytes(cipher)); in encrypt()
73 Some(Value::Number(num)) if *num == ConflictResolution::Overwrite as u32 => { in resolve_conflict()
86 query.insert(column::ALIAS, Value::Bytes(alias.clone())); in get_query_condition()
87 query.insert(column::OWNER, Value::Bytes(calling_info.owner_info().clone())); in get_query_condition()
88 query.insert(column::OWNER_TYPE, Value::Number(calling_info.owner_type())); in get_query_condition()
93 db_data.insert(column::VERSION, Value::Number(DB_DATA_VERSION)); in add_system_attrs()
96 db_data.insert(column::CREATE_TIME, Value::Bytes(time.clone())); in add_system_attrs()
97 db_data.insert(column::UPDATE_TIME, Value::Bytes(time)); in add_system_attrs()
102 db_data.entry(column::ACCESSIBILITY).or_insert(Value::Number(Accessibility::default() as u32)); in add_default_attrs()
[all …]
/base/security/asset/services/core_service/src/operations/common/
Dargument_check.rs20 Tag, Value,
40 fn check_data_type(tag: &Tag, value: &Value) -> Result<()> { in check_data_type()
52 fn check_array_size(tag: &Tag, value: &Value, min: usize, max: usize) -> Result<()> { in check_array_size() argument
53 let Value::Bytes(v) = value else { in check_array_size() localVariable
67 fn check_enum_variant<T: TryFrom<u32>>(tag: &Tag, value: &Value) -> Result<()> { in check_enum_variant()
68 let Value::Number(n) = value else { in check_enum_variant() localVariable
82 fn check_valid_bits(tag: &Tag, value: &Value, min_bits: u32, max_bits: u32) -> Result<()> { in check_valid_bits() argument
83 let Value::Number(n) = value else { in check_valid_bits() localVariable
98 fn check_number_range(tag: &Tag, value: &Value, min: u32, max: u32) -> Result<()> { in check_number_range() argument
99 let Value::Number(n) = value else { in check_number_range() localVariable
[all …]
/base/hiviewdfx/hiview/core/include/
Devent_json_parser.h39 using JSON_VALUE_LOOP_HANDLER = std::function<void(const std::string&, const Json::Value&)>;
67 bool HasIntMember(const Json::Value& jsonObj, const std::string& name) const;
68 bool HasStringMember(const Json::Value& jsonObj, const std::string& name) const;
69 bool HasBoolMember(const Json::Value& jsonObj, const std::string& name) const;
70 void InitEventInfoMapRef(const Json::Value& jsonObj, JSON_VALUE_LOOP_HANDLER handler) const;
71 BaseInfo ParseBaseConfig(const Json::Value& eventNameJson) const;
72 void ParseHiSysEventDef(const Json::Value& hiSysEventDef);
73 NAME_INFO_MAP ParseNameConfig(const Json::Value& domainJson) const;
/base/telephony/core_service/services/sim/include/
Doperator_file_parser.h29 bool ParseFromCustomSystem(int32_t slotId, OperatorConfig &opc, Json::Value &opcJson);
30 …bool ParseOperatorConfigFromFile(OperatorConfig &poc, const std::string &path, Json::Value &opcJso…
31 bool WriteOperatorConfigJson(std::string filename, const Json::Value &root);
38 void ParseOperatorConfigFromJson(const Json::Value &root, OperatorConfig &poc);
40 void ParseArray(const std::string key, const Json::Value &arrayValue_, OperatorConfig &poc);
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
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&…
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_api_rust/src/
Dcommon.rs54 … asset_sdk::Manager::build()?.remove(&AssetMap::from([(Tag::Alias, Value::Bytes(alias.to_vec()))])) in remove_by_alias()
73 (Tag::Alias, Value::Bytes(alias.to_vec())), in query_all_by_alias()
74 (Tag::ReturnType, Value::Number(ReturnType::All as u32)), in query_all_by_alias()
80 (Tag::Alias, Value::Bytes(alias.to_vec())), in query_attr_by_alias()
81 (Tag::ReturnType, Value::Number(ReturnType::Attributes as u32)), in query_attr_by_alias()
87 (Tag::Alias, Value::Bytes(alias.to_vec())), in add_default_asset()
88 (Tag::Secret, Value::Bytes(secret.to_vec())), in add_default_asset()
89 (Tag::Accessibility, Value::Number(Accessibility::DevicePowerOn as u32)), in add_default_asset()
95 (Tag::Alias, Value::Bytes(alias.to_vec())), in add_default_auth_asset()
96 (Tag::Secret, Value::Bytes(secret.to_vec())), in add_default_auth_asset()
[all …]
/base/powermgr/battery_manager/test/unittest/mock/source/
Dmock_json.cpp19 bool Value::isArray() const in isArray()
24 bool Value::isObject() const in isObject()
29 bool Value::isNull() const in isNull()
/base/telephony/telephony_data/common/include/
Dparser_util.h26 class Value; variable
41 void ParserPdpProfileInfos(std::vector<PdpProfile> &vec, Json::Value &root);
45 void ParserOpKeyInfos(std::vector<OpKey> &vec, Json::Value &root);
48 void ParserNumMatchInfos(std::vector<NumMatch> &vec, Json::Value &root);
51 void ParserEccDataInfos(std::vector<EccNum> &vec, Json::Value &root);
66 std::string ParseString(const Json::Value &value);
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
Djson_parser.cpp40 bool JsonParser::ParseJsonString(Json::Value& eventJson, const std::string& jsonStr) in ParseJsonString()
49 bool JsonParser::CheckJsonValue(const Json::Value& eventJson, const std::vector<std::string>& field… in CheckJsonValue()
59 uint32_t JsonParser::ParseUInt32(const Json::Value& value) in ParseUInt32()
64 uint64_t JsonParser::ParseUInt64(const Json::Value& value) in ParseUInt64()
69 std::string JsonParser::ParseString(const Json::Value& value) in ParseString()
74 void JsonParser::ParseUInt32Vec(const Json::Value& root, std::vector<uint32_t>& vec) in ParseUInt32Vec()
84 void JsonParser::ParseStringVec(const Json::Value& root, std::vector<std::string>& vec) in ParseStringVec()
97 Json::Value root; in ParsePluginStatsEvent()
121 Json::Value root; in ParseSysUsageEvent()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
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/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_log_config_manager.cpp31 Json::Value ParseJsonFile(const std::string& path) in ParseJsonFile()
33 Json::Value jsonRoot; in ParseJsonFile()
45 return Json::Value(); in ParseJsonFile()
50 inline bool IsStringMember(const Json::Value& jsonRoot, const std::string& key) in ParseJsonFile()
55 inline bool IsBoolMember(const Json::Value& jsonRoot, const std::string& key) in ParseJsonFile()
73 Json::Value jsonRoot = ParseJsonFile(CONFIG_FILE_PATH); in GetLogConfigFromFile()
/base/hiviewdfx/hisysevent/frameworks/native/
Dhisysevent_json_decorator.cpp72 bool HiSysEventJsonDecorator::CheckAttrDecorationNeed(const Json::Value& eventJson, const std::stri… in HiSysEventJsonDecorator()
73 const Json::Value& standard) in HiSysEventJsonDecorator()
80 Validity HiSysEventJsonDecorator::CheckAttrValidity(const Json::Value& eventJson, const std::string… in HiSysEventJsonDecorator()
81 const Json::Value& standard) in HiSysEventJsonDecorator()
98 Validity HiSysEventJsonDecorator::CheckLevelValidity(const Json::Value& baseInfo) in HiSysEventJsonDecorator()
113 bool HiSysEventJsonDecorator::CheckEventDecorationNeed(const Json::Value& eventJson, in HiSysEventJsonDecorator()
124 Json::Value definedDomain = root[domain]; in HiSysEventJsonDecorator()
128 Json::Value definedName = definedDomain[name]; in HiSysEventJsonDecorator()
169 Json::Value eventJson; in HiSysEventJsonDecorator()
185 [this] (const Json::Value& definedBase) { in HiSysEventJsonDecorator()
[all …]

123456