/system/update_engine/payload_generator/ |
D | extent_ranges.cc | 34 if (a.start_block() == b.start_block()) in ExtentsOverlapOrTouch() 36 if (a.start_block() == kSparseHole || b.start_block() == kSparseHole) in ExtentsOverlapOrTouch() 38 if (a.start_block() < b.start_block()) { in ExtentsOverlapOrTouch() 39 return a.start_block() + a.num_blocks() >= b.start_block(); in ExtentsOverlapOrTouch() 41 return b.start_block() + b.num_blocks() >= a.start_block(); in ExtentsOverlapOrTouch() 46 if (a.start_block() == b.start_block()) in ExtentsOverlap() 48 if (a.start_block() == kSparseHole || b.start_block() == kSparseHole) in ExtentsOverlap() 50 if (a.start_block() < b.start_block()) { in ExtentsOverlap() 51 return a.start_block() + a.num_blocks() > b.start_block(); in ExtentsOverlap() 53 return b.start_block() + b.num_blocks() > a.start_block(); in ExtentsOverlap() [all …]
|
D | extent_utils.cc | 42 uint64_t next_block = extent.start_block() == kSparseHole ? in AppendBlockToExtents() 43 kSparseHole : extent.start_block() + extent.num_blocks(); in AppendBlockToExtents() 103 "[%" PRIu64 ", %" PRIu64 "] ", e.start_block(), e.num_blocks()); in ExtentsToString() 115 if (last_ext.start_block() + last_ext.num_blocks() == in NormalizeExtents() 116 curr_ext.start_block()) { in NormalizeExtents() 141 uint64_t new_start = extent.start_block(); in ExtentsSublist() 162 return a.start_block() == b.start_block() && a.num_blocks() == b.num_blocks(); in operator ==()
|
D | graph_utils_unittest.cc | 51 EXPECT_EQ(0U, extents[0].start_block()); in TEST() 53 EXPECT_EQ(4U, extents[1].start_block()); in TEST() 67 EXPECT_EQ(3U, extent.start_block()); in TEST() 74 EXPECT_EQ(3U, extent.start_block()); in TEST() 82 EXPECT_EQ(5U, extent.start_block()); in TEST()
|
D | inplace_generator_unittest.cc | 64 vector<Extent> VectOfExt(uint64_t start_block, uint64_t num_blocks) { in VectOfExt() argument 65 return vector<Extent>(1, ExtentForRange(start_block, num_blocks)); in VectOfExt() 167 EXPECT_EQ(11U, op.src_extents(0).start_block()); in TEST_F() 169 EXPECT_EQ(13U, op.src_extents(1).start_block()); in TEST_F() 171 EXPECT_EQ(6U, op.src_extents(2).start_block()); in TEST_F() 173 EXPECT_EQ(kSparseHole, op.src_extents(3).start_block()); in TEST_F() 175 EXPECT_EQ(10U, op.src_extents(4).start_block()); in TEST_F() 177 EXPECT_EQ(14U, op.src_extents(5).start_block()); in TEST_F() 179 EXPECT_EQ(8U, op.src_extents(6).start_block()); in TEST_F() 256 EXPECT_EQ(kTempBlockStart, graph.back().aop.op.dst_extents(0).start_block()); in TEST_F() [all …]
|
D | extent_ranges.h | 39 return x.start_block() < y.start_block(); in operator() 43 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks);
|
D | extent_utils.h | 60 if (extent.start_block() == kSparseHole) { in ExpandExtents() 63 for (uint64_t block = extent.start_block(); in ExpandExtents() 64 block < (extent.start_block() + extent.num_blocks()); block++) { in ExpandExtents()
|
D | fake_filesystem.cc | 47 EXPECT_LE(0U, extent.start_block()); in AddFile() 48 EXPECT_LE(extent.start_block() + extent.num_blocks(), block_count_); in AddFile()
|
D | graph_utils.cc | 44 if (it->start_block() != kSparseHole) in EdgeWeight() 71 for (uint64_t block = extent.start_block(), in AddReadBeforeDepExtents() 72 block_end = extent.start_block() + extent.num_blocks(); in AddReadBeforeDepExtents() 108 LOG(INFO) << header << "(" << GetElement(field, i).start_block() << ", " in DumpExtents()
|
D | ab_generator_unittest.cc | 45 bool ExtentEquals(Extent ext, uint64_t start_block, uint64_t num_blocks) { in ExtentEquals() argument 46 return ext.start_block() == start_block && ext.num_blocks() == num_blocks; in ExtentEquals() 359 EXPECT_EQ(2U, first_op.src_extents(0).start_block()); in TEST_F() 363 EXPECT_EQ(10U, first_op.dst_extents(0).start_block()); in TEST_F() 371 EXPECT_EQ(4U, second_op.src_extents(0).start_block()); in TEST_F() 373 EXPECT_EQ(6U, second_op.src_extents(1).start_block()); in TEST_F() 375 EXPECT_EQ(8U, second_op.src_extents(2).start_block()); in TEST_F() 379 EXPECT_EQ(14U, second_op.dst_extents(0).start_block()); in TEST_F() 387 EXPECT_EQ(9U, third_op.src_extents(0).start_block()); in TEST_F() 391 EXPECT_EQ(18U, third_op.dst_extents(0).start_block()); in TEST_F()
|
D | full_update_generator.cc | 162 size_t start_block = i * chunk_blocks; in GenerateOperations() local 173 dst_extent->set_start_block(start_block); in GenerateOperations() 179 static_cast<off_t>(start_block) * config.block_size, in GenerateOperations()
|
D | extent_utils_unittest.cc | 46 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()
|
D | delta_diff_utils.cc | 67 uint64_t start_block = (*extents)[idx].start_block(); in ProcessExtentBlockRange() local 81 (*extents)[idx].set_start_block(start_block + range_size); in ProcessExtentBlockRange() 87 e.set_start_block(start_block + range_end); in ProcessExtentBlockRange() 128 do_remove = ((*src_extents)[src_idx].start_block() + src_offset == in RemoveIdenticalBlockRanges() 129 (*dst_extents)[dst_idx].start_block() + dst_offset); in RemoveIdenticalBlockRanges() 416 op_dst_extent->set_start_block(extent.start_block() + op_block_offset); in DeltaMovedAndZeroBlocks() 763 uint32_t first_dst_start = first_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination() 764 uint32_t second_dst_start = second_aop.op.dst_extents(0).start_block(); in CompareAopsByDestination()
|
D | mapfile_filesystem_unittest.cc | 49 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange() 50 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
|
D | ab_generator.cc | 131 first_ext.set_start_block(curr_src_ext.start_block()); in SplitSourceCopy() 135 curr_src_ext.set_start_block(curr_src_ext.start_block() + blocks_left); in SplitSourceCopy() 214 last_aop.op.dst_extents(last_dst_idx).start_block() + in MergeOperations() 216 uint32_t curr_start_block = curr_aop.op.dst_extents(0).start_block(); in MergeOperations()
|
D | extent_ranges_unittest.cc | 48 EXPECT_EQ(expected[i], it->start_block()) << "line: " << line; in ExpectRangeEq() 263 EXPECT_EQ(expected[j].start_block(), actual[j].start_block()) in TEST()
|
D | ext2_filesystem_unittest.cc | 54 EXPECT_LE(0U, extent.start_block()); in ExpectBlocksInRange() 55 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange()
|
D | annotated_operation.cc | 34 *os << " (" << extent.start_block() << ", " << extent.num_blocks() << ")"; in OutputExtents()
|
D | delta_diff_utils_unittest.cc | 58 fseek(fp.get(), extent.start_block() * block_size, SEEK_SET) == 0); in WriteExtents() 268 EXPECT_EQ(old_extents[i].start_block(), op.src_extents(i).start_block()) in TEST_F() 276 EXPECT_EQ(new_extents[i].start_block(), op.dst_extents(i).start_block()) in TEST_F()
|
D | inplace_generator.cc | 304 uint64_t start = extent.start_block(); in TempBlocksExistInExtents() 658 void InplaceGenerator::CreateScratchNode(uint64_t start_block, in CreateScratchNode() argument 666 extent->set_start_block(start_block); in CreateScratchNode() 687 for (uint64_t block = extent.start_block(); in AddInstallOpToBlocksVector() 688 block < (extent.start_block() + extent.num_blocks()); block++) { in AddInstallOpToBlocksVector()
|
/system/extras/ext4_utils/ |
D | ext2simg.c | 91 u32 start_block = first_block + start_contiguous_block; in build_sparse_ext() local 95 (u64)info.block_size * start_block, in build_sparse_ext() 96 info.block_size * len_blocks, start_block); in build_sparse_ext() 106 u32 start_block = first_block + start_contiguous_block; in build_sparse_ext() local 109 (u64)info.block_size * start_block, in build_sparse_ext() 110 info.block_size * len_blocks, start_block); in build_sparse_ext()
|
D | make_ext4fs.c | 594 u32 start_block, end_block, block_file_size; in extract_base_fs_allocations() local 613 start_block = parse_num(range); in extract_base_fs_allocations() 616 end_block = start_block; in extract_base_fs_allocations() 621 block_group = get_block_group(start_block); in extract_base_fs_allocations() 631 if (min_bg_bound >= start_block - bg_first_block || in extract_base_fs_allocations() 635 block_file_size = end_block - start_block + 1; in extract_base_fs_allocations() 639 append_region(fs_alloc, start_block, block_file_size, block_group); in extract_base_fs_allocations() 640 reserve_bg_chunk(block_group, start_block - bgs[block_group].first_block, block_file_size); in extract_base_fs_allocations()
|
D | allocate.h | 99 void reserve_bg_chunk(int bg, u32 start_block, u32 size);
|
/system/update_engine/payload_consumer/ |
D | extent_writer.cc | 48 if (extents_[next_extent_index_].start_block() != kSparseHole) { in Write() 50 extents_[next_extent_index_].start_block() * block_size_ + in Write()
|
D | delta_performer.cc | 960 const uint64_t start = extent.start_block() * block_size_; in PerformZeroOrDiscardOperation() 1003 TEST_AND_RETURN_FALSE(extent.start_block() != kSparseHole); in PerformMoveOperation() 1007 extent.start_block() * block_size_, in PerformMoveOperation() 1019 TEST_AND_RETURN_FALSE(extent.start_block() != kSparseHole); in PerformMoveOperation() 1023 extent.start_block() * block_size_)); in PerformMoveOperation() 1039 blocks->push_back(ext.start_block() + j); in ExtentsToBlocks() 1075 "%" PRIu64 ":%" PRIu64, ext.start_block(), ext.num_blocks())); in ValidateSourceHash() 1158 int64_t start = extent.start_block() * block_size; in ExtentsToBsdiffPositionsString() 1219 (last_extent.start_block() + last_extent.num_blocks()) * block_size_; in PerformBsdiffOperation() 1252 (extent.start_block() + i) * block_size_, in PerformSourceBsdiffOperation()
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | synthesis-sbc.c | 374 …nthFrame(OI_CODEC_SBC_DECODER_CONTEXT *context, OI_INT16 *pcm, OI_UINT start_block, OI_UINT nrof_b… in OI_SBC_SynthFrame() argument 381 SynthFrame4SB[nrof_channels](context, pcm, start_block, nrof_blocks); in OI_SBC_SynthFrame() 384 SynthFrameEnhanced[nrof_channels](context, pcm, start_block, nrof_blocks); in OI_SBC_SynthFrame() 387 SynthFrame8SB[nrof_channels](context, pcm, start_block, nrof_blocks); in OI_SBC_SynthFrame()
|