Searched refs:vertical_stretch_regions (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | NinePatch.cpp | 337 const std::vector<Range>& vertical_stretch_regions, in CalculateRegionColors() argument 342 auto row_iter = vertical_stretch_regions.begin(); in CalculateRegionColors() 344 if (row_iter != vertical_stretch_regions.end()) { in CalculateRegionColors() 496 if (!FillRanges(&left_col, color_validator.get(), &nine_patch->vertical_stretch_regions, in Create() 529 nine_patch->vertical_stretch_regions, height - 2, &nine_patch->padding.top, in Create() 537 const int32_t num_cols = CalculateSegmentCount(nine_patch->vertical_stretch_regions, height - 2); in Create() 545 nine_patch->vertical_stretch_regions, width - 2, height - 2, in Create() 591 data.numYDivs = static_cast<uint8_t>(vertical_stretch_regions.size()) * 2; in SerializeBase() 600 (const int32_t*)vertical_stretch_regions.data(), in SerializeBase() 676 << " verticalStretch:" << nine_patch.vertical_stretch_regions in operator <<()
|
/frameworks/base/libs/androidfw/tests/ |
D | NinePatch_test.cpp | 187 ASSERT_EQ(1u, nine_patch->vertical_stretch_regions.size()); in TEST() 190 EXPECT_EQ(Range(1, 3), nine_patch->vertical_stretch_regions.front()); in TEST() 199 ASSERT_EQ(2u, nine_patch->vertical_stretch_regions.size()); in TEST() 205 EXPECT_EQ(Range(0, 2), nine_patch->vertical_stretch_regions[0]); in TEST() 206 EXPECT_EQ(Range(3, 5), nine_patch->vertical_stretch_regions[1]); in TEST()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Image.h | 170 std::vector<Range> vertical_stretch_regions; variable
|