Searched refs:heapBuffer (Results 1 – 1 of 1) sorted by relevance
401 ByteBuffer heapBuffer = ByteBuffer.allocate(bufferSize); in testCopyWithHeapByteBuffer() local404 heapBuffer.put(0, padValue); in testCopyWithHeapByteBuffer()405 heapBuffer.put(heapBuffer.limit() - 1, padValue); in testCopyWithHeapByteBuffer()408 heapBuffer.position(pad); in testCopyWithHeapByteBuffer()409 bm1.copyPixelsToBuffer(heapBuffer); in testCopyWithHeapByteBuffer()410 assertEquals(heapBuffer.position(), pad + width * height * bytesPerPixel / bytesPerElement); in testCopyWithHeapByteBuffer()413 assertEquals(heapBuffer.get(0), padValue); in testCopyWithHeapByteBuffer()414 assertEquals(heapBuffer.get(heapBuffer.limit() - 1), padValue); in testCopyWithHeapByteBuffer()417 heapBuffer.position(pad); in testCopyWithHeapByteBuffer()419 bm2.copyPixelsFromBuffer(heapBuffer); in testCopyWithHeapByteBuffer()[all …]