Home
last modified time | relevance | path

Searched refs:jsContext (Results 1 - 9 of 9) sorted by relevance

/base/msdp/device_status/frameworks/js/napi/interaction/drag/src/
H A Djs_drag_context.cpp74 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 Djs_enterprise_admin_extension_context.cpp46 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 Djs_cooperate_context.cpp285 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 Djs_fence_extension_context.cpp44 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 Djs_coordination_context.cpp491 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 Djs_static_subscriber_extension_context.cpp124 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 Djs_inputmethod_extension_context.cpp458 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 Djs_print_extension_context.cpp478 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 Djs_wallpaper_extension_context.cpp461 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()

Completed in 12 milliseconds