Home
last modified time | relevance | path

Searched refs:utf8name (Results 1 - 15 of 15) sorted by relevance

/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/
H A Defficiency_resources_operation.cpp31 napi_value GetNamedBoolValue(const napi_env &env, napi_value &object, const char* utf8name, in GetNamedBoolValue() argument
36 if (napi_has_named_property(env, object, utf8name, &hasNamedProperty) != napi_ok || !hasNamedProperty) { in GetNamedBoolValue()
38 BGTASK_LOGE("ParseParameters failed, %{public}s not exist, is nullptr", utf8name); in GetNamedBoolValue()
44 BGTASK_NAPI_CALL(env, napi_get_named_property(env, object, utf8name, &boolValue)); in GetNamedBoolValue()
46 BGTASK_LOGE("ParseParameters failed, %{public}s is nullptr", utf8name); in GetNamedBoolValue()
49 BGTASK_LOGD("GetNamedBoolValue: %{public}s is %{public}d", utf8name, result); in GetNamedBoolValue()
53 napi_value GetNamedInt32Value(const napi_env &env, napi_value &object, const char* utf8name, in GetNamedInt32Value() argument
58 if (napi_has_named_property(env, object, utf8name, &hasNamedProperty) != napi_ok || !hasNamedProperty) { in GetNamedInt32Value()
59 BGTASK_LOGE("ParseParameters failed, %{public}s not exist, is nullptr", utf8name); in GetNamedInt32Value()
62 BGTASK_NAPI_CALL(env, napi_get_named_property(env, object, utf8name, in GetNamedInt32Value()
[all...]
/foundation/arkui/napi/native_engine/
H A Dnative_sendable.cpp64 if (propertyDescriptor.utf8name == nullptr) { in InitSendablePropertiesInfo()
67 key = StringRef::NewFromUtf8(vm, propertyDescriptor.utf8name); in InitSendablePropertiesInfo()
89 if (propertyDescriptor.utf8name != nullptr) { in InitSendablePropertiesInfo()
90 fullName += propertyDescriptor.utf8name; in InitSendablePropertiesInfo()
164 if (propertyDescriptor.utf8name != nullptr) { in NapiDefineSendabledProperty()
165 fullName += propertyDescriptor.utf8name; in NapiDefineSendabledProperty()
H A Dnative_property.h41 const char* utf8name = nullptr; member
H A Dnative_api.cpp440 const char* utf8name, in napi_create_function()
476 Local<panda::StringRef> fnName = panda::StringRef::NewFromUtf8(vm, utf8name != nullptr ? utf8name : name); in napi_create_function()
956 NAPI_EXTERN napi_status napi_set_named_property(napi_env env, napi_value object, const char* utf8name, napi_value value) in napi_set_named_property() argument
960 CHECK_ARG(env, utf8name); in napi_set_named_property()
969 obj->Set(vm, utf8name, propVal); in napi_set_named_property()
974 NAPI_EXTERN napi_status napi_has_named_property(napi_env env, napi_value object, const char* utf8name, bool* result) in napi_has_named_property() argument
978 CHECK_ARG(env, utf8name); in napi_has_named_property()
985 Local<panda::StringRef> key = panda::StringRef::NewFromUtf8(vm, utf8name); in napi_has_named_property()
993 const char* utf8name, in napi_get_named_property()
439 napi_create_function(napi_env env, const char* utf8name, size_t length, napi_callback cb, void* data, napi_value* result) napi_create_function() argument
991 napi_get_named_property(napi_env env, napi_value object, const char* utf8name, napi_value* result) napi_get_named_property() argument
1013 napi_get_own_property_descriptor(napi_env env, napi_value object, const char* utf8name, napi_value* result) napi_get_own_property_descriptor() argument
1368 napi_define_class(napi_env env, const char* utf8name, size_t length, napi_callback constructor, void* data, size_t property_count, const napi_property_descriptor* properties, napi_value* result) napi_define_class() argument
1405 napi_define_sendable_class(napi_env env, const char* utf8name, size_t length, napi_callback constructor, void* data, size_t property_count, const napi_property_descriptor* properties, napi_value parent, napi_value* result) napi_define_sendable_class() argument
1506 napi_map_set_named_property(napi_env env, napi_value map, const char* utf8name, napi_value value) napi_map_set_named_property() argument
1559 napi_map_get_named_property(napi_env env, napi_value map, const char* utf8name, napi_value* result) napi_map_get_named_property() argument
1612 napi_map_has_named_property(napi_env env, napi_value map, const char* utf8name, bool* result) napi_map_has_named_property() argument
[all...]
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/
H A Dcommon.cpp265 napi_value Common::GetNamedInt32Value(const napi_env &env, napi_value &object, const char* utf8name, in GetNamedInt32Value() argument
270 if (napi_has_named_property(env, object, utf8name, &hasNamedProperty) != napi_ok || !hasNamedProperty) { in GetNamedInt32Value()
271 STANDBYSERVICE_LOGE("GetNamedInt32Value failed, %{public}s not exist, is nullptr", utf8name); in GetNamedInt32Value()
274 NAPI_CALL(env, napi_get_named_property(env, object, utf8name, &intValue)); in GetNamedInt32Value()
276 STANDBYSERVICE_LOGE("GetNamedInt32Value failed, %{public}s is nullptr", utf8name); in GetNamedInt32Value()
279 STANDBYSERVICE_LOGD("GetNamedInt32Value: %{public}s is %{public}d", utf8name, result); in GetNamedInt32Value()
283 napi_value Common::GetNamedStringValue(const napi_env &env, napi_value &object, const char* utf8name, in GetNamedStringValue() argument
288 if (napi_has_named_property(env, object, utf8name, &hasNamedProperty) != napi_ok || !hasNamedProperty) { in GetNamedStringValue()
292 NAPI_CALL(env, napi_get_named_property(env, object, utf8name, &stringValue)); in GetNamedStringValue()
/foundation/filemanagement/user_file_service/test/unittest/mock/
H A Djs_native_api_mock.cpp46 napi_status napi_get_named_property(napi_env env, napi_value object, const char* utf8name, napi_value* result) in napi_get_named_property() argument
48 return OHOS::FileAccessFwk::Assistant::ins_->napi_get_named_property(env, object, utf8name, result); in napi_get_named_property()
131 napi_status napi_create_function(napi_env env, const char* utf8name, size_t length, napi_callback cb, void* data, in napi_create_function() argument
134 return OHOS::FileAccessFwk::Assistant::ins_->napi_create_function(env, utf8name, length, cb, data, result); in napi_create_function()
/foundation/resourceschedule/device_standby/interfaces/kits/napi/include/
H A Dcommon.h79 static napi_value GetNamedInt32Value(const napi_env &env, napi_value &object, const char* utf8name,
82 static napi_value GetNamedStringValue(const napi_env &env, napi_value &object, const char* utf8name,
/foundation/arkui/napi/interfaces/kits/napi/
H A Dnative_api.h125 const char* utf8name,
130 const char* utf8name,
133 NAPI_EXTERN napi_status napi_map_has_named_property(napi_env env, napi_value map, const char* utf8name, bool* result);
144 const char* utf8name,
/foundation/filemanagement/app_file_service/tests/mock/napi/src/
H A Dnapi_mock.cpp40 napi_status napi_get_named_property(napi_env env, napi_value object, const char* utf8name, napi_value* result) in napi_get_named_property() argument
42 return OHOS::FileManagement::Backup::Napi::napi->napi_get_named_property(env, object, utf8name, result); in napi_get_named_property()
146 napi_status napi_create_function(napi_env env, const char* utf8name, size_t length, napi_callback cb, void* data, in napi_create_function() argument
149 return OHOS::FileManagement::Backup::Napi::napi->napi_create_function(env, utf8name, length, cb, data, result); in napi_create_function()
/foundation/arkui/napi/interfaces/inner_api/napi/
H A Dnative_node_api.h112 const char* utf8name,
/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp876 if (propertyDescriptor.utf8name != nullptr) { in NapiDefinePropertyInner()
877 fullName += propertyDescriptor.utf8name; in NapiDefinePropertyInner()
901 if (propertyDescriptor.utf8name != nullptr) { in NapiDefineProperty()
902 propertyName = panda::StringRef::NewFromUtf8(vm, propertyDescriptor.utf8name); in NapiDefineProperty()
929 const char* utf8name = property.utf8name; in NapiCreateObjectWithProperties() local
959 fullName += utf8name; in NapiCreateObjectWithProperties()
965 keys[i] = panda::StringRef::NewFromUtf8(vm, utf8name); in NapiCreateObjectWithProperties()
1001 idProperty.utf8name = "id"; in GetModuleFromName()
1003 paramProperty.utf8name in GetModuleFromName()
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Djs_runtime_utils.cpp66 properties[0].utf8name = name; in BindNativeProperty()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_runtime_utils.cpp67 properties[0].utf8name = name; in BindNativeProperty()
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
H A Djs_extension_window_config.cpp39 properties[ARGC_ZERO].utf8name = name; in BindNativePropertys()
/foundation/arkui/napi/test/unittest/
H A Dtest_napi.cpp5317 char* utf8name = nullptr; in HWTEST_F() local
5322 napi_status status = napi_set_named_property(env, obj, utf8name, value); in HWTEST_F()
5363 char* utf8name = nullptr; in HWTEST_F() local
5367 napi_status status = napi_get_named_property(env, obj, utf8name, &value); in HWTEST_F()
5407 char* utf8name = nullptr; in HWTEST_F() local
5411 napi_status status = napi_has_named_property(env, obj, utf8name, &result); in HWTEST_F()

Completed in 32 milliseconds