/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | cancel.cpp | 25 …e ParseParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancel ¶s) in ParseParameters() argument 45 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM0], ¶s.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, ¶s.callback); in ParseParameters() 83 napi_create_reference(env, argv[PARAM2], 1, ¶s.callback); in ParseParameters() 89 …seParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelGroup ¶s) in ParseParameters() argument 113 paras.groupName = str; in ParseParameters() 117 paras.groupName = std::to_string(number); in ParseParameters() [all …]
|
D | unsubscribe.cpp | 24 …seParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoUnsubscribe ¶s) in ParseParameters() argument 48 paras.objectInfo = subscriberInstancesInfo.subscriber; in ParseParameters() 57 napi_create_reference(env, argv[PARAM1], 1, ¶s.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()
|
D | slot.cpp | 163 …ametersByAddSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlot ¶s) 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, ¶s.callback); in ParseParametersByAddSlot() 208 …etersByAddSlots(const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlots ¶s) in ParseParametersByAddSlots() argument 246 paras.slots.emplace_back(slot); in ParseParametersByAddSlots() 256 napi_create_reference(env, argv[PARAM1], 1, ¶s.callback); in ParseParametersByAddSlots() 323 …ametersByGetSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoGetSlot ¶s) in ParseParametersByGetSlot() argument [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_cancel.cpp | 26 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 …]
|
D | napi_slot.cpp | 26 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/ |
D | cancel.h | 72 …rameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelAsBundle ¶s); 73 …eParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancelGroup ¶s); 74 … ParseParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoCancel ¶s);
|
D | unsubscribe.h | 39 …eParameters(const napi_env &env, const napi_callback_info &info, ParametersInfoUnsubscribe ¶s);
|
/base/time/time_service/services/ |
D | time_system_ability.cpp | 218 …imeSystemAbility::ParseTimerPara(const std::shared_ptr<ITimerInfo> &timerOptions, TimerPara ¶s) 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 …]
|
D | time_system_ability.h | 61 …int32_t CreateTimer(TimerPara ¶s, std::function<void(const uint64_t)> Callback, uint64_t &time… 91 void ParseTimerPara(const std::shared_ptr<ITimerInfo> &timerOptions, TimerPara ¶s);
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/ |
D | fs_dm.c | 109 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/ |
D | napi_subscribe.cpp | 125 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/ |
D | fs_hvb.c | 375 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/ |
D | fs_dm.h | 33 char *paras; member
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/ |
D | napi_slot.h | 169 …metersByAddSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlot ¶s); 171 const napi_env &env, const napi_callback_info &info, ParametersInfoAddSlots ¶s); 174 …metersByGetSlot(const napi_env &env, const napi_callback_info &info, ParametersInfoGetSlot ¶s); 180 const napi_env &env, const napi_callback_info &info, ParametersInfoRemoveSlot ¶s);
|
/base/time/time_service/services/timer/include/ |
D | timer_manager_interface.h | 54 virtual int32_t CreateTimer(TimerPara ¶s,
|
D | timer_manager.h | 36 int32_t CreateTimer(TimerPara ¶s,
|
/base/time/time_service/services/timer/src/ |
D | timer_manager.cpp | 84 int32_t TimerManager::CreateTimer(TimerPara ¶s, 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()
|