/base/inputmethod/imf/test/unittest/cpp_test/src/ |
D | js_util_test.cpp | 34 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/ |
D | napi_util.h | 54 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/ |
D | i18n_normalizer_addon.cpp | 40 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()
|
D | system_locale_manager_addon.cpp | 34 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()
|
D | intl_addon.cpp | 37 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()
|
D | i18n_addon.cpp | 95 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/ |
D | i18n_normalizer_addon.h | 31 static void Destructor(napi_env env, void *nativeObject, void *hint);
|
D | system_locale_manager_addon.h | 29 static void Destructor(napi_env env, void *nativeObject, void *hint);
|
D | intl_addon.h | 60 static void Destructor(napi_env env, void *nativeObject, void *finalize_hint);
|
D | i18n_addon.h | 44 static void Destructor(napi_env env, void *nativeObject, void *finalize_hint);
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_account_capability_scheduler.cpp | 787 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/ |
D | update_module.cpp | 140 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/ |
D | resource_manager_addon.h | 41 static void Destructor(napi_env env, void *nativeObject, void *finalize_hint);
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_addon.cpp | 103 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/ |
D | js_keyboard_delegate_setting.cpp | 128 …env, thisVar, delegate.get(), [](napi_env env, void *nativeObject, void *hint) {}, nullptr, nullpt… in JsConstructor() argument
|
D | js_input_method_engine_setting.cpp | 217 …env, thisVar, setting.get(), [](napi_env env, void *nativeObject, void *hint) {}, nullptr, nullptr… in JsConstructor() argument
|