Home
last modified time | relevance | path

Searched refs:nativeObject (Results 1 – 16 of 16) sorted by relevance

/base/inputmethod/imf/test/unittest/cpp_test/src/
Djs_util_test.cpp34 static napi_value Write(napi_env env, const std::shared_ptr<Property> &nativeObject) in Write()
36 if (nativeObject == nullptr) { in Write()
39 return Write(env, *nativeObject); in Write()
41 static napi_value Write(napi_env env, const Property &nativeObject) in Write()
45 auto ret = JsUtil::Object::WriteProperty(env, object, "name", nativeObject.name); in Write()
46 ret = ret && JsUtil::Object::WriteProperty(env, object, "id", nativeObject.id); in Write()
47 ret = ret && JsUtil::Object::WriteProperty(env, object, "icon", nativeObject.icon); in Write()
48 ret = ret && JsUtil::Object::WriteProperty(env, object, "iconId", nativeObject.iconId); in Write()
51 static bool Read(napi_env env, napi_value object, Property &nativeObject) in Read()
53 auto ret = JsUtil::Object::ReadProperty(env, object, "name", nativeObject.name); in Read()
[all …]
/base/update/updateservice/frameworks/js/napi/base/include/
Dnapi_util.h54 T *nativeObject = nullptr; in UnwrapJsObject() local
55 napi_unwrap(env, thisVar, (void**)&nativeObject); in UnwrapJsObject()
56 return nativeObject; in UnwrapJsObject()
/base/global/i18n/interfaces/js/kits/src/
Di18n_normalizer_addon.cpp40 void I18nNormalizerAddon::Destructor(napi_env env, void *nativeObject, void *hint) in Destructor() argument
42 if (!nativeObject) { in Destructor()
45 delete reinterpret_cast<I18nNormalizerAddon *>(nativeObject); in Destructor()
46 nativeObject = nullptr; in Destructor()
Dsystem_locale_manager_addon.cpp34 void SystemLocaleManagerAddon::Destructor(napi_env env, void *nativeObject, void *hint) in Destructor() argument
36 if (!nativeObject) { in Destructor()
39 delete reinterpret_cast<SystemLocaleManagerAddon *>(nativeObject); in Destructor()
40 nativeObject = nullptr; in Destructor()
Dintl_addon.cpp37 void IntlAddon::Destructor(napi_env env, void *nativeObject, void *hint) in Destructor() argument
39 if (!nativeObject) { in Destructor()
42 delete reinterpret_cast<IntlAddon *>(nativeObject); in Destructor()
43 nativeObject = nullptr; in Destructor()
Di18n_addon.cpp95 void I18nAddon::Destructor(napi_env env, void *nativeObject, void *hint) in Destructor() argument
97 if (!nativeObject) { in Destructor()
100 delete reinterpret_cast<I18nAddon *>(nativeObject); in Destructor()
101 nativeObject = nullptr; in Destructor()
/base/global/i18n/interfaces/js/kits/include/
Di18n_normalizer_addon.h31 static void Destructor(napi_env env, void *nativeObject, void *hint);
Dsystem_locale_manager_addon.h29 static void Destructor(napi_env env, void *nativeObject, void *hint);
Dintl_addon.h60 static void Destructor(napi_env env, void *nativeObject, void *finalize_hint);
Di18n_addon.h44 static void Destructor(napi_env env, void *nativeObject, void *finalize_hint);
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_account_capability_scheduler.cpp787 AccountCapabilityScheduler *nativeObject = new (std::nothrow) AccountCapabilityScheduler(env); in JsConstructor() local
788 NAPI_ASSERT(env, nativeObject != nullptr, in JsConstructor()
790 napi_status status = napi_wrap(env, thisVar, nativeObject, in JsConstructor()
797 delete nativeObject; in JsConstructor()
871 AccountCapabilityScheduler *nativeObject = nullptr; in ParseParamForExecuteRequest() local
872 …_status status = napi_unwrap(env, asyncContext->thisVar, reinterpret_cast<void **>(&nativeObject)); in ParseParamForExecuteRequest()
873 if ((status != napi_ok) || (nativeObject == nullptr)) { in ParseParamForExecuteRequest()
877 asyncContext->abilityContext = nativeObject->abilityContext_; in ParseParamForExecuteRequest()
878 asyncContext->UIContent = nativeObject->UIContent_; in ParseParamForExecuteRequest()
992 AccountCapabilityScheduler *nativeObject = nullptr; in ParseParamForSetUIContext() local
[all …]
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_module.cpp140 T *nativeObject = nullptr; in CreateJsObject() local
141 status = napi_unwrap(env, jsObject, (void**)&nativeObject); in CreateJsObject()
144 napi_remove_wrap(env, jsObject, (void**)&nativeObject); in CreateJsObject()
148 return nativeObject; in CreateJsObject()
/base/global/resource_management/interfaces/js/innerkits/core/include/
Dresource_manager_addon.h41 static void Destructor(napi_env env, void *nativeObject, void *finalize_hint);
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_addon.cpp103 void ResourceManagerAddon::Destructor(napi_env env, void *nativeObject, void *hint) in Destructor() argument
106 addonPtr.reset(static_cast<std::shared_ptr<ResourceManagerAddon>*>(nativeObject)); in Destructor()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_keyboard_delegate_setting.cpp128 …env, thisVar, delegate.get(), [](napi_env env, void *nativeObject, void *hint) {}, nullptr, nullpt… in JsConstructor() argument
Djs_input_method_engine_setting.cpp217 …env, thisVar, setting.get(), [](napi_env env, void *nativeObject, void *hint) {}, nullptr, nullptr… in JsConstructor() argument