/base/hiviewdfx/hitrace/interfaces/js/kits/napi/include/ |
H A D | napi_hitrace_util.h | 40 const std::string& propertyName, uint32_t value);
42 const std::string& propertyName, uint64_t value);
44 const std::string& propertyName, uint64_t value);
46 const std::string& propertyName);
48 const std::string& propertyName);
50 const std::string& propertyName);
|
/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() 62 HILOG_ERROR(LOG_CORE, "set property %{public}s failed.", propertyName.c_str());
in SetNamedProperty() 68 const std::string& propertyName)
in GetPropertyByName() 71 NAPI_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &result));
in GetPropertyByName() 143 const std::string& propertyName, uint32_t value)
in SetPropertyInt32() 146 SetNamedProperty(env, object, propertyName, peropertyValue);
in SetPropertyInt32() 150 const std::string& propertyName, uint64_t value)
in SetPropertyInt64() 153 SetNamedProperty(env, object, propertyName, peropertyValue);
in SetPropertyInt64() 157 const std::string& propertyName, uint64_ in SetPropertyBigInt64() 57 SetNamedProperty(const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue) SetNamedProperty() argument 67 GetPropertyByName(const napi_env env, const napi_value& object, const std::string& propertyName) GetPropertyByName() argument 142 SetPropertyInt32(const napi_env env, napi_value& object, const std::string& propertyName, uint32_t value) SetPropertyInt32() argument 149 SetPropertyInt64(const napi_env env, napi_value& object, const std::string& propertyName, uint64_t value) SetPropertyInt64() argument 156 SetPropertyBigInt64(const napi_env env, napi_value& object, const std::string& propertyName, uint64_t value) SetPropertyBigInt64() argument 163 GetPropertyInt32(const napi_env env, const napi_value& object, const std::string& propertyName) GetPropertyInt32() argument 187 GetPropertyInt64(const napi_env env, const napi_value& object, const std::string& propertyName) GetPropertyInt64() argument 211 GetPropertyBigInt64(const napi_env env, const napi_value& object, const std::string& propertyName) GetPropertyBigInt64() argument [all...] |
/base/telephony/call_manager/frameworks/js/napi/include/ |
H A D | napi_call_manager_utils.h | 76 static napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName); 77 static std::string GetStringProperty(napi_env env, napi_value object, const std::string &propertyName); 78 static int32_t GetIntProperty(napi_env env, napi_value object, const std::string &propertyName); 79 static bool GetUssdIntProperty(napi_env env, napi_value object, const std::string &propertyName, int32_t &result); 81 napi_env env, napi_value object, const std::string &propertyName, std::string &result); 82 static bool GetBoolProperty(napi_env env, napi_value object, const std::string &propertyName); 89 static AAFwk::WantParams GetWantParamsProperty(napi_env env, napi_value object, const std::string &propertyName);
|
/base/print/print_fwk/frameworks/helper/scan_helper/src/ |
H A D | napi_scan_utils.cpp | 42 bool NapiScanUtils::HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in HasNamedProperty() argument 45 SCAN_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), false); in HasNamedProperty() 49 napi_value NapiScanUtils::GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in GetNamedProperty() argument 53 SCAN_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty() 57 SCAN_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &value)); in GetNamedProperty() 103 uint32_t NapiScanUtils::GetUint32Property(napi_env env, napi_value object, const std::string &propertyName) in GetUint32Property() argument 105 if (!HasNamedProperty(env, object, propertyName)) { in GetUint32Property() 108 napi_value value = GetNamedProperty(env, object, propertyName); in GetUint32Property() 139 int32_t NapiScanUtils::GetInt32Property(napi_env env, napi_value object, const std::string &propertyName) in GetInt32Property() argument 141 if (!HasNamedProperty(env, object, propertyName)) { in GetInt32Property() 180 GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName) GetStringPropertyUtf8() argument 290 GetBooleanProperty(napi_env env, napi_value object, const std::string &propertyName) GetBooleanProperty() argument [all...] |
/base/print/print_fwk/frameworks/helper/print_helper/src/ |
H A D | napi_print_utils.cpp | 38 bool NapiPrintUtils::HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in HasNamedProperty() argument 41 PRINT_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), false); in HasNamedProperty() 45 napi_value NapiPrintUtils::GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in GetNamedProperty() argument 49 PRINT_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty() 53 PRINT_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &value)); in GetNamedProperty() 99 uint32_t NapiPrintUtils::GetUint32Property(napi_env env, napi_value object, const std::string &propertyName) in GetUint32Property() argument 101 if (!HasNamedProperty(env, object, propertyName)) { in GetUint32Property() 104 napi_value value = GetNamedProperty(env, object, propertyName); in GetUint32Property() 135 int32_t NapiPrintUtils::GetInt32Property(napi_env env, napi_value object, const std::string &propertyName) in GetInt32Property() argument 137 if (!HasNamedProperty(env, object, propertyName)) { in GetInt32Property() 176 GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName) GetStringPropertyUtf8() argument 276 GetBooleanProperty(napi_env env, napi_value object, const std::string &propertyName) GetBooleanProperty() argument [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/include/reminder/ |
H A D | reminder_common.h | 106 const char* propertyName, char* propertyVal, const int32_t size); 109 const char* propertyName, bool& propertyVal); 112 const char* propertyName, int32_t& propertyVal, bool isNecessary); 115 const char* propertyName, int64_t& propertyVal); 118 const char* propertyName, napi_value& propertyVal); 121 const char* propertyName, double& date); 161 const char* propertyName, napi_value& propertyVal); 188 const char* propertyName, std::vector<uint8_t> &propertyVal, uint8_t maxLen);
|
/base/print/print_fwk/frameworks/helper/print_helper/include/ |
H A D | printer_capability_helper.h | 61 static bool ProcessJsArrayProperty(napi_env env, napi_value jsValue, const char *propertyName, in ProcessJsArrayProperty() argument 74 bool hasProperty = NapiPrintUtils::HasNamedProperty(env, jsValue, propertyName); in ProcessJsArrayProperty() 79 napi_status status = napi_get_named_property(env, jsValue, propertyName, &jsArray); in ProcessJsArrayProperty() 87 PRINT_HILOGE("Can not get an array for property %{public}s", propertyName); in ProcessJsArrayProperty() 105 PRINT_HILOGE("Failed to build item for property %{public}s", propertyName); in ProcessJsArrayProperty()
|
H A D | napi_print_utils.h | 46 static bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName); 47 static napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName); 52 static uint32_t GetUint32Property(napi_env env, napi_value object, const std::string &propertyName); 56 static int32_t GetInt32Property(napi_env env, napi_value object, const std::string &propertyName); 60 static std::string GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName); 74 static bool GetBooleanProperty(napi_env env, napi_value object, const std::string &propertyName);
|
/base/telephony/call_manager/frameworks/js/napi/src/ |
H A D | napi_call_manager_utils.cpp | 180 napi_value NapiCallManagerUtils::GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in GetNamedProperty() argument 183 napi_get_named_property(env, object, propertyName.c_str(), &value); in GetNamedProperty() 187 std::string NapiCallManagerUtils::GetStringProperty(napi_env env, napi_value object, const std::string &propertyName) in GetStringProperty() argument 190 napi_status getNameStatus = napi_get_named_property(env, object, propertyName.c_str(), &value); in GetStringProperty() 205 const std::string &propertyName) in GetWantParamsProperty() 210 napi_has_named_property(env, object, propertyName.c_str(), &hasParam); in GetWantParamsProperty() 212 napi_get_named_property(env, object, propertyName.c_str(), &value); in GetWantParamsProperty() 224 int32_t NapiCallManagerUtils::GetIntProperty(napi_env env, napi_value object, const std::string &propertyName) in GetIntProperty() argument 228 napi_status getNameStatus = napi_get_named_property(env, object, propertyName.c_str(), &value); in GetIntProperty() 240 napi_env env, napi_value object, const std::string &propertyName, int32_ in GetUssdIntProperty() 204 GetWantParamsProperty(napi_env env, napi_value object, const std::string &propertyName) GetWantParamsProperty() argument 239 GetUssdIntProperty( napi_env env, napi_value object, const std::string &propertyName, int32_t &result) GetUssdIntProperty() argument 254 GetUssdStringProperty( napi_env env, napi_value object, const std::string &propertyName, std::string &result) GetUssdStringProperty() argument 273 GetBoolProperty(napi_env env, napi_value object, const std::string &propertyName) GetBoolProperty() argument [all...] |
/base/account/os_account/interfaces/kits/napi/common/include/ |
H A D | napi_account_common.h | 69 bool GetStringArrayPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
71 bool GetStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName, std::string &property);
72 bool GetOptionalStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
74 bool GetOptionalStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
76 bool GetOptionalNumberPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
78 void SetInt32ToJsProperty(napi_env env, int32_t number, const std::string &propertyName, napi_value &dataJs);
79 bool IsOptionalPropertyExist(napi_env env, napi_value obj, const std::string &propertyName);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/ |
H A D | reminder_common.cpp | 616 const char* propertyName, char* propertyVal, const int32_t size) in GetStringUtf8() 623 NAPI_CALL_BASE(env, napi_has_named_property(env, value, propertyName, &hasProperty), false); in GetStringUtf8() 625 napi_get_named_property(env, value, propertyName, &result); in GetStringUtf8() 628 ANSR_LOGW("Wrong argument type:%{public}s. string expected.", propertyName); in GetStringUtf8() 637 const char* propertyName, bool& propertyVal) in GetBool() 642 NAPI_CALL_BASE(env, napi_has_named_property(env, value, propertyName, &hasProperty), false); in GetBool() 644 ANSR_LOGW("Does not have argument type:%{public}s.", propertyName); in GetBool() 647 napi_get_named_property(env, value, propertyName, &result); in GetBool() 650 ANSR_LOGW("Wrong argument type:%{public}s. boolean expected.", propertyName); in GetBool() 658 const char* propertyName, int32_ in GetInt32() 615 GetStringUtf8(const napi_env &env, const napi_value &value, const char* propertyName, char* propertyVal, const int32_t size) GetStringUtf8() argument 636 GetBool(const napi_env &env, const napi_value &value, const char* propertyName, bool& propertyVal) GetBool() argument 657 GetInt32(const napi_env &env, const napi_value &value, const char* propertyName, int32_t& propertyVal, bool isNecessary) GetInt32() argument 671 GetInt64(const napi_env &env, const napi_value &value, const char* propertyName, int64_t& propertyVal) GetInt64() argument 682 GetPropertyValIfExist(const napi_env &env, const napi_value &value, const char* propertyName, napi_value& propertyVal) GetPropertyValIfExist() argument 708 GetObject(const napi_env &env, const napi_value &value, const char* propertyName, napi_value& propertyVal) GetObject() argument 727 GetDate(const napi_env& env, const napi_value& value, const char* propertyName, double& date) GetDate() argument 958 ParseInt32Array(const napi_env &env, const napi_value &value, const char* propertyName, std::vector<uint8_t> &propertyVal, uint8_t maxLen) ParseInt32Array() argument [all...] |
/base/print/print_fwk/frameworks/helper/scan_helper/include/ |
H A D | napi_scan_utils.h | 52 static bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
53 static napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
58 static uint32_t GetUint32Property(napi_env env, napi_value object, const std::string &propertyName);
62 static int32_t GetInt32Property(napi_env env, napi_value object, const std::string &propertyName);
66 static std::string GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName);
82 static bool GetBooleanProperty(napi_env env, napi_value object, const std::string &propertyName);
|
/base/account/os_account/interfaces/kits/napi/common/src/ |
H A D | napi_account_common.cpp | 206 bool GetStringArrayPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
in GetStringArrayPropertyByKey() argument 210 NAPI_CALL_BASE(env, napi_get_named_property(env, obj, propertyName.c_str(), &value), false);
in GetStringArrayPropertyByKey() 229 bool GetStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName, std::string &property)
in GetStringPropertyByKey() argument 232 NAPI_CALL_BASE(env, napi_get_named_property(env, obj, propertyName.c_str(), &value), false);
in GetStringPropertyByKey() 236 bool GetOptionalStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
in GetOptionalStringPropertyByKey() argument 240 napi_has_named_property(env, obj, propertyName.c_str(), &hasProp);
in GetOptionalStringPropertyByKey() 245 NAPI_CALL_BASE(env, napi_get_named_property(env, obj, propertyName.c_str(), &value), false);
in GetOptionalStringPropertyByKey() 255 bool GetOptionalStringPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName,
in GetOptionalStringPropertyByKey() argument 259 napi_has_named_property(env, obj, propertyName.c_str(), &hasProp);
in GetOptionalStringPropertyByKey() 264 NAPI_CALL_BASE(env, napi_get_named_property(env, obj, propertyName in GetOptionalStringPropertyByKey() 278 IsOptionalPropertyExist(napi_env env, napi_value obj, const std::string &propertyName) IsOptionalPropertyExist() argument 296 GetOptionalNumberPropertyByKey(napi_env env, napi_value obj, const std::string &propertyName, int32_t &numberProperty, bool &hasProperty) GetOptionalNumberPropertyByKey() argument 472 SetInt32ToJsProperty(napi_env env, int32_t number, const std::string &propertyName, napi_value &dataJs) SetInt32ToJsProperty() argument [all...] |
/base/telephony/core_service/frameworks/js/napi/ |
H A D | napi_util.h | 45 static bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName); 47 napi_env env, napi_value object, napi_valuetype type, const std::string &propertyName); 51 napi_env env, napi_value object, napi_valuetype type, const std::string &propertyName); 53 static napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
|
H A D | napi_util.cpp | 207 bool NapiUtil::HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in HasNamedProperty() argument 210 NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false); in HasNamedProperty() 215 napi_env env, napi_value object, napi_valuetype type, const std::string &propertyName) in HasNamedTypeProperty() 218 NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false); in HasNamedTypeProperty() 221 NAPI_CALL_BASE(env, napi_get_named_property(env, object, propertyName.data(), &value), false); in HasNamedTypeProperty() 242 napi_env env, napi_value object, napi_valuetype type, const std::string &propertyName) in MatchOptionPropertyType() 245 NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false); in MatchOptionPropertyType() 248 NAPI_CALL_BASE(env, napi_get_named_property(env, object, propertyName.data(), &value), false); in MatchOptionPropertyType() 267 napi_value NapiUtil::GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in GetNamedProperty() argument 271 NAPI_CALL(env, napi_has_named_property(env, object, propertyName in GetNamedProperty() 214 HasNamedTypeProperty( napi_env env, napi_value object, napi_valuetype type, const std::string &propertyName) HasNamedTypeProperty() argument 241 MatchOptionPropertyType( napi_env env, napi_value object, napi_valuetype type, const std::string &propertyName) MatchOptionPropertyType() argument [all...] |
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
H A D | napi_hisysevent_util.cpp | 240 const std::string& propertyName, std::string defaultValue = "") in GetStringTypeAttribute() 242 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, propertyName); in GetStringTypeAttribute() 244 NapiHiSysEventUtil::ThrowParamTypeError(env, propertyName, "string"); in GetStringTypeAttribute() 278 const std::string& propertyName, int32_t defaultValue = 0) in GetInt32TypeAttribute() 280 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, propertyName); in GetInt32TypeAttribute() 282 NapiHiSysEventUtil::ThrowParamTypeError(env, propertyName, "number"); in GetInt32TypeAttribute() 486 const std::string& propertyName, HiSysEventInfo& info) in GetObjectTypeAttribute() 488 napi_value propertyValue = NapiHiSysEventUtil::GetPropertyByName(env, object, propertyName); in GetObjectTypeAttribute() 597 void SetNamedProperty(const napi_env env, napi_value& object, const std::string& propertyName, in SetNamedProperty() argument 600 napi_status status = napi_set_named_property(env, object, propertyName in SetNamedProperty() 239 GetStringTypeAttribute(const napi_env env, const napi_value& object, const std::string& propertyName, std::string defaultValue = �) GetStringTypeAttribute() argument 277 GetInt32TypeAttribute(const napi_env env, const napi_value& object, const std::string& propertyName, int32_t defaultValue = 0) GetInt32TypeAttribute() argument 485 GetObjectTypeAttribute(const napi_env env, const napi_value& object, const std::string& propertyName, HiSysEventInfo& info) GetObjectTypeAttribute() argument 606 IsBaseInfoKey(const std::string& propertyName) IsBaseInfoKey() argument 725 GetPropertyByName(const napi_env env, const napi_value& object, const std::string& propertyName) GetPropertyByName() argument [all...] |
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/ |
H A D | user_auth_napi_helper.h | 55 static napi_value GetNamedProperty(napi_env env, napi_value value, const std::string &propertyName); 57 static bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName); 58 static std::string GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName);
|
/base/request/request/frameworks/js/napi/include/ |
H A D | napi_utils.h | 72 bool Convert2Boolean(napi_env env, napi_value object, const std::string &propertyName);
74 uint32_t Convert2Uint32(napi_env env, napi_value object, const std::string &propertyName);
77 int64_t Convert2Int64(napi_env env, napi_value object, const std::string &propertyName);
79 std::string Convert2String(napi_env env, napi_value object, const std::string &propertyName);
87 bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
88 napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
|
/base/request/request/frameworks/js/napi/src/ |
H A D | napi_utils.cpp | 539 bool Convert2Boolean(napi_env env, napi_value object, const std::string &propertyName)
in Convert2Boolean() argument 541 if (!HasNamedProperty(env, object, propertyName)) {
in Convert2Boolean() 544 napi_value value = GetNamedProperty(env, object, propertyName);
in Convert2Boolean() 560 uint32_t Convert2Uint32(napi_env env, napi_value object, const std::string &propertyName)
in Convert2Uint32() argument 562 if (!HasNamedProperty(env, object, propertyName)) {
in Convert2Uint32() 565 napi_value value = GetNamedProperty(env, object, propertyName);
in Convert2Uint32() 586 int64_t Convert2Int64(napi_env env, napi_value object, const std::string &propertyName)
in Convert2Int64() argument 588 if (!HasNamedProperty(env, object, propertyName)) {
in Convert2Int64() 591 napi_value value = GetNamedProperty(env, object, propertyName);
in Convert2Int64() 610 std::string Convert2String(napi_env env, napi_value object, const std::string &propertyName)
in Convert2String() argument 684 HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName) HasNamedProperty() argument 691 GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) GetNamedProperty() argument [all...] |
/base/request/request/frameworks/js/napi/include/upload/ |
H A D | js_util.h | 59 static napi_value GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
60 static bool HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName);
|
/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() 101 HIVIEW_LOGE("set %{public}s property failed", propertyName.c_str());
in SetNamedProperty() 97 SetNamedProperty( const napi_env env, napi_value& object, const std::string& propertyName, napi_value& propertyValue) SetNamedProperty() argument
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
H A D | user_auth_napi_helper.cpp | 514 napi_value UserAuthNapiHelper::GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in GetNamedProperty() argument 518 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty() 522 NAPI_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &value)); in GetNamedProperty() 541 bool UserAuthNapiHelper::HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName) in HasNamedProperty() argument 544 NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), false); in HasNamedProperty() 548 std::string UserAuthNapiHelper::GetStringPropertyUtf8(napi_env env, napi_value object, const std::string &propertyName) in GetStringPropertyUtf8() argument 550 napi_value value = GetNamedProperty(env, object, propertyName); in GetStringPropertyUtf8()
|
/base/request/request/frameworks/js/napi/src/upload/ |
H A D | js_util.cpp | 142 napi_value JSUtil::GetNamedProperty(napi_env env, napi_value object, const std::string &propertyName)
in GetNamedProperty() argument 146 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty));
in GetNamedProperty() 150 NAPI_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &value));
in GetNamedProperty() 154 bool JSUtil::HasNamedProperty(napi_env env, napi_value object, const std::string &propertyName)
in HasNamedProperty() argument 157 NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), false);
in HasNamedProperty()
|
/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/hiappevent/frameworks/cj/ffi/src/ |
H A D | appevent_watcher_impl.cpp | 326 const auto& propertyName = it; in CreateValueByJsonStr() local 327 retValue[i].key = MallocCString(propertyName); in CreateValueByJsonStr() 328 CreateValueByJson(retValue[i], jsonValue[propertyName]); in CreateValueByJsonStr()
|