Home
last modified time | relevance | path

Searched refs:start_block (Results 1 – 25 of 43) sorted by relevance

12

/system/update_engine/payload_generator/
Dextent_ranges.cc36 if (a.start_block() == b.start_block()) in ExtentsOverlapOrTouch()
38 if (a.start_block() == kSparseHole || b.start_block() == kSparseHole) in ExtentsOverlapOrTouch()
40 if (a.start_block() < b.start_block()) { in ExtentsOverlapOrTouch()
41 return a.start_block() + a.num_blocks() >= b.start_block(); in ExtentsOverlapOrTouch()
43 return b.start_block() + b.num_blocks() >= a.start_block(); in ExtentsOverlapOrTouch()
48 if (a.start_block() == b.start_block()) in ExtentsOverlap()
50 if (a.start_block() == kSparseHole || b.start_block() == kSparseHole) in ExtentsOverlap()
52 if (a.start_block() < b.start_block()) { in ExtentsOverlap()
53 return a.start_block() + a.num_blocks() > b.start_block(); in ExtentsOverlap()
55 return b.start_block() + b.num_blocks() > a.start_block(); in ExtentsOverlap()
[all …]
Ddeflate_utils.cc69 file.extents[0].start_block() * kBlockSize, in IsSquashfsImage()
100 return (bit_extent.offset / 8) >= (extent.start_block() * kBlockSize) && in IsBitExtentInExtent()
102 ((extent.start_block() + extent.num_blocks()) * kBlockSize); in IsBitExtentInExtent()
131 auto gap_blocks = base_extents[0].start_block(); in ShiftExtentsOverExtents()
132 auto last_end_block = base_extents[0].start_block(); in ShiftExtentsOverExtents()
135 gap_blocks += base_ext.start_block() - last_end_block; in ShiftExtentsOverExtents()
136 last_end_block = base_ext.start_block() + base_ext.num_blocks(); in ShiftExtentsOverExtents()
137 base_ext.set_start_block(base_ext.start_block() - gap_blocks); in ShiftExtentsOverExtents()
138 if (over_ext->start_block() >= base_ext.start_block() && in ShiftExtentsOverExtents()
139 over_ext->start_block() < in ShiftExtentsOverExtents()
[all …]
Dextent_utils.cc42 uint64_t next_block = extent.start_block() == kSparseHole in AppendBlockToExtents()
44 : extent.start_block() + extent.num_blocks(); in AppendBlockToExtents()
94 static_cast<uint64_t>(e.start_block()), in ExtentsToString()
107 if (last_ext.start_block() + last_ext.num_blocks() == in NormalizeExtents()
108 curr_ext.start_block()) { in NormalizeExtents()
134 uint64_t new_start = extent.start_block(); in ExtentsSublist()
155 return a.start_block() == b.start_block() && a.num_blocks() == b.num_blocks(); in operator ==()
Dgraph_utils_unittest.cc51 EXPECT_EQ(0U, extents[0].start_block()); in TEST()
53 EXPECT_EQ(4U, extents[1].start_block()); in TEST()
66 EXPECT_EQ(3U, extent.start_block()); in TEST()
73 EXPECT_EQ(3U, extent.start_block()); in TEST()
81 EXPECT_EQ(5U, extent.start_block()); in TEST()
Dinplace_generator_unittest.cc65 vector<Extent> VectOfExt(uint64_t start_block, uint64_t num_blocks) { in VectOfExt() argument
66 return vector<Extent>(1, ExtentForRange(start_block, num_blocks)); in VectOfExt()
169 EXPECT_EQ(11U, op.src_extents(0).start_block()); in TEST_F()
171 EXPECT_EQ(13U, op.src_extents(1).start_block()); in TEST_F()
173 EXPECT_EQ(6U, op.src_extents(2).start_block()); in TEST_F()
175 EXPECT_EQ(kSparseHole, op.src_extents(3).start_block()); in TEST_F()
177 EXPECT_EQ(10U, op.src_extents(4).start_block()); in TEST_F()
179 EXPECT_EQ(14U, op.src_extents(5).start_block()); in TEST_F()
181 EXPECT_EQ(8U, op.src_extents(6).start_block()); in TEST_F()
258 EXPECT_EQ(kTempBlockStart, graph.back().aop.op.dst_extents(0).start_block()); in TEST_F()
[all …]
Dextent_utils.h41 if (extent.start_block() == kSparseHole) { in ExpandExtents()
44 for (uint64_t block = extent.start_block(); in ExpandExtents()
45 block < (extent.start_block() + extent.num_blocks()); in ExpandExtents()
Dextent_ranges.h39 return x.start_block() < y.start_block(); in operator()
43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
Dboot_img_filesystem_unittest.cc68 EXPECT_EQ(1u, files[0].extents[0].start_block()); in TEST_F()
74 EXPECT_EQ(2u, files[1].extents[0].start_block()); in TEST_F()
106 EXPECT_EQ(1u, files[0].extents[0].start_block()); in TEST_F()
112 EXPECT_EQ(3u, files[1].extents[0].start_block()); in TEST_F()
Dfake_filesystem.cc45 EXPECT_LE(0U, extent.start_block()); in AddFile()
46 EXPECT_LE(extent.start_block() + extent.num_blocks(), block_count_); in AddFile()
Dgraph_utils.cc44 if (it->start_block() != kSparseHole) in EdgeWeight()
70 for (uint64_t block = extent.start_block(), in AddReadBeforeDepExtents()
71 block_end = extent.start_block() + extent.num_blocks(); in AddReadBeforeDepExtents()
108 LOG(INFO) << header << "(" << extent.start_block() << ", " in DumpExtents()
Dsquashfs_filesystem.cc149 return a.extents[0].start_block() < b.extents[0].start_block(); in Init()
157 auto first_begin = first->extents[0].start_block(); in Init()
159 auto second_begin = second->extents[0].start_block(); in Init()
202 return a.extents[0].start_block() < b.extents[0].start_block(); in Init()
Dsquashfs_filesystem_unittest.cc56 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange()
57 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
95 return a.extents[0].start_block() < in CheckSquashfs()
96 b.extents[0].start_block(); in CheckSquashfs()
102 return a.extents[0].start_block() + a.extents[0].num_blocks() > in CheckSquashfs()
103 b.extents[0].start_block(); in CheckSquashfs()
Dfull_update_generator.cc159 size_t start_block = i * chunk_blocks; in GenerateOperations() local
170 dst_extent->set_start_block(start_block); in GenerateOperations()
176 static_cast<off_t>(start_block) * config.block_size, in GenerateOperations()
Dextent_utils_unittest.cc46 EXPECT_EQ(kSparseHole, extents[0].start_block()); in TEST()
48 EXPECT_EQ(0U, extents[1].start_block()); in TEST()
50 EXPECT_EQ(kSparseHole, extents[2].start_block()); in TEST()
Dab_generator_unittest.cc46 uint64_t start_block, in ExtentEquals() argument
48 return ext.start_block() == start_block && ext.num_blocks() == num_blocks; in ExtentEquals()
350 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F()
354 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F()
362 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F()
364 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F()
366 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F()
370 EXPECT_EQ(14U, second_op.dst_extents(0).start_block()); in TEST_F()
378 EXPECT_EQ(9U, third_op.src_extents(0).start_block()); in TEST_F()
382 EXPECT_EQ(18U, third_op.dst_extents(0).start_block()); in TEST_F()
Dpayload_generation_config_android.cc92 for (uint64_t offset = part.verity.hash_tree_data_extent.start_block() * in VerifyVerityConfig()
108 part.verity.hash_tree_extent.start_block() * block_size, in VerifyVerityConfig()
117 part.verity.fec_data_extent.start_block() * block_size, in VerifyVerityConfig()
119 part.verity.fec_extent.start_block() * block_size, in VerifyVerityConfig()
Dmapfile_filesystem_unittest.cc49 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange()
50 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
Dab_generator.cc137 first_ext.set_start_block(curr_src_ext.start_block()); in SplitSourceCopy()
141 curr_src_ext.set_start_block(curr_src_ext.start_block() + blocks_left); in SplitSourceCopy()
217 last_aop.op.dst_extents(last_dst_idx).start_block() + in MergeOperations()
219 uint32_t curr_start_block = curr_aop.op.dst_extents(0).start_block(); in MergeOperations()
Ddelta_diff_utils.cc97 uint64_t start_block = (*extents)[idx].start_block(); in ProcessExtentBlockRange() local
111 (*extents)[idx].set_start_block(start_block + range_size); in ProcessExtentBlockRange()
117 e.set_start_block(start_block + range_end); in ProcessExtentBlockRange()
148 do_remove = ((*src_extents)[src_idx].start_block() + src_offset == in RemoveIdenticalBlockRanges()
149 (*dst_extents)[dst_idx].start_block() + dst_offset); in RemoveIdenticalBlockRanges()
627 ExtentForRange(extent.start_block() + offset, num_blocks); in DeltaMovedAndZeroBlocks()
677 op_dst_extent->set_start_block(extent.start_block() + op_block_offset); in DeltaMovedAndZeroBlocks()
1059 uint32_t first_dst_start = first_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination()
1060 uint32_t second_dst_start = second_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination()
Dannotated_operation.cc34 *os << " (" << extent.start_block() << ", " << extent.num_blocks() << ")"; in OutputExtents()
/system/update_engine/scripts/update_payload/
Dapplier.py120 if ex.start_block == common.PSEUDO_EXTENT_MARKER:
123 file_obj.seek(ex.start_block * block_size)
154 if ex.start_block != common.PSEUDO_EXTENT_MARKER:
155 file_obj.seek(ex.start_block * block_size)
192 is_pseudo = ex.start_block == common.PSEUDO_EXTENT_MARKER
193 start_byte = -1 if is_pseudo else ex.start_block * block_size
273 start_block = ex.start_block
278 if start_block != common.PSEUDO_EXTENT_MARKER:
282 if (start_block + num_blocks) * block_size > part_size:
298 self.payload.payload_file.seek(start_block * block_size)
[all …]
Dcommon.py167 end_block = ex.start_block + ex.num_blocks
169 return '%d->%d * %d' % (ex.start_block, end_block, block_size)
171 return '%d->%d' % (ex.start_block, end_block)
/system/update_engine/payload_consumer/
Dextent_writer.cc47 if (cur_extent_->start_block() != kSparseHole) { in Write()
49 cur_extent_->start_block() * block_size_ + extent_bytes_written_; in Write()
/system/update_engine/scripts/
Dpayload_info.py141 '(%s,%s)' % (ext.start_block, ext.num_blocks) for ext in extents)
185 if last_ext and (curr_ext.start_block !=
186 last_ext.start_block + last_ext.num_blocks):
/system/bt/embdrv/sbc/decoder/srce/
Dsynthesis-sbc.c414 int16_t* pcm, OI_UINT start_block, in OI_SBC_SynthFrame() argument
421 SynthFrame4SB[nrof_channels](context, pcm, start_block, nrof_blocks); in OI_SBC_SynthFrame()
424 SynthFrameEnhanced[nrof_channels](context, pcm, start_block, nrof_blocks); in OI_SBC_SynthFrame()
427 SynthFrame8SB[nrof_channels](context, pcm, start_block, nrof_blocks); in OI_SBC_SynthFrame()

12