Home
last modified time | relevance | path

Searched refs:part_size (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/webrtc/base/
Dmultipart.cc181 size_t part_size, part_offset = 0; in SetPosition() local
183 if (!parts_[i]->GetSize(&part_size)) { in SetPosition()
186 if (part_offset + part_size > position) { in SetPosition()
199 part_offset += part_size; in SetPosition()
212 size_t part_size, total_size = 0; in GetSize() local
214 if (!parts_[i]->GetSize(&part_size)) { in GetSize()
217 total_size += part_size; in GetSize()
229 size_t part_size, total_size = 0; in GetAvailable() local
231 if (!parts_[i]->GetAvailable(&part_size)) { in GetAvailable()
234 total_size += part_size; in GetAvailable()
Dmultipart_unittest.cc57 size_t part_size = in TEST() local
62 EXPECT_EQ(part_size, size); in TEST()
68 part_size += in TEST()
70 part_size += stream_size; in TEST()
77 EXPECT_EQ(part_size, size); in TEST()
87 part_size += multipart.GetEndPartSize(); in TEST()
90 EXPECT_EQ(part_size, size); in TEST()
/external/vboot_reference/firmware/lib/
Dvboot_kernel.c41 uint64_t part_start, part_size; in LoadKernel() local
143 GptNextKernelEntry(&gpt, &part_start, &part_size)) { in LoadKernel()
155 part_start, part_size)); in LoadKernel()
166 shpart->sector_count = part_size; in LoadKernel()
179 part_start, part_size, &stream)) { in LoadKernel()
/external/u-boot/include/
Davb_verify.h60 u64 part_size = part->info.size * part->info.blksz; in calc_offset() local
63 return part_size + offset; in calc_offset()
/external/webp/src/enc/
Dsyntax_enc.c253 const size_t part_size = VP8BitWriterSize(enc->parts_ + p); in EmitPartitionsSize() local
254 if (part_size >= VP8_MAX_PARTITION_SIZE) { in EmitPartitionsSize()
257 buf[3 * p + 0] = (part_size >> 0) & 0xff; in EmitPartitionsSize()
258 buf[3 * p + 1] = (part_size >> 8) & 0xff; in EmitPartitionsSize()
259 buf[3 * p + 2] = (part_size >> 16) & 0xff; in EmitPartitionsSize()
/external/vboot_reference/cgpt/
Dcgpt_find.c44 uint64_t part_size; in match_content() local
50 part_size = LBA_SIZE * (entry->ending_lba - entry->starting_lba + 1); in match_content()
51 if (params->matchoffset + params->matchlen > part_size) { in match_content()
/external/autotest/client/site_tests/hardware_Badblocks/
Dhardware_Badblocks.py168 part_size = utils.get_disk_size(dev)
169 logging.info('Partition size (bytes): %s', part_size)
/external/webp/src/dec/
Didec_dec.c369 const size_t part_size = br->buf_end_ - br->buf_; in CopyParts0Data() local
374 assert(part_size <= mem->part0_size_); in CopyParts0Data()
375 if (part_size == 0) { // can't have zero-size partition #0 in CopyParts0Data()
380 uint8_t* const part0_buf = (uint8_t*)WebPSafeMalloc(1ULL, part_size); in CopyParts0Data()
384 memcpy(part0_buf, br->buf_, part_size); in CopyParts0Data()
386 VP8BitReaderSetBuffer(br, part0_buf, part_size); in CopyParts0Data()
390 mem->start_ += part_size; in CopyParts0Data()