Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DNinePatch.cpp336 const std::vector<Range>& horizontal_stretch_regions, in CalculateRegionColors() argument
368 auto col_iter = horizontal_stretch_regions.begin(); in CalculateRegionColors()
370 if (col_iter != horizontal_stretch_regions.end()) { in CalculateRegionColors()
481 if (!FillRanges(&top_row, color_validator.get(), &nine_patch->horizontal_stretch_regions, in Create()
516 nine_patch->horizontal_stretch_regions, width - 2, &nine_patch->padding.left, in Create()
536 const int32_t num_rows = CalculateSegmentCount(nine_patch->horizontal_stretch_regions, width - 2); in Create()
544 CalculateRegionColors(rows, nine_patch->horizontal_stretch_regions, in Create()
590 data.numXDivs = static_cast<uint8_t>(horizontal_stretch_regions.size()) * 2; in SerializeBase()
599 android::Res_png_9patch::serialize(data, (const int32_t*)horizontal_stretch_regions.data(), in SerializeBase()
675 return out << "horizontalStretch:" << nine_patch.horizontal_stretch_regions in operator <<()
/frameworks/base/libs/androidfw/tests/
DNinePatch_test.cpp186 ASSERT_EQ(1u, nine_patch->horizontal_stretch_regions.size()); in TEST()
189 EXPECT_EQ(Range(1, 4), nine_patch->horizontal_stretch_regions.front()); in TEST()
198 ASSERT_EQ(3u, nine_patch->horizontal_stretch_regions.size()); in TEST()
201 EXPECT_EQ(Range(1, 2), nine_patch->horizontal_stretch_regions[0]); in TEST()
202 EXPECT_EQ(Range(3, 5), nine_patch->horizontal_stretch_regions[1]); in TEST()
203 EXPECT_EQ(Range(6, 7), nine_patch->horizontal_stretch_regions[2]); in TEST()
/frameworks/base/libs/androidfw/include/androidfw/
DImage.h163 std::vector<Range> horizontal_stretch_regions; variable