Home
last modified time | relevance | path

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

/system/core/fs_mgr/libsnapshot/
Dcow_reader.cpp34 CowReader::CowReader() : fd_(-1), header_(), fd_size_(0) {} in CowReader()
60 if (!android::base::ReadFully(fd_, &header_, sizeof(header_))) { in InitForMerge()
87 if (!android::base::ReadFully(fd_, &header_, sizeof(header_))) { in Parse()
92 if (header_.magic != kCowMagicNumber) { in Parse()
93 LOG(ERROR) << "Header Magic corrupted. Magic: " << header_.magic in Parse()
97 if (header_.footer_size != sizeof(CowFooter)) { in Parse()
98 LOG(ERROR) << "Footer size unknown, read " << header_.footer_size << ", expected " in Parse()
102 if (header_.op_size != sizeof(CowOperation)) { in Parse()
103 LOG(ERROR) << "Operation size unknown, read " << header_.op_size << ", expected " in Parse()
107 if (header_.cluster_ops == 1) { in Parse()
[all …]
Dcow_writer.cpp87 header_ = {}; in SetupHeaders()
88 header_.magic = kCowMagicNumber; in SetupHeaders()
89 header_.major_version = kCowVersionMajor; in SetupHeaders()
90 header_.minor_version = kCowVersionMinor; in SetupHeaders()
91 header_.header_size = sizeof(CowHeader); in SetupHeaders()
92 header_.footer_size = sizeof(CowFooter); in SetupHeaders()
93 header_.op_size = sizeof(CowOperation); in SetupHeaders()
94 header_.block_size = options_.block_size; in SetupHeaders()
95 header_.num_merge_ops = 0; in SetupHeaders()
96 header_.cluster_ops = options_.cluster_ops; in SetupHeaders()
[all …]
/system/extras/simpleperf/
Drecord_file_reader.cpp118 if (!Read(&header_, sizeof(header_))) { in ReadHeader()
121 if (memcmp(header_.magic, PERF_MAGIC, sizeof(header_.magic)) != 0) { in ReadHeader()
129 size_t attr_count = header_.attrs.size / header_.attr_size; in ReadAttrSection()
130 if (header_.attr_size != sizeof(FileAttr)) { in ReadAttrSection()
131 LOG(DEBUG) << "attr size (" << header_.attr_size << ") in " << filename_ in ReadAttrSection()
138 if (fseek(record_fp_, header_.attrs.offset, SEEK_SET) != 0) { in ReadAttrSection()
143 std::vector<char> buf(header_.attr_size); in ReadAttrSection()
152 size_t perf_event_attr_size = header_.attr_size - section_desc_size; in ReadAttrSection()
182 for (size_t i = 0; i < sizeof(header_.features); ++i) { in ReadFeatureSectionDescriptors()
184 if (header_.features[i] & (1 << j)) { in ReadFeatureSectionDescriptors()
[all …]
Drecord_file.h132 const PerfFileFormat::FileHeader& FileHeader() const { return header_; } in FileHeader()
209 PerfFileFormat::FileHeader header_; variable
/system/core/fs_mgr/liblp/
Dbuilder.cpp305 memset(&header_, 0, sizeof(header_)); in MetadataBuilder()
306 header_.magic = LP_METADATA_HEADER_MAGIC; in MetadataBuilder()
307 header_.major_version = LP_METADATA_MAJOR_VERSION; in MetadataBuilder()
308 header_.minor_version = LP_METADATA_MINOR_VERSION_MIN; in MetadataBuilder()
309 header_.header_size = sizeof(LpMetadataHeaderV1_0); in MetadataBuilder()
310 header_.partitions.entry_size = sizeof(LpMetadataPartition); in MetadataBuilder()
311 header_.extents.entry_size = sizeof(LpMetadataExtent); in MetadataBuilder()
312 header_.groups.entry_size = sizeof(LpMetadataPartitionGroup); in MetadataBuilder()
313 header_.block_devices.entry_size = sizeof(LpMetadataBlockDevice); in MetadataBuilder()
323 header_.flags = metadata.header.flags; in Init()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_writer.h109 uint32_t GetCowVersion() { return header_.major_version; } in GetCowVersion()
138 CowHeader header_{};
Dcow_reader.h161 CowHeader header_; variable
/system/libziparchive/
Dzip_archive_test.cc69 header_ = "metadata"; in SetUp()
70 joined_names_ = header_ + android::base::Join(names_, separator_); in SetUp()
77 size_t offset = header_.size(); in SetUp()
91 std::string header_; member in CdEntryMapTest
107 uint64_t expected_offset = header_.size(); in TEST_F()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h420 LpMetadataHeader header_; variable