HomeSort by relevance Sort by last modified time
    Searched refs:nine_patch (Results 1 - 6 of 6) sorted by null

  /frameworks/base/tools/aapt2/compile/
NinePatch_test.cpp 204 std::unique_ptr<NinePatch> nine_patch = local
206 ASSERT_NE(nullptr, nine_patch);
208 ASSERT_EQ(1u, nine_patch->horizontal_stretch_regions.size());
209 ASSERT_EQ(1u, nine_patch->vertical_stretch_regions.size());
211 EXPECT_EQ(Range(1, 4), nine_patch->horizontal_stretch_regions.front());
212 EXPECT_EQ(Range(1, 3), nine_patch->vertical_stretch_regions.front());
217 std::unique_ptr<NinePatch> nine_patch = local
219 ASSERT_NE(nullptr, nine_patch);
221 ASSERT_EQ(3u, nine_patch->horizontal_stretch_regions.size());
222 ASSERT_EQ(2u, nine_patch->vertical_stretch_regions.size())
234 std::unique_ptr<NinePatch> nine_patch = local
242 std::unique_ptr<NinePatch> nine_patch = local
263 std::unique_ptr<NinePatch> nine_patch = local
275 std::unique_ptr<NinePatch> nine_patch = local
284 std::unique_ptr<NinePatch> nine_patch = local
301 std::unique_ptr<NinePatch> nine_patch = local
311 std::unique_ptr<NinePatch> nine_patch = local
321 std::unique_ptr<NinePatch> nine_patch = local
340 std::unique_ptr<NinePatch> nine_patch = local
356 std::unique_ptr<NinePatch> nine_patch = local
    [all...]
NinePatch.cpp 487 auto nine_patch = std::unique_ptr<NinePatch>(new NinePatch()); local
491 &nine_patch->horizontal_stretch_regions, &unexpected_ranges,
507 &nine_patch->vertical_stretch_regions, &unexpected_ranges,
527 nine_patch->horizontal_stretch_regions, width - 2,
528 &nine_patch->padding.left, &nine_patch->padding.right,
529 &nine_patch->layout_bounds.left,
530 &nine_patch->layout_bounds.right, "bottom", out_err)) {
541 nine_patch->vertical_stretch_regions, height - 2,
542 &nine_patch->padding.top, &nine_patch->padding.bottom
    [all...]
Png.h 100 const NinePatch* nine_patch, io::OutputStream* out,
PngCrunch.cpp 436 const NinePatch* nine_patch) {
447 nine_patch->SerializeRoundedRectOutline(&chunk_len);
455 if (nine_patch->layout_bounds.nonZero()) {
456 serialized_layout_bounds = nine_patch->SerializeLayoutBounds(&chunk_len);
464 std::unique_ptr<uint8_t[]> serialized_nine_patch = nine_patch->SerializeBase(&chunk_len);
481 const NinePatch* nine_patch, io::OutputStream* out,
586 nine_patch != nullptr, color_palette.size(), alpha_palette.size());
591 if (nine_patch) {
630 if (nine_patch) {
631 WriteNinePatch(write_ptr, write_info_ptr, nine_patch);
    [all...]
Image.h 205 ::std::ostream& operator<<(::std::ostream& out, const NinePatch& nine_patch);
  /frameworks/base/tools/aapt2/cmd/
Compile.cpp 487 std::unique_ptr<NinePatch> nine_patch; local
490 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err);
491 if (!nine_patch) {
510 << *nine_patch);
515 if (!WritePng(context, image.get(), nine_patch.get(), &crunched_png_buffer_out, {})) {
519 if (nine_patch != nullptr ||

Completed in 122 milliseconds