Home
last modified time | relevance | path

Searched refs:BlocksInExtents (Results 1 – 13 of 13) sorted by relevance

/system/update_engine/payload_generator/
Dextent_utils_unittest.cc57 EXPECT_EQ(0U, utils::BlocksInExtents(extents)); in TEST()
59 EXPECT_EQ(1U, utils::BlocksInExtents(extents)); in TEST()
61 EXPECT_EQ(56U, utils::BlocksInExtents(extents)); in TEST()
63 EXPECT_EQ(58U, utils::BlocksInExtents(extents)); in TEST()
67 EXPECT_EQ(0U, utils::BlocksInExtents(extents)); in TEST()
69 EXPECT_EQ(1U, utils::BlocksInExtents(extents)); in TEST()
71 EXPECT_EQ(56U, utils::BlocksInExtents(extents)); in TEST()
73 EXPECT_EQ(58U, utils::BlocksInExtents(extents)); in TEST()
Dext2_filesystem_unittest.cc161 utils::BlocksInExtents(map_files["/link-long_symlink"].extents)); in TEST_F()
171 EXPECT_EQ(1U, utils::BlocksInExtents(map_files["/regular-small"].extents)); in TEST_F()
173 1U, utils::BlocksInExtents(map_files["/regular-with_net_cap"].extents)); in TEST_F()
178 utils::BlocksInExtents(map_files["/sparse-16k-last_block"].extents)); in TEST_F()
181 utils::BlocksInExtents(map_files["/sparse-16k-first_block"].extents)); in TEST_F()
183 utils::BlocksInExtents(map_files["/sparse-16k-holes"].extents)); in TEST_F()
Ddeflate_utils.cc52 brillo::Blob data(utils::BlocksInExtents(extents) * block_size); in CopyExtentsToFile()
64 utils::BlocksInExtents(file.extents) >= in IsSquashfsImage()
100 num_blocks += utils::BlocksInExtents(in_file.extents); in RealignSplittedFiles()
104 TEST_AND_RETURN_FALSE(utils::BlocksInExtents(file.extents) == num_blocks); in RealignSplittedFiles()
133 if (utils::BlocksInExtents(base_extents) < in ShiftExtentsOverExtents()
134 utils::BlocksInExtents(*over_extents)) { in ShiftExtentsOverExtents()
183 utils::BlocksInExtents(base_extents) * kBlockSize); in ShiftBitExtentsOverExtents()
323 kBlockSize * utils::BlocksInExtents(file.extents), in PreprocessPartitionFiles()
Dfull_update_generator_unittest.cc116 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
118 utils::BlocksInExtents(aops[1].op.dst_extents())); in TEST_F()
138 utils::BlocksInExtents(aops[0].op.dst_extents())); in TEST_F()
Ddelta_diff_utils.cc158 new_extents_blocks_(utils::BlocksInExtents(new_extents)), in FileDeltaProcessor()
379 LOG(INFO) << "Scanning " << utils::BlocksInExtents(new_unvisited) in DeltaReadPartition()
524 << utils::BlocksInExtents(new_zeros) << " zeroed blocks"; in DeltaMovedAndZeroBlocks()
583 uint64_t total_blocks = utils::BlocksInExtents(new_extents); in DeltaReadFile()
703 uint64_t blocks_to_read = utils::BlocksInExtents(old_extents); in ReadExtentsToDiff()
704 uint64_t blocks_to_write = utils::BlocksInExtents(new_extents); in ReadExtentsToDiff()
Dab_generator.cc274 brillo::Blob data(utils::BlocksInExtents(dst_extents) * kBlockSize); in AddDataAndSetType()
305 : utils::BlocksInExtents(aop.op.src_extents()) * kBlockSize; in AddSourceHash()
Ddelta_diff_utils_unittest.cc243 EXPECT_EQ(1U, utils::BlocksInExtents(op.dst_extents())); in TEST_F()
471 brillo::Blob zeros_data(utils::BlocksInExtents(new_zeros) * block_size_, in TEST_F()
Dext2_filesystem.cc359 uint64_t physical_size = utils::BlocksInExtents(extents) * filsys_->blocksize; in LoadSettings()
Dextent_ranges.cc271 CHECK(out_blocks == utils::BlocksInExtents(out)); in GetExtentsForBlockCount()
/system/update_engine/payload_consumer/
Dfile_descriptor_utils.cc43 auto total_blocks = utils::BlocksInExtents(src_extents); in CommonHashExtents()
87 TEST_AND_RETURN_FALSE(utils::BlocksInExtents(src_extents) == in CopyAndHashExtents()
88 utils::BlocksInExtents(tgt_extents)); in CopyAndHashExtents()
Dextent_reader_unittest.cc84 brillo::Blob blob1(utils::BlocksInExtents(extents) * kBlockSize); in TEST_F()
115 brillo::Blob blob(utils::BlocksInExtents(extents) * kBlockSize + 1); in TEST_F()
155 brillo::Blob blob(utils::BlocksInExtents(extents) * kBlockSize); in TEST_F()
Ddelta_performer.cc1378 utils::BlocksInExtents(operation.src_extents()) * block_size_); in PerformSourceBsdiffOperation()
1385 utils::BlocksInExtents(operation.dst_extents()) * block_size_); in PerformSourceBsdiffOperation()
1485 utils::BlocksInExtents(operation.src_extents()) * block_size_)); in PerformPuffDiffOperation()
1492 utils::BlocksInExtents(operation.dst_extents()) * block_size_)); in PerformPuffDiffOperation()
/system/update_engine/common/
Dutils.h228 uint64_t BlocksInExtents(const T& extents) { in BlocksInExtents() function