Home
last modified time | relevance | path

Searched refs:complete (Results 1 - 25 of 40) sorted by relevance

12

/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Djs_ans_dialog_callback.cpp29 JsAnsDialogCallbackComplete complete) in Init()
32 if (env == nullptr || callbackInfo == nullptr || complete == nullptr) { in Init()
38 complete_ = complete; in Init()
82 decltype(complete_) complete = nullptr; in ProcessDialogStatusChanged() member
87 workData->complete = complete_; in ProcessDialogStatusChanged()
102 data->complete == nullptr) { in ProcessDialogStatusChanged()
106 data->complete(data->env, static_cast<void*>(callbackInfoPtr)); in ProcessDialogStatusChanged()
27 Init(napi_env env, AsyncCallbackInfoIsEnable* callbackInfo, JsAnsDialogCallbackComplete complete) Init() argument
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/src/
H A Dbattery_module.cpp28 JSIValue complete = JSI::GetNamedProperty(args, CB_COMPLETE); in SuccessCallBack() local
36 if (!JSI::ValueIsUndefined(complete)) { in SuccessCallBack()
37 JSI::CallFunction(complete, thisVal, nullptr, 0); in SuccessCallBack()
39 JSI::ReleaseValueList(success, complete, ARGS_END); in SuccessCallBack()
/base/security/permission_lite/services/js_api/src/
H A Dperm_module.cpp32 JSIValue complete = JSI::GetNamedProperty(args[0], CB_COMPLETE); in CheckSelfPerm() local
48 JSI::CallFunction(complete, thisVal, nullptr, 0); in CheckSelfPerm()
49 JSI::ReleaseValueList(success, fail, complete, code, ARGS_END); in CheckSelfPerm()
/base/time/time_service/framework/js/napi/system_date_time/src/
H A Dnapi_system_date_time.cpp96 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in SetTime() local
97 return NapiWork::AsyncEnqueue(env, setTimeContext, "SetTime", executor, complete); in SetTime()
142 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in SetDate() local
143 return NapiWork::AsyncEnqueue(env, setDateContext, "SetDate", executor, complete); in SetDate()
179 auto complete = [env, getRealActiveTimeContext](napi_value &output) { in GetRealActiveTime() local
184 return NapiWork::AsyncEnqueue(env, getRealActiveTimeContext, "GetRealActiveTime", executor, complete); in GetRealActiveTime()
220 auto complete = [getCurrentTimeContext, env](napi_value &output) { in GetCurrentTime() local
225 return NapiWork::AsyncEnqueue(env, getCurrentTimeContext, "GetCurrentTime", executor, complete); in GetCurrentTime()
255 auto complete = [getTimeContext](napi_value &output) { in GetTime() local
260 return NapiWork::SyncEnqueue(env, getTimeContext, "GetTime", executor, complete); in GetTime()
295 auto complete = [getRealTimeContext](napi_value &output) { GetRealTime() local
345 auto complete = [getUpTimeContext](napi_value &output) { GetUptime() local
368 auto complete = [env, getDateContext](napi_value &output) { GetDate() local
399 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; SetTimezone() local
421 auto complete = [env, getTimezoneContext](napi_value &output) { GetTimezone() local
447 auto complete = [env, getTimezoneContext](napi_value &output) { GetTimezoneSync() local
474 auto complete = [env](napi_value &output) { UpdateNtpTime() local
498 auto complete = [getNtpTimeContext](napi_value &output) { GetNtpTime() local
[all...]
/base/time/time_service/framework/js/napi/common/src/
H A Dnapi_work.cpp75 NapiExecute execute, NapiComplete complete) in AsyncEnqueue()
84 ctxt->complete = std::move(complete); in AsyncEnqueue()
111 if ((ctxt->complete) && (status == napi_ok) && (ctxt->status == napi_ok)) { in AsyncEnqueue()
112 ctxt->complete(ctxt->output); in AsyncEnqueue()
167 NapiExecute execute, NapiComplete complete) in SyncEnqueue()
177 ctxt->complete = std::move(complete); in SyncEnqueue()
183 if (ctxt->complete != nullptr && (ctxt->status == napi_ok)) { in SyncEnqueue()
184 ctxt->complete(ctx in SyncEnqueue()
74 AsyncEnqueue(napi_env env, ContextBase *ctxt, const std::string &name, NapiExecute execute, NapiComplete complete) AsyncEnqueue() argument
166 SyncEnqueue(napi_env env, ContextBase *ctxt, const std::string &name, NapiExecute execute, NapiComplete complete) SyncEnqueue() argument
[all...]
/base/time/time_service/framework/js/napi/common/include/
H A Dnapi_work.h54 NapiComplete complete = nullptr; member
64 NapiExecute execute = NapiExecute(), NapiComplete complete = NapiComplete());
66 NapiExecute execute = NapiExecute(), NapiComplete complete = NapiComplete());
/base/update/updater/services/script/threadpool/
H A Dthreadpool.cpp147 bool complete = true; in RunTask() local
150 complete = true; in RunTask()
154 complete = false; in RunTask()
158 } while (!complete); in RunTask()
/base/startup/init/ueventd/
H A Dueventd_main.c30 static bool complete = false; in IsComplete() local
31 if (complete) { in IsComplete()
42 complete = true; in IsComplete()
64 INIT_LOGI("poll ueventd socket timeout, but init not complete"); in PollUeventdSocketTimeout()
/base/security/huks/frameworks/crypto_lite/js/builtin/src/
H A Dcipher_module.cpp32 JSIValue complete = JSI::GetNamedProperty(args[0], CB_COMPLETE); in Rsa() local
88 JSI::CallFunction(complete, thisVal, nullptr, 0); in Rsa()
89 JSI::ReleaseValueList(success, fail, complete, result, code, data, ARGS_END); in Rsa()
105 JSIValue complete = JSI::GetNamedProperty(args[0], CB_COMPLETE); in Aes() local
157 JSI::CallFunction(complete, thisVal, nullptr, 0); in Aes()
158 JSI::ReleaseValueList(success, fail, complete, result, code, data, jsIvLen, ARGS_END); in Aes()
/base/powermgr/battery_lite/frameworks/js/builtin/src/
H A Dbattery_module.cpp29 JSIValue complete = JSI::GetNamedProperty(args, CB_COMPLETE); in SuccessCallBack() local
37 if (!JSI::ValueIsUndefined(complete)) { in SuccessCallBack()
38 JSI::CallFunction(complete, thisVal, nullptr, 0); in SuccessCallBack()
40 JSI::ReleaseValueList(success, complete, ARGS_END); in SuccessCallBack()
/base/time/time_service/framework/js/napi/system_timer/src/
H A Dnapi_system_timer.cpp244 auto complete = [createTimerContext](napi_value &output) { in CreateTimer() local
250 return NapiWork::AsyncEnqueue(env, createTimerContext, "SetTime", executor, complete); in CreateTimer()
284 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in StartTimer() local
285 return NapiWork::AsyncEnqueue(env, startTimerContext, "StartTimer", executor, complete); in StartTimer()
312 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in StopTimer() local
313 return NapiWork::AsyncEnqueue(env, stopTimerContext, "StopTimer", executor, complete); in StopTimer()
340 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in DestroyTimer() local
342 return NapiWork::AsyncEnqueue(env, destroyTimerContext, "DestroyTimer", executor, complete); in DestroyTimer()
/base/inputmethod/imf/frameworks/kits/extension/src/
H A Djs_inputmethod_extension_context.cpp126 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc](napi_env env, in OnStartAbility() local
149 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnStartAbility()
179 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, in OnStartAbilityWithAccount() local
198 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnStartAbilityWithAccount()
211 NapiAsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() local
232 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnTerminateAbility()
263 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId](napi_env env, in OnConnectAbility() local
280 CreateAsyncTaskWithLastParam(env, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility()
316 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, in OnConnectAbilityWithAccount() local
332 CreateAsyncTaskWithLastParam(env, nullptr, nullptr, std::move(complete), in OnConnectAbilityWithAccount()
364 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection](napi_env env, OnDisconnectAbility() local
[all...]
/base/print/print_fwk/frameworks/kits/extension/src/
H A Djs_print_extension_context.cpp132 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc]( in OnStartAbility() local
157 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbility()
192 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, unwrapArgc]( in OnStartAbilityWithAccount() local
215 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbilityWithAccount()
229 NapiAsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() local
252 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnTerminateAbility()
280 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId]( in OnConnectAbility()
299 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility()
335 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount()
354 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), in OnConnectAbilityWithAccount()
386 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection]( OnDisconnectAbility() local
[all...]
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
H A Djs_wallpaper_extension_context.cpp124 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc]( in OnStartAbility() local
147 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnStartAbility()
182 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, unwrapArgc]( in OnStartAbilityWithAccount() local
204 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnStartAbilityWithAccount()
217 NapiAsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() local
238 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnTerminateAbility()
259 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId]( in OnConnectAbility() local
276 CreateAsyncTaskWithLastParam(env, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility()
300 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount() local
317 CreateAsyncTaskWithLastParam(env, nullptr, nullptr, std::move(complete), in OnConnectAbilityWithAccount()
371 NapiAsyncTask::CompleteCallback complete = [weak = context_, want, connection]( OnDisconnectAbility() local
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_open_settings.cpp234 JsAnsCallbackComplete complete) in Init()
237 if (env == nullptr || callbackInfo == nullptr || complete == nullptr) { in Init()
243 complete_ = complete; in Init()
269 decltype(complete_) complete = nullptr; in ProcessStatusChanged() member
274 workData->complete = complete_; in ProcessStatusChanged()
289 data->complete == nullptr) { in ProcessStatusChanged()
293 data->complete(data->env, static_cast<void*>(callbackInfoPtr)); in ProcessStatusChanged()
233 Init(napi_env env, AsyncCallbackInfoOpenSettings* callbackInfo, JsAnsCallbackComplete complete) Init() argument
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Djs_ans_dialog_callback.h39 JsAnsDialogCallbackComplete complete);
/base/location/frameworks/native/fence_extension_ability/src/
H A Djs_fence_extension_context.cpp85 AbilityRuntime::NapiAsyncTask::CompleteCallback complete = in OnStartExtensionAbility() local
105 CreateAsyncTaskWithLastParam(env, lastParam, nullptr, std::move(complete), &result)); in OnStartExtensionAbility()
/base/powermgr/power_manager/frameworks/napi/runninglock/
H A Drunninglock_napi.h44 napi_async_execute_callback execute, napi_async_complete_callback complete);
/base/powermgr/power_manager/frameworks/napi/power/
H A Dpower_napi.h46 napi_async_execute_callback execute, napi_async_complete_callback complete);
/base/notification/common_event_service/frameworks/extension/src/
H A Djs_static_subscriber_extension_context.cpp94 AbilityRuntime::NapiAsyncTask::CompleteCallback complete = in OnStartAbility() local
109 CreateAsyncTaskWithLastParam(env, lastParam, std::move(execute), std::move(complete), &result)); in OnStartAbility()
/base/powermgr/battery_manager/frameworks/napi/src/
H A Dsystem_battery.cpp39 const std::string FUNC_COMPLETE_NAME = "complete";
57 BATTERY_HILOGD(FEATURE_BATT_INFO, "Call the js complete method"); in GetBatteryStats()
178 napi_value complete = nullptr; in CompleteCallback() local
179 napi_get_reference_value(env, completeRef_, &complete); in CompleteCallback()
182 napi_status status = napi_call_function(env, nullptr, complete, argc, nullptr, &callResult); in CompleteCallback()
184 BATTERY_HILOGW(FEATURE_BATT_INFO, "Call complete function is failed"); in CompleteCallback()
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
H A Dnapi_open_settings.h44 bool Init(napi_env env, AsyncCallbackInfoOpenSettings* callbackInfo, JsAnsCallbackComplete complete);
/base/telephony/core_service/frameworks/js/esim/src/
H A Dnapi_esim.cpp40 napi_async_complete_callback complete = nullptr; member
53 template<typename T, napi_async_execute_callback exec, napi_async_complete_callback complete>
81 env, nullptr, resourceName, exec, complete, static_cast<void *>(pContext), &context.work)); in NapiCreateAsyncWork()
119 NAPI_CALL(env, napi_create_async_work(env, nullptr, resourceName, para.execute, para.complete, in NapiCreateAsyncWork2()
514 .complete = GetEuiccInfoCallback, in GetEuiccInfo()
617 .complete = SetDefaultSmdpAddressCallback, in SetDefaultSmdpAddress()
683 .complete = SwitchToProfileCallback, in SwitchToProfile()
745 .complete = DeleteProfileCallback, in DeleteProfile()
820 .complete = ResetMemoryCallback, in ResetMemory()
892 .complete in DownloadProfile()
[all...]
/base/powermgr/display_manager/state_manager/frameworks/napi/
H A Dbrightness_module.cpp43 napi_callback_info& info, napi_async_complete_callback complete) in SyncWork()
65 complete, in SyncWork()
42 SyncWork(napi_env env, const std::string resName, const std::string valName, napi_callback_info& info, napi_async_complete_callback complete) SyncWork() argument
/base/telephony/core_service/frameworks/js/sim/src/
H A Dnapi_sim.cpp44 napi_async_complete_callback complete = nullptr; member
67 template<typename T, napi_async_execute_callback exec, napi_async_complete_callback complete>
96 env, nullptr, resourceName, exec, complete, static_cast<void *>(pContext), &context.work)); in NapiCreateAsyncWork()
132 NAPI_CALL(env, napi_create_async_work(env, nullptr, resourceName, para.execute, para.complete, in NapiCreateAsyncWork2()
180 NAPI_CALL(env, napi_create_async_work(env, nullptr, resourceName, para.execute, para.complete, in NapiCreateAsyncWork3()
567 .complete = GetDefaultVoiceSlotIdCallback, in GetDefaultVoiceSlotId()
613 .complete = GetDefaultVoiceSimIdCallback, in GetDefaultVoiceSimId()
852 .complete = GetDsdsModeCallback, in GetDsdsMode()
912 .complete = GetSimAuthenticationCallback, in GetSimAuthentication()
1313 .complete in GetSimAccountInfo()
[all...]

Completed in 18 milliseconds

12