/base/msdp/device_status/frameworks/js/napi/interaction/drag/src/ |
H A D | js_drag_context.cpp | 74 JsDragContext *jsContext = nullptr; in CreateInstance() local 75 CHKRP(napi_unwrap(env, jsInstance, reinterpret_cast<void**>(&jsContext)), UNWRAP); in CreateInstance() 76 CHKPP(jsContext); in CreateInstance() 77 CHKRP(napi_create_reference(env, jsInstance, 1, &(jsContext->contextRef_)), CREATE_REFERENCE); in CreateInstance() 80 status = napi_reference_ref(env, jsContext->contextRef_, &refCount); in CreateInstance() 83 napi_delete_reference(env, jsContext->contextRef_); in CreateInstance() 96 JsDragContext *jsContext = new (std::nothrow) JsDragContext(); in JsConstructor() local 97 CHKPP(jsContext); in JsConstructor() 98 napi_status status = napi_wrap(env, thisVar, jsContext, [](napi_env env, void *data, void *hin) { in JsConstructor() 104 delete jsContext; in JsConstructor() [all...] |
/base/customization/enterprise_device_management/framework/extension/src/ |
H A D | js_enterprise_admin_extension_context.cpp | 46 std::unique_ptr<JsEnterpriseAdminExtensionContext> jsContext = in CreateJsEnterpriseAdminExtensionContext() local 48 napi_wrap(env, objValue, jsContext.release(), JsEnterpriseAdminExtensionContext::Finalizer, nullptr, nullptr); in CreateJsEnterpriseAdminExtensionContext()
|
/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/ |
H A D | js_cooperate_context.cpp | 285 JsCooperateContext *jsContext = nullptr;
in CreateInstance() local 286 CHKRP(napi_unwrap(env, jsInstance, reinterpret_cast<void**>(&jsContext)), UNWRAP);
in CreateInstance() 287 CHKPP(jsContext);
in CreateInstance() 288 CHKRP(napi_create_reference(env, jsInstance, ONE_PARAM, &(jsContext->contextRef_)), CREATE_REFERENCE);
in CreateInstance() 291 status = napi_reference_ref(env, jsContext->contextRef_, &refCount);
in CreateInstance() 294 napi_delete_reference(env, jsContext->contextRef_);
in CreateInstance() 307 JsCooperateContext *jsContext = new (std::nothrow) JsCooperateContext();
in JsConstructor() local 308 CHKPP(jsContext);
in JsConstructor() 309 napi_status status = napi_wrap(env, thisVar, jsContext, [](napi_env env, void *data, void *hin) {
in JsConstructor() 316 delete jsContext;
in JsConstructor() [all...] |
/base/location/frameworks/native/fence_extension_ability/src/ |
H A D | js_fence_extension_context.cpp | 44 std::unique_ptr<JsFenceExtensionContext> jsContext = std::make_unique<JsFenceExtensionContext>(context); in CreateJsFenceExtensionContext() local 46 ::napi_wrap(env, objValue, jsContext.release(), JsFenceExtensionContext::Finalizer, nullptr, nullptr); in CreateJsFenceExtensionContext()
|
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/ |
H A D | js_coordination_context.cpp | 491 JsCoordinationContext *jsContext = nullptr;
in CreateInstance() local 492 CHKRP(napi_unwrap(env, jsInstance, reinterpret_cast<void**>(&jsContext)), UNWRAP);
in CreateInstance() 493 CHKPP(jsContext);
in CreateInstance() 494 CHKRP(napi_create_reference(env, jsInstance, 1, &(jsContext->contextRef_)), CREATE_REFERENCE);
in CreateInstance() 497 status = napi_reference_ref(env, jsContext->contextRef_, &refCount);
in CreateInstance() 500 napi_delete_reference(env, jsContext->contextRef_);
in CreateInstance() 513 JsCoordinationContext *jsContext = new (std::nothrow) JsCoordinationContext();
in JsConstructor() local 514 CHKPP(jsContext);
in JsConstructor() 515 napi_status status = napi_wrap(env, thisVar, jsContext, [](napi_env env, void *data, void *hin) {
in JsConstructor() 521 delete jsContext;
in JsConstructor() [all...] |
/base/notification/common_event_service/frameworks/extension/src/ |
H A D | js_static_subscriber_extension_context.cpp | 124 std::unique_ptr<JsStaticSubscriberExtensionContext> jsContext = in CreateJsStaticSubscriberExtensionContext() local 126 napi_wrap(env, objValue, jsContext.release(), JsStaticSubscriberExtensionContext::Finalizer, nullptr, nullptr); in CreateJsStaticSubscriberExtensionContext()
|
/base/inputmethod/imf/frameworks/kits/extension/src/ |
H A D | js_inputmethod_extension_context.cpp | 458 std::unique_ptr<JsInputMethodExtensionContext> jsContext = std::make_unique<JsInputMethodExtensionContext>(context); in CreateJsInputMethodExtensionContext() local 459 napi_wrap(env, objValue, jsContext.release(), JsInputMethodExtensionContext::Finalizer, nullptr, nullptr); in CreateJsInputMethodExtensionContext()
|
/base/print/print_fwk/frameworks/kits/extension/src/ |
H A D | js_print_extension_context.cpp | 478 std::unique_ptr<JsPrintExtensionContext> jsContext = std::make_unique<JsPrintExtensionContext>(context); in CreateJsPrintExtensionContext() local 479 napi_wrap(engine, object, jsContext.release(), JsPrintExtensionContext::Finalizer, nullptr, nullptr); in CreateJsPrintExtensionContext()
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
H A D | js_wallpaper_extension_context.cpp | 461 std::unique_ptr<JsWallpaperExtensionContext> jsContext = std::make_unique<JsWallpaperExtensionContext>(context); in CreateJsWallpaperExtensionContext() local 462 napi_wrap(env, objValue, jsContext.release(), JsWallpaperExtensionContext::Finalizer, nullptr, nullptr); in CreateJsWallpaperExtensionContext()
|