Home
last modified time | relevance | path

Searched refs:header_ (Results 1 – 11 of 11) sorted by relevance

/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/
Draw_data_builder.cpp41 if (!dest->Append(reinterpret_cast<uint8_t*>(&header_), sizeof(struct HiSysEventHeader))) { in BuildHeader()
46 if (header_.isTraceOpened == 1 && in BuildHeader()
105 auto ret = memcpy_s(header_.domain, MAX_DOMAIN_LENGTH, domain.c_str(), domain.length()); in AppendDomain()
110 header_.domain[resetPos] = '\0'; in AppendDomain()
116 auto ret = memcpy_s(header_.name, MAX_EVENT_NAME_LENGTH, name.c_str(), name.length()); in AppendName()
121 header_.name[resetPos] = '\0'; in AppendName()
127 header_.type = static_cast<uint8_t>(eventType - 1); // header_.type is only 2 bits which must be in AppendType()
134 header_.timestamp = timestamp; in AppendTimeStamp()
140 header_.timeZone = static_cast<uint8_t>(ParseTimeZone(timeZone)); in AppendTimeZone()
146 header_.timeZone = timeZone; in AppendTimeZone()
[all …]
/base/hiviewdfx/hiview/base/event_raw/encoded/
Draw_data_builder.cpp59 if (!dest->Append(reinterpret_cast<uint8_t*>(&header_), sizeof(struct HiSysEventHeader))) { in BuildHeader()
64 if (header_.isTraceOpened == 1 && in BuildHeader()
124 auto ret = memcpy_s(header_.domain, MAX_DOMAIN_LENGTH, domain.c_str(), domain.length()); in AppendDomain()
129 header_.domain[resetPos] = '\0'; in AppendDomain()
135 auto ret = memcpy_s(header_.name, MAX_EVENT_NAME_LENGTH, name.c_str(), name.length()); in AppendName()
140 header_.name[resetPos] = '\0'; in AppendName()
146 header_.type = static_cast<uint8_t>(eventType - 1); // header_.type is only 2 bits which must be in AppendType()
153 header_.timestamp = timestamp; in AppendTimeStamp()
159 header_.timeZone = static_cast<uint8_t>(ParseTimeZone(timeZone)); in AppendTimeZone()
165 header_.timeZone = timeZone; in AppendTimeZone()
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/base/
Dhilog_base.cpp65 HilogMsg *header_; member
72 header_ = header; in HiLogMsgInfo()
185 logLevel = logMsgInfo->header_->level; in BuildHilogMessageForOhCore()
188 (logMsgInfo->header_->domain & domainFilter), logMsgInfo->tag_) < 0) { in BuildHilogMessageForOhCore()
209 logMsgInfo->header_->tv_sec = static_cast<uint32_t>(ts.tv_sec); in BuildHilogMessageForOh()
210 logMsgInfo->header_->tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in BuildHilogMessageForOh()
211 logMsgInfo->header_->mono_sec = static_cast<uint32_t>(tsMono.tv_sec); in BuildHilogMessageForOh()
212 logMsgInfo->header_->len = sizeof(HilogMsg) + logMsgInfo->tagLen_ + logMsgInfo->fmtLen_; in BuildHilogMessageForOh()
213 logMsgInfo->header_->tag_len = logMsgInfo->tagLen_; in BuildHilogMessageForOh()
215 …vec[0].iov_base = logMsgInfo->header_; // 0 : index of hos log he… in BuildHilogMessageForOh()
/base/hiviewdfx/hiview/base/event_raw/decoded/
Ddecoded_event.cpp92 if (memcpy_s(domain, MAX_DOMAIN_LENGTH, header_.domain, MAX_DOMAIN_LENGTH) != EOK) { in AppendBaseInfo()
104 if (memcpy_s(name, MAX_EVENT_NAME_LENGTH, header_.name, MAX_EVENT_NAME_LENGTH) != EOK) { in AppendBaseInfo()
112 …AppendValue(ss, BASE_INFO_KEY_TYPE, (static_cast<int>(header_.type) + 1)); // header_.type is only… in AppendBaseInfo()
114 AppendValue(ss, BASE_INFO_KEY_TIME_STAMP, header_.timestamp); in AppendBaseInfo()
115 auto timeZone = ParseTimeZone(static_cast<size_t>(header_.timeZone)); in AppendBaseInfo()
117 AppendValue(ss, BASE_INFO_KEY_PID, header_.pid); in AppendBaseInfo()
118 AppendValue(ss, BASE_INFO_KEY_TID, header_.tid); in AppendBaseInfo()
119 AppendValue(ss, BASE_INFO_KEY_UID, header_.uid); in AppendBaseInfo()
120 AppendValue(ss, BASE_INFO_KEY_ID, TransUInt64ToFixedLengthStr(header_.id)); in AppendBaseInfo()
121 if (header_.isTraceOpened == 1) { in AppendBaseInfo()
[all …]
/base/hiviewdfx/hiview/base/event_raw/include/encoded/
Draw_data_builder.h432 return this->ParseValue(val, std::string(header_.domain)); in GetBaseInfoValueByKey()
435 return this->ParseValue(val, std::string(header_.name)); in GetBaseInfoValueByKey()
438 return this->ParseValue(val, header_.type); in GetBaseInfoValueByKey()
441 return this->ParseValue(val, header_.timestamp); in GetBaseInfoValueByKey()
445 return this->ParseValue(val, header_.id); in GetBaseInfoValueByKey()
448 return this->ParseValue(val, header_.pid); in GetBaseInfoValueByKey()
451 return this->ParseValue(val, header_.tid); in GetBaseInfoValueByKey()
454 return this->ParseValue(val, header_.uid); in GetBaseInfoValueByKey()
490 val = static_cast<std::decay_t<T>>(header_.timeZone); in PareTimeZone()
495 val = ParseTimeZone(header_.timeZone); in PareTimeZone()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/include/
Draw_data_builder.h429 return this->ParseValue(val, std::string(header_.domain)); in GetBaseInfoValueByKey()
432 return this->ParseValue(val, std::string(header_.name)); in GetBaseInfoValueByKey()
435 return this->ParseValue(val, header_.type); in GetBaseInfoValueByKey()
438 return this->ParseValue(val, header_.timestamp); in GetBaseInfoValueByKey()
442 return this->ParseValue(val, header_.id); in GetBaseInfoValueByKey()
445 return this->ParseValue(val, header_.pid); in GetBaseInfoValueByKey()
448 return this->ParseValue(val, header_.tid); in GetBaseInfoValueByKey()
451 return this->ParseValue(val, header_.uid); in GetBaseInfoValueByKey()
487 val = static_cast<std::decay_t<T>>(header_.timeZone); in PareTimeZone()
492 val = ParseTimeZone(header_.timeZone); in PareTimeZone()
[all …]
/base/request/request/frameworks/js/napi/include/legacy/
Ddownload_task.h32 std::vector<std::string> header_; member
/base/request/request/frameworks/js/napi/src/legacy/
Ddownload_task.cpp147 if (!option_.header_.empty()) { in SetOption()
148 for (const auto &head : option_.header_) { in SetOption()
Drequest_manager.cpp197 downloadOption.header_ = ParseHeader(env, option); in ParseOption()
/base/request/request/frameworks/js/napi/include/upload/
Dupload_task.h75 std::string header_; variable
/base/hiviewdfx/hiview/base/event_raw/include/decoded/
Ddecoded_event.h125 struct HiSysEventHeader header_ = { variable