Searched refs:nine_patch (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/tools/aapt2/compile/ |
D | NinePatch_test.cpp | 204 std::unique_ptr<NinePatch> nine_patch = in TEST() local 206 ASSERT_NE(nullptr, nine_patch); in TEST() 208 ASSERT_EQ(1u, nine_patch->horizontal_stretch_regions.size()); in TEST() 209 ASSERT_EQ(1u, nine_patch->vertical_stretch_regions.size()); in TEST() 211 EXPECT_EQ(Range(1, 4), nine_patch->horizontal_stretch_regions.front()); in TEST() 212 EXPECT_EQ(Range(1, 3), nine_patch->vertical_stretch_regions.front()); in TEST() 217 std::unique_ptr<NinePatch> nine_patch = in TEST() local 219 ASSERT_NE(nullptr, nine_patch); in TEST() 221 ASSERT_EQ(3u, nine_patch->horizontal_stretch_regions.size()); in TEST() 222 ASSERT_EQ(2u, nine_patch->vertical_stretch_regions.size()); in TEST() [all …]
|
D | NinePatch.cpp | 487 auto nine_patch = std::unique_ptr<NinePatch>(new NinePatch()); in Create() local 491 &nine_patch->horizontal_stretch_regions, &unexpected_ranges, in Create() 507 &nine_patch->vertical_stretch_regions, &unexpected_ranges, in Create() 527 nine_patch->horizontal_stretch_regions, width - 2, in Create() 528 &nine_patch->padding.left, &nine_patch->padding.right, in Create() 529 &nine_patch->layout_bounds.left, in Create() 530 &nine_patch->layout_bounds.right, "bottom", out_err)) { in Create() 541 nine_patch->vertical_stretch_regions, height - 2, in Create() 542 &nine_patch->padding.top, &nine_patch->padding.bottom, in Create() 543 &nine_patch->layout_bounds.top, in Create() [all …]
|
D | PngCrunch.cpp | 439 const NinePatch* nine_patch) { in WriteNinePatch() argument 450 nine_patch->SerializeRoundedRectOutline(&chunk_len); in WriteNinePatch() 458 if (nine_patch->layout_bounds.nonZero()) { in WriteNinePatch() 459 serialized_layout_bounds = nine_patch->SerializeLayoutBounds(&chunk_len); in WriteNinePatch() 467 std::unique_ptr<uint8_t[]> serialized_nine_patch = nine_patch->SerializeBase(&chunk_len); in WriteNinePatch() 484 const NinePatch* nine_patch, io::OutputStream* out, in WritePng() argument 590 nine_patch != nullptr, color_palette.size(), alpha_palette.size()); in WritePng() 595 if (nine_patch) { in WritePng() 634 if (nine_patch) { in WritePng() 635 WriteNinePatch(write_ptr, write_info_ptr, nine_patch); in WritePng()
|
D | Png.h | 100 const NinePatch* nine_patch, io::OutputStream* out,
|
D | Image.h | 205 ::std::ostream& operator<<(::std::ostream& out, const NinePatch& nine_patch);
|
/frameworks/base/tools/aapt2/cmd/ |
D | Compile.cpp | 490 std::unique_ptr<NinePatch> nine_patch; in CompilePng() local 493 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); in CompilePng() 494 if (!nine_patch) { in CompilePng() 513 << *nine_patch); in CompilePng() 518 if (!WritePng(context, image.get(), nine_patch.get(), &crunched_png_buffer_out, {})) { in CompilePng() 522 if (nine_patch != nullptr || in CompilePng()
|