Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java431 ByteBuffer inputBuffer = ByteBuffer.allocate(input.length); in testDecoder_decodeByteBuffer() local
432 inputBuffer.put(input); in testDecoder_decodeByteBuffer()
433 inputBuffer.position(0); in testDecoder_decodeByteBuffer()
434 checkDecoder_decodeByteBuffer(decoder, inputBuffer, expectedBytes); in testDecoder_decodeByteBuffer()
436 inputBuffer = ByteBuffer.allocateDirect(input.length); in testDecoder_decodeByteBuffer()
437 inputBuffer.put(input); in testDecoder_decodeByteBuffer()
438 inputBuffer.position(0); in testDecoder_decodeByteBuffer()
439 checkDecoder_decodeByteBuffer(decoder, inputBuffer, expectedBytes); in testDecoder_decodeByteBuffer()
443 Decoder decoder, ByteBuffer inputBuffer, byte[] expectedBytes) { in checkDecoder_decodeByteBuffer() argument
444 assertEquals(0, inputBuffer.position()); in checkDecoder_decodeByteBuffer()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DCharacterDecoder.java187 byte inputBuffer[] = new byte[inputString.length()];
191 inputString.getBytes(0, inputString.length(), inputBuffer, 0);
192 inStream = new ByteArrayInputStream(inputBuffer);
/libcore/ojluni/src/main/native/
DDeflater.c254 jlong inputBuffer, jint inputLen, in Deflater_deflateBufferBytes() argument
258 jbyte *input = jlong_to_ptr(inputBuffer); in Deflater_deflateBufferBytes()
278 jlong inputBuffer, jint inputLen, in Deflater_deflateBufferBuffer() argument
282 jbyte *input = jlong_to_ptr(inputBuffer); in Deflater_deflateBufferBuffer()
DInflater.c249 jlong inputBuffer, jint inputLen, in Inflater_inflateBufferBytes() argument
252 jbyte *input = jlong_to_ptr(inputBuffer); in Inflater_inflateBufferBytes()
273 jlong inputBuffer, jint inputLen, in Inflater_inflateBufferBuffer() argument
276 jbyte *input = jlong_to_ptr(inputBuffer); in Inflater_inflateBufferBuffer()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java775 byte[] inputBuffer = new byte[CONTENT_AS_BYTES_LENGTH - pos]; in test_writeLByteBufferJ_NonZeroPosition()
777 fis.read(inputBuffer); in test_writeLByteBufferJ_NonZeroPosition()
779 assertTrue(Arrays.equals(test.getBytes(), inputBuffer)); in test_writeLByteBufferJ_NonZeroPosition() local
858 byte[] inputBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; in test_write$LByteBuffer()
859 fis.read(inputBuffer); in test_write$LByteBuffer()
865 assertTrue(Arrays.equals(CONTENT_AS_BYTES, inputBuffer)); in test_write$LByteBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java2106 byte[] inputBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; in test_writeLByteBuffer()
2107 fis.read(inputBuffer); in test_writeLByteBuffer()
2108 assertTrue(Arrays.equals(CONTENT_AS_BYTES, inputBuffer)); in test_writeLByteBuffer()
2127 byte[] inputBuffer = new byte[CONTENT_AS_BYTES_LENGTH - pos]; in test_writeLByteBuffer_positioned()
2128 fis.read(inputBuffer); in test_writeLByteBuffer_positioned()
2130 assertTrue(Arrays.equals(test.getBytes("iso8859-1"), inputBuffer)); in test_writeLByteBuffer_positioned()
2220 byte[] inputBuffer = new byte[POSITION + CONTENT_AS_BYTES_LENGTH]; in test_writeLByteBufferJ()
2221 fis.read(inputBuffer); in test_writeLByteBufferJ()
2226 assertTrue(Arrays.equals(expectedResult, inputBuffer)); in test_writeLByteBufferJ()
2388 byte[] inputBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; in test_write$LByteBufferII()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherSpiTest.java394 ByteBuffer inputBuffer = new MockNonArrayBackedByteBuffer(testInputLength, false) { in testCrypt_outputSizeUpdatedAfterShortBufferException() local
437 cipherSpi.engineUpdate(inputBuffer, outputBuffer); in testCrypt_outputSizeUpdatedAfterShortBufferException()