Searched refs:color_validator (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | NinePatch.cpp | 90 static bool FillRanges(const ImageLine* image_line, const ColorValidator* color_validator, in FillRanges() argument 98 if (!color_validator->IsValidColor(color)) { in FillRanges() 466 std::unique_ptr<ColorValidator> color_validator; in Create() local 469 color_validator = std::make_unique<TransparentNeutralColorValidator>(); in Create() 471 color_validator = std::make_unique<WhiteNeutralColorValidator>(); in Create() 481 if (!FillRanges(&top_row, color_validator.get(), &nine_patch->horizontal_stretch_regions, in Create() 496 if (!FillRanges(&left_col, color_validator.get(), &nine_patch->vertical_stretch_regions, in Create() 510 if (!FillRanges(&bottom_row, color_validator.get(), &horizontal_padding, in Create() 523 if (!FillRanges(&right_col, color_validator.get(), &vertical_padding, &vertical_layout_bounds, in Create()
|