/ohos5.0/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/async/ |
H A D | js_async_work.h | 44 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 D | js_async_work_tdd_test.cpp | 91 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 D | enroll_intell_voice_engine_napi.cpp | 241 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 D | wakeup_intell_voice_engine_napi.cpp | 216 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 D | intell_voice_napi_queue.h | 52 …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 D | wakeup_manager_napi.cpp | 243 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 D | intell_voice_napi_queue.cpp | 77 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 D | js_async_work.cpp | 104 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 D | use-napi-asynchronous-task.md | 34 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 D | use-napi-about-cleanuphook.md | 176 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 D | js_cloud_share.cpp | 101 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 D | js_config.cpp | 91 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 D | js_single_kv_store.cpp | 103 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 D | js_kv_store.cpp | 153 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 D | js_device_kv_store.cpp | 118 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 D | js_kv_manager.cpp | 85 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 D | js_single_kv_store.cpp | 208 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 D | js_device_kv_store.cpp | 125 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 D | js_thread.cpp | 137 AsyncWork *work = reinterpret_cast<AsyncWork *>(innerMsg->data); in HandleEventLoop()
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-asynchronous-task.md | 34 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 D | runninglock_napi.cpp | 151 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 D | runninglock_napi.h | 43 …static void AsyncWork(napi_env& env, std::unique_ptr<AsyncCallbackInfo>& asyncInfo, const std::str…
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/jskitsimpl/data/ |
H A D | unified_data_channel_napi.cpp | 104 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 D | power_napi.cpp | 240 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 D | slite_ace_ability.cpp | 80 auto* work = reinterpret_cast<AsyncWork *>(innerMsg.data); in HandleExtraMessage()
|