Home
last modified time | relevance | path

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

/aosp14/frameworks/base/tools/aapt2/compile/
H A DNinePatch.cpp340 uint8_t** rows, const std::vector<Range>& horizontal_stretch_regions, in CalculateRegionColors() argument
371 auto col_iter = horizontal_stretch_regions.begin(); in CalculateRegionColors()
373 if (col_iter != horizontal_stretch_regions.end()) { in CalculateRegionColors()
489 &nine_patch->horizontal_stretch_regions, &unexpected_ranges, in Create()
525 nine_patch->horizontal_stretch_regions, width - 2, in Create()
548 CalculateSegmentCount(nine_patch->horizontal_stretch_regions, width - 2); in Create()
557 CalculateRegionColors(rows, nine_patch->horizontal_stretch_regions, in Create()
608 data.numXDivs = static_cast<uint8_t>(horizontal_stretch_regions.size()) * 2; in SerializeBase()
618 data, (const int32_t*)horizontal_stretch_regions.data(), in SerializeBase()
688 << util::Joiner(nine_patch.horizontal_stretch_regions, " ") in operator <<()
H A DNinePatch_test.cpp208 ASSERT_EQ(1u, nine_patch->horizontal_stretch_regions.size()); in TEST()
211 EXPECT_EQ(Range(1, 4), nine_patch->horizontal_stretch_regions.front()); in TEST()
221 ASSERT_EQ(3u, nine_patch->horizontal_stretch_regions.size()); in TEST()
224 EXPECT_EQ(Range(1, 2), nine_patch->horizontal_stretch_regions[0]); in TEST()
225 EXPECT_EQ(Range(3, 5), nine_patch->horizontal_stretch_regions[1]); in TEST()
226 EXPECT_EQ(Range(6, 7), nine_patch->horizontal_stretch_regions[2]); in TEST()
H A DImage.h163 std::vector<Range> horizontal_stretch_regions; variable