Home
last modified time | relevance | path

Searched refs:AsyncWork (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/async/
H A Djs_async_work.h44 struct AsyncWork : public MemoryHeap { struct
48 AsyncWork() : workHandler(nullptr), handler(nullptr), data(nullptr) {} in AsyncWork() argument
49 AsyncWork(const AsyncWork &) = delete;
50 AsyncWork &operator=(const AsyncWork &) = delete; argument
51 AsyncWork(AsyncWork &&) = delete;
52 AsyncWork &operator=(AsyncWork &&) = delete; argument
113 static void ExecuteAsyncWork(AsyncWork *&asyncWork, int8_t statusCode = ERR_OK);
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/native_engine/async/test/unittest/common/
H A Djs_async_work_tdd_test.cpp91 AsyncWork *asyncWork = new AsyncWork(); in JsAsyncWorkTest003()
115 AsyncWork *asyncWork = nullptr; in JsAsyncWorkTest004()
131 AsyncWork *asyncWork = new AsyncWork(); in JsAsyncWorkTest005()
/ohos5.0/foundation/ai/intelligent_voice_framework/frameworks/js/napi/
H A Denroll_intell_voice_engine_napi.cpp241 return NapiAsync::AsyncWork(env, context, "GetSupportedRegions", execute); in GetSupportedRegions()
296 return NapiAsync::AsyncWork(env, context, "Init", execute, CompleteCallback); in Init()
341 return NapiAsync::AsyncWork(env, context, "Start", execute, CompleteCallback); in EnrollForResult()
375 return NapiAsync::AsyncWork(env, context, "Stop", execute); in Stop()
419 return NapiAsync::AsyncWork(env, context, "SetParameter", execute); in SetParameter()
442 return NapiAsync::AsyncWork(env, context, "GetParameter", execute); in GetParameter()
479 return NapiAsync::AsyncWork(env, context, "SetSensibility", execute); in SetSensibility()
523 return NapiAsync::AsyncWork(env, context, "SetWakeupHapInfo", execute); in SetWakeupHapInfo()
559 return NapiAsync::AsyncWork(env, context, "Commit", execute, CompleteCallback); in Commit()
616 return NapiAsync::AsyncWork(env, context, "Evaluate", execute); in EvaluateForResult()
[all …]
H A Dwakeup_intell_voice_engine_napi.cpp216 return NapiAsync::AsyncWork(env, context, "CreateWakeupIntelligentVoiceEngine", execute); in CreateWakeupIntelligentVoiceEngine()
239 return NapiAsync::AsyncWork(env, context, "GetSupportedRegions", execute); in GetSupportedRegions()
281 return NapiAsync::AsyncWork(env, context, "SetParameter", execute); in SetParameter()
304 return NapiAsync::AsyncWork(env, context, "GetParameter", execute); in GetParameter()
341 return NapiAsync::AsyncWork(env, context, "SetSensibility", execute); in SetSensibility()
385 return NapiAsync::AsyncWork(env, context, "SetWakeupHapInfo", execute); in SetWakeupHapInfo()
411 return NapiAsync::AsyncWork(env, context, "Release", execute); in Release()
619 return NapiAsync::AsyncWork(env, context, "StartCapturer", execute); in StartCapturer()
667 return NapiAsync::AsyncWork(env, context, "Read", execute); in Read()
696 return NapiAsync::AsyncWork(env, context, "StopCapturer", execute); in StopCapturer()
[all …]
H A Dintell_voice_napi_queue.h52 …static napi_value AsyncWork(napi_env env, std::shared_ptr<AsyncContext> context, const std::string…
54 …static napi_value AsyncWork(napi_env env, std::shared_ptr<AsyncContext> context, const std::string…
H A Dwakeup_manager_napi.cpp243 return NapiAsync::AsyncWork(env, context, "SetParameter", execute); in SetParameter()
294 return NapiAsync::AsyncWork(env, context, "GetParameter", execute); in GetParameter()
337 return NapiAsync::AsyncWork(env, context, "GetUploadFiles", execute); in GetUploadFiles()
421 return NapiAsync::AsyncWork(env, context, "GetWakeupSourceFiles", execute); in GetWakeupSourceFiles()
592 return NapiAsync::AsyncWork(env, context, "EnrollWithWakeupFilesForResult", execute, in EnrollWithWakeupFilesForResult()
624 return NapiAsync::AsyncWork(env, context, "ClearUserData", execute); in ClearUserData()
H A Dintell_voice_napi_queue.cpp77 napi_value NapiAsync::AsyncWork(napi_env env, shared_ptr<AsyncContext> context, const string &name, in AsyncWork() function in OHOS::IntellVoiceNapi::NapiAsync
109 napi_value NapiAsync::AsyncWork(napi_env env, shared_ptr<AsyncContext> context, const string &name, in AsyncWork() function in OHOS::IntellVoiceNapi::NapiAsync
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/native_engine/async/
H A Djs_async_work.cpp104 AsyncWork* asyncWork = new AsyncWork(); in DispatchAsyncWorkInner()
123 void JsAsyncWork::ExecuteAsyncWork(AsyncWork *&asyncWork, int8_t statusCode) in ExecuteAsyncWork()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-asynchronous-task.md34 static napi_value AsyncWork(napi_env env, napi_callback_info info)
95 { "asyncWork", nullptr, AsyncWork, nullptr, nullptr, nullptr, napi_default, nullptr }
126 napi_value AsyncWork(napi_env env, napi_callback_info info)
187 { "asyncWork", nullptr, AsyncWork, nullptr, nullptr, nullptr, napi_default, nullptr }
H A Duse-napi-about-cleanuphook.md176 static void AsyncWork(uv_async_s *async)
194 uv_async_init(uvLoop, &data->asyncUv, AsyncWork);
198 // 发送异步信号触发AsyncWork函数执行清理工作
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
H A Djs_cloud_share.cpp101 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in AllocResourceAndShare()
152 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Share()
202 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Unshare()
246 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Exit()
298 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in ChangePrivilege()
342 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Query()
387 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in QueryByInvitation()
439 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in ConfirmInvitation()
491 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in ChangeConfirmation()
H A Djs_config.cpp91 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in EnableCloud()
135 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in DisableCloud()
193 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in ChangeAppCloudSwitch()
245 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Clean()
318 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in NotifyDataChange()
378 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in QueryStatistics()
422 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in SetGlobalCloudStrategy()
510 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in QueryLastSyncInfo()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Djs_single_kv_store.cpp103 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Get()
190 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetEntries()
247 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetResultSet()
283 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in CloseResultSet()
321 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetResultSize()
356 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in RemoveDeviceData()
427 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in SetSyncParam()
455 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetSecurityLevel()
H A Djs_kv_store.cpp153 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Put()
179 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), [ctxt]() { in Delete()
270 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in PutBatch()
306 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in DeleteBatch()
328 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in StartTransaction()
350 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Commit()
372 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Rollback()
403 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in EnableSync()
437 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in SetSyncRange()
H A Djs_device_kv_store.cpp118 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Get()
235 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetEntries()
297 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetResultSet()
333 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in CloseResultSet()
375 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetResultSize()
410 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in RemoveDeviceData()
H A Djs_kv_manager.cpp85 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), noExecute, output); in CreateKVManager()
160 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetKVStore()
201 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in CloseKVStore()
239 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in DeleteKVStore()
276 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetAllKVStoreId()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_single_kv_store.cpp208 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Put()
250 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), [ctxt]() { in Delete()
364 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in PutBatch()
403 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in DeleteBatch()
424 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in StartTransaction()
446 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Commit()
468 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Rollback()
502 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in EnableSync()
540 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in SetSyncRange()
576 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in Backup()
[all …]
H A Djs_device_kv_store.cpp125 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in Get()
215 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetEntries()
270 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetResultSet()
309 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in GetResultSize()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/jsthread/
H A Djs_thread.cpp137 AsyncWork *work = reinterpret_cast<AsyncWork *>(innerMsg->data); in HandleEventLoop()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-asynchronous-task.md34 static napi_value AsyncWork(napi_env env, napi_callback_info info)
95 { "asyncWork", nullptr, AsyncWork, nullptr, nullptr, nullptr, napi_default, nullptr }
126 napi_value AsyncWork(napi_env env, napi_callback_info info)
187 { "asyncWork", nullptr, AsyncWork, nullptr, nullptr, nullptr, napi_default, nullptr }
/ohos5.0/base/powermgr/power_manager/frameworks/napi/runninglock/
H A Drunninglock_napi.cpp151 AsyncWork( in CreateAsyncCallback()
186 AsyncWork( in CreatePromise()
209 void RunningLockNapi::AsyncWork(napi_env& env, std::unique_ptr<AsyncCallbackInfo>& asyncInfo, in AsyncWork() function in OHOS::PowerMgr::RunningLockNapi
H A Drunninglock_napi.h43 …static void AsyncWork(napi_env& env, std::unique_ptr<AsyncCallbackInfo>& asyncInfo, const std::str…
/ohos5.0/foundation/distributeddatamgr/udmf/framework/jskitsimpl/data/
H A Dunified_data_channel_napi.cpp104 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in InsertData()
138 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute); in UpdateData()
183 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in QueryData()
230 return NapiQueue::AsyncWork(env, ctxt, std::string(__FUNCTION__), execute, output); in DeleteData()
/ohos5.0/base/powermgr/power_manager/frameworks/napi/power/
H A Dpower_napi.cpp240 AsyncWork( in SetPowerModeCallback()
271 AsyncWork( in SetPowerModePromise()
295 void PowerNapi::AsyncWork(napi_env& env, std::unique_ptr<AsyncCallbackInfo>& asyncInfo, const std::… in AsyncWork() function in OHOS::PowerMgr::PowerNapi
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/context/
H A Dslite_ace_ability.cpp80 auto* work = reinterpret_cast<AsyncWork *>(innerMsg.data); in HandleExtraMessage()

12