Home
last modified time | relevance | path

Searched refs:engine (Results 1 – 25 of 71) sorted by relevance

123

/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_push.cpp33 void NapiPush::Finalizer(NativeEngine *engine, void *data, void *hint) in Finalizer() argument
39 NativeValue *NapiPush::RegisterPushCallback(NativeEngine *engine, NativeCallbackInfo *info) in RegisterPushCallback() argument
41 NapiPush *me = CheckParamsAndGetThis<NapiPush>(engine, info); in RegisterPushCallback()
42 return (me != nullptr) ? me->OnRegisterPushCallback(*engine, *info) : nullptr; in RegisterPushCallback()
45 NativeValue *NapiPush::UnregisterPushCallback(NativeEngine *engine, NativeCallbackInfo *info) in UnregisterPushCallback() argument
47 NapiPush *me = CheckParamsAndGetThis<NapiPush>(engine, info); in UnregisterPushCallback()
48 return (me != nullptr) ? me->OnUnregisterPushCallback(*engine, *info) : nullptr; in UnregisterPushCallback()
51 NativeValue *NapiPush::OnRegisterPushCallback(NativeEngine &engine, const NativeCallbackInfo &info) in OnRegisterPushCallback() argument
57 ThrowTooFewParametersError(engine); in OnRegisterPushCallback()
58 return engine.CreateUndefined(); in OnRegisterPushCallback()
[all …]
Dinit_module.cpp40 static NativeValue *NapiPushInit(NativeEngine *engine, NativeValue *exports) in NapiPushInit() argument
43 if (engine == nullptr || exports == nullptr) { in NapiPushInit()
58 …OHOS::AbilityRuntime::BindNativeFunction(*engine, *object, "on", moduleName, NapiPush::RegisterPus… in NapiPushInit()
59 …OHOS::AbilityRuntime::BindNativeFunction(*engine, *object, "off", moduleName, NapiPush::Unregister… in NapiPushInit()
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_extension_context.cpp45 static void Finalizer(NativeEngine *engine, noneType data, noneType hint) in Finalizer() argument
51 static NativeValue *StartAbility(NativeEngine *engine, NativeCallbackInfo *info) in StartAbility() argument
53 JsPrintExtensionContext* me = CheckParamsAndGetThis<JsPrintExtensionContext>(engine, info); in StartAbility()
54 return (me != nullptr) ? me->OnStartAbility(*engine, *info) : nullptr; in StartAbility()
57 static NativeValue *StartAbilityWithAccount(NativeEngine *engine, NativeCallbackInfo *info) in StartAbilityWithAccount() argument
59 JsPrintExtensionContext* me = CheckParamsAndGetThis<JsPrintExtensionContext>(engine, info); in StartAbilityWithAccount()
60 return (me != nullptr) ? me->OnStartAbilityWithAccount(*engine, *info) : nullptr; in StartAbilityWithAccount()
63 static NativeValue *ConnectAbilityWithAccount(NativeEngine *engine, NativeCallbackInfo *info) in ConnectAbilityWithAccount() argument
65 JsPrintExtensionContext* me = CheckParamsAndGetThis<JsPrintExtensionContext>(engine, info); in ConnectAbilityWithAccount()
66 return (me != nullptr) ? me->OnConnectAbilityWithAccount(*engine, *info) : nullptr; in ConnectAbilityWithAccount()
[all …]
/base/inputmethod/imf/frameworks/kits/extension/src/
Djs_inputmethod_extension_context.cpp54 static void Finalizer(NativeEngine *engine, void *data, void *hint) in Finalizer() argument
60 static NativeValue *StartAbility(NativeEngine *engine, NativeCallbackInfo *info) in StartAbility() argument
62 …putMethodExtensionContext *me = CheckParamsAndGetThis<JsInputMethodExtensionContext>(engine, info); in StartAbility()
63 return (me != nullptr) ? me->OnStartAbility(*engine, *info) : nullptr; in StartAbility()
66 static NativeValue *StartAbilityWithAccount(NativeEngine *engine, NativeCallbackInfo *info) in StartAbilityWithAccount() argument
68 …putMethodExtensionContext *me = CheckParamsAndGetThis<JsInputMethodExtensionContext>(engine, info); in StartAbilityWithAccount()
69 return (me != nullptr) ? me->OnStartAbilityWithAccount(*engine, *info) : nullptr; in StartAbilityWithAccount()
72 static NativeValue *ConnectAbilityWithAccount(NativeEngine *engine, NativeCallbackInfo *info) in ConnectAbilityWithAccount() argument
74 …putMethodExtensionContext *me = CheckParamsAndGetThis<JsInputMethodExtensionContext>(engine, info); in ConnectAbilityWithAccount()
75 return (me != nullptr) ? me->OnConnectAbilityWithAccount(*engine, *info) : nullptr; in ConnectAbilityWithAccount()
[all …]
Djs_inputmethod_extension.cpp41 NativeValue *AttachInputMethodExtensionContext(NativeEngine *engine, void *value, void *) in AttachInputMethodExtensionContext() argument
53 NativeValue *object = CreateJsInputMethodExtensionContext(*engine, ptr); in AttachInputMethodExtensionContext()
54 …auto contextObj = JsRuntime::LoadSystemModuleByEngine(engine, "InputMethodExtensionContext", &obje… in AttachInputMethodExtensionContext()
57 engine, DetachCallbackFunc, AttachInputMethodExtensionContext, value, nullptr); in AttachInputMethodExtensionContext()
103 auto &engine = jsRuntime_.GetNativeEngine(); in Init() local
117 BindContext(engine, obj); in Init()
121 void JsInputMethodExtension::BindContext(NativeEngine &engine, NativeObject *obj) in BindContext() argument
130 NativeValue *contextObj = CreateJsInputMethodExtensionContext(engine, context); in BindContext()
140 &engine, DetachCallbackFunc, AttachInputMethodExtensionContext, workContext, nullptr); in BindContext()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Djs_wallpaper_extension_context.cpp53 static void Finalizer(NativeEngine *engine, void *data, void *hint) in Finalizer() argument
59 static NativeValue *StartAbility(NativeEngine *engine, NativeCallbackInfo *info) in StartAbility() argument
61 …JsWallpaperExtensionContext *me = CheckParamsAndGetThis<JsWallpaperExtensionContext>(engine, info); in StartAbility()
62 return (me != nullptr) ? me->OnStartAbility(*engine, *info) : nullptr; in StartAbility()
65 static NativeValue *StartAbilityWithAccount(NativeEngine *engine, NativeCallbackInfo *info) in StartAbilityWithAccount() argument
67 …JsWallpaperExtensionContext *me = CheckParamsAndGetThis<JsWallpaperExtensionContext>(engine, info); in StartAbilityWithAccount()
68 return (me != nullptr) ? me->OnStartAbilityWithAccount(*engine, *info) : nullptr; in StartAbilityWithAccount()
71 static NativeValue *ConnectAbilityWithAccount(NativeEngine *engine, NativeCallbackInfo *info) in ConnectAbilityWithAccount() argument
73 …JsWallpaperExtensionContext *me = CheckParamsAndGetThis<JsWallpaperExtensionContext>(engine, info); in ConnectAbilityWithAccount()
74 return (me != nullptr) ? me->OnConnectAbilityWithAccount(*engine, *info) : nullptr; in ConnectAbilityWithAccount()
[all …]
/base/notification/common_event_service/frameworks/extension/src/
Djs_static_subscriber_extension_context.cpp38 static void Finalizer(NativeEngine* engine, void* data, void* hint) in Finalizer() argument
45 static NativeValue* StartAbility(NativeEngine* engine, NativeCallbackInfo* info);
47 …NativeValue* OnStartAbility(NativeEngine& engine, NativeCallbackInfo& info, bool isStartRecent = f…
52 NativeValue* JsStaticSubscriberExtensionContext::StartAbility(NativeEngine* engine, NativeCallbackI… in StartAbility() argument
56 AbilityRuntime::CheckParamsAndGetThis<JsStaticSubscriberExtensionContext>(engine, info); in StartAbility()
57 return (me != nullptr) ? me->OnStartAbility(*engine, *info) : nullptr; in StartAbility()
60 NativeValue* JsStaticSubscriberExtensionContext::OnStartAbility(NativeEngine& engine, NativeCallbac… in OnStartAbility() argument
66 AbilityRuntime::ThrowTooFewParametersError(engine); in OnStartAbility()
67 return engine.CreateUndefined(); in OnStartAbility()
71 …AppExecFwk::UnwrapWant(reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv… in OnStartAbility()
[all …]
Djs_static_subscriber_extension.cpp38 NativeValue* AttachStaticSubscriberExtensionContext(NativeEngine* engine, void* value, void*) in AttachStaticSubscriberExtensionContext() argument
52 NativeValue* object = CreateJsStaticSubscriberExtensionContext(*engine, ptr); in AttachStaticSubscriberExtensionContext()
53 auto contextObj = AbilityRuntime::JsRuntime::LoadSystemModuleByEngine(engine, in AttachStaticSubscriberExtensionContext()
56 nObject->ConvertToNativeBindingObject(engine, in AttachStaticSubscriberExtensionContext()
106 auto& engine = jsRuntime_.GetNativeEngine(); in Init() local
127 NativeValue* contextObj = CreateJsStaticSubscriberExtensionContext(engine, context); in Init()
129 &engine, "application.StaticSubscriberExtensionContext", &contextObj, ARGC_ONE); in Init()
138 nativeObj->ConvertToNativeBindingObject(&engine, AbilityRuntime::DetachCallbackFunc, in Init()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_authorization_extension_context.cpp71 static void Finalizer(NativeEngine *engine, void *data, void *hint) in Finalizer() argument
76 static NativeValue *DisconnectAbility(NativeEngine *engine, NativeCallbackInfo *info) in DisconnectAbility() argument
78 …izationExtensionContext *me = CheckParamsAndGetThis<JsAuthorizationExtensionContext>(engine, info); in DisconnectAbility()
79 return (me != nullptr) ? me->OnDisconnectAbility(*engine, *info) : nullptr; in DisconnectAbility()
82 static NativeValue *ConnectAbility(NativeEngine *engine, NativeCallbackInfo *info) in ConnectAbility() argument
84 …izationExtensionContext *me = CheckParamsAndGetThis<JsAuthorizationExtensionContext>(engine, info); in ConnectAbility()
85 return (me != nullptr) ? me->OnConnectAbility(*engine, *info) : nullptr; in ConnectAbility()
91 …static bool CheckOnDisconnectAbilityParam(NativeEngine &engine, NativeCallbackInfo &info, int64_t … in CheckOnDisconnectAbilityParam() argument
95 …reinterpret_cast<napi_env>(&engine), reinterpret_cast<napi_value>(info.argv[INDEX_ZERO]), connectI… in CheckOnDisconnectAbilityParam()
102 static bool CheckWantParam(NativeEngine &engine, NativeValue *value, AAFwk::Want &want) in CheckWantParam() argument
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
Dnapi_push.h30 static void Finalizer(NativeEngine *engine, void *data, void *hint);
31 static NativeValue *RegisterPushCallback(NativeEngine *engine, NativeCallbackInfo *info);
32 static NativeValue *UnregisterPushCallback(NativeEngine *engine, NativeCallbackInfo *info);
35 NativeValue *OnRegisterPushCallback(NativeEngine &engine, const NativeCallbackInfo &info);
36 NativeValue *OnUnregisterPushCallback(NativeEngine &engine, const NativeCallbackInfo &info);
/base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/src/
Dxpower_event_js.cpp28 auto engine = reinterpret_cast<NativeEngine*>(env); in ReportXPowerJsStackSysEvent() local
29 return ReportXPowerJsStackSysEvent(engine, tagName, info); in ReportXPowerJsStackSysEvent()
32 int ReportXPowerJsStackSysEvent(NativeEngine *engine, const std::string &tagName, const std::string… in ReportXPowerJsStackSysEvent() argument
34 if (engine == nullptr) { in ReportXPowerJsStackSysEvent()
41 bool succ = engine->BuildJsStackTrace(stack); in ReportXPowerJsStackSysEvent()
/base/update/updateservice/
DBUILD.gn18 "interfaces/inner_api/engine:updateservicekits",
19 "services/engine:dupdate_config.json",
20 "services/engine:updater_sa.rc",
21 "services/engine:updateservice",
22 "services/engine/sa_profile:updater_sa_profile",
/base/customization/enterprise_device_management/framework/extension/src/
Djs_enterprise_admin_extension.cpp82 auto& engine = jsRuntime_.GetNativeEngine(); in JsEnterpriseAdminExtensionContextInit() local
89 NativeValue* contextObj = CreateJsEnterpriseAdminExtensionContext(engine, context); in JsEnterpriseAdminExtensionContextInit()
170 auto& engine = jsRuntime_.GetNativeEngine(); in OnBundleAdded() local
171 NativeValue* argv[] = { AbilityRuntime::CreateJsValue(engine, bundleName) }; in OnBundleAdded()
181 auto& engine = jsRuntime_.GetNativeEngine(); in OnBundleRemoved() local
182 NativeValue* argv[] = { AbilityRuntime::CreateJsValue(engine, bundleName) }; in OnBundleRemoved()
192 auto& engine = jsRuntime_.GetNativeEngine(); in OnAppStart() local
193 NativeValue* argv[] = { AbilityRuntime::CreateJsValue(engine, bundleName) }; in OnAppStart()
203 auto& engine = jsRuntime_.GetNativeEngine(); in OnAppStop() local
204 NativeValue* argv[] = { AbilityRuntime::CreateJsValue(engine, bundleName) }; in OnAppStop()
Djs_enterprise_admin_extension_context.cpp32 static void Finalizer(NativeEngine* engine, void* data, void* hint) in Finalizer() argument
42 NativeValue* CreateJsEnterpriseAdminExtensionContext(NativeEngine& engine, in CreateJsEnterpriseAdminExtensionContext() argument
45 NativeValue *objValue = AbilityRuntime::CreateJsExtensionContext(engine, context); in CreateJsEnterpriseAdminExtensionContext()
/base/hiviewdfx/hiview/test/unittest/xpower_event/
Dxpower_jsevent_test.cpp95 NativeEngine *engine = nullptr; variable
96 int ret = ReportXPowerJsStackSysEvent(engine, "XPOWER_HIVIEW_JSAPI2_TEST", "info=5,succ=true");
106 engine = reinterpret_cast<NativeEngine*>(env);
107 ret = ReportXPowerJsStackSysEvent(engine, "XPOWER_HIVIEW_JSAPI2_TEST", "info=6,succ=true");
116 ret = ReportXPowerJsStackSysEvent(engine, "XPOWER_HIVIEW_JSAPI2_TEST", "info=7,succ=true");
120 ret = ReportXPowerJsStackSysEvent(engine, "XPOWER_HIVIEW_JSAPI2_TEST");
/base/update/updateservice/interfaces/inner_api/engine/
DBUILD.gn36 "$updateengine_root_path/interfaces/inner_api/engine/update_service_kits_impl.cpp",
37 "$updateengine_root_path/interfaces/inner_api/engine/update_service_ondemand.cpp",
38 "$updateengine_root_path/interfaces/inner_api/engine/update_service_proxy.cpp",
42 "$updateengine_root_path/services/engine/src/message_parcel_helper.cpp",
43 "$updateengine_root_path/services/engine/src/update_helper.cpp",
50 "$updateengine_root_path/services/engine/include",
/base/update/updateservice/services/engine/
Dengine_sa.gni52 "$updateengine_root_path/services/engine/src/message_parcel_helper.cpp",
53 "$updateengine_root_path/services/engine/src/progress_thread.cpp",
54 "$updateengine_root_path/services/engine/src/update_helper.cpp",
55 "$updateengine_root_path/services/engine/src/update_service.cpp",
56 "$updateengine_root_path/services/engine/src/update_service_cache.cpp",
57 "$updateengine_root_path/services/engine/src/update_service_impl_firmware.cpp",
58 "$updateengine_root_path/services/engine/src/update_service_impl_manager.cpp",
59 "$updateengine_root_path/services/engine/src/update_service_local_updater.cpp",
60 "$updateengine_root_path/services/engine/src/update_service_restorer.cpp",
61 "$updateengine_root_path/services/engine/src/update_service_stub.cpp",
[all …]
/base/inputmethod/imf/frameworks/kits/extension/include/
Djs_inputmethod_extension_context.h30 NativeEngine &engine, std::shared_ptr<InputMethodExtensionContext> context);
34 explicit JSInputMethodExtensionConnection(NativeEngine &engine);
/base/theme/wallpaper_mgr/frameworks/kits/extension/include/
Djs_wallpaper_extension_context.h31 NativeValue *CreateJsWallpaperExtensionContext(NativeEngine &engine,
36 explicit JSWallpaperExtensionConnection(NativeEngine &engine);
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_authorization_extension_context.h30 NativeEngine &engine, std::shared_ptr<AuthorizationExtensionContext> context);
34 explicit JSAuthorizationExtensionConnection(NativeEngine &engine);
/base/notification/common_event_service/frameworks/extension/include/
Djs_static_subscriber_extension_context.h26 NativeValue* CreateJsStaticSubscriberExtensionContext(NativeEngine& engine,
/base/hiviewdfx/hiview/test/
DBUILD.gn96 foreach(engine, js_engines) {
97 if (engine.engine_name == "ark") {
111 "//foundation/arkui/napi/test/unittest/engine/",
116 "//foundation/arkui/napi/test/unittest/engine/test_ark.cpp",
/base/customization/enterprise_device_management/framework/extension/include/
Djs_enterprise_admin_extension_context.h28 NativeValue* CreateJsEnterpriseAdminExtensionContext(NativeEngine& engine,
/base/print/print_fwk/frameworks/kits/extension/include/
Djs_print_extension_context.h31 NativeValue *CreateJsPrintExtensionContext(NativeEngine &engine,
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/
Djs_user_auth_extension.cpp44 NativeValue *AttachUIExtensionContext(NativeEngine *engine, void *value, void *) in AttachUIExtensionContext() argument
57 NativeValue *object = JsUIExtensionContext::CreateJsUIExtensionContext(*engine, ptr); in AttachUIExtensionContext()
58 auto contextObj = JsRuntime::LoadSystemModuleByEngine(engine, "application.UIExtensionContext", in AttachUIExtensionContext()
65 …nObject->ConvertToNativeBindingObject(engine, DetachCallbackFunc, AttachUIExtensionContext, value,… in AttachUIExtensionContext()
112 auto& engine = jsRuntime_.GetNativeEngine(); in Init() local
127 BindContext(engine, obj); in Init()
133 void JsUserAuthExtension::BindContext(NativeEngine& engine, NativeObject* obj) in BindContext() argument
141 NativeValue* contextObj = JsUIExtensionContext::CreateJsUIExtensionContext(engine, context); in BindContext()
148 … shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(&engine, "application.UIExtensionContext", in BindContext()
157 nativeObj->ConvertToNativeBindingObject(&engine, DetachCallbackFunc, AttachUIExtensionContext, in BindContext()

123