/base/request/request/upload/interfaces/kits/napi/src/ |
D | async_call.cpp | 61 napi_value promise = nullptr; in Call() local 63 napi_create_promise(env, &context_->defer, &promise); in Call() 65 napi_get_undefined(env, &promise); in Call() 75 return promise; in Call() 85 napi_value promise = nullptr; in SyncCall() local 87 napi_create_promise(env, &context_->defer, &promise); in SyncCall() 89 napi_get_undefined(env, &promise); in SyncCall() 94 return promise; in SyncCall()
|
/base/request/request/download/interfaces/kits/js/napi/download_single/src/ |
D | async_call.cpp | 66 napi_value promise = nullptr; in Call() local 68 napi_create_promise(env, &context_->defer, &promise); in Call() 70 napi_get_undefined(env, &promise); in Call() 80 return promise; in Call() 90 napi_value promise = nullptr; in SyncCall() local 92 napi_create_promise(env, &context_->defer, &promise); in SyncCall() 94 napi_get_undefined(env, &promise); in SyncCall() 99 return promise; in SyncCall()
|
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodclient/ |
D | async_call.cpp | 65 napi_value promise = nullptr; in Call() local 67 napi_create_promise(env, &context_->defer, &promise); in Call() 69 napi_get_undefined(env, &promise); in Call() 78 return promise; in Call() 88 napi_value promise = nullptr; in SyncCall() local 90 napi_create_promise(env, &context_->defer, &promise); in SyncCall() 92 napi_get_undefined(env, &promise); in SyncCall() 96 return promise; in SyncCall()
|
/base/time/time_service/framework/js/napi/system_time/src/ |
D | js_systemtime.cpp | 46 napi_value &promise) in TimePaddingAsyncCallbackInfo() argument 53 NAPI_CALL_RETURN_VOID(env, napi_create_promise(env, &deferred, &promise)); in TimePaddingAsyncCallbackInfo() 74 napi_value promise = nullptr; in JSSystemTimeSetTime() local 75 TimePaddingAsyncCallbackInfo(env, asyncContext, callback, promise); in JSSystemTimeSetTime() 112 return promise; in JSSystemTimeSetTime() 131 napi_value promise = nullptr; in JSSystemTimeSetTimeZone() local 132 TimePaddingAsyncCallbackInfo(env, asyncContext, callback, promise); in JSSystemTimeSetTimeZone() 169 return promise; in JSSystemTimeSetTimeZone() 188 napi_value promise = nullptr; in JSSystemTimeGetCurrentTime() local 189 TimePaddingAsyncCallbackInfo(env, asyncContext, callback, promise); in JSSystemTimeGetCurrentTime() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_distributed.cpp | 63 napi_value promise = nullptr; in NapiIsDistributedEnabled() local 64 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiIsDistributedEnabled() 104 return promise; in NapiIsDistributedEnabled() 123 napi_value promise = nullptr; in NapiEnableDistributed() local 124 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiEnableDistributed() 175 return promise; in NapiEnableDistributed() 194 napi_value promise = nullptr; in NapiEnableDistributedByBundle() local 195 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiEnableDistributedByBundle() 245 return promise; in NapiEnableDistributedByBundle() 264 napi_value promise = nullptr; in NapiEnableDistributedSelf() local [all …]
|
D | napi_slot.cpp | 42 napi_value promise = nullptr; in NapiAddSlot() local 43 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiAddSlot() 96 return promise; in NapiAddSlot() 114 napi_value promise = nullptr; in NapiAddSlots() local 115 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiAddSlots() 163 return promise; in NapiAddSlots() 181 napi_value promise = nullptr; in NapiSetSlotByBundle() local 182 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiSetSlotByBundle() 231 return promise; in NapiSetSlotByBundle() 280 napi_value promise = nullptr; in NapiGetSlot() local [all …]
|
D | napi_enable_notification.cpp | 56 napi_value promise = nullptr; in NapiEnableNotification() local 57 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiEnableNotification() 96 return promise; in NapiEnableNotification() 135 napi_value promise = nullptr; in NapiIsNotificationEnabled() local 136 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiIsNotificationEnabled() 187 return promise; in NapiIsNotificationEnabled() 205 napi_value promise = nullptr; in NapiIsNotificationEnabledSelf() local 206 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiIsNotificationEnabledSelf() 249 return promise; in NapiIsNotificationEnabledSelf() 267 napi_value promise = nullptr; in NapiRequestEnableNotification() local [all …]
|
D | napi_cancel.cpp | 37 napi_value promise = nullptr; in NapiCancel() local 38 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiCancel() 88 return promise; in NapiCancel() 105 napi_value promise = nullptr; in NapiCancelAll() local 106 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiCancelAll() 154 return promise; in NapiCancelAll() 172 napi_value promise = nullptr; in NapiCancelGroup() local 173 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiCancelGroup() 224 return promise; in NapiCancelGroup() 246 napi_value promise = nullptr; in NapiCancelAsBundle() local [all …]
|
D | napi_disturb_mode.cpp | 37 napi_value promise = nullptr; in NapiSetDoNotDisturbDate() local 38 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiSetDoNotDisturbDate() 93 return promise; in NapiSetDoNotDisturbDate() 138 napi_value promise = nullptr; in NapiGetDoNotDisturbDate() local 139 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiGetDoNotDisturbDate() 185 return promise; in NapiGetDoNotDisturbDate() 206 napi_value promise = nullptr; in NapiSupportDoNotDisturbMode() local 207 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiSupportDoNotDisturbMode() 262 return promise; in NapiSupportDoNotDisturbMode()
|
D | napi_get_active.cpp | 84 napi_value promise = nullptr; in NapiGetAllActiveNotifications() local 85 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiGetAllActiveNotifications() 123 return promise; in NapiGetAllActiveNotifications() 188 napi_value promise = nullptr; in NapiGetActiveNotifications() local 189 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiGetActiveNotifications() 227 return promise; in NapiGetActiveNotifications() 270 napi_value promise = nullptr; in NapiGetActiveNotificationCount() local 271 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiGetActiveNotificationCount() 310 return promise; in NapiGetActiveNotificationCount()
|
D | napi_display_badge.cpp | 37 napi_value promise = nullptr; in NapiDisplayBadge() local 38 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiDisplayBadge() 92 return promise; in NapiDisplayBadge() 132 napi_value promise = nullptr; in NapiIsBadgeDisplayed() local 133 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiIsBadgeDisplayed() 180 return promise; in NapiIsBadgeDisplayed()
|
D | napi_template.cpp | 37 napi_value promise = nullptr; in NapiIsSupportTemplate() local 38 Common::PaddingCallbackPromiseInfo(env, params.callback, asyncCallbackinfo->info, promise); in NapiIsSupportTemplate() 90 return promise; in NapiIsSupportTemplate()
|
/base/theme/screenlock_mgr/interfaces/kits/napi/src/ |
D | async_call.cpp | 74 napi_value promise = nullptr; in Call() local 76 napi_create_promise(env, &context_->defer, &promise); in Call() 78 napi_get_undefined(env, &promise); in Call() 88 return promise; in Call() 98 napi_value promise = nullptr; in SyncCall() local 100 napi_create_promise(env, &context_->defer, &promise); in SyncCall() 102 napi_get_undefined(env, &promise); in SyncCall() 107 return promise; in SyncCall()
|
/base/security/device_security_level/interfaces/inner_api/src/standard/ |
D | device_security_info.cpp | 78 std::promise<DeviceSecurityInfo *> promise; in RequestDeviceSecurityInfoImpl() local 80 auto callback = [&promise](const DeviceIdentify *identify, struct DeviceSecurityInfo *info) { in RequestDeviceSecurityInfoImpl() 81 promise.set_value(info); in RequestDeviceSecurityInfoImpl() 89 *info = promise.get_future().get(); in RequestDeviceSecurityInfoImpl()
|
/base/inputmethod/imf/test/js/ |
D | InputMethodTest.test.js | 45 let promise = await inputMethodSetting.listInputMethod(); 46 console.info("inputmethoh_test_002 listInputMethod result" + JSON.stringify(promise)); 47 if (promise.length > 0){ 48 let obj = promise[0] 103 let promise = await inputMethodSetting.displayOptionalInputMethod(); 104 … console.info("inputmethod_test_displayOptionalInputMethod_002 result" + JSON.stringify(promise)); 105 expect(promise).assertEqual(undefined) 157 let promise = await inputMethodCtrl.stopInput(); 158 …fo("inputmethod_test_stopInput_002 inputMethodCtrl stopInput result---" + JSON.stringify(promise)); 159 expect(promise).assertEqual(true)
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | get_active.cpp | 82 napi_value promise = nullptr; in GetAllActiveNotifications() local 83 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in GetAllActiveNotifications() 119 return promise; in GetAllActiveNotifications() 185 napi_value promise = nullptr; in GetActiveNotifications() local 186 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in GetActiveNotifications() 222 return promise; in GetActiveNotifications() 266 napi_value promise = nullptr; in GetActiveNotificationCount() local 267 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in GetActiveNotificationCount() 304 return promise; in GetActiveNotificationCount()
|
D | enable_notification.cpp | 154 napi_value promise = nullptr; in EnableNotification() local 155 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in EnableNotification() 192 return promise; in EnableNotification() 235 napi_value promise = nullptr; in IsNotificationEnabled() local 236 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in IsNotificationEnabled() 285 return promise; in IsNotificationEnabled() 303 napi_value promise = nullptr; in IsNotificationEnabledSelf() local 304 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in IsNotificationEnabledSelf() 345 return promise; in IsNotificationEnabledSelf() 364 napi_value promise = nullptr; in RequestEnableNotification() local [all …]
|
D | distributed.cpp | 189 napi_value promise = nullptr; in IsDistributedEnabled() local 190 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in IsDistributedEnabled() 228 return promise; in IsDistributedEnabled() 246 napi_value promise = nullptr; in EnableDistributed() local 247 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in EnableDistributed() 296 return promise; in EnableDistributed() 314 napi_value promise = nullptr; in EnableDistributedByBundle() local 315 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in EnableDistributedByBundle() 363 return promise; in EnableDistributedByBundle() 381 napi_value promise = nullptr; in EnableDistributedSelf() local [all …]
|
D | cancel.cpp | 129 napi_value promise = nullptr; in Cancel() local 130 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in Cancel() 178 return promise; in Cancel() 195 napi_value promise = nullptr; in CancelAll() local 196 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in CancelAll() 242 return promise; in CancelAll() 260 napi_value promise = nullptr; in CancelGroup() local 261 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in CancelGroup() 310 return promise; in CancelGroup() 387 napi_value promise = nullptr; in CancelAsBundle() local [all …]
|
/base/sensors/miscdevice/interfaces/plugin/vibrator/test/unittest/ |
D | ExampleJsunit.test.js | 240 let promise = new Promise((resolve, reject) => { 258 await promise.then(() => { 459 let promise = new Promise((resolve, reject) => { 475 await promise.then(() => { 912 let promise = new Promise((resolve, reject) => { 929 await promise.then(() => { 966 let promise = new Promise((resolve, reject) => { 983 await promise.then(() => { 1019 let promise = new Promise((resolve, reject) => { 1035 await promise.then(() => { [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/ |
D | napi_remove.cpp | 74 napi_value promise = nullptr; in NapiRemove() local 75 Common::PaddingCallbackPromiseInfo(env, params.callback, removeInfo->info, promise); in NapiRemove() 86 return promise; in NapiRemove() 104 napi_value promise = nullptr; in NapiRemoveAll() local 105 Common::PaddingCallbackPromiseInfo(env, params.callback, asynccallbackinfo->info, promise); in NapiRemoveAll() 161 return promise; in NapiRemoveAll()
|
D | napi_subscribe.cpp | 49 napi_value promise = nullptr; in NapiSubscribe() local 50 Common::PaddingCallbackPromiseInfo(env, callback, asynccallbackinfo->info, promise); in NapiSubscribe() 118 return promise; in NapiSubscribe() 136 napi_value promise = nullptr; in NapiUnsubscribe() local 137 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiUnsubscribe() 201 return promise; in NapiUnsubscribe()
|
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/ |
D | vibrator_js.cpp | 75 napi_value promise = nullptr; in VibrateTime() local 76 NAPI_CALL(env, napi_create_promise(env, &deferred, &promise)); in VibrateTime() 79 return promise; in VibrateTime() 99 napi_value promise = nullptr; in VibrateEffectId() local 100 NAPI_CALL(env, napi_create_promise(env, &deferred, &promise)); in VibrateEffectId() 103 return promise; in VibrateEffectId() 228 napi_value promise = nullptr; in VibrateEffect() local 229 CHKCP((napi_create_promise(env, &deferred, &promise) == napi_ok), "napi_create_promise fail"); in VibrateEffect() 232 return promise; in VibrateEffect() 294 napi_value promise = nullptr; in Stop() local [all …]
|
/base/powermgr/battery_statistics/frameworks/js/napi/src/ |
D | battery_stats.cpp | 61 napi_value promise; in StatsPromise() local 62 asyncInfo->CreatePromise(env_, promise); in StatsPromise() 63 STATS_RETURN_IF_WITH_RET(promise == nullptr, nullptr); in StatsPromise() 66 …ASE(env_, napi_create_string_utf8(env_, "StatsPromise", NAPI_AUTO_LENGTH, &resourceName), promise); in StatsPromise() 88 NAPI_CALL_BASE(env_, napi_queue_async_work(env_, asyncInfo->GetAsyncWork()), promise); in StatsPromise() 90 return promise; in StatsPromise()
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_js.cpp | 56 napi_value promise = NapiUtil::CreateUndefined(env); in Write() local 58 napi_create_promise(env, &asyncContext->deferred, &promise); in Write() 63 return promise; in Write()
|