Lines Matching refs:value
47 using ParamAdder = void (*)(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value);
49 void AddBoolParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
51 appEventPack->AddParam(name, value->value.bool_v);
54 void AddBoolArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
56 AddArrayParam(appEventPack, name, value->value.bool_arr_v, value->arrSize);
59 void AddInt8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
61 appEventPack->AddParam(name, value->value.int8_v);
64 void AddInt8ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
66 AddArrayParam(appEventPack, name, value->value.int8_arr_v, value->arrSize);
69 void AddInt16ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
71 appEventPack->AddParam(name, value->value.int16_v);
74 void AddInt16ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
76 AddArrayParam(appEventPack, name, value->value.int16_arr_v, value->arrSize);
79 void AddInt32ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
81 appEventPack->AddParam(name, value->value.int32_v);
84 void AddInt32ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
86 AddArrayParam(appEventPack, name, value->value.int32_arr_v, value->arrSize);
89 void AddInt64ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
91 appEventPack->AddParam(name, value->value.int64_v);
94 void AddInt64ArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
96 AddArrayParam(appEventPack, name, value->value.int64_arr_v, value->arrSize);
99 void AddFloatParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
101 appEventPack->AddParam(name, value->value.float_v);
104 void AddFloatArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
106 AddArrayParam(appEventPack, name, value->value.float_arr_v, value->arrSize);
109 void AddDoubleParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
111 appEventPack->AddParam(name, value->value.double_v);
114 void AddDoubleArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
116 AddArrayParam(appEventPack, name, value->value.double_arr_v, value->arrSize);
119 void AddStringParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
121 appEventPack->AddParam(name, value->value.str_v);
124 void AddStringArrayParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
126 AddArrayParam(appEventPack, name, value->value.str_arr_v, value->arrSize);
148 void AddParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value)
150 if (name == nullptr || value == nullptr) {
151 HILOG_ERROR(LOG_CORE, "Failed to add the param because the name or value is null.");
154 unsigned int paramType = value->type;
156 PARAM_ADDERS[paramType](appEventPack, name, value);
168 AddParamValue(appEventPack, entry->name, entry->value);
181 bool HiAppEventInnerConfigure(const char* name, const char* value)
183 if (name == nullptr || value == nullptr) {
187 return HiAppEventConfig::GetInstance().SetConfigurationItem(name, value);