Home
last modified time | relevance | path

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

123

/ohos5.0/commonlibrary/ets_utils/js_sys_module/console/test/
H A Dtest_console.cpp121 napi_create_function(env, funcName.c_str(), funcName.size(),
128 napi_create_function(env, funcName.c_str(), funcName.size(),
135 napi_create_function(env, funcName.c_str(), funcName.size(),
142 napi_create_function(env, funcName.c_str(), funcName.size(),
149 napi_create_function(env, funcName.c_str(), funcName.size(),
173 napi_create_function(env, funcName.c_str(), funcName.size(),
197 napi_create_function(env, funcName.c_str(), funcName.size(),
221 napi_create_function(env, funcName.c_str(), funcName.size(),
244 napi_create_function(env, funcName.c_str(), funcName.size(),
268 napi_create_function(env, funcName.c_str(), funcName.size(),
[all …]
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/worker/test/
H A Dtest_worker.cpp476 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
526 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
561 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
617 napi_create_function(env, funcName.c_str(), funcName.size(),
649 napi_create_function(workerEnv, funcName.c_str(), funcName.size(),
689 napi_create_function(workerEnv, funcName.c_str(), funcName.size(),
728 napi_create_function(workerEnv, funcName.c_str(), funcName.size(),
765 napi_create_function(workerEnv, funcName.c_str(), funcName.size(),
860 napi_create_function(env, funcName.c_str(), funcName.size(),
887 napi_create_function(env, funcName.c_str(), funcName.size(),
[all …]
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/test/
H A Dtest_taskpool.cpp48napi_create_function(env, funcName.c_str(), funcName.size(), Task::TaskConstructor, nullptr, &cb); in GeneratorTask()
1254 napi_create_function(env, func.c_str(), func.size(), TaskGroup::AddTask, nullptr, &cb);
1292 napi_create_function(env, func.c_str(), func.size(), TaskGroup::AddTask, nullptr, &cb);
1312 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &thisValue);
2090 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funValue);
2134 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funValue);
2371 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
2699 napi_create_function(env, func.c_str(), func.size(), TaskGroup::AddTask, nullptr, &cb);
3809 napi_create_function(env, funcName.c_str(), funcName.size(), Task::IsDone, nullptr, &cb);
3826 napi_create_function(env, funcName.c_str(), funcName.size(), Task::IsDone, nullptr, &cb);
[all …]
H A Dtest.cpp88napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::IsConcurrent, nullptr, &cb); in IsConcurrent()
98napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::GetTaskPoolInfo, nullptr, &… in GetTaskPoolInfo()
108napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::TerminateTask, nullptr, &cb… in TerminateTask()
118 napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::Execute, nullptr, &cb); in Execute()
128napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::ExecuteDelayed, nullptr, &c… in ExecuteDelayed()
138 napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::Cancel, nullptr, &cb); in Cancel()
160napi_create_function(env, funcName.c_str(), funcName.size(), TaskPool::ExecutePeriodically, nullpt… in ExecutePeriodically()
/ohos5.0/commonlibrary/ets_utils/js_sys_module/timer/test/
H A Dtest_timer.cpp120napi_create_function(env, "callback", NAPI_AUTO_LENGTH, TimerCallback, nullptr, &nativeMessage1);
145napi_create_function(env, "callback", NAPI_AUTO_LENGTH, TimerCallback, nullptr, &nativeMessage1);
162napi_create_function(env, "callback", NAPI_AUTO_LENGTH, TimerCallback, nullptr, &nativeMessage0);
241napi_create_function(env, "callback", NAPI_AUTO_LENGTH, TimerCallback, nullptr, &nativeMessage2);
283napi_create_function(env, "callback", NAPI_AUTO_LENGTH, TimerCallback, nullptr, &nativeMessage1);
304napi_create_function(env, "callback", NAPI_AUTO_LENGTH, TimerCallback, nullptr, &nativeMessage1);
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-function.md17 | napi_create_function | 当需要将C/C++函数创建一个ArkTS函数时,可以使用此接口。 |
21 …de-API实现跨语言交互开发流程](use-napi-process.md),本文仅对接口对应C++及ArkTS相关代码进行展示。napi_create_function方法除外,具体使用见示例。
174 ## napi_create_function section
201 napi_create_function(env, nullptr, 0, CalculateArea, nullptr, &fn);
H A Duse-napi-event-loop.md62napi_create_function(env, "resolvedCallback", NAPI_AUTO_LENGTH, ResolvedCallback, nullptr, &resolv…
63napi_create_function(env, "rejectedCallback", NAPI_AUTO_LENGTH, RejectedCallback, nullptr, &reject…
H A Duse-napi-thread-safety.md113 napi_create_function(env, "resolvedCallback", NAPI_AUTO_LENGTH, ResolvedCallback, data,
115 napi_create_function(env, "rejectedCallback", NAPI_AUTO_LENGTH, RejectedCallback, data,
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-function.md17 | napi_create_function | Creates an ArkTS function based on a C/C++ function.|
21 …only the C++ and ArkTS code related to function invocation. The **napi_create_function** API is di…
175 ## napi_create_function section
177 Use **napi_create_function** to create an ArkTS function object in native code, which allows callin…
202 napi_create_function(env, nullptr, 0, CalculateArea, nullptr, &fn);
H A Duse-napi-event-loop.md63napi_create_function(env, "resolvedCallback", NAPI_AUTO_LENGTH, ResolvedCallback, nullptr, &resolv…
64napi_create_function(env, "rejectedCallback", NAPI_AUTO_LENGTH, RejectedCallback, nullptr, &reject…
H A Duse-napi-thread-safety.md109 napi_create_function(env, "resolvedCallback", NAPI_AUTO_LENGTH, ResolvedCallback, data,
111 napi_create_function(env, "rejectedCallback", NAPI_AUTO_LENGTH, RejectedCallback, data,
/ohos5.0/foundation/filemanagement/user_file_service/test/unittest/mock/
H A Dassistant.h59 …virtual napi_status napi_create_function(napi_env, const char*, size_t, napi_callback, void*, napi…
94 …MOCK_METHOD6(napi_create_function, napi_status(napi_env, const char*, size_t, napi_callback, void*…
H A Djs_native_api_mock.cpp131 napi_status napi_create_function(napi_env env, const char* utf8name, size_t length, napi_callback c… in napi_create_function() function
134 …return OHOS::FileAccessFwk::Assistant::ins_->napi_create_function(env, utf8name, length, cb, data,… in napi_create_function()
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/napi/include/
H A Dnapi_mock.h60 …virtual napi_status napi_create_function(napi_env, const char*, size_t, napi_callback, void*, napi…
97 …MOCK_METHOD6(napi_create_function, napi_status(napi_env, const char*, size_t, napi_callback, void*…
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/test/
H A Dtest_concurrent.cpp138 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &value);
179 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
248 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
290 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
310 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcValue);
721 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH, func, nullptr, &funcAttribute);
766 napi_create_function(env, "testFunc", NAPI_AUTO_LENGTH,
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/
H A Ddrag_preview.h158napi_create_function(env, funName, NAPI_AUTO_LENGTH, SetForegroundColor, nullptr, &funcValue); in NapiSerializer()
162 napi_create_function(env, funName, NAPI_AUTO_LENGTH, Animate, nullptr, &funcValue); in NapiSerializer()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app_startup/
H A Djs_startup_task_executor.cpp132 napi_create_function(env, TMP_NAPI_ANONYMOUS_FUNC, strlen(TMP_NAPI_ANONYMOUS_FUNC), in HandleReturnVal()
140 napi_create_function(env, TMP_NAPI_ANONYMOUS_FUNC, strlen(TMP_NAPI_ANONYMOUS_FUNC), in HandleReturnVal()
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/test/
H A Dtest_xml.cpp1143 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1187 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1227 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1271 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1311 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1398 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1438 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1525 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
1780 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &val);
2770 napi_create_function(env, cbName.c_str(), cbName.size(), Method, nullptr, &value3);
[all …]
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/napi/src/
H A Dnapi_mock.cpp146 napi_status napi_create_function(napi_env env, const char* utf8name, size_t length, napi_callback c… in napi_create_function() function
149 …return OHOS::FileManagement::Backup::Napi::napi->napi_create_function(env, utf8name, length, cb, d… in napi_create_function()
/ohos5.0/base/startup/init/interfaces/kits/syscap_ts/src/
H A Dsyscap_ts.cpp30 napi_create_function(env, fullName.c_str(), fullName.length(), func, nullptr, &result); in BindNativeFunction()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/
H A Djs_uv_queue.cpp318 napi_create_function(env_, RESOLVED, RESOLVED_SIZE, Resolved, object, &argv[0]); in BindPromise()
319 napi_create_function(env_, REJECTED, REJECTED_SIZE, Rejected, object, &argv[1]); in BindPromise()
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dext_backup_js.cpp253napi_create_function(env, "promiseCatchCallback", strlen("promiseCatchCallback"), PromiseCatchCall… in CallCatchPromise()
279napi_create_function(env, "promiseCallback", strlen("promiseCallback"), PromiseCallback, callbackI… in CallPromise()
309napi_create_function(env, "promiseCatchCallbackEx", strlen("promiseCatchCallbackEx"), PromiseCatch… in CallCatchPromiseEx()
335napi_create_function(env, "promiseCallbackEx", strlen("promiseCallbackEx"), PromiseCallbackEx, cal… in CallPromiseEx()
366napi_create_function(env, "promiseCallbackEx", strlen("promiseCallbackEx"), PromiseCallbackEx, cal… in CallPromiseEx()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/inspector/
H A Djs_inspector.cpp185 napi_create_function(env, funName, NAPI_AUTO_LENGTH, On, nullptr, &funcValue); in FunctionOn()
214 napi_create_function(env, funName, NAPI_AUTO_LENGTH, Off, nullptr, &funcValue); in FunctionOff()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/
H A Djs_color_space_utils.cpp39 … status = napi_create_function(env, fullName.c_str(), fullName.size(), func, nullptr, &funcValue); in BindNativeFunction()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/mediaquery/
H A Djs_media_query.cpp270 napi_create_function(env, funName, NAPI_AUTO_LENGTH, On, nullptr, &funcValue); in NapiSerializer()
274 napi_create_function(env, funName, NAPI_AUTO_LENGTH, Off, nullptr, &funcValue); in NapiSerializer()

123