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.cc147 bool ShiftExtentsOverExtents(const vector<Extent>& base_extents, in ShiftExtentsOverExtents() argument
149 if (utils::BlocksInExtents(base_extents) < in ShiftExtentsOverExtents()
156 auto gap_blocks = base_extents[0].start_block(); in ShiftExtentsOverExtents()
157 auto last_end_block = base_extents[0].start_block(); in ShiftExtentsOverExtents()
158 for (auto base_ext : base_extents) { // We need to modify |base_ext|, so we in ShiftExtentsOverExtents()
189 bool ShiftBitExtentsOverExtents(const vector<Extent>& base_extents, in ShiftBitExtentsOverExtents() argument
199 utils::BlocksInExtents(base_extents) * kBlockSize); in ShiftBitExtentsOverExtents()
202 size_t gap_blocks = base_extents[0].start_block(); in ShiftBitExtentsOverExtents()
203 size_t last_end_block = base_extents[0].start_block(); in ShiftBitExtentsOverExtents()
205 for (auto b_ext : base_extents) { // We need to modify |b_ext|, so we copy. in ShiftBitExtentsOverExtents()
Ddeflate_utils.h49 bool ShiftExtentsOverExtents(const std::vector<Extent>& base_extents,
64 bool ShiftBitExtentsOverExtents(const std::vector<Extent>& base_extents,