Lines Matching defs:drawable
25 import android.graphics.drawable.Drawable;
33 * Checks whether all the pixels in the specified drawable are of the same specified color.
40 public static void assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable,
43 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight,
47 public static void assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable,
56 // Configure the drawable to have bounds that match the passed size
57 drawable.setBounds(0, 0, drawableWidth, drawableHeight);
60 // And ask the drawable to draw itself to the canvas / bitmap
61 drawable.draw(canvas);
97 + ": expected all drawable colors to be ["