Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java285 ByteBuffer directBuffer = ByteBuffer.allocateDirect(bufferSize); in testCopyWithDirectByteBuffer() local
288 directBuffer.put(0, padValue); in testCopyWithDirectByteBuffer()
289 directBuffer.put(directBuffer.limit() - 1, padValue); in testCopyWithDirectByteBuffer()
292 directBuffer.position(pad); in testCopyWithDirectByteBuffer()
293 bm1.copyPixelsToBuffer(directBuffer); in testCopyWithDirectByteBuffer()
294 assertEquals(directBuffer.position(), in testCopyWithDirectByteBuffer()
298 assertEquals(directBuffer.get(0), padValue); in testCopyWithDirectByteBuffer()
299 assertEquals(directBuffer.get(directBuffer.limit() - 1), padValue); in testCopyWithDirectByteBuffer()
302 directBuffer.position(pad); in testCopyWithDirectByteBuffer()
304 bm2.copyPixelsFromBuffer(directBuffer); in testCopyWithDirectByteBuffer()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java82 private static ThreadLocal<SoftReference<ByteBuffer>> directBuffer = field in IsValidUtf8TestUtil
94 SoftReference<ByteBuffer> ref = directBuffer.get();
98 directBuffer.set(new SoftReference<ByteBuffer>(buffer));