Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 25 of 28) sorted by relevance

12

/system/libufdt/utils/src/
Ddt_table.c26 const uint32_t header_size = sizeof(struct dt_table_header); in dt_table_header_init() local
29 dto_memset(header, 0, header_size); in dt_table_header_init()
35 header->total_size = cpu_to_fdt32(header_size); in dt_table_header_init()
36 header->header_size = cpu_to_fdt32(header_size); in dt_table_header_init()
38 header->dt_entries_offset = cpu_to_fdt32(header_size); in dt_table_header_init()
Ddt_table.h34 uint32_t header_size; /* sizeof(dt_table_header) */ member
Dmkdtboimg.py218 self.total_size, self.header_size,
248 metadata_offset = self.header_size
264 (self.magic, self.total_size, self.header_size,
273 if self.header_size != self._DT_TABLE_HEADER_SIZE:
275 (self.header_size))
318 self.__metadata_size = (self.header_size +
374 self.header_size = self._DT_TABLE_HEADER_SIZE
465 dt_offset = (self.header_size +
Dmkdtimg_dump.c111 output_prop_int(out_fp, "header_size", header->header_size); in output_table_header()
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h151 uint32_t header_size; member
267 uint32_t header_size; member
296 uint32_t header_size; member
/system/extras/simpleperf/
Drecord.cpp211 p += header_size(); in MmapRecord()
239 SetSize(header_size() + sizeof(data) + Align(filename.size() + 1, 8) + in SetDataAndFilename()
263 p += header_size(); in Mmap2Record()
290 SetSize(header_size() + sizeof(data) + Align(filename.size() + 1, 8) + in SetDataAndFilename()
318 p += header_size(); in CommRecord()
335 SetSize(header_size() + sizeof(data) + Align(comm.size() + 1, 8) + in CommRecord()
380 p += header_size(); in ExitOrForkRecord()
402 SetSize(header_size() + sizeof(data) + sample_id_size); in ForkRecord()
414 p += header_size(); in LostRecord()
427 p += header_size(); in SampleRecord()
[all …]
Drecord_file_writer.cpp144 char header_buf[Record::header_size()]; in WriteRecord()
147 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord()
148 header.size = bytes_to_write + Record::header_size(); in WriteRecord()
151 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord()
161 header.size = Record::header_size(); in WriteRecord()
164 return WriteData(header_buf, Record::header_size()); in WriteRecord()
199 if (!Read(record_buf.data(), Record::header_size())) { in ReadDataSection()
206 if (!Read(record_buf.data() + Record::header_size(), header.size - Record::header_size())) { in ReadDataSection()
463 header.header_size = sizeof(header); in WriteFileHeader()
Drecord_file_reader.cpp256 char header_buf[Record::header_size()]; in ReadRecord()
257 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
266 char header_buf[Record::header_size()]; in ReadRecord()
268 size_t bytes_to_read = header.size - Record::header_size(); in ReadRecord()
275 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
290 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord()
291 if (header.size > Record::header_size()) { in ReadRecord()
292 if (!Read(p.get() + Record::header_size(), header.size - Record::header_size())) { in ReadRecord()
Drecord_file_format.h113 uint64_t header_size; member
Dcmd_dumprecord.cpp227 printf("header_size: %" PRId64 "\n", header.header_size); in DumpFileHeader()
228 if (header.header_size != sizeof(header)) { in DumpFileHeader()
229 PLOG(WARNING) << "record file header size " << header.header_size in DumpFileHeader()
/system/core/fastboot/
Dbootimg_utils.cpp67 hdr->header_size = sizeof(boot_img_hdr_v3); in mkbootimg_v3()
112 hdr->header_size = sizeof(boot_img_hdr_v1); in mkbootimg()
114 hdr->header_size = sizeof(boot_img_hdr_v2); in mkbootimg()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h199 uint32_t header_size; member
387 uint32_t header_size; member
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h95 uint32_t header_size; member
Dbuilder_test.cpp51 EXPECT_EQ(table->header.header_size, SUPER_VBMETA_HEADER_SIZE); in TEST()
Dreader.cpp71 const uint64_t descriptors_offset = offset + table->header.header_size; in ReadVBMetaTable()
Dbuilder.cpp146 table_.header.header_size = SUPER_VBMETA_HEADER_SIZE; in ExportVBMetaTable()
/system/update_engine/payload_generator/
Dboot_img_filesystem.cc67 size_t header_size = in CreateFromFile() local
70 if (!utils::ReadFileChunk(filename, 0, header_size, &header_blob)) { in CreateFromFile()
/system/vold/
DCheckpoint.cpp417 uint16_t header_size; member
557 uint32_t index = le - ((log_entry*)&ls_buffer[ls.header_size]); in restoreSector()
663 reinterpret_cast<log_entry*>(&ls_buffer[ls.header_size]) + ls.count - 1; in cp_restoreCheckpoint()
664 le >= reinterpret_cast<log_entry*>(&ls_buffer[ls.header_size]); --le) { in cp_restoreCheckpoint()
/system/core/fs_mgr/liblp/
Dreader.cpp193 if (header.header_size != expected_struct_size) { in ReadMetadataHeader()
199 if (size_t remaining_bytes = header.header_size - sizeof(LpMetadataHeaderV1_0)) { in ReadMetadataHeader()
212 SHA256(&temp, temp.header_size, temp.header_checksum); in ReadMetadataHeader()
Dio_test.cpp186 EXPECT_EQ(exported->header.header_size, imported->header.header_size); in TEST_F()
766 EXPECT_EQ(imported->header.header_size, sizeof(LpMetadataHeaderV1_2)); in TEST_F()
767 EXPECT_EQ(imported->header.header_size, exported->header.header_size); in TEST_F()
Dwriter.cpp77 SHA256(&header, header.header_size, header.header_checksum); in SerializeMetadata()
80 std::string(reinterpret_cast<const char*>(&header), header.header_size); in SerializeMetadata()
Dutility.cpp302 metadata->header.header_size = sizeof(LpMetadataHeaderV1_0); in SetMetadataHeaderV0()
Dbuilder_test.cpp356 EXPECT_EQ(header.header_size, sizeof(LpMetadataHeaderV1_0)); in TEST_F()
931 EXPECT_EQ(exported->header.header_size, sizeof(LpMetadataHeaderV1_2)); in TEST_F()
938 EXPECT_EQ(exported->header.header_size, sizeof(LpMetadataHeaderV1_2)); in TEST_F()
/system/libufdt/utils/
DREADME.md19 | dt_table_header | ^ | v dt_entries_offset | header_size
193 header_size = 32
/system/bt/gd/packet/
Dpacket_view_unittest.cc582 size_t header_size = 2; in TEST() local
584 …View view_subset(std::make_shared<const vector<uint8_t>>(count_all), header_size, count_all.size()… in TEST()
585 View view_subset2(view_all, header_size, count_all.size() - tail_size); in TEST()
588 ASSERT_EQ(view_subset[i], count_all[header_size + i]); in TEST()

12