Home
last modified time | relevance | path

Searched refs:paras (Results 1 – 19 of 19) 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()
58 paras.label = str; in ParseParameters()
60 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
71 napi_create_reference(env, argv[PARAM2], 1, &paras.callback); in ParseParameters()
77 …seParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelGroup &paras) in ParseParameters() argument
100 paras.groupName = str; in ParseParameters()
109 napi_create_reference(env, argv[PARAM1], 1, &paras.callback); in ParseParameters()
119 ParametersInfoCancel paras; in Cancel() local
120 if (ParseParameters(env, info, paras) == nullptr) { in Cancel()
[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/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/time/time_service/services/
Dtime_system_ability.cpp213 void TimeSystemAbility::ParseTimerPara(std::shared_ptr<ITimerInfo> timerOptions, TimerPara &paras) in ParseTimerPara() argument
218 paras.windowLength = (uIntType & TIMER_TYPE_EXACT_MASK) > 0 ? 0 : -1; in ParseTimerPara()
219 paras.flag = 0; in ParseTimerPara()
221 paras.timerType = ITimerManager::TimerType::ELAPSED_REALTIME_WAKEUP; in ParseTimerPara()
223 paras.timerType = ITimerManager::TimerType::ELAPSED_REALTIME; in ParseTimerPara()
225 paras.timerType = ITimerManager::TimerType::RTC_WAKEUP; in ParseTimerPara()
227 paras.timerType = ITimerManager::TimerType::RTC; in ParseTimerPara()
229 paras.interval = timerOptions->repeat ? timerOptions->interval : 0; in ParseTimerPara()
241 struct TimerPara paras {}; in CreateTimer() struct
242 ParseTimerPara(timerOptions, paras); in CreateTimer()
[all …]
Dtime_system_ability.h63 …int32_t CreateTimer(TimerPara &paras, std::function<void(const uint64_t)> Callback, uint64_t &time…
86 void ParseTimerPara(std::shared_ptr<ITimerInfo> timerOptions, TimerPara &paras);
/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()
387 p = target->paras; in FsHvbConstructVerityTarget()
422 target->paras_len = strlen(target->paras); in FsHvbConstructVerityTarget()
448 if (target != NULL && target->paras != NULL) { in FsHvbDestoryVerityTarget()
449 free(target->paras); in FsHvbDestoryVerityTarget()
450 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.h53 virtual int32_t CreateTimer(TimerPara &paras,
Dtimer_manager.h36 int32_t CreateTimer(TimerPara &paras,
/base/time/time_service/services/timer/src/
Dtimer_manager.cpp72 int32_t TimerManager::CreateTimer(TimerPara &paras, in CreateTimer() argument
80 paras.timerType, in CreateTimer()
81 paras.windowLength, in CreateTimer()
82 paras.interval, in CreateTimer()
83 paras.flag); in CreateTimer()
89 paras.timerType, in CreateTimer()
90 static_cast<uint64_t>(paras.windowLength), in CreateTimer()
91 paras.interval, in CreateTimer()
92 paras.flag, in CreateTimer()
/base/telephony/sms_mms/services/gsm/
Dgsm_sms_message.cpp244 std::tuple<unsigned char *, int, unsigned char *, int, MSG_LANGUAGE_ID_T *, bool *> paras( in CreateDataSubmitSmsTpdu()
246 endcodeLen = textCvt->ConvertUTF8ToGSM7bit(paras); in CreateDataSubmitSmsTpdu()
677 … std::tuple<unsigned char *, int, unsigned char *, int, MSG_LANGUAGE_ID_T *, bool *> paras( in DecodeMessage()
679 decodeLen = textCvt->ConvertUTF8ToGSM7bit(paras); in DecodeMessage()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_test.cpp73 std::tuple<unsigned char *, int, unsigned char *, int, MSG_LANGUAGE_ID_T *, bool *> paras(
75 EXPECT_GE(textCvt->ConvertUTF8ToGSM7bit(paras), 0);