/base/powermgr/battery_lite/interfaces/kits/js/ |
D | @system.battery.d.ts | 35 complete?: () => void; property 52 complete?: () => void; property 74 complete?: () => void; property 96 complete?: () => void; property 118 complete?: () => void; property 140 complete?: () => void; property 162 complete?: () => void; property
|
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/src/ |
D | battery_module.cpp | 28 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/time/time_service/framework/js/napi/system_date_time/src/ |
D | napi_system_date_time.cpp | 94 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in SetTime() local 95 return NapiWork::AsyncEnqueue(env, setTimeContext, "SetTime", executor, complete); in SetTime() 140 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in SetDate() local 141 return NapiWork::AsyncEnqueue(env, setDateContext, "SetDate", executor, complete); in SetDate() 177 auto complete = [env, getRealActiveTimeContext](napi_value &output) { in GetRealActiveTime() local 182 …urn NapiWork::AsyncEnqueue(env, getRealActiveTimeContext, "GetRealActiveTime", executor, complete); in GetRealActiveTime() 218 auto complete = [getCurrentTimeContext, env](napi_value &output) { in GetCurrentTime() local 223 return NapiWork::AsyncEnqueue(env, getCurrentTimeContext, "GetCurrentTime", executor, complete); in GetCurrentTime() 253 auto complete = [getTimeContext](napi_value &output) { in GetTime() local 258 return NapiWork::SyncEnqueue(env, getTimeContext, "GetTime", executor, complete); in GetTime() [all …]
|
/base/time/time_service/framework/js/napi/common/src/ |
D | napi_work.cpp | 75 NapiExecute execute, NapiComplete complete) in AsyncEnqueue() argument 83 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() 162 NapiExecute execute, NapiComplete complete) in SyncEnqueue() argument 171 ctxt->complete = std::move(complete); in SyncEnqueue() 177 if (ctxt->complete != nullptr && (ctxt->status == napi_ok)) { in SyncEnqueue() 178 ctxt->complete(ctxt->output); in SyncEnqueue()
|
/base/security/permission_lite/services/js_api/src/ |
D | perm_module.cpp | 32 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/common/include/ |
D | napi_work.h | 54 NapiComplete complete = nullptr; member 64 NapiExecute execute = NapiExecute(), NapiComplete complete = NapiComplete()); 66 … NapiExecute execute = NapiExecute(), NapiComplete complete = NapiComplete());
|
/base/security/huks/frameworks/crypto_lite/js/builtin/src/ |
D | cipher_module.cpp | 32 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/update/updater/services/script/threadpool/ |
D | threadpool.cpp | 158 bool complete = true; in RunTask() local 161 complete = true; in RunTask() 165 complete = false; in RunTask() 169 } while (!complete); in RunTask()
|
/base/time/time_service/framework/js/napi/system_timer/src/ |
D | napi_system_timer.cpp | 216 auto complete = [createTimerContext](napi_value &output) { in CreateTimer() local 222 return NapiWork::AsyncEnqueue(env, createTimerContext, "SetTime", executor, complete); in CreateTimer() 256 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in StartTimer() local 257 return NapiWork::AsyncEnqueue(env, startTimerContext, "StartTimer", executor, complete); in StartTimer() 284 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in StopTimer() local 285 return NapiWork::AsyncEnqueue(env, stopTimerContext, "StopTimer", executor, complete); in StopTimer() 312 auto complete = [env](napi_value &output) { output = NapiUtils::GetUndefinedValue(env); }; in DestroyTimer() local 314 return NapiWork::AsyncEnqueue(env, destroyTimerContext, "DestroyTimer", executor, complete); in DestroyTimer()
|
/base/print/print_fwk/frameworks/kits/extension/src/ |
D | js_print_extension_context.cpp | 116 AsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc]( in OnStartAbility() local 139 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbility() 183 …AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, unwrapArgc… in OnStartAbilityWithAccount() local 207 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbilityWithAccount() 220 AsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() local 242 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnTerminateAbility() 275 AsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId]( in OnConnectAbility() local 292 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility() 332 … AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount() local 349 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbilityWithAccount() [all …]
|
/base/powermgr/battery_lite/frameworks/js/builtin/src/ |
D | battery_module.cpp | 29 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/inputmethod/imf/frameworks/kits/extension/src/ |
D | js_inputmethod_extension_context.cpp | 124 AsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc]( in OnStartAbility() local 147 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbility() 185 …AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, unwrapArgc… in OnStartAbilityWithAccount() local 208 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbilityWithAccount() 221 AsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() local 242 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnTerminateAbility() 272 AsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId]( in OnConnectAbility() local 289 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility() 327 … AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount() local 344 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbilityWithAccount() [all …]
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
D | js_wallpaper_extension_context.cpp | 123 …AsyncTask::CompleteCallback complete = [weak = context_, want, startOptions, unwrapArgc](NativeEng… in OnStartAbility() local 146 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbility() 184 AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, startOptions, in OnStartAbilityWithAccount() local 207 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnStartAbilityWithAccount() 220 AsyncTask::CompleteCallback complete = [weak = context_]( in OnTerminateAbility() local 241 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnTerminateAbility() 274 …AsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId](NativeEngine… in OnConnectAbility() local 291 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility() 332 … AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId]( in OnConnectAbilityWithAccount() local 349 CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbilityWithAccount() [all …]
|
/base/notification/common_event_service/frameworks/extension/src/ |
D | js_static_subscriber_extension_context.cpp | 86 AbilityRuntime::AsyncTask::CompleteCallback complete = in OnStartAbility() local 99 …CreateAsyncTaskWithLastParam(engine, lastParam, std::move(execute), std::move(complete), &result)); in OnStartAbility()
|
/base/request/request/ |
D | README.md | 72 …he download task, for example, adding listeners for the **progress**, **complete**, and **fail** e… 73 …he download task, for example, adding listeners for the **progress**, **complete**, and **fail** e… 76 …he download task, for example, adding listeners for the **progress**, **complete**, and **fail** e… 77 …he download task, for example, adding listeners for the **progress**, **complete**, and **fail** e… 86 | on(type: 'complete' l 'pause' l 'remove', callback:() => void): void | Enables listening for down… 89 | off(type: 'complete' l 'pause' l 'remove', callback?:() => void): void | Disables listening for d… 144 | on(type: 'complete', callback: (code: Array, result?: Array) => void): void | Enables listening f… 145 | off(type: 'complete', callback?: (code: Array, result?: Array) => void): void | Disables listenin… 245 3. Enable listening for the complete event. 248 // Enable listening for the complete event and obtain the result using a callback. [all …]
|
/base/powermgr/power_manager/frameworks/napi/runninglock/ |
D | runninglock_napi.h | 44 napi_async_execute_callback execute, napi_async_complete_callback complete);
|
D | runninglock_napi.cpp | 203 …::string& resourceName, napi_async_execute_callback execute, napi_async_complete_callback complete) in AsyncWork() argument 207 napi_create_async_work(env, nullptr, resource, execute, complete, in AsyncWork()
|
/base/powermgr/power_manager/frameworks/napi/power/ |
D | power_napi.h | 44 napi_async_execute_callback execute, napi_async_complete_callback complete);
|
D | power_napi.cpp | 234 napi_async_execute_callback execute, napi_async_complete_callback complete) in AsyncWork() argument 238 napi_create_async_work(env, nullptr, resource, execute, complete, in AsyncWork()
|
/base/powermgr/battery_manager/frameworks/napi/ |
D | system_battery.cpp | 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()
|
/base/powermgr/display_manager/frameworks/napi/ |
D | brightness_module.cpp | 43 napi_callback_info& info, napi_async_complete_callback complete) in SyncWork() argument 63 complete, in SyncWork()
|
/base/customization/config_policy/interfaces/kits/js/include/ |
D | config_policy_napi.h | 53 napi_async_execute_callback execute, napi_async_complete_callback complete);
|
/base/startup/init/services/loopevent/task/ |
D | le_streamtask.c | 25 const TaskHandle taskHandle, const LE_SendMessageComplete complete) in HandleSendMsg_() argument 34 if (complete != NULL) { in HandleSendMsg_() 35 complete(taskHandle, buffer); in HandleSendMsg_()
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account_authorization_extension_context.cpp | 175 AsyncTask::CompleteCallback complete = in OnConnectAbility() local 194 … engine, CreateAsyncTaskWithLastParam(engine, nullptr, nullptr, std::move(complete), &result)); in OnConnectAbility() 216 AsyncTask::CompleteCallback complete = in OnDisconnectAbility() local 241 CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); in OnDisconnectAbility()
|
/base/telephony/core_service/frameworks/js/sim/src/ |
D | napi_sim.cpp | 40 napi_async_complete_callback complete = nullptr; member 57 template<typename T, napi_async_execute_callback exec, napi_async_complete_callback complete> 86 … env, nullptr, resourceName, exec, complete, static_cast<void *>(pContext), &context.work)); in NapiCreateAsyncWork() 120 NAPI_CALL(env, napi_create_async_work(env, nullptr, resourceName, para.execute, para.complete, in NapiCreateAsyncWork2() 495 .complete = GetDefaultVoiceSlotIdCallback, in GetDefaultVoiceSlotId() 541 .complete = GetDefaultVoiceSimIdCallback, in GetDefaultVoiceSimId() 1132 .complete = GetSimAccountInfoCallback, in GetSimAccountInfo() 1219 .complete = UnlockPinCallback, in UnlockPin() 1277 .complete = UnlockPukCallback, in UnlockPuk() 1338 .complete = AlterPinCallback, in AlterPin() [all …]
|