Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/compile/
DNinePatch.cpp342 uint8_t** rows, const std::vector<Range>& horizontal_stretch_regions, in CalculateRegionColors() argument
373 auto col_iter = horizontal_stretch_regions.begin(); in CalculateRegionColors()
375 if (col_iter != horizontal_stretch_regions.end()) { in CalculateRegionColors()
491 &nine_patch->horizontal_stretch_regions, &unexpected_ranges, in Create()
527 nine_patch->horizontal_stretch_regions, width - 2, in Create()
550 CalculateSegmentCount(nine_patch->horizontal_stretch_regions, width - 2); in Create()
559 CalculateRegionColors(rows, nine_patch->horizontal_stretch_regions, in Create()
610 data.numXDivs = static_cast<uint8_t>(horizontal_stretch_regions.size()) * 2; in SerializeBase()
620 data, (const int32_t*)horizontal_stretch_regions.data(), in SerializeBase()
690 << util::Joiner(nine_patch.horizontal_stretch_regions, " ") in operator <<()
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()
DImage.h163 std::vector<Range> horizontal_stretch_regions; variable