Home
last modified time | relevance | path

Searched refs:base_extents (Results 1 – 3 of 3) sorted by relevance

/system/update_engine/payload_generator/
Ddeflate_utils_unittest.cc50 vector<Extent> base_extents = {ExtentForRange(10, 10), in TEST() local
70 EXPECT_TRUE(ShiftExtentsOverExtents(base_extents, &over_extents)); in TEST()
74 base_extents = {ExtentForRange(10, 10)}; in TEST()
76 EXPECT_FALSE(ShiftExtentsOverExtents(base_extents, &over_extents)); in TEST()
80 vector<Extent> base_extents = {ExtentForRange(3, 1), in TEST() local
89 ASSERT_TRUE(ShiftBitExtentsOverExtents(base_extents, &over_extents)); in TEST()
94 vector<Extent> base_extents = {ExtentForRange(1, 1)}; in TEST() local
97 EXPECT_FALSE(ShiftBitExtentsOverExtents(base_extents, &over_extents)); in TEST()
99 base_extents = {ExtentForRange(1, 1)}; in TEST()
102 EXPECT_TRUE(ShiftBitExtentsOverExtents(base_extents, &over_extents)); in TEST()
[all …]
Ddeflate_utils.cc131 bool ShiftExtentsOverExtents(const vector<Extent>& base_extents, in ShiftExtentsOverExtents() argument
133 if (utils::BlocksInExtents(base_extents) < in ShiftExtentsOverExtents()
140 auto gap_blocks = base_extents[0].start_block(); in ShiftExtentsOverExtents()
141 auto last_end_block = base_extents[0].start_block(); in ShiftExtentsOverExtents()
142 for (auto base_ext : base_extents) { // We need to modify |base_ext|, so we in ShiftExtentsOverExtents()
173 bool ShiftBitExtentsOverExtents(const vector<Extent>& base_extents, in ShiftBitExtentsOverExtents() argument
183 utils::BlocksInExtents(base_extents) * kBlockSize); in ShiftBitExtentsOverExtents()
186 size_t gap_blocks = base_extents[0].start_block(); in ShiftBitExtentsOverExtents()
187 size_t last_end_block = base_extents[0].start_block(); in ShiftBitExtentsOverExtents()
189 for (auto b_ext : base_extents) { // We need to modify |b_ext|, so we copy. in ShiftBitExtentsOverExtents()
Ddeflate_utils.h47 bool ShiftExtentsOverExtents(const std::vector<Extent>& base_extents,
62 bool ShiftBitExtentsOverExtents(const std::vector<Extent>& base_extents,