Home
last modified time | relevance | path

Searched refs:paras (Results 1 – 17 of 17) sorted by relevance

/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcancel.cpp25 …e ParseParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancel &paras) in ParseParameters() argument
45 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM0], &paras.id)); in ParseParameters()
61 paras.label = std::to_string(number); in ParseParameters()
65 paras.label = std::to_string(result); in ParseParameters()
70 paras.label = str; in ParseParameters()
72 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
83 napi_create_reference(env, argv[PARAM2], 1, &paras.callback); in ParseParameters()
89 …seParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelGroup &paras) in ParseParameters() argument
113 paras.groupName = str; in ParseParameters()
117 paras.groupName = std::to_string(number); in ParseParameters()
[all …]
Dunsubscribe.cpp24 …seParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoUnsubscribe &paras) in ParseParameters() argument
48 paras.objectInfo = subscriberInstancesInfo.subscriber; in ParseParameters()
57 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
67 ParametersInfoUnsubscribe paras; in Unsubscribe() local
68 if (ParseParameters(env, info, paras) == nullptr) { in Unsubscribe()
73 … AsyncCallbackInfoUnsubscribe {.env = env, .asyncWork = nullptr, .objectInfo = paras.objectInfo}; in Unsubscribe()
75 return Common::JSParaError(env, paras.callback); in Unsubscribe()
78 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in Unsubscribe()
133 return Common::JSParaError(env, paras.callback); in Unsubscribe()
Dslot.cpp163 …ametersByAddSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlot &paras) in ParseParametersByAddSlot() argument
183 paras.isAddSlotByType = true; in ParseParametersByAddSlot()
186 if (!Common::SlotTypeJSToC(SlotType(slotType), paras.inType)) { in ParseParametersByAddSlot()
190 paras.isAddSlotByType = false; in ParseParametersByAddSlot()
191 if (!Common::GetNotificationSlot(env, argv[PARAM0], paras.slot)) { in ParseParametersByAddSlot()
203 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParametersByAddSlot()
208 …etersByAddSlots(const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlots &paras) in ParseParametersByAddSlots() argument
246 paras.slots.emplace_back(slot); in ParseParametersByAddSlots()
256 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParametersByAddSlots()
323 …ametersByGetSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoGetSlot &paras) in ParseParametersByGetSlot() argument
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_cancel.cpp26 ParametersInfoCancel paras; in NapiCancel() local
27 if (ParseParameters(env, info, paras) == nullptr) { in NapiCancel()
33 … AsyncCallbackInfoCancel {.env = env, .asyncWork = nullptr, .id = paras.id, .label = paras.label}; in NapiCancel()
35 return Common::JSParaError(env, paras.callback); in NapiCancel()
38 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiCancel()
231 ParametersInfoCancelAsBundle paras; in NapiCancelAsBundle() local
232 if (ParseParameters(env, info, paras) == nullptr) { in NapiCancelAsBundle()
239 .id = paras.id, in NapiCancelAsBundle()
240 .representativeBundle = paras.representativeBundle, in NapiCancelAsBundle()
241 .userId = paras.userId in NapiCancelAsBundle()
[all …]
Dnapi_slot.cpp26 ParametersInfoAddSlot paras; in NapiAddSlot() local
27 if (ParseParametersByAddSlot(env, info, paras) == nullptr) { in NapiAddSlot()
35 .slot = paras.slot, in NapiAddSlot()
36 .inType = paras.inType, in NapiAddSlot()
37 .isAddSlotByType = paras.isAddSlotByType in NapiAddSlot()
40 return Common::JSParaError(env, paras.callback); in NapiAddSlot()
43 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiAddSlot()
103 ParametersInfoAddSlots paras; in NapiAddSlots() local
104 if (ParseParametersByAddSlots(env, info, paras) == nullptr) { in NapiAddSlots()
110 … (std::nothrow) AsyncCallbackInfoAddSlots {.env = env, .asyncWork = nullptr, .slots = paras.slots}; in NapiAddSlots()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dcancel.h72 …rameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelAsBundle &paras);
73 …eParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelGroup &paras);
74 … ParseParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancel &paras);
Dunsubscribe.h39 …eParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoUnsubscribe &paras);
/base/time/time_service/services/
Dtime_system_ability.cpp218 …imeSystemAbility::ParseTimerPara(const std::shared_ptr<ITimerInfo> &timerOptions, TimerPara &paras) in ParseTimerPara() argument
223 paras.windowLength = (uIntType & TIMER_TYPE_EXACT_MASK) > 0 ? 0 : -1; in ParseTimerPara()
224 paras.flag = 0; in ParseTimerPara()
226 paras.timerType = ITimerManager::TimerType::ELAPSED_REALTIME_WAKEUP; in ParseTimerPara()
228 paras.timerType = ITimerManager::TimerType::ELAPSED_REALTIME; in ParseTimerPara()
230 paras.timerType = ITimerManager::TimerType::RTC_WAKEUP; in ParseTimerPara()
232 paras.timerType = ITimerManager::TimerType::RTC; in ParseTimerPara()
235 paras.flag += ITimerManager::TimerFlag::IDLE_UNTIL; in ParseTimerPara()
238 paras.flag += ITimerManager::TimerFlag::INEXACT_REMINDER; in ParseTimerPara()
240 paras.interval = timerOptions->repeat ? timerOptions->interval : 0; in ParseTimerPara()
[all …]
Dtime_system_ability.h61 …int32_t CreateTimer(TimerPara &paras, std::function<void(const uint64_t)> Callback, uint64_t &time…
91 void ParseTimerPara(const std::shared_ptr<ITimerInfo> &timerOptions, TimerPara &paras);
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
Dfs_dm.c109 char *paras = NULL; in LoadDmDeviceTable() local
112 FS_DM_RETURN_ERR_IF_NULL(target->paras); in LoadDmDeviceTable()
123 paras = parasBuf + sizeof(*io) + sizeof((*ts)); in LoadDmDeviceTable()
148 err = strcpy_s(paras, target->paras_len + 1, target->paras); in LoadDmDeviceTable()
/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/
Dnapi_subscribe.cpp125 ParametersInfoUnsubscribe paras; in NapiUnsubscribe() local
126 if (ParseParameters(env, info, paras) == nullptr) { in NapiUnsubscribe()
132 … AsyncCallbackInfoUnsubscribe {.env = env, .asyncWork = nullptr, .objectInfo = paras.objectInfo}; in NapiUnsubscribe()
134 return Common::JSParaError(env, paras.callback); in NapiUnsubscribe()
137 Common::PaddingCallbackPromiseInfo(env, paras.callback, asynccallbackinfo->info, promise); in NapiUnsubscribe()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c375 target->paras = calloc(1, FS_HVB_VERITY_TARGET_MAX); // simple it, just calloc a big mem in FsHvbConstructVerityTarget()
376 if (target->paras == NULL) { in FsHvbConstructVerityTarget()
388 p = target->paras; in FsHvbConstructVerityTarget()
423 target->paras_len = strlen(target->paras); in FsHvbConstructVerityTarget()
449 if (target != NULL && target->paras != NULL) { in FsHvbDestoryVerityTarget()
450 free(target->paras); in FsHvbDestoryVerityTarget()
451 target->paras = NULL; in FsHvbDestoryVerityTarget()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include/
Dfs_dm.h33 char *paras; member
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
Dnapi_slot.h169 …metersByAddSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlot &paras);
171 const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlots &paras);
174 …metersByGetSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoGetSlot &paras);
180 const napi_env &env, const napi_callback_info &info, ParametersInfoRemoveSlot &paras);
/base/time/time_service/services/timer/include/
Dtimer_manager_interface.h54 virtual int32_t CreateTimer(TimerPara &paras,
Dtimer_manager.h36 int32_t CreateTimer(TimerPara &paras,
/base/time/time_service/services/timer/src/
Dtimer_manager.cpp84 int32_t TimerManager::CreateTimer(TimerPara &paras, in CreateTimer() argument
92 paras.timerType, in CreateTimer()
93 paras.windowLength, in CreateTimer()
94 paras.interval, in CreateTimer()
95 paras.flag); in CreateTimer()
101 paras.timerType, in CreateTimer()
102 static_cast<uint64_t>(paras.windowLength), in CreateTimer()
103 paras.interval, in CreateTimer()
104 paras.flag, in CreateTimer()