Home
last modified time | relevance | path

Searched refs:pOpt (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_distributed_options.cpp93 auto pOpt = new (std::nothrow) NotificationDistributedOptions(); in FromJson() local
94 if (pOpt == nullptr) { in FromJson()
101 pOpt->isDistributed_ = jsonObject.at("isDistributed").get<bool>(); in FromJson()
105pOpt->devicesSupportDisplay_ = jsonObject.at("devicesSupportDisplay").get<std::vector<std::string>… in FromJson()
109pOpt->devicesSupportOperate_ = jsonObject.at("devicesSupportOperate").get<std::vector<std::string>… in FromJson()
112 return pOpt; in FromJson()
H A Dnotification_request.cpp1683 auto pOpt = parcel.ReadParcelable<NotificationDistributedOptions>(); in ReadFromParcel() local
1684 if (pOpt == nullptr) { in ReadFromParcel()
1688 distributedOptions_ = *pOpt; in ReadFromParcel()
1689 delete pOpt; in ReadFromParcel()
1690 pOpt = nullptr; in ReadFromParcel()
2293 … auto *pOpt = NotificationJsonConverter::ConvertFromJson<NotificationDistributedOptions>(optObj); in ConvertJsonToNotificationDistributedOptions() local
2294 if (pOpt == nullptr) { in ConvertJsonToNotificationDistributedOptions()
2299 target->distributedOptions_ = *pOpt; in ConvertJsonToNotificationDistributedOptions()
2300 delete pOpt; in ConvertJsonToNotificationDistributedOptions()
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_options.cpp325 int AddOptStrToOpts(uint8_t *pOpts, uint8_t *pOpt, int nOptLen) in AddOptStrToOpts() argument
327 int optStrLen = DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + pOpt[DHCP_OPT_LEN_INDEX]; in AddOptStrToOpts()
330 pOpt[DHCP_OPT_CODE_INDEX], nOptLen, optStrLen); in AddOptStrToOpts()
336 …DHCP_LOGE("AddOptStrToOpts() code:%{public}u did not fit into the packet!", pOpt[DHCP_OPT_CODE_IND… in AddOptStrToOpts()
340 DHCP_LOGD("AddOptStrToOpts() adding option code %{public}u.", pOpt[DHCP_OPT_CODE_INDEX]); in AddOptStrToOpts()
341 if (memcpy_s(pOpts + nEndIndex, nOptLen + 1, pOpt, nOptLen) != EOK) { in AddOptStrToOpts()
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_options.h35 int AddOptStrToOpts(uint8_t *pOpts, uint8_t *pOpt, int nOptLen);