Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java182 final int pixSize = mBitmap.getRowBytes() * mBitmap.getHeight(); in testCopyPixelsToBufferUnsupportedBufferClass() local
184 mBitmap.copyPixelsToBuffer(CharBuffer.allocate(pixSize)); in testCopyPixelsToBufferUnsupportedBufferClass()
189 final int pixSize = mBitmap.getRowBytes() * mBitmap.getHeight(); in testCopyPixelsToBufferBufferTooSmall() local
190 final int tooSmall = pixSize / 2; in testCopyPixelsToBufferBufferTooSmall()
197 final int pixSize = mBitmap.getRowBytes() * mBitmap.getHeight(); in testCopyPixelsToBuffer() local
199 ByteBuffer byteBuf = ByteBuffer.allocate(pixSize); in testCopyPixelsToBuffer()
202 assertEquals(pixSize, byteBuf.position()); in testCopyPixelsToBuffer()
204 ShortBuffer shortBuf = ShortBuffer.allocate(pixSize); in testCopyPixelsToBuffer()
207 assertEquals(pixSize >> 1, shortBuf.position()); in testCopyPixelsToBuffer()
209 IntBuffer intBuf1 = IntBuffer.allocate(pixSize); in testCopyPixelsToBuffer()
[all …]