Home
last modified time | relevance | path

Searched refs:asyncCallbackinfo (Results 1 – 2 of 2) sorted by relevance

/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_template.cpp32 AsyncCallbackInfoTemplate *asyncCallbackinfo = new (std::nothrow) in NapiIsSupportTemplate()
34 if (!asyncCallbackinfo) { in NapiIsSupportTemplate()
38 Common::PaddingCallbackPromiseInfo(env, params.callback, asyncCallbackinfo->info, promise); in NapiIsSupportTemplate()
48 … AsyncCallbackInfoTemplate *asyncCallbackinfo = static_cast<AsyncCallbackInfoTemplate *>(data); in NapiIsSupportTemplate() local
50 if (asyncCallbackinfo) { in NapiIsSupportTemplate()
51 asyncCallbackinfo->info.errorCode = NotificationHelper::IsSupportTemplate( in NapiIsSupportTemplate()
52 asyncCallbackinfo->params.templateName, asyncCallbackinfo->params.support); in NapiIsSupportTemplate()
57 … AsyncCallbackInfoTemplate *asyncCallbackinfo = static_cast<AsyncCallbackInfoTemplate *>(data); in NapiIsSupportTemplate() local
58 if (asyncCallbackinfo) { in NapiIsSupportTemplate()
60 napi_get_boolean(env, asyncCallbackinfo->params.support, &result); in NapiIsSupportTemplate()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dans_template.cpp79 AsyncCallbackInfoTemplate *asyncCallbackinfo = new (std::nothrow) in IsSupportTemplate()
81 if (!asyncCallbackinfo) { in IsSupportTemplate()
85 Common::PaddingCallbackPromiseInfo(env, params.callback, asyncCallbackinfo->info, promise); in IsSupportTemplate()
95 … AsyncCallbackInfoTemplate *asyncCallbackinfo = static_cast<AsyncCallbackInfoTemplate *>(data); in IsSupportTemplate() local
97 if (asyncCallbackinfo) { in IsSupportTemplate()
98 asyncCallbackinfo->info.errorCode = NotificationHelper::IsSupportTemplate( in IsSupportTemplate()
99 asyncCallbackinfo->params.templateName, asyncCallbackinfo->params.support); in IsSupportTemplate()
104 … AsyncCallbackInfoTemplate *asyncCallbackinfo = static_cast<AsyncCallbackInfoTemplate *>(data); in IsSupportTemplate() local
105 if (asyncCallbackinfo) { in IsSupportTemplate()
107 napi_get_boolean(env, asyncCallbackinfo->params.support, &result); in IsSupportTemplate()
[all …]