Lines Matching defs:patch
62 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">
65 * <a href="{@docRoot}guide/developing/tools/draw9patch.html">Draw 9-patch</a> tool guide.</p></div>
94 * Create drawable from raw nine-patch data, not dealing with density.
105 * Create drawable from raw nine-patch data, setting initial target density
114 * Create drawable from raw nine-patch data, setting initial target density
126 * Create drawable from existing nine-patch, not dealing with density.
133 public NinePatchDrawable(@NonNull NinePatch patch) {
134 this(new NinePatchState(patch, new Rect()), null);
138 * Create drawable from existing nine-patch, setting initial target density
141 public NinePatchDrawable(@Nullable Resources res, @NonNull NinePatch patch) {
142 this(new NinePatchState(patch, new Rect()), res);
242 // Mirror the 9patch.
446 ": <nine-patch> requires a valid src attribute");
449 ": <nine-patch> requires a valid 9-patch source image");
742 // The nine-patch may have been created without a Resources object, in
743 // which case we should try to match the density of the nine patch (if