Home
last modified time | relevance | path

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

/system/update_engine/payload_generator/
Ddeflate_utils_unittest.cc55 vector<Extent> over_extents = {ExtentForRange(2, 2), in TEST() local
70 EXPECT_TRUE(ShiftExtentsOverExtents(base_extents, &over_extents)); in TEST()
71 EXPECT_EQ(over_extents, out_over_extents); in TEST()
75 over_extents = {ExtentForRange(2, 12)}; in TEST()
76 EXPECT_FALSE(ShiftExtentsOverExtents(base_extents, &over_extents)); in TEST()
85 vector<BitExtent> over_extents = in TEST() local
89 ASSERT_TRUE(ShiftBitExtentsOverExtents(base_extents, &over_extents)); in TEST()
90 EXPECT_EQ(over_extents, out_over_extents); in TEST()
95 vector<BitExtent> over_extents = ByteToBitExtent({{2, 4096}}); in TEST() local
97 EXPECT_FALSE(ShiftBitExtentsOverExtents(base_extents, &over_extents)); in TEST()
[all …]
Ddeflate_utils.cc148 vector<Extent>* over_extents) { in ShiftExtentsOverExtents() argument
150 utils::BlocksInExtents(*over_extents)) { in ShiftExtentsOverExtents()
154 for (size_t idx = 0; idx < over_extents->size(); idx++) { in ShiftExtentsOverExtents()
155 auto over_ext = &over_extents->at(idx); in ShiftExtentsOverExtents()
179 over_extents->insert(std::next(over_extents->begin(), idx + 1), in ShiftExtentsOverExtents()
190 vector<BitExtent>* over_extents) { in ShiftBitExtentsOverExtents() argument
191 if (over_extents->empty()) { in ShiftBitExtentsOverExtents()
197 auto last_extent = ExpandToByteExtent(over_extents->back()); in ShiftBitExtentsOverExtents()
201 for (auto o_ext = over_extents->begin(); o_ext != over_extents->end();) { in ShiftBitExtentsOverExtents()
220 o_ext = over_extents->erase(o_ext); in ShiftBitExtentsOverExtents()
Ddeflate_utils.h50 std::vector<Extent>* over_extents);
65 std::vector<puffin::BitExtent>* over_extents);