Lines Matching refs:patch
26 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">2D
51 * @param chunk The 9-patch data chunk describing how the underlying bitmap
62 * @param chunk The 9-patch data chunk describing how the underlying
75 public NinePatch(NinePatch patch) {
76 mBitmap = patch.mBitmap;
77 mSrcName = patch.mSrcName;
78 if (patch.mPaint != null) {
79 mPaint = new Paint(patch.mPaint);
81 // No need to validate the 9patch chunk again, it was done by
83 mNativeChunk = patch.mNativeChunk;
225 * Verifies that the specified byte array is a valid 9-patch data chunk.
227 * @param chunk A byte array representing a 9-patch data chunk.
229 * @return True if the specified byte array represents a 9-patch data chunk,
235 * Validates the 9-patch chunk and throws an exception if the chunk is invalid.