Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DNioByteStringTest.java200 ByteBuffer myBuffer = ByteBuffer.allocate(BYTES.length); in testCopyTo_ByteBuffer() local
201 testString.copyTo(myBuffer); in testCopyTo_ByteBuffer()
202 myBuffer.flip(); in testCopyTo_ByteBuffer()
204 backingBuffer, myBuffer); in testCopyTo_ByteBuffer()
207 myBuffer = ByteBuffer.allocate(testString.size() + 1); in testCopyTo_ByteBuffer()
208 testString.copyTo(myBuffer); in testCopyTo_ByteBuffer()
209 myBuffer.flip(); in testCopyTo_ByteBuffer()
210 assertEquals(backingBuffer, myBuffer); in testCopyTo_ByteBuffer()
213 myBuffer = ByteBuffer.allocate(0); in testCopyTo_ByteBuffer()
215 testString.copyTo(myBuffer); in testCopyTo_ByteBuffer()
[all …]
DLiteralByteStringTest.java205 ByteBuffer myBuffer = ByteBuffer.allocate(referenceBytes.length); in testCopyTo_ByteBuffer() local
206 stringUnderTest.copyTo(myBuffer); in testCopyTo_ByteBuffer()
208 Arrays.equals(referenceBytes, myBuffer.array())); in testCopyTo_ByteBuffer()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLiteralByteStringTest.java191 ByteBuffer myBuffer = ByteBuffer.allocate(referenceBytes.length); in testCopyTo_ByteBuffer() local
192 stringUnderTest.copyTo(myBuffer); in testCopyTo_ByteBuffer()
194 Arrays.equals(referenceBytes, myBuffer.array())); in testCopyTo_ByteBuffer()