Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 109) sorted by relevance

12345

/base/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/
Dhilogclient_fuzzer.cpp31 HilogMsg header = {0}; in DoSomethingInterestingWithMyAPI() local
36 header.tv_sec = static_cast<uint32_t>(ts.tv_sec); in DoSomethingInterestingWithMyAPI()
37 header.tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in DoSomethingInterestingWithMyAPI()
38 header.mono_sec = static_cast<uint32_t>(tsMono.tv_sec); in DoSomethingInterestingWithMyAPI()
39 header.pid = getpid(); in DoSomethingInterestingWithMyAPI()
40 header.tid = static_cast<uint32_t>(syscall(SYS_gettid)); in DoSomethingInterestingWithMyAPI()
41 header.type = LOG_CORE; in DoSomethingInterestingWithMyAPI()
42 header.level = LOG_INFO; in DoSomethingInterestingWithMyAPI()
43 header.domain = FUZZ_DOMAIN; in DoSomethingInterestingWithMyAPI()
44 int ret = HilogWriteLogMessage(&header, FUZZ_TEST, in DoSomethingInterestingWithMyAPI()
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
Ddcm_asn1.c28 static void BuildTlvHeader(struct HksAsn1Blob *header, const struct HksAsn1Blob *tlv) in BuildTlvHeader() argument
31 uint8_t *hptr = header->data; in BuildTlvHeader()
55 header->size = hptr - header->data; in BuildTlvHeader()
69 struct HksAsn1Blob header = { 0, ASN_1_MAX_HEADER_LEN, headerBuf }; in Asn1InsertValue() local
70 BuildTlvHeader(&header, &value); in Asn1InsertValue()
72 uint32_t outSize = header.size + value.size; in Asn1InsertValue()
78 … if (memmove_s(buf->data + header.size, buf->size - header.size, value.data, value.size) != EOK) { in Asn1InsertValue()
82 (void)memcpy_s(buf->data, buf->size, header.data, header.size); in Asn1InsertValue()
86 obj->header.type = tlv->type; in Asn1InsertValue()
87 obj->header.data = buf->data; in Asn1InsertValue()
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/
Dhilog_printf.cpp161 static int PrintLog(HilogMsg& header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t f… in PrintLog() argument
164 .level = header.level, in PrintLog()
165 .type = header.type, in PrintLog()
166 .pid = header.pid, in PrintLog()
167 .tid = header.tid, in PrintLog()
168 .domain = header.domain, in PrintLog()
169 .tv_sec = header.tv_sec, in PrintLog()
170 .tv_nsec = header.tv_nsec, in PrintLog()
171 .mono_sec = header.mono_sec, in PrintLog()
196 HilogMsg header = {0}; in HiLogPrintArgs() local
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/socket/
Dhilog_input_socket_client.cpp25 extern "C" int HilogWriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char … in HilogWriteLogMessage() argument
28 return g_hilogInputSocketClient.WriteLogMessage(header, tag, tagLen, fmt, fmtLen); in HilogWriteLogMessage()
31 int HilogInputSocketClient::WriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, con… in WriteLogMessage() argument
39 header->len = sizeof(HilogMsg) + tagLen + fmtLen; in WriteLogMessage()
40 header->tag_len = tagLen; in WriteLogMessage()
43 …vec[0].iov_base = header; // 0 : index of hos log hea… in WriteLogMessage()
/base/update/updater/services/diffpatch/patch/
Dimage_patch.cpp88 int32_t CompressedImagePatch::StartReadHeader(const PatchParam &param, PatchHeader &header, size_t … in StartReadHeader() argument
90 int32_t ret = ReadHeader(param, header, offset); in StartReadHeader()
96header.srcStart, header.srcLength, header.patchOffset, header.expandedLen, header.targetSize); in StartReadHeader()
97 if (header.srcStart + header.srcLength > param.oldSize) { in StartReadHeader()
108 PatchHeader header {}; in ApplyImagePatch() local
109 if (StartReadHeader(param, header, offset) != 0) { in ApplyImagePatch()
115 BlockBuffer oldData = { param.oldBuff + header.srcStart, header.srcLength }; in ApplyImagePatch()
116 if (DecompressData(pkgManager, oldData, stream, true, header.expandedLen) != 0) { in ApplyImagePatch()
128 info->packedSize = header.targetSize; in ApplyImagePatch()
129 info->unpackedSize = header.expandedLen; in ApplyImagePatch()
[all …]
/base/startup/hvb/libhvb/src/rvt/
Dhvb_rvt.c49 enum hvb_errno hvb_rvt_head_parser(const struct hvb_buf *rvt, struct rvt_image_header *header) in hvb_rvt_head_parser() argument
55 hvb_return_hvb_err_if_null(header); in hvb_rvt_head_parser()
57 if (rvt->size < sizeof(*header)) { in hvb_rvt_head_parser()
62 hvb_memcpy(header, rvt->addr, sizeof(*header)); in hvb_rvt_head_parser()
64 rvt_real_size = sizeof(*header) + header->verity_num * sizeof(struct rvt_pubk_desc); in hvb_rvt_head_parser()
65 if (rvt_real_size > rvt->size || rvt_real_size < sizeof(*header)) { in hvb_rvt_head_parser()
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_user_data_pdu.h35 void EncodeHeader(SmsWriteBuffer &buffer, const struct SmsUDH header);
50 void EncodeHeaderAppPort8bit(SmsWriteBuffer &buffer, const struct SmsUDH header);
51 void EncodeHeaderAppPort16bit(SmsWriteBuffer &buffer, const struct SmsUDH header);
52 void EncodeHeaderReplyAddress(SmsWriteBuffer &buffer, const struct SmsUDH header);
53 void EncodeHeaderConcat(SmsWriteBuffer &buffer, const struct SmsUDH header);
54 void EncodeHeaderConcat8Bit(SmsWriteBuffer &buffer, const struct SmsUDH &header);
55 void EncodeHeaderConcat16Bit(SmsWriteBuffer &buffer, const struct SmsUDH &header);
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_pdu.cpp156 if (!DecodeHeader(buffer, userData->header[i], headerLen)) { in GetHeaderCnt()
179 void GsmUserDataPdu::EncodeHeader(SmsWriteBuffer &buffer, const struct SmsUDH header) in EncodeHeader() argument
181 switch (header.udhType) { in EncodeHeader()
184 EncodeHeaderConcat(buffer, header); in EncodeHeader()
187 EncodeHeaderAppPort8bit(buffer, header); in EncodeHeader()
190 EncodeHeaderAppPort16bit(buffer, header); in EncodeHeader()
193 EncodeHeaderReplyAddress(buffer, header); in EncodeHeader()
204 if (!buffer.WriteByte(header.udh.singleShift.langId)) { in EncodeHeader()
218 if (!buffer.WriteByte(header.udh.lockingShift.langId)) { in EncodeHeader()
228 void GsmUserDataPdu::EncodeHeaderAppPort8bit(SmsWriteBuffer &buffer, const struct SmsUDH header) in EncodeHeaderAppPort8bit() argument
[all …]
Dgsm_sms_cb_handler.cpp76 if (*cbInfo.header.get() == *cbHeader.get()) { in CheckCbMessage()
77 int updateNum = cbHeader->serialNum.updateNum - cbInfo.header->serialNum.updateNum; in CheckCbMessage()
117 if (*info.header.get() == *cbHeader.get()) { in FindCbMessage()
118 cbInfo = std::make_unique<SmsCbInfo>(info.header, info.cbMsgs); in FindCbMessage()
142 info.header = cbHeader; in AddCbMessageToList()
173 switch (info.header->serialNum.geoScope) { in InitLocation()
200 std::shared_ptr<GsmCbCodec::GsmCbMessageHeader> header = cbMessage->GetCbHeader(); in RemoveCbMessageFromList() local
201 if (header == nullptr) { in RemoveCbMessageFromList()
208 if (*info.header.get() == *header.get() || !info.MatchLocation(plmn_, lac_, cid_)) { in RemoveCbMessageFromList()
233 std::shared_ptr<GsmCbCodec::GsmCbMessageHeader> header = cbMessage->GetCbHeader(); in HandleCbMessage() local
[all …]
Dgsm_sms_message.cpp105 smsTpdu_->data.submit.userData.header[index].udhType = UDH_SINGLE_SHIFT; in SetHeaderLang()
106 smsTpdu_->data.submit.userData.header[index].udh.singleShift.langId = langId; in SetHeaderLang()
126 smsTpdu_->data.submit.userData.header[index].udhType = UDH_CONCAT_8BIT; in SetHeaderConcat()
127 smsTpdu_->data.submit.userData.header[index].udh.concat8bit.msgRef = concat.msgRef; in SetHeaderConcat()
128 … smsTpdu_->data.submit.userData.header[index].udh.concat8bit.totalSeg = concat.totalSeg; in SetHeaderConcat()
129 smsTpdu_->data.submit.userData.header[index].udh.concat8bit.seqNum = concat.seqNum; in SetHeaderConcat()
131 smsTpdu_->data.submit.userData.header[index].udhType = UDH_CONCAT_16BIT; in SetHeaderConcat()
132 smsTpdu_->data.submit.userData.header[index].udh.concat16bit.msgRef = concat.msgRef; in SetHeaderConcat()
133 … smsTpdu_->data.submit.userData.header[index].udh.concat16bit.totalSeg = concat.totalSeg; in SetHeaderConcat()
134 smsTpdu_->data.submit.userData.header[index].udh.concat16bit.seqNum = concat.seqNum; in SetHeaderConcat()
[all …]
/base/telephony/sms_mms/services/sms/
Dsms_base_message.cpp147 if (smsUserData_.header[i].udhType == UDH_CONCAT_8BIT) { in GetConcatMsg()
154 smsConcat_->totalSeg = smsUserData_.header[i].udh.concat8bit.totalSeg; in GetConcatMsg()
155 smsConcat_->seqNum = smsUserData_.header[i].udh.concat8bit.seqNum; in GetConcatMsg()
156 smsConcat_->msgRef = smsUserData_.header[i].udh.concat8bit.msgRef; in GetConcatMsg()
158 } else if (smsUserData_.header[i].udhType == UDH_CONCAT_16BIT) { in GetConcatMsg()
165 smsConcat_->totalSeg = smsUserData_.header[i].udh.concat16bit.totalSeg; in GetConcatMsg()
166 smsConcat_->seqNum = smsUserData_.header[i].udh.concat16bit.seqNum; in GetConcatMsg()
167 smsConcat_->msgRef = smsUserData_.header[i].udh.concat16bit.msgRef; in GetConcatMsg()
178 if (smsUserData_.header[i].udhType == UDH_APP_PORT_8BIT) { in GetPortAddress()
185 portAddress_->destPort = smsUserData_.header[i].udh.appPort8bit.destPort; in GetPortAddress()
[all …]
/base/hiviewdfx/hiview/base/event_store/utility/reader/
Dsys_event_doc_reader.cpp106 DocHeader header; in Read() local
107 if (auto ret = ReadHeader(header); ret != DOC_STORE_SUCCESS) { in Read()
110 if (!IsValidHeader(header)) { in Read()
115 if (tag_.empty() && strlen(header.tag) != 0) { in Read()
116 tag_ = header.tag; in Read()
120 pageSize_ = header.pageSize * NUM_OF_BYTES_IN_KB; in Read()
135 int SysEventDocReader::ReadHeader(DocHeader& header) in ReadHeader() argument
142 in_.read(reinterpret_cast<char*>(&header), HEADER_SIZE); in ReadHeader()
223 DocHeader header; in ReadPageSize() local
224 if (int ret = ReadHeader(header); ret != DOC_STORE_SUCCESS) { in ReadPageSize()
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/base/
Dhilog_base.cpp70 … HiLogMsgInfo(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t fmtLen) in HiLogMsgInfo()
72 header_ = header; in HiLogMsgInfo()
224 static int SendMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_… in SendMessage() argument
237 struct HiLogMsgInfo msgInfo(header, tag, tagLen, fmt, fmtLen); in SendMessage()
264 HilogMsg header = {0}; in HiLogBasePrintArgs() local
265 header.type = type; in HiLogBasePrintArgs()
266 header.level = level; in HiLogBasePrintArgs()
268 header.pid = getpid(); in HiLogBasePrintArgs()
270 header.tid = static_cast<uint32_t>(gettid()); in HiLogBasePrintArgs()
271 header.domain = domain; in HiLogBasePrintArgs()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dlist_dumper.cpp47 std::string header; in Execute() local
50 header = ABILITY_HEADER; in Execute()
59 header = SYSTEM_HEADER; in Execute()
62 if (!header.empty()) { in Execute()
64 line_vector.push_back(header); in Execute()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_file_test.cpp504 struct DlpHeader header = { variable
518 ASSERT_TRUE(testFile.IsValidDlpHeader(header));
521 header.magic = 0;
522 ASSERT_FALSE(testFile.IsValidDlpHeader(header));
523 header.magic = DLP_FILE_MAGIC;
526 header.certSize = 0;
527 ASSERT_FALSE(testFile.IsValidDlpHeader(header));
530 header.certSize = DLP_MAX_CERT_SIZE + 1;
531 ASSERT_FALSE(testFile.IsValidDlpHeader(header));
532 header.certSize = 20;
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
Dhilog_input_socket_client.h27 …int WriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t …
33 extern "C" int HilogWriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char …
/base/hiviewdfx/hiview_lite/
Dhiview_file.c58 HiviewFileHeader *pHeader = &(fp->header); in InitHiviewFile()
108 HiviewFileHeader tmpHeader = fp->header; in WriteFileHeader()
146 … (void)memcpy_s(&(fp->header), sizeof(HiviewFileHeader), (void *)&h, sizeof(HiviewFileHeader)); in ReadFileHeader()
159 HiviewFileHeader *h = &(fp->header); in WriteToFile()
183 HiviewFileHeader* h = &(fp->header); in ReadFromFile()
206 return fp->header.wCursor; in GetFileUsedSize()
215 return (fp->header.size - fp->header.wCursor); in GetFileFreeSize()
249 HIEVENT_PUT_INT_VALUE(hievent, 0, (int32)fp->header.common.type); in ProcFile()
259 uint8 type = fp->header.common.type; in ProcFile()
322 switch (fp->header.common.type) { in UnRegisterFileWatcher()
/base/request/request/test/unittest/common/napi/requestTest/
DRequestJsunit.test.js53 header: { property
104 header: { property
148 header: { property
198 header: { property
247 header: { property
292 header: { property
330 header: { property
368 header: { property
407 header: { property
446 header: { property
[all …]
DRequestUploadTest.js61 header: { property
71 header: { property
272 function HeaderReceiveCallback(header) { argument
273 console.info("SUB_REQUEST_UPLOAD_API_PROMISE_0001 on header: " + header);
274 … expect(true).assertEqual((header !== undefined) || (header !== "") || (header !== {}));
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/parsedlpheader_fuzzer/
Dparsedlpheader_fuzzer.cpp61 struct DlpHeader header = { in FuzzTest() local
73 write(fd, &header, sizeof(header)); in FuzzTest()
/base/hiviewdfx/hiview/base/event_raw/encoded/
Draw_data_builder.cpp39 auto header = event.GetHeader(); in RawDataBuilder() local
41 … AppendDomain(header.domain).AppendName(header.name).AppendType(static_cast<int>(header.type) + 1). in RawDataBuilder()
42 AppendTimeStamp(header.timestamp).AppendTimeZone(header.timeZone). in RawDataBuilder()
43 AppendUid(header.uid).AppendPid(header.pid).AppendTid(header.tid).AppendId(header.id); in RawDataBuilder()
44 if (header.isTraceOpened == 1) { in RawDataBuilder()
/base/update/updater/services/package/pkg_package/
Dpkg_gzipfile.cpp67 GZipHeader *header = (GZipHeader *)buffer.buffer; in GetUpGradeCompInfo() local
68 header->magic = GZIP_MAGIC; in GetUpGradeCompInfo()
69 header->method = Z_DEFLATED; in GetUpGradeCompInfo()
70 header->flags = 0; in GetUpGradeCompInfo()
71 header->mtime = fileInfo_.fileInfo.modifiedTime; in GetUpGradeCompInfo()
74 header->flags |= EXTRA_FIELD; in GetUpGradeCompInfo()
80 header->flags |= ORIG_NAME; in GetUpGradeCompInfo()
90 header->flags |= COMMENT; in GetUpGradeCompInfo()
374 GZipHeader *header = (GZipHeader *)buffer.buffer; in LoadPackage() local
376 if (header->magic != GZIP_MAGIC) { in LoadPackage()
[all …]
/base/telephony/sms_mms/test/unittest/
Dcdma_sms_test.cpp57 … transMsg->data.p2p.telesvcMsg.data.submit.userData.userData.header[0].udhType = UDH_CONCAT_8BIT; in SetPduSeqInfo()
58 …transMsg->data.p2p.telesvcMsg.data.submit.userData.userData.header[0].udh.concat8bit.msgRef = msgR… in SetPduSeqInfo()
59 … transMsg->data.p2p.telesvcMsg.data.submit.userData.userData.header[0].udh.concat8bit.totalSeg = in SetPduSeqInfo()
61 …transMsg->data.p2p.telesvcMsg.data.submit.userData.userData.header[0].udh.concat8bit.seqNum = inde… in SetPduSeqInfo()
136 void CdmaSmsTest::PrintHeader(const SmsUDH &header, string s) const in PrintHeader() argument
138 switch (header.udhType) { in PrintHeader()
140 cout << s << "udhType : UDH_CONCAT_8BIT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
141 …cout << s << "concat8bit: msgRef[" << static_cast<int>(header.udh.concat8bit.msgRef) << "] totalSe… in PrintHeader()
142 << static_cast<int>(header.udh.concat8bit.totalSeg) << "] seqNum[" in PrintHeader()
143 << static_cast<int>(header.udh.concat8bit.seqNum) << "]" << endl; in PrintHeader()
[all …]
/base/update/updater/services/ui/
Dupdater_ui_tools.cpp49 .biWidth = imageBit.header.width, in SaveUxBuffToFile()
50 .biHeight = -imageBit.header.height, in SaveUxBuffToFile()
/base/hiviewdfx/hiview/base/
Dsys_event.cpp119 auto header = builder_->GetHeader(); in InitialMembers() local
122 happenTime_ = header.timestamp; in InitialMembers()
132 tz_ = static_cast<int16_t>(header.timeZone); in InitialMembers()
133 pid_ = static_cast<int32_t>(header.pid); in InitialMembers()
134 tid_ = static_cast<int32_t>(header.tid); in InitialMembers()
135 uid_ = static_cast<int32_t>(header.uid); in InitialMembers()
136 if (header.isTraceOpened == 1) { in InitialMembers()

12345