/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/ |
H A D | napi_util.cpp | 41 napi_value propertyValue = nullptr; in SetPropertyInt32() local 42 napi_create_int32(env, value, &propertyValue); in SetPropertyInt32() 43 napi_set_named_property(env, object, name.c_str(), propertyValue); in SetPropertyInt32() 48 napi_value propertyValue = nullptr; in SetPropertyInt64() local 49 napi_create_int64(env, value, &propertyValue); in SetPropertyInt64() 50 napi_set_named_property(env, object, name.c_str(), propertyValue); in SetPropertyInt64() 55 napi_value propertyValue = nullptr; in SetPropertyStringUtf8() local 56 napi_create_string_utf8(env, value.c_str(), value.length(), &propertyValue); in SetPropertyStringUtf8() 57 napi_set_named_property(env, object, name.c_str(), propertyValue); in SetPropertyStringUtf8()
|
/base/hiviewdfx/hitrace/interfaces/js/kits/napi/src/ |
H A D | napi_hitrace_util.cpp | 58 const std::string& propertyName, napi_value& propertyValue)
in SetNamedProperty() 60 napi_status status = napi_set_named_property(env, object, propertyName.c_str(), propertyValue);
in SetNamedProperty() 166 napi_value propertyValue = GetPropertyByName(env, object, propertyName);
in GetPropertyInt32() local 168 napi_status status = napi_typeof(env, propertyValue, &type);
in GetPropertyInt32() 179 status = napi_get_value_int32(env, propertyValue, &numberValue);
in GetPropertyInt32() 190 napi_value propertyValue = GetPropertyByName(env, object, propertyName);
in GetPropertyInt64() local 192 napi_status status = napi_typeof(env, propertyValue, &type);
in GetPropertyInt64() 203 status = napi_get_value_int64(env, propertyValue, &numberValue);
in GetPropertyInt64() 214 napi_value propertyValue = GetPropertyByName(env, object, propertyName);
in GetPropertyBigInt64() local 216 napi_status status = napi_typeof(env, propertyValue, in GetPropertyBigInt64() 57 SetNamedProperty(const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue) SetNamedProperty() argument [all...] |
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
H A D | napi_hisysevent_util.cpp | 226 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, TAG_ATTR); in GetTagAttribute() local 227 if (IsValueTypeValid(env, propertyValue, napi_valuetype::napi_null) || in GetTagAttribute() 228 IsValueTypeValid(env, propertyValue, napi_valuetype::napi_undefined)) { in GetTagAttribute() 231 if (IsValueTypeValid(env, propertyValue, napi_valuetype::napi_string)) { in GetTagAttribute() 232 return ParseStringValue(env, propertyValue, defaultValue); in GetTagAttribute() 242 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, propertyName); in GetStringTypeAttribute() local 243 if (!IsValueTypeValid(env, propertyValue, napi_valuetype::napi_string)) { in GetStringTypeAttribute() 248 return ParseStringValue(env, propertyValue, defaultValue); in GetStringTypeAttribute() 280 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, propertyName); in GetInt32TypeAttribute() local 281 if (!IsValueTypeValid(env, propertyValue, napi_valuetyp in GetInt32TypeAttribute() 488 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, propertyName); GetObjectTypeAttribute() local 589 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, jsObj, NAMES_ATTR); ParseQueryRule() local 597 SetNamedProperty(const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue) SetNamedProperty() argument [all...] |
/base/telephony/core_service/frameworks/js/napi/ |
H A D | napi_util.cpp | 174 napi_value propertyValue = nullptr; in SetPropertyInt32() local 175 NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, value, &propertyValue)); in SetPropertyInt32() 176 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyInt32() 181 napi_value propertyValue = nullptr; in SetPropertyInt64() local 182 NAPI_CALL_RETURN_VOID(env, napi_create_int64(env, value, &propertyValue)); in SetPropertyInt64() 183 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyInt64() 188 napi_value propertyValue = nullptr; in SetPropertyStringUtf8() local 189 NAPI_CALL_RETURN_VOID(env, napi_create_string_utf8(env, value.c_str(), value.length(), &propertyValue)); in SetPropertyStringUtf8() 190 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), propertyValue)); in SetPropertyStringUtf8() 195 napi_value propertyValue in SetPropertyBoolean() local [all...] |
H A D | napi_parameter_util.h | 147 napi_value propertyValue = GetNapiValue(env, value); in SetPropertyToNapiObject() local 148 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.data(), propertyValue)); in SetPropertyToNapiObject()
|
/base/hiviewdfx/hiview/interfaces/js/napi/include/ |
H A D | hiview_napi_util.h | 50 const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue);
|
/base/hiviewdfx/hiview/interfaces/js/napi/src/ |
H A D | hiview_napi_util.cpp | 98 const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue)
in SetNamedProperty() 100 if (napi_set_named_property(env, object, propertyName.c_str(), propertyValue) != napi_ok) {
in SetNamedProperty() 97 SetNamedProperty( const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue) SetNamedProperty() argument
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/ |
H A D | reminder_common.cpp | 730 napi_value propertyValue = nullptr; in GetDate() local 732 propertyValue = value; in GetDate() 740 napi_get_named_property(env, value, propertyName, &propertyValue); in GetDate() 743 napi_is_date(env, propertyValue, &isDate); in GetDate() 748 napi_get_date_value(env, propertyValue, &date); in GetDate()
|