Searched refs:getBytesPerPixel (Results 1 – 3 of 3) sorted by relevance
85 return width * height * getBytesPerPixel(config); in getBitmapByteSize()88 private static int getBytesPerPixel(Bitmap.Config config) { in getBytesPerPixel() method in Util
410 return getBytesPerPixel(config) * getWidth(); in getRowBytes()584 if (getBytesPerPixel(config) != INTERNAL_BYTES_PER_PIXEL) { in copyPixelsFromBuffer()608 if (getBytesPerPixel(config) != INTERNAL_BYTES_PER_PIXEL) { in copyPixelsToBuffer()672 public static int getBytesPerPixel(Bitmap.Config config) { in getBytesPerPixel() method in ShadowBitmap
477 assertThat(ShadowBitmap.getBytesPerPixel(Bitmap.Config.RGBA_F16)).isEqualTo(8); in getBytesPerPixel_O()482 assertThat(ShadowBitmap.getBytesPerPixel(Bitmap.Config.ARGB_8888)).isEqualTo(4); in getBytesPerPixel_preO()483 assertThat(ShadowBitmap.getBytesPerPixel(Bitmap.Config.RGB_565)).isEqualTo(2); in getBytesPerPixel_preO()484 assertThat(ShadowBitmap.getBytesPerPixel(Bitmap.Config.ARGB_4444)).isEqualTo(2); in getBytesPerPixel_preO()485 assertThat(ShadowBitmap.getBytesPerPixel(Bitmap.Config.ALPHA_8)).isEqualTo(1); in getBytesPerPixel_preO()