Home
last modified time | relevance | path

Searched refs:napi_set_property (Results 1 – 25 of 45) sorted by relevance

12

/ohos5.0/foundation/multimedia/player_framework/frameworks/js/common/
H A Dcommon_napi.cpp282 status = napi_set_property(env, args, codeStr, errCodeVal); in FillErrorArgs()
426 status = napi_set_property(env, obj, nameStr, range); in AddRangeProperty()
451 status = napi_set_property(env, obj, nameStr, array); in AddArrayProperty()
487 status = napi_set_property(env, obj, keyNapi, valueNapi); in SetPropertyInt32()
505 status = napi_set_property(env, obj, keyNapi, valueNapi); in SetPropertyInt64()
523 status = napi_set_property(env, obj, keyNapi, valueNapi); in SetPropertyDouble()
541 status = napi_set_property(env, obj, keyNapi, valueNapi); in SetPropertyBool()
559 status = napi_set_property(env, obj, keyNapi, valueNapi); in SetPropertyString()
656 status = napi_set_property(env, obj, keyNapi, valueNapi); in AddNumberPropInt32()
674 status = napi_set_property(env, obj, keyNapi, valueNapi); in AddNumberPropInt64()
[all …]
/ohos5.0/foundation/ability/ability_runtime/service_router_framework/interfaces/kits/js/serviceroutermgr/
H A Dnative_module.cpp37 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
38 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/application_context_constant/
H A Dapplication_context_constant_module.cpp34 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
35 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_push_callback.cpp69 napi_set_property(env_, jsResult, keyNapiValue, valueNapiValue); in SetJsPropertyString()
78 napi_set_property(env_, jsResult, keyNapiValue, valueNapiValue); in SetJsPropertyInt32()
89 napi_set_property(env_, jsResult, keyNapiValue, extraInfo); in SetJsPropertyWantParams()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/configuration_constant/
H A Dconfiguration_constant_module.cpp31 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
32 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
H A Dconfiguration_constant_napi_module.cpp31 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
32 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-property.md22 | napi_set_property | 通过此接口可以动态地向对象添加属性。也可修改对象的属性值,满足动态属性值变更的需求。 |
91 ### napi_set_property subsection
109 // 通过调用napi_set_property接口将属性与值设置入object,如果失败,直接抛出错误
110 status = napi_set_property(env, args[0], args[1], args[2]);
112 napi_throw_error(env, nullptr, "Node-API napi_set_property fail");
139 …hilog.info(0x0000, 'testTag', 'Test Node-API napi_set_property: %{public}s', JSON.stringify(result…
141 hilog.info(0x0000, 'testTag', 'Test Node-API napi_set_property error: %{public}s', error.message);
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/napi_module/ability_constant/
H A Dability_constant_module.cpp41 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
42 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
/ohos5.0/base/global/i18n/interfaces/js/kits/src/
H A Di18n_normalizer_addon.cpp201 status = napi_set_property(env, enumObj, name, value); in SetEnumValue()
205 status = napi_set_property(env, enumObj, value, name); in SetEnumValue()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Dasync_lock.cpp171 napi_status status = napi_set_property(env, held, index, info); in FillLockState()
187 napi_status status = napi_set_property(env, pending, index, info); in FillLockState()
H A Dasync_lock_manager.cpp385 NAPI_CALL(env, napi_set_property(env, array, index, v)); in CreateLockStates()
399 NAPI_CALL(env, napi_set_property(env, array, index, v)); in CreateLockStates()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-property.md22 | napi_set_property | Adds a property to an object or modifies a property value of an object.|
91 ### napi_set_property subsection
93 Use **napi_set_property** to set a property for an object.
109 …// Call napi_set_property to set the property name and value to the object. If the operation fails…
110 status = napi_set_property(env, args[0], args[1], args[2]);
112 napi_throw_error(env, nullptr, "Node-API napi_set_property fail");
139 …hilog.info(0x0000, 'testTag', 'Test Node-API napi_set_property: %{public}s', JSON.stringify(result…
141 hilog.info(0x0000, 'testTag', 'Test Node-API napi_set_property error: %{public}s', error.message);
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/utils/
H A Dnapi_utils.cpp371 napi_set_property(env, value, typeKeyNApi, typeIdNApi); in CompleteResourceParamV1()
372 napi_set_property(env, value, CreateNapiString(env, "id"), resourceIdNApi); in CompleteResourceParamV1()
375 napi_set_property(env, value, bundleNameKeyNApi, defaultNameNApi); in CompleteResourceParamV1()
379 napi_set_property(env, value, moduleNameKeyNApi, defaultNameNApi); in CompleteResourceParamV1()
410 napi_set_property(env, value, typeKeyNApi, typeIdNApi); in CompleteResourceParamV2()
414 napi_set_property(env, value, moduleNameKeyNApi, moduleNameNApi); in CompleteResourceParamV2()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/ability_constant/
H A Dability_constant_module.cpp42 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
43 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Dsendable-constraints.md466 | 禁止新增属性,不能使用的接口有:napi_set_property、napi_set_named_property、napi_define_properties。 |
467 | 禁止修改属性类型,不能使用的接口有:napi_set_property、napi_set_named_property、napi_define_properties。 |
/ohos5.0/base/global/resource_management/interfaces/js/kits/src/
H A Dresource_manager_napi.cpp213 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem()
214 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/test/
H A Dtest_concurrent.cpp170 napi_set_property(env, result, messageKey, messageValue); in __anon35c8744e0202()
239 napi_set_property(env, result, messageKey, messageValue); in __anon35c8744e0302()
281 napi_set_property(env, result, messageKey, messageValue); in __anon35c8744e0402()
726 napi_set_property(env, result, funcKey, funcAttribute);
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp270 napi_set_property(env, sendableClass, static_str, static_value);
278 napi_set_property(env, sendableClass, invalid_str, invalid_value);
324 napi_set_property(env, sendableInstance, instance_str, instance_value);
334 napi_set_property(env, prototype, non_static_str, non_static_value);
372 napi_set_property(env, sendableInstance, non_static_str, non_static_value);
383 napi_set_property(env, sendableInstance, invalid_str, invalid_value);
425 napi_set_property(env, sendableInstance, parent_instance_str, parent_instance_value);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/sendablerelationalstore/src/
H A Dnapi_rdb_store_convert_utils.cpp72 status = napi_set_property(env, object, key, Convert2JSValue(env, value)); in FromSendableValuesBucket()
/ohos5.0/docs/en/application-dev/arkts-utils/
H A Dsendable-constraints.md458 | Do not add properties. The following interfaces cannot be used: **napi_set_property**, **napi_set…
459 | Do not modify property types. The following interfaces cannot be used: **napi_set_property**, **n…
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Dmedia_data_source_callback.cpp222 status = napi_set_property(env, obj, keyNapi, value); in AddNapiValueProp()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/metadatahelper/
H A Dhelper_data_source_callback.cpp224 status = napi_set_property(env, obj, keyNapi, value); in AddNapiValueProp()
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-new-getTarget.md256 | napi_set_property | 使用"name","\_\_ob\_name"均能赋值成功。 |
/ohos5.0/base/location/frameworks/native/fence_extension_ability/src/
H A Djs_fence_extension.cpp311 status = napi_set_property(env, addtionsRecord, key, value); in CallToUiThread()
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/
H A Dnapi.md103 |FUNC|napi_set_property|对给定`Object`设置属性。|10|
313 ### napi_set_property subsection

12