/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | tar_file.cpp | 162 static bool CopyData(TarHeader &hdr, const string &mode, const string &uid, const string &gid, const string &size) in CopyData() argument 164 auto ret = memcpy_s(hdr.mode, sizeof(hdr.mode), mode.c_str(), min(sizeof(hdr.mode) - 1, mode.length())); in CopyData() 169 ret = memcpy_s(hdr.uid, sizeof(hdr.uid), uid.c_str(), min(sizeof(hdr.uid) - 1, uid.length())); in CopyData() 174 ret = memcpy_s(hdr.gid, sizeof(hdr.gid), gid.c_str(), min(sizeof(hdr in CopyData() 187 I2OcsConvert(const struct stat &st, TarHeader &hdr, string &fileName) I2OcsConvert() argument 242 ReadyHeader(TarHeader &hdr, const string &fileName) ReadyHeader() argument 276 TarHeader hdr; AddFile() local 447 SetCheckSum(TarHeader &hdr) SetCheckSum() argument 467 FillOwnerName(TarHeader &hdr, const struct stat &st) FillOwnerName() argument [all...] |
/foundation/communication/dsoftbus/adapter/common/bus_center/network/ |
H A D | lnn_linkwatch.c | 62 struct nlmsghdr *hdr = NULL; in ProcessNetlinkAnswer() local 66 for (hdr = (struct nlmsghdr *)answer; remain >= (int32_t)sizeof(*hdr);) { in ProcessNetlinkAnswer() 67 len = hdr->nlmsg_len; in ProcessNetlinkAnswer() 68 if ((hdr->nlmsg_len - sizeof(*hdr)) < 0 || len > (uint32_t)remain) { in ProcessNetlinkAnswer() 72 if (hdr->nlmsg_seq != seq) { in ProcessNetlinkAnswer() 75 hdr = (struct nlmsghdr *)((char *)hdr + NLMSG_ALIGN(len)); in ProcessNetlinkAnswer() 78 if (hdr in ProcessNetlinkAnswer() 152 struct nlmsghdr hdr; LnnIsLinkReady() member 162 struct nlmsghdr hdr; LnnIsLinkReady() member [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | data_receiver.cpp | 77 msghdr hdr; in ReceiveMessage() local 78 hdr.msg_name = &addr; in ReceiveMessage() 79 hdr.msg_namelen = sizeof(addr); in ReceiveMessage() 80 hdr.msg_iov = &iov; in ReceiveMessage() 81 hdr.msg_iovlen = 1; in ReceiveMessage() 82 hdr.msg_control = control; in ReceiveMessage() 83 hdr.msg_controllen = sizeof(control); in ReceiveMessage() 84 hdr.msg_flags = 0; in ReceiveMessage() 85 ssize_t count = TEMP_FAILURE_RETRY(recvmsg(socket_, &hdr, 0)); in ReceiveMessage() 91 cmsghdr *cmsgHeader = CMSG_FIRSTHDR(&hdr); in ReceiveMessage() [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
H A D | fillp_mgt_msg_log.c | 69 struct FillpPktHead hdr = {0}; in FillpPktSimpleLog() local 70 FillpHeaderNtoH(&hdr, hdrInput, direction); in FillpPktSimpleLog() 71 FILLP_UINT16 type = FILLP_PKT_GET_TYPE(hdr.flag); in FillpPktSimpleLog() 75 FILLP_MGT_MSG_PRINT(sockIndex, &hdr, direction, ""); in FillpPktSimpleLog() 81 struct FillpPktHead hdr = {0}; in FillpConnReqLog() local 82 FillpHeaderNtoH(&hdr, (FILLP_CONST struct FillpPktHead *)req->head, direction); in FillpConnReqLog() 83 FILLP_MGT_MSG_PRINT(sockIndex, &hdr, direction, in FillpConnReqLog() 199 void FillpConnReqAckRxLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktHead *hdr, in FillpConnReqAckRxLog() argument 207 FILLP_MGT_MSG_PRINT(sockIndex, hdr, FILLP_DIRECTION_RX, in FillpConnReqAckRxLog() 220 struct FillpPktHead hdr in FillpConnReqAckTxLog() local 281 struct FillpPktHead hdr = {0}; FillpConnConfirmTxLog() local 295 struct FillpPktHead hdr = {0}; FillpConnConfirmAckLog() local 323 struct FillpPktHead hdr = {0}; FillpConnFinLog() local [all...] |
/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | vpe_helper.cpp | 125 OHNativeWindowBuffer *hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&outputHdrImage); in ColorSpaceConverterComposeImage() local 126 int32_t res = composeImageFunc(instance, sdr, gainmap, hdr, legacy); in ColorSpaceConverterComposeImage() 127 OH_NativeWindow_DestroyNativeWindowBuffer(hdr); in ColorSpaceConverterComposeImage() 139 OHNativeWindowBuffer *hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&inputImage); in ColorSpaceConverterDecomposeImage() local 142 int32_t res = decomposeImageFunc(instance, hdr, sdr, gainmap); in ColorSpaceConverterDecomposeImage() 145 OH_NativeWindow_DestroyNativeWindowBuffer(hdr); in ColorSpaceConverterDecomposeImage() 155 OHNativeWindowBuffer *hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&inputImage); in ColorSpaceConverterProcessImage() local 157 int32_t res = processImageFunc(instance, hdr, sdr); in ColorSpaceConverterProcessImage() 159 OH_NativeWindow_DestroyNativeWindowBuffer(hdr); in ColorSpaceConverterProcessImage()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_netlink.cpp | 67 struct nlmsghdr hdr; member 71 struct nlmsghdr hdr; member 104 stMessage.hdr.nlmsg_len = static_cast<unsigned int>(NLMSG_LENGTH(0)); in SendCmdKernel() 105 stMessage.hdr.nlmsg_flags = flag; in SendCmdKernel() 106 stMessage.hdr.nlmsg_type = cmd; in SendCmdKernel() 107 stMessage.hdr.nlmsg_pid = static_cast<unsigned int>(getpid()); in SendCmdKernel() 114 ret = sendto(sockFd, &stMessage, stMessage.hdr.nlmsg_len, 0, in SendCmdKernel() 202 WIFI_LOGI("Received invalid message info.hdr.nlmsg_type = %{public}d", info.hdr.nlmsg_type); in ProcessReportMsg()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | vpe_utils.cpp | 168 if (sb.sdr == nullptr || sb.gainmap == nullptr || sb.hdr == nullptr) {
in ColorSpaceConverterComposeImage() 173 OHNativeWindowBuffer* hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sb.hdr);
in ColorSpaceConverterComposeImage() local 174 res = composeImage(instanceId, sdr, gainmap, hdr, legacy);
in ColorSpaceConverterComposeImage() 177 OH_NativeWindow_DestroyNativeWindowBuffer(hdr);
in ColorSpaceConverterComposeImage() 200 if (sb.sdr == nullptr || sb.gainmap == nullptr || sb.hdr == nullptr) {
in ColorSpaceConverterDecomposeImage() 205 OHNativeWindowBuffer* hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sb.hdr);
in ColorSpaceConverterDecomposeImage() local 206 res = decomposeImage(instanceId, hdr, sdr, gainmap);
in ColorSpaceConverterDecomposeImage() 209 OH_NativeWindow_DestroyNativeWindowBuffer(hdr);
in ColorSpaceConverterDecomposeImage() 412 OHNativeWindowBuffer* hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&output); ColorSpaceConverterImageProcess() local [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common.c | 411 const struct HdiIeHdr *hdr; in HdiConvertIe() local 434 hdr = (const struct HdiIeHdr *) hdiIe; in HdiConvertIe() 436 if (hdr->elemId != HDI_EID_VENDOR_SPECIFIC || in HdiConvertIe() 437 hdr->len != wpaIeLen - HDI_POS_SECOND || in HdiConvertIe() 438 HDI_GET_RSN_ID(hdr->oui) != HDI_OUI_TYPE || in HdiConvertIe() 439 HdiGetBe16(hdr->version) != HDI_VERSION) { in HdiConvertIe() 444 pos = (const uint8_t *) (hdr + 1); in HdiConvertIe() 445 left = (int)(wpaIeLen - sizeof(*hdr)); in HdiConvertIe() 540 const struct HdiRsnIeHdr *hdr; in HdiConvertIeRsn() local 542 hdr in HdiConvertIeRsn() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | flat_obj.h | 43 struct parcel_binder_object_header hdr; member 67 struct parcel_binder_object_header hdr; member
|
/foundation/communication/ipc/ipc/native/src/mock/include/ |
H A D | dbinder_base_invoker_object.h | 31 binderObject->hdr.type = BINDER_TYPE_REMOTE_HANDLE;
in TranslateBinderType() 39 binderObject->hdr.type = BINDER_TYPE_INVALID_BINDER;
in ClearBinderType() 63 binderObject->hdr.type = BINDER_TYPE_REMOTE_HANDLE;
in TranslateHandleType() 69 binderObject->hdr.type = BINDER_TYPE_INVALID_HANDLE;
in ClearHandleType() 101 // If any error occurred before, hdr.type was still BINDER_TYPE_REMOTE_HANDLE
in TranslateRemoteHandleType() 103 binderObject->hdr.type = BINDER_TYPE_HANDLE;
in TranslateRemoteHandleType() 126 switch (binderObject->hdr.type) {
in IRemoteObjectTranslateWhenSend() 146 binderObject->hdr.type = BINDER_TYPE_FDR;
in IRemoteObjectTranslateWhenSend() 151 ZLOGE(LOG_LABEL, "do not support this type:%{public}u of translation", binderObject->hdr.type);
in IRemoteObjectTranslateWhenSend() 174 switch (binderObject->hdr in IRemoteObjectTranslateWhenRcv() [all...] |
H A D | sys_binder.h | 57 struct binder_object_header hdr; member 67 struct binder_object_header hdr; member 76 struct binder_object_header hdr; member 88 struct binder_object_header hdr; member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | avdtp.h | 229 AvdtEvtHeader hdr; // Event header member 237 AvdtEvtHeader hdr; // Event header member 247 AvdtEvtHeader hdr; // Event header member 256 AvdtEvtHeader hdr; // Event header member 262 AvdtEvtHeader hdr; // Event header member 268 AvdtEvtHeader hdr; // Event header member 276 AvdtEvtHeader hdr; member
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | netlink_msg_test.cpp | 55 fib_rule_hdr hdr = { in HWTEST_F() local 65 netLinkMsg.AddRule(action, hdr); in HWTEST_F()
|
H A D | netlink_socket_test.cpp | 42 struct nlmsghdr hdr = {0}; in DealInfoFromKernelTest002() local 43 DealInfoFromKernel(&hdr, clearThing, table); in DealInfoFromKernelTest002()
|
H A D | clatd_packet_converter_test.cpp | 596 udphdr hdr{}; in HWTEST_F() 598 EXPECT_EQ(clatdPacketConverter->ConvertUdpPacket(0, &hdr, 0, 0, tpLen), NETMANAGER_ERR_INVALID_PARAMETER); in HWTEST_F() 600 EXPECT_EQ(clatdPacketConverter->ConvertUdpPacket(0, &hdr, 0, 0, tpLen), NETMANAGER_SUCCESS); in HWTEST_F() 609 icmp6_hdr hdr{}; in HWTEST_F() 610 EXPECT_EQ(clatdPacketConverter->ConvertIcmpv6Packet(0, &hdr, tpLen), NETMANAGER_ERR_INVALID_PARAMETER); in HWTEST_F() 613 hdr.icmp6_type = ICMP6_TIME_EXCEEDED; in HWTEST_F() 614 EXPECT_EQ(clatdPacketConverter->ConvertIcmpv6Packet(pos, &hdr, tpLen), NETMANAGER_ERR_INVALID_PARAMETER); in HWTEST_F() 615 hdr.icmp6_type = ICMP6_ECHO_REQUEST - 1; in HWTEST_F() 616 EXPECT_EQ(clatdPacketConverter->ConvertIcmpv6Packet(pos, &hdr, tpLen), NETMANAGER_ERR_INVALID_PARAMETER); in HWTEST_F()
|
/foundation/graphic/graphic_3d/lume/LumeFont/src/ |
H A D | font_manager.cpp | 407 auto& hdr = atlas.columns[col]; in UpdateAtlas() local 408 colPos += hdr.colWidth; in UpdateAtlas() 416 auto& hdr = atlas.columns[bestFitColumn]; in UpdateAtlas() local 417 AddGlyphToColumn(glyph, bestFitAtlas, hdr, bitmap, bestFitColumnPos); in UpdateAtlas() 425 auto& hdr = atlas->columns.emplace_back(); in UpdateAtlas() local 426 hdr.colWidth = static_cast<uint16_t>(width); in UpdateAtlas() 427 hdr.heightLeft = static_cast<uint16_t>(ATLAS_SIZE); in UpdateAtlas() 428 AddGlyphToColumn(glyph, i, hdr, bitmap, 0); in UpdateAtlas() 480 Glyph& glyph, size_t atlasIndex, ColumnHeader& hdr, const FT_Bitmap& bitmap, uint32_t columnX) in AddGlyphToColumn() 486 uint32_t y = ATLAS_SIZE - hdr in AddGlyphToColumn() 479 AddGlyphToColumn( Glyph& glyph, size_t atlasIndex, ColumnHeader& hdr, const FT_Bitmap& bitmap, uint32_t columnX) AddGlyphToColumn() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_message.c | 275 sigCtrl, sigId, avdtMsgData->configureCmd.hdr.errParam, avdtMsgData->configureCmd.hdr.errCode); in AvdtMsgSendRej() 279 sigCtrl, sigId, avdtMsgData->reconfigureCmd.hdr.errParam, avdtMsgData->reconfigureCmd.hdr.errCode); in AvdtMsgSendRej() 335 AvdtBuildSignalSeid(&data, avdtMsgData->delayRptCmd.hdr.seid); in AvdtBuildDelayCmd() 687 AvdtBuildSignalSeid(&data, avdtMsgData->reconfigureCmd.hdr.seid); in AvdtBuildReconfigureCmd() 1164 (uint16_t)seid, pkt, Offset, &msg.msg.reconfigureCmd.hdr.errCode, &msg.msg.reconfigureCmd.hdr.errParam); in AvdtParseReconfigInd() 1166 if (msg.msg.reconfigureCmd.hdr.errCode != AVDT_SUCCESS) { in AvdtParseReconfigInd() 1168 sigCtrl, AVDT_SIG_RECONFIG, msg.msg.reconfigureCmd.hdr in AvdtParseReconfigInd() [all...] |
H A D | avdtp_impl.c | 68 if (data->msg.discoverRsp.hdr.errCode == AVDT_SUCCESS) { in AvdtActDiscoverRsp() 95 event.msg.discoverRsp.hdr.errCode = AVDT_SUCCESS; in AvdtActDiscoverInd() 423 LOG_DEBUG("[AVDT]%{public}s: errorcode(%hhu)", __func__, data->msg.configureCmd.hdr.errCode); in AvdtActSetConfigRsp() 426 if (data->msg.configureCmd.hdr.errCode == AVDT_SUCCESS) { in AvdtActSetConfigRsp() 475 confirmData.configInd.hdr.mtu = transTbl->peerMtu; in AvdtActSetConfigInd() 550 if (data->msg.configureCmd.hdr.errCode == AVDT_SUCCESS) { in AvdtActGetConfigRsp() 680 if (data->msg.configureCmd.hdr.errCode == AVDT_SUCCESS) { in AvdtActReconfigRsp() 707 confirmData.reconfigInd.hdr.seid = data->msg.reconfigureCmd.hdr.seid; in AvdtActReconfigInd() 1157 message.delayRptCmd.hdr in AvdtActDelayRptReq() [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/include/ |
H A D | tar_file.h | 158 * @param hdr tar文件结构体 160 void SetCheckSum(TarHeader &hdr); 165 * @param hdr tar文件结构体 168 void FillOwnerName(TarHeader &hdr, const struct stat &st); 214 * @param hdr tar包文件头 216 bool I2OcsConvert(const struct stat &st, TarHeader &hdr, std::string &fileName);
|
/foundation/filemanagement/storage_service/services/storage_daemon/netlink/src/ |
H A D | netlink_listener.cpp | 37 struct msghdr hdr = { in UeventKernelMulticastRecv() local 48 ssize_t n = recvmsg(socket, &hdr, 0); in UeventKernelMulticastRecv() 58 cmsg = CMSG_FIRSTHDR(&hdr); in UeventKernelMulticastRecv()
|
/foundation/communication/ipc/ipc/native/c/ipc/src/linux/include/ |
H A D | sys_binder.h | 76 struct binder_object_header hdr; member 86 struct binder_object_header hdr; member 99 struct binder_object_header hdr; member
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_ashmem_helper.cpp | 190 if (flat->hdr.type == BINDER_TYPE_FD) { in CopyFileDescriptor() 209 if (flat->hdr.type == BINDER_TYPE_FD || flat->hdr.type == BINDER_TYPE_FDR) { in InjectFileDescriptor()
|
/foundation/communication/ipc/ipc/native/src/mock/source/ |
H A D | binder_invoker.cpp | 207 if (flat->hdr.type == BINDER_TYPE_HANDLE && flat->cookie != IRemoteObject::IF_PROT_BINDER) { in TranslateDBinderProxy() 212 if (flat->hdr.type == BINDER_TYPE_HANDLE && flat->cookie == IRemoteObject::IF_PROT_DATABUS in TranslateDBinderProxy() 409 if ((obj->hdr.type == BINDER_TYPE_PTR) && (obj->length == sizeof(dbinder_negotiation_data))) { in TranslateDBinderStub() 423 if (flat->hdr.type != BINDER_TYPE_BINDER) { in TranslateDBinderStub() 424 ZLOGE(LABEL, "unexpected binder type:%{public}d", flat->hdr.type); in TranslateDBinderStub() 451 auto *hdr = reinterpret_cast<const binder_object_header *>(buffer); in UnFlattenDBinderObject() local 452 if (hdr->type != BINDER_TYPE_PTR) { in UnFlattenDBinderObject() 1495 flat.hdr.type = BINDER_TYPE_HANDLE; in FlattenObject() 1504 flat.hdr.type = BINDER_TYPE_BINDER; in FlattenObject() 1538 switch (flat->hdr in UnflattenObject() [all...] |
/foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/ |
H A D | avmetadata_collector.cpp | 133 int32_t hdr; in GetAVMetadata() local 135 hdr = static_cast<int32_t>(HdrType::AV_HDR_TYPE_VIVID); in GetAVMetadata() 137 hdr = static_cast<int32_t>(HdrType::AV_HDR_TYPE_NONE); in GetAVMetadata() 139 collectedAVMetaData_->SetData("hdrType", hdr); in GetAVMetadata()
|
/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | message_parcel.cpp | 55 switch (flat->hdr.type) { in AcquireObject() 168 if (obj->hdr.type == BINDER_TYPE_PTR) { in UpdateDBinderDataOffset() 304 if (flat->hdr.type == BINDER_TYPE_FD && flat->handle > 0) { in ClearFileDescriptor() 334 if (flat->hdr.type == BINDER_TYPE_FD) { in ContainFileDescriptors()
|