Searched refs:vertical_stretch_regions (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tools/aapt2/compile/ |
D | NinePatch.cpp | 343 const std::vector<Range>& vertical_stretch_regions, const int32_t width, in CalculateRegionColors() argument 347 auto row_iter = vertical_stretch_regions.begin(); in CalculateRegionColors() 349 if (row_iter != vertical_stretch_regions.end()) { in CalculateRegionColors() 507 &nine_patch->vertical_stretch_regions, &unexpected_ranges, in Create() 541 nine_patch->vertical_stretch_regions, height - 2, in Create() 552 CalculateSegmentCount(nine_patch->vertical_stretch_regions, height - 2); in Create() 560 nine_patch->vertical_stretch_regions, width - 2, in Create() 611 data.numYDivs = static_cast<uint8_t>(vertical_stretch_regions.size()) * 2; in SerializeBase() 621 (const int32_t*)vertical_stretch_regions.data(), region_colors.data(), in SerializeBase() 692 << util::Joiner(nine_patch.vertical_stretch_regions, " ") in operator <<()
|
D | NinePatch_test.cpp | 209 ASSERT_EQ(1u, nine_patch->vertical_stretch_regions.size()); in TEST() 212 EXPECT_EQ(Range(1, 3), nine_patch->vertical_stretch_regions.front()); in TEST() 222 ASSERT_EQ(2u, nine_patch->vertical_stretch_regions.size()); in TEST() 228 EXPECT_EQ(Range(0, 2), nine_patch->vertical_stretch_regions[0]); in TEST() 229 EXPECT_EQ(Range(3, 5), nine_patch->vertical_stretch_regions[1]); in TEST()
|
D | Image.h | 170 std::vector<Range> vertical_stretch_regions; variable
|