Home
last modified time | relevance | path

Searched refs:work (Results 1 – 25 of 255) sorted by relevance

1234567891011

/base/web/webview/interfaces/kits/napi/webfunction/
Dwebview_web_inited_callback.cpp23 void UvWebInitedCallbackThreadWoker(uv_work_t *work, int status) in UvWebInitedCallbackThreadWoker() argument
25 if (work == nullptr) { in UvWebInitedCallbackThreadWoker()
29 WebInitedCallbackParam *data = reinterpret_cast<WebInitedCallbackParam*>(work->data); in UvWebInitedCallbackThreadWoker()
31 delete work; in UvWebInitedCallbackThreadWoker()
32 work = nullptr; in UvWebInitedCallbackThreadWoker()
40 delete work; in UvWebInitedCallbackThreadWoker()
41 work = nullptr; in UvWebInitedCallbackThreadWoker()
52 delete work; in UvWebInitedCallbackThreadWoker()
53 work = nullptr; in UvWebInitedCallbackThreadWoker()
60 uv_work_t *work = nullptr; in RunInitedCallback() local
[all …]
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_callback_v8.cpp45 void DestoryResultWork(uv_work_t *work) in DestoryResultWork() argument
47 if (work == nullptr) { in DestoryResultWork()
50 if (work->data != nullptr) { in DestoryResultWork()
51 delete (reinterpret_cast<ResultCallbackV8Holder *>(work->data)); in DestoryResultWork()
53 delete work; in DestoryResultWork()
56 void DestoryAcquireWork(uv_work_t *work) in DestoryAcquireWork() argument
58 if (work == nullptr) { in DestoryAcquireWork()
61 if (work->data != nullptr) { in DestoryAcquireWork()
62 delete (reinterpret_cast<AcquireCallbackV8Holder *>(work->data)); in DestoryAcquireWork()
64 delete work; in DestoryAcquireWork()
[all …]
Duser_auth_callback_v9.cpp45 void DestoryResultWork(uv_work_t *work) in DestoryResultWork() argument
47 if (work == nullptr) { in DestoryResultWork()
50 if (work->data != nullptr) { in DestoryResultWork()
51 delete (reinterpret_cast<ResultCallbackV9Holder *>(work->data)); in DestoryResultWork()
53 delete work; in DestoryResultWork()
56 void DestoryAcquireWork(uv_work_t *work) in DestoryAcquireWork() argument
58 if (work == nullptr) { in DestoryAcquireWork()
61 if (work->data != nullptr) { in DestoryAcquireWork()
62 delete (reinterpret_cast<AcquireCallbackV9Holder *>(work->data)); in DestoryAcquireWork()
64 delete work; in DestoryAcquireWork()
[all …]
Duser_auth_widget_callback_v10.cpp34 void DestoryWork(uv_work_t *work) in DestoryWork() argument
36 if (work == nullptr) { in DestoryWork()
39 if (work->data != nullptr) { in DestoryWork()
40 delete (reinterpret_cast<CallbackHolder *>(work->data)); in DestoryWork()
42 delete work; in DestoryWork()
45 void OnWork(uv_work_t *work, int status) in OnWork() argument
48 if (work == nullptr) { in OnWork()
52 CallbackHolder *holder = reinterpret_cast<CallbackHolder *>(work->data); in OnWork()
55 DestoryWork(work); in OnWork()
62 DestoryWork(work); in OnWork()
[all …]
Duser_auth_callback_v10.cpp36 void DestoryResultWork(uv_work_t *work) in DestoryResultWork() argument
38 if (work == nullptr) { in DestoryResultWork()
41 if (work->data != nullptr) { in DestoryResultWork()
42 delete (reinterpret_cast<ResultCallbackV10Holder *>(work->data)); in DestoryResultWork()
44 delete work; in DestoryResultWork()
47 void OnResultV10Work(uv_work_t *work, int status) in OnResultV10Work() argument
50 if (work == nullptr) { in OnResultV10Work()
54 ResultCallbackV10Holder *resultHolder = reinterpret_cast<ResultCallbackV10Holder *>(work->data); in OnResultV10Work()
57 DestoryResultWork(work); in OnResultV10Work()
64 DestoryResultWork(work); in OnResultV10Work()
[all …]
Duser_auth_callback_v6.cpp55 void DestoryWork(uv_work_t *work) in DestoryWork() argument
57 if (work == nullptr) { in DestoryWork()
60 if (work->data != nullptr) { in DestoryWork()
61 delete (reinterpret_cast<ResultCallbackV6Holder *>(work->data)); in DestoryWork()
63 delete work; in DestoryWork()
66 void OnCallbackV6Work(uv_work_t *work, int status) in OnCallbackV6Work() argument
69 if (work == nullptr) { in OnCallbackV6Work()
73 ResultCallbackV6Holder *resultHolder = reinterpret_cast<ResultCallbackV6Holder *>(work->data); in OnCallbackV6Work()
76 DestoryWork(work); in OnCallbackV6Work()
83 DestoryWork(work); in OnCallbackV6Work()
[all …]
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/
Dprint_callback.cpp48 uv_work_t *work = new (std::nothrow) uv_work_t; in ~PrintCallback() local
49 if (work == nullptr) { in ~PrintCallback()
53 work->data = reinterpret_cast<void*>(param); in ~PrintCallback()
54 uv_queue_work(loop, work, [](uv_work_t *work) {}, [](uv_work_t *work, int _status) { in ~PrintCallback() argument
56 Param *param_ = reinterpret_cast<Param*>(work->data); in ~PrintCallback()
58 delete work; in ~PrintCallback()
65 delete work; in ~PrintCallback()
72 delete work; in ~PrintCallback()
77 static bool InitUvWorkCallbackEnv(uv_work_t *work, napi_handle_scope &scope) in InitUvWorkCallbackEnv() argument
79 if (work == nullptr) { in InitUvWorkCallbackEnv()
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_hasimage_callback.cpp29 uv_work_t *work = nullptr; in OnReceiveValue() local
35 work = new (std::nothrow) uv_work_t; in OnReceiveValue()
36 if (work == nullptr) { in OnReceiveValue()
42 delete work; in OnReceiveValue()
50 work->data = reinterpret_cast<void*>(param); in OnReceiveValue()
52 …int ret = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, UvAfterWorkCb, uv_qos_user_in… in OnReceiveValue() argument
58 if (work != nullptr) { in OnReceiveValue()
59 delete work; in OnReceiveValue()
60 work = nullptr; in OnReceiveValue()
65 void WebviewHasImageCallback::UvAfterWorkCb(uv_work_t* work, int status) in UvAfterWorkCb() argument
[all …]
/base/location/interfaces/inner_api/include/
Dlocation_async_context.h45 explicit LocationAsyncContext(napi_env env, napi_async_work work = nullptr,
46 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), loc(nullptr) {} in AsyncContext() argument
58 explicit ReverseGeocodeMockAsyncContext(napi_env env, napi_async_work work = nullptr,
59 napi_deferred deferred = nullptr) : AsyncContext(env, work, deferred), enable(false) {} in AsyncContext() argument
72 …LocationMockAsyncContext(napi_env env, napi_async_work work = nullptr, napi_deferred deferred = nu…
73 : AsyncContext(env, work, deferred), timeInterval(0), enable(false) {} in AsyncContext() argument
84 …explicit CountryCodeContext(napi_env env, napi_async_work work = nullptr, napi_deferred deferred =…
85 : AsyncContext(env, work, deferred), country(nullptr) {} in AsyncContext() argument
97 …explicit LocationRequestAsyncContext(napi_env env, napi_async_work work = nullptr, napi_deferred d…
98 : AsyncContext(env, work, deferred), loc(nullptr), request(nullptr) {} in AsyncContext() argument
[all …]
/base/location/frameworks/native/source/
Dlocator_callback_host.cpp98 void LocatorCallbackHost::DoSendWork(uv_loop_s*& loop, uv_work_t*& work) in DoSendWork() argument
100 uv_queue_work(loop, work, [](uv_work_t* work) {}, [](uv_work_t* work, int status) { in DoSendWork() argument
101 if (work == nullptr) { in DoSendWork()
105 auto context = static_cast<LocationAsyncContext*>(work->data); in DoSendWork()
107 delete work; in DoSendWork()
112 delete work; in DoSendWork()
117 DELETE_SCOPE_CONTEXT_WORK(context->env, scope, context, work); in DoSendWork()
121 …PI_ERR_CLOSE_SCOPE(context->env, napi_create_object(context->env, &jsEvent), scope, context, work); in DoSendWork()
131 scope, context, work); in DoSendWork()
133 … napi_get_reference_value(context->env, context->callback[0], &handler), scope, context, work); in DoSendWork()
[all …]
Dlocation_switch_callback_host.cpp81 uv_work_t *work = new (std::nothrow) uv_work_t; in Send() local
82 if (work == nullptr) { in Send()
94 work->data = context; in Send()
95 UvQueueWork(loop, work); in Send()
99 void LocationSwitchCallbackHost::UvQueueWork(uv_loop_s* loop, uv_work_t* work) in UvQueueWork() argument
103 work, in UvQueueWork()
104 [](uv_work_t *work) {}, in UvQueueWork() argument
105 [](uv_work_t *work, int status) { in UvQueueWork() argument
108 if (work == nullptr) { in UvQueueWork()
112 context = static_cast<SwitchAsyncContext *>(work->data); in UvQueueWork()
[all …]
Dgnss_status_callback_host.cpp79 uv_work_t *work = new (std::nothrow) uv_work_t; in Send() local
80 if (work == nullptr) { in Send()
92 work->data = context; in Send()
93 UvQueueWork(loop, work); in Send()
97 void GnssStatusCallbackHost::UvQueueWork(uv_loop_s* loop, uv_work_t* work) in UvQueueWork() argument
101 work, in UvQueueWork()
102 [](uv_work_t *work) {}, in UvQueueWork() argument
103 [](uv_work_t *work, int status) { in UvQueueWork() argument
106 if (work == nullptr) { in UvQueueWork()
110 context = static_cast<GnssStatusAsyncContext *>(work->data); in UvQueueWork()
[all …]
Dcountry_code_callback_host.cpp76 uv_work_t *work = new (std::nothrow) uv_work_t; in Send() local
77 if (work == nullptr) { in Send()
89 work->data = context; in Send()
90 UvQueueWork(loop, work); in Send()
94 void CountryCodeCallbackHost::UvQueueWork(uv_loop_s* loop, uv_work_t* work) in UvQueueWork() argument
98 work, in UvQueueWork()
99 [](uv_work_t *work) {}, in UvQueueWork() argument
100 [](uv_work_t *work, int status) { in UvQueueWork() argument
103 if (work == nullptr) { in UvQueueWork()
107 context = static_cast<CountryCodeContext *>(work->data); in UvQueueWork()
[all …]
/base/telephony/sms_mms/frameworks/js/napi/src/
Ddelivery_callback.cpp63 void CompleteSmsDeliveryWork(uv_work_t *work, int status) in CompleteSmsDeliveryWork() argument
66 if (work == nullptr) { in CompleteSmsDeliveryWork()
70 …std::unique_ptr<DeliveryCallbackContext> pContext(static_cast<DeliveryCallbackContext *>(work->dat… in CompleteSmsDeliveryWork()
73 delete work; in CompleteSmsDeliveryWork()
74 work = nullptr; in CompleteSmsDeliveryWork()
85 delete work; in CompleteSmsDeliveryWork()
86 work = nullptr; in CompleteSmsDeliveryWork()
101 delete work; in CompleteSmsDeliveryWork()
102 work = nullptr; in CompleteSmsDeliveryWork()
110 uv_work_t *work = new uv_work_t; in OnSmsDeliveryResult() local
[all …]
Dsend_callback.cpp54 void CompleteSmsSendWork(uv_work_t *work, int status) in CompleteSmsSendWork() argument
57 if (work == nullptr) { in CompleteSmsSendWork()
61 std::unique_ptr<SendCallbackContext> pContext(static_cast<SendCallbackContext *>(work->data)); in CompleteSmsSendWork()
91 if (work != nullptr) { in CompleteSmsSendWork()
92 delete work; in CompleteSmsSendWork()
93 work = nullptr; in CompleteSmsSendWork()
104 uv_work_t *work = new uv_work_t; in OnSmsSendResult() local
105 if (work == nullptr) { in OnSmsSendResult()
112 delete work; in OnSmsSendResult()
113 work = nullptr; in OnSmsSendResult()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dsubscribe.cpp157 void UvQueueWorkOnCanceled(uv_work_t *work, int status) in UvQueueWorkOnCanceled() argument
161 if (work == nullptr) { in UvQueueWorkOnCanceled()
166 auto dataWorkerData = reinterpret_cast<NotificationReceiveDataWorker *>(work->data); in UvQueueWorkOnCanceled()
169 delete work; in UvQueueWorkOnCanceled()
170 work = nullptr; in UvQueueWorkOnCanceled()
191 delete work; in UvQueueWorkOnCanceled()
236 uv_work_t *work = new (std::nothrow) uv_work_t; in OnCanceled() local
237 if (work == nullptr) { in OnCanceled()
244 work->data = reinterpret_cast<void *>(dataWorker); in OnCanceled()
246 int ret = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, in OnCanceled() argument
[all …]
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/
Djs_event_target.cpp54 uv_work_s *work = new (std::nothrow) uv_work_t; in EmitJsPrepare() local
55 CHKPV(work); in EmitJsPrepare()
57 work->data = cb.GetRefPtr(); in EmitJsPrepare()
60 …result = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, CallPreparePromiseWork, uv_qos… in EmitJsPrepare() argument
62 …result = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, CallPrepareAsyncWork, uv_qos_d… in EmitJsPrepare() argument
67 JsUtil::DeletePtr<uv_work_t*>(work); in EmitJsPrepare()
82 uv_work_s *work = new (std::nothrow) uv_work_t; in EmitJsActivate() local
83 CHKPV(work); in EmitJsActivate()
85 work->data = cb.GetRefPtr(); in EmitJsActivate()
88 …result = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, CallActivatePromiseWork, uv_qo… in EmitJsActivate() argument
[all …]
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_authenticator.cpp89 ErrCode NapiAppAccountAuthenticator::InitWorkEnv(uv_loop_s **loop, uv_work_t **work, JsAuthenticato… in InitWorkEnv() argument
96 *work = new (std::nothrow) uv_work_t; in InitWorkEnv()
97 if (*work == nullptr) { in InitWorkEnv()
104 delete *work; in InitWorkEnv()
120 uv_work_t *work = nullptr; in AddAccountImplicitly() local
122 ErrCode result = InitWorkEnv(&loop, &work, &param); in AddAccountImplicitly()
131 work->data = reinterpret_cast<void *>(param); in AddAccountImplicitly()
132 …int32_t ret = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, AddAccountImplicitlyWork,… in AddAccountImplicitly() argument
135 delete work; in AddAccountImplicitly()
148 uv_work_t *work = nullptr; in Authenticate() local
[all …]
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Djs_callback_manager.cpp33 void DeleteWork(uv_work_t* work) in DeleteWork() argument
35 if (work != nullptr) { in DeleteWork()
36 delete work; in DeleteWork()
50 uv_work_t* work = new(std::nothrow) uv_work_t(); in RunCallback() local
51 if (work == nullptr) { in RunCallback()
55 work->data = reinterpret_cast<void*>(context); in RunCallback()
58 work, in RunCallback()
59 [] (uv_work_t* work) {}, in RunCallback() argument
60 [] (uv_work_t* work, int status) { in RunCallback() argument
61 if (work == nullptr || work->data == nullptr) { in RunCallback()
[all …]
/base/security/access_token/interfaces/kits/privacy/napi/src/
Dnapi_context_common.cpp56 void UvQueueWorkDeleteRef(uv_work_t *work, int32_t status) in UvQueueWorkDeleteRef() argument
58 if (work == nullptr) { in UvQueueWorkDeleteRef()
59 ACCESSTOKEN_LOG_ERROR(LABEL, "work == nullptr : %{public}d", work == nullptr); in UvQueueWorkDeleteRef()
61 } else if (work->data == nullptr) { in UvQueueWorkDeleteRef()
62 ACCESSTOKEN_LOG_ERROR(LABEL, "work->data == nullptr : %{public}d", work->data == nullptr); in UvQueueWorkDeleteRef()
66 reinterpret_cast<PermActiveStatusWorker*>(work->data); in UvQueueWorkDeleteRef()
68 delete work; in UvQueueWorkDeleteRef()
74 delete work; in UvQueueWorkDeleteRef()
86 uv_work_t* work = new (std::nothrow) uv_work_t; in DeleteNapiRef() local
87 if (work == nullptr) { in DeleteNapiRef()
[all …]
/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/
Djs_event_cooperate_target.cpp58 uv_work_s *work = new (std::nothrow) uv_work_t; in EmitJsEnable() local
59 CHKPV(work); in EmitJsEnable()
61 work->data = cb.GetRefPtr(); in EmitJsEnable()
64 …ret = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, CallEnablePromiseWork, uv_qos_def… in EmitJsEnable() argument
66 …ret = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, CallEnableAsyncWork, uv_qos_defau… in EmitJsEnable() argument
71 JsUtilCooperate::DeletePtr<uv_work_t*>(work); in EmitJsEnable()
86 uv_work_s *work = new (std::nothrow) uv_work_t; in EmitJsStart() local
87 CHKPV(work); in EmitJsStart()
89 work->data = cb.GetRefPtr(); in EmitJsStart()
92 …ret = uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, CallStartPromiseWork, uv_qos_defa… in EmitJsStart() argument
[all …]
/base/security/access_token/interfaces/kits/accesstoken/napi/src/
Dnapi_context_common.cpp45 workDataRel->work = work; in ~AtManagerAsyncWorkData()
48 NAPI_CALL_RETURN_VOID(env, uv_queue_work_with_qos(loop, workPtr.get(), [] (uv_work_t *work) {}, in ~AtManagerAsyncWorkData() argument
49 [] (uv_work_t *work, int status) { in ~AtManagerAsyncWorkData() argument
50 if (work == nullptr) { in ~AtManagerAsyncWorkData()
54 auto workDataRel = reinterpret_cast<AtManagerAsyncWorkDataRel *>(work->data); in ~AtManagerAsyncWorkData()
57 delete work; in ~AtManagerAsyncWorkData()
60 if (workDataRel->work != nullptr) { in ~AtManagerAsyncWorkData()
61 napi_delete_async_work(workDataRel->env, workDataRel->work); in ~AtManagerAsyncWorkData()
67 delete work; in ~AtManagerAsyncWorkData()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_app_event_watcher.cpp29 void SafeDeleteWork(uv_work_t* work) in SafeDeleteWork() argument
31 if (work != nullptr) { in SafeDeleteWork()
32 delete work; in SafeDeleteWork()
107 uv_work_t* work = new(std::nothrow) uv_work_t(); in ~NapiAppEventWatcher() local
108 work->data = static_cast<void*>(context_); in ~NapiAppEventWatcher()
111 work, in ~NapiAppEventWatcher()
112 [](uv_work_t* work) {}, in ~NapiAppEventWatcher() argument
113 [](uv_work_t* work, int status) { in ~NapiAppEventWatcher() argument
114 WatcherContext* context = static_cast<WatcherContext*>(work->data); in ~NapiAppEventWatcher()
117 SafeDeleteWork(work); in ~NapiAppEventWatcher()
[all …]
/base/request/request/frameworks/js/napi/src/
Duv_queue.cpp25 uv_work_t *work = new (std::nothrow) uv_work_t; in Call() local
26 if (work == nullptr) { in Call()
29 work->data = data; in Call()
31 loop, work, [](uv_work_t *work) {}, afterCallback); in Call() argument
46 void UvQueue::UvDelete(uv_work_t *work, int status) in UvDelete() argument
48 UvCallbackData *callbackData = reinterpret_cast<UvCallbackData *>(work->data); in UvDelete()
53 delete work; in UvDelete()
/base/telephony/call_manager/frameworks/js/napi/src/
Dnapi_call_ability_callback.cpp380 uv_work_t *work = std::make_unique<uv_work_t>().release(); in ReportStartRttInfo() local
381 if (work == nullptr) { in ReportStartRttInfo()
385 work->data = (void *)dataWorker; in ReportStartRttInfo()
386 …uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, ReportStartRttInfoWork, uv_qos_default); in ReportStartRttInfo() argument
410 uv_work_t *work = std::make_unique<uv_work_t>().release(); in ReportStopRttInfo() local
411 if (work == nullptr) { in ReportStopRttInfo()
415 work->data = (void *)dataWorker; in ReportStopRttInfo()
416 … uv_queue_work_with_qos(loop, work, [](uv_work_t *work) {}, ReportStopRttInfoWork, uv_qos_default); in ReportStopRttInfo() argument
440 uv_work_t *work = std::make_unique<uv_work_t>().release(); in UpdateCallStateInfo() local
441 if (work == nullptr) { in UpdateCallStateInfo()
[all …]

1234567891011