Home
last modified time | relevance | path

Searched refs:getByteCount (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapTest.java220 assertThat(b1.getByteCount()).isEqualTo(400); in byteCountIsAccurate()
222 assertThat(b2.getByteCount()).isEqualTo(200); in byteCountIsAccurate()
226 b3.getByteCount(); in byteCountIsAccurate()
453 ByteBuffer buffer = ByteBuffer.allocate(bitmapOriginal.getByteCount()); in shouldCopyPixelsToBufferAndReconstruct()
455 assertThat(buffer.position()).isEqualTo(bitmapOriginal.getByteCount()); in shouldCopyPixelsToBufferAndReconstruct()
463 assertThat(buffer.position()).isEqualTo(bitmapOriginal.getByteCount()); in shouldCopyPixelsToBufferAndReconstruct()
491 ShortBuffer buffer = ShortBuffer.allocate(bitmapOriginal.getByteCount()); in throwsExceptionCopyPixelsToShortBuffer()
498 IntBuffer buffer = IntBuffer.allocate(bitmapOriginal.getByteCount()); in throwsExceptionCopyPixelsToIntBuffer()
505 LongBuffer buffer = LongBuffer.allocate(bitmapOriginal.getByteCount()); in throwsExceptionCopyPixelsToLongBuffer()
512 ByteBuffer buffer = ByteBuffer.allocate(bitmapOriginal.getByteCount() - 1); in throwsExceptionCopyPixelsToBufferTooSmall()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmap.java414 protected int getByteCount() { in getByteCount() method in ShadowBitmap