Searched refs:nine_patch (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/tools/aapt2/compile/ |
H A D | NinePatch_test.cpp | 206 ASSERT_NE(nullptr, nine_patch); in TEST() 219 ASSERT_NE(nullptr, nine_patch); in TEST() 236 ASSERT_NE(nullptr, nine_patch); in TEST() 244 ASSERT_NE(nullptr, nine_patch); in TEST() 265 ASSERT_NE(nullptr, nine_patch); in TEST() 269 ASSERT_NE(nullptr, nine_patch); in TEST() 277 ASSERT_NE(nullptr, nine_patch); in TEST() 286 ASSERT_NE(nullptr, nine_patch); in TEST() 303 ASSERT_NE(nullptr, nine_patch); in TEST() 313 ASSERT_NE(nullptr, nine_patch); in TEST() [all …]
|
H A D | NinePatch.cpp | 526 &nine_patch->padding.left, &nine_patch->padding.right, in Create() 540 &nine_patch->padding.top, &nine_patch->padding.bottom, in Create() 566 &nine_patch->outline.right); in Create() 571 &nine_patch->outline.bottom); in Create() 574 (width - 2) - nine_patch->outline.left - nine_patch->outline.right; in Create() 576 (height - 2) - nine_patch->outline.top - nine_patch->outline.bottom; in Create() 580 rows, 1 + nine_patch->outline.left, in Create() 585 nine_patch->outline_alpha = in Create() 602 nine_patch->outline_radius = 3.4142f * top_left; in Create() 603 return nine_patch; in Create() [all …]
|
H A D | PngCrunch.cpp | 441 const NinePatch* nine_patch) { in WriteNinePatch() argument 452 nine_patch->SerializeRoundedRectOutline(&chunk_len); in WriteNinePatch() 460 if (nine_patch->layout_bounds.nonZero()) { in WriteNinePatch() 461 serialized_layout_bounds = nine_patch->SerializeLayoutBounds(&chunk_len); in WriteNinePatch() 469 std::unique_ptr<uint8_t[]> serialized_nine_patch = nine_patch->SerializeBase(&chunk_len); in WriteNinePatch() 486 const NinePatch* nine_patch, io::OutputStream* out, in WritePng() argument 594 nine_patch != nullptr, color_palette.size(), alpha_palette.size()); in WritePng() 599 if (nine_patch) { in WritePng() 638 if (nine_patch) { in WritePng() 639 WriteNinePatch(write_ptr, write_info_ptr, nine_patch); in WritePng()
|
H A D | Png.h | 101 const NinePatch* nine_patch, io::OutputStream* out,
|
H A D | Image.h | 205 ::std::ostream& operator<<(::std::ostream& out, const NinePatch& nine_patch);
|
/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A D | Compile.cpp | 489 std::unique_ptr<NinePatch> nine_patch; in CompilePng() local 492 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); in CompilePng() 493 if (!nine_patch) { in CompilePng() 512 << "9-patch: " << *nine_patch); in CompilePng() 517 if (!WritePng(context, image.get(), nine_patch.get(), &crunched_png_buffer_out, {})) { in CompilePng() 521 if (nine_patch != nullptr || in CompilePng()
|