Searched defs:output (Results 1 - 25 of 29) sorted by relevance

12

/libcore/benchmarks/src/benchmarks/regression/
H A DCipherInputStreamBenchmark.java51 private byte[] output = new byte[8192]; field in class:CipherInputStreamBenchmark
73 while (is.read(output) != -1) {
H A DCipherBenchmark.java90 private byte[] output = new byte[DATA.length]; field in class:CipherBenchmark
136 cipherEncrypt.doFinal(DATA, 0, inputSize, output);
142 cipherDecrypt.doFinal(DATA, 0, inputSize, output);
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DLinuxFileSystemTestData.java74 public String output; field in class:LinuxFileSystemTestData.TestData
79 TestData(String output, String input, String... inputArray) { argument
80 this.output = output;
/libcore/ojluni/src/main/java/javax/crypto/
H A DCipherOutputStream.java68 // the underlying output stream
69 private OutputStream output; field in class:CipherOutputStream
84 * <br>Note: if the specified output stream or cipher is
93 output = os;
101 * <br>Note: if the specified output stream is null, a
108 output = os;
113 * Writes the specified byte to this output stream.
123 output.write(obuffer);
130 * to this output stream.
149 * starting at offset <code>off</code> to this output strea
[all...]
H A DExemptionMechanismSpi.java49 * Returns the length in bytes that an output buffer would need to be in
54 * <p>The actual output length of the next
60 * @return the required output buffer size (in bytes)
147 * the <code>output</code> buffer, starting at <code>outputOffset</code>
150 * <p>If the <code>output</code> buffer is too small to hold the result,
152 * call with a larger output buffer. Use
154 * how big the output buffer should be.
156 * @param output the buffer for the result
157 * @param outputOffset the offset in <code>output</code> where the result
160 * @return the number of bytes stored in <code>output</cod
167 engineGenExemptionBlob(byte[] output, int outputOffset) argument
[all...]
H A DExemptionMechanism.java269 * Returns the length in bytes that an output buffer would need to be in
274 * <p>The actual output length of the next
280 * @return the required output buffer size (in bytes)
411 * the <code>output</code> buffer.
413 * <p>If the <code>output</code> buffer is too small to hold the result,
415 * call with a larger output buffer. Use
417 * the output buffer should be.
419 * @param output the buffer for the result
421 * @return the number of bytes stored in <code>output</code>
425 * @exception ShortBufferException if the given output buffe
430 genExemptionBlob(byte[] output) argument
466 genExemptionBlob(byte[] output, int outputOffset) argument
[all...]
H A DNullCipherSpi.java88 int inputLen, byte[] output,
91 System.arraycopy(input, inputOffset, output, outputOffset, inputLen);
102 int inputLen, byte[] output,
106 output, outputOffset);
87 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
101 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
H A DCipherSpi.java61 * output. A transformation always includes the name of a cryptographic
263 * Returns the length in bytes that an output buffer would
271 * <p>The actual output length of the next <code>update</code> or
277 * @return the required output buffer size (in bytes)
498 * and the result is stored in the <code>output</code> buffer, starting at
501 * <p>If the <code>output</code> buffer is too small to hold the result,
508 * @param output the buffer for the result
509 * @param outputOffset the offset in <code>output</code> where the result
512 * @return the number of bytes stored in <code>output</code>
514 * @exception ShortBufferException if the given output buffe
517 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
552 engineUpdate(ByteBuffer input, ByteBuffer output) argument
666 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
727 engineDoFinal(ByteBuffer input, ByteBuffer output) argument
744 bufferCrypt(ByteBuffer input, ByteBuffer output, boolean isUpdate) argument
[all...]
H A DMac.java686 * <p>The MAC result is stored in <code>output</code>, starting at
689 * @param output the buffer where the MAC result is stored
690 * @param outOffset the offset in <code>output</code> where the MAC is
693 * @exception ShortBufferException if the given output buffer is too small
698 public final void doFinal(byte[] output, int outOffset) argument
706 if (output == null || output.length-outOffset < macLen) {
708 ("Cannot store MAC in output buffer");
711 System.arraycopy(mac, 0, output, outOffset, macLen);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DExemptionMechanismSpiTest.java56 protected int engineGenExemptionBlob(byte[] output, int outputOffset) throws ShortBufferException, ExemptionMechanismException { argument
57 return super.engineGenExemptionBlob(output, outputOffset);
97 assertEquals("Incorrect output size", 10, emSpi.engineGetOutputSize(100));
H A DExemptionMechanismTest.java148 * Test for <code>genExemptionBlob((byte[] output, int outputOffset)</code> method
179 protected int engineGenExemptionBlob(byte[] output, int outputOffset) argument
181 if (output.length - outputOffset <
182 super.engineGenExemptionBlob(output, outputOffset)) {
185 if (output[outputOffset + 3] == 33) {
188 return super.engineGenExemptionBlob(output, outputOffset);
H A DCipherOutputStream1Test.java85 * the underlying output stream.
103 * to the underlying output stream.
168 * underlying output stream.
197 + "of its underlying output stream.", tos.wasClosed());
276 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
294 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument
H A DCipherSpiTest.java58 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument
61 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset);
118 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
120 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset);
212 * throws ShortBufferException is there is no space in output to hold result
264 * throws ShortBufferException is there is no space in output to hold result
330 byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) {
335 // The put method is not called in the output buffer and so the test passes.
340 // value for the chunk size to be written, check that the positive output size is used in the
395 + "output siz
497 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
522 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
538 engineUpdate(ByteBuffer input, ByteBuffer output) argument
542 engineDoFinal(ByteBuffer input, ByteBuffer output) argument
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DStreamHandler.java76 private OutputStream output; field in class:StreamHandler
103 * Create a <tt>StreamHandler</tt>, with no current output stream.
113 * and output stream.
115 * @param out the target output stream
116 * @param formatter Formatter to be used to format output
127 * Change the output stream.
129 * If there is a current output stream then the <tt>Formatter</tt>'s
131 * Then the output stream is replaced with the new output stream.
133 * @param out New output strea
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DAbstractCharsetTestCase.java139 protected void internalTestEncode(String input, byte[] output) { argument
143 while (bb.hasRemaining() && i < output.length) {
144 assertEquals(output[i], bb.get());
148 assertEquals(output.length, i);
159 protected void internalTestDecode(byte[] input, char[] output) { argument
163 while (chb.hasRemaining() && i < output.length) {
164 assertEquals(output[i], chb.get());
168 assertEquals(output.length, i);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyCipher.java106 byte[] output, int outputOffset) throws ShortBufferException {
118 byte[] output, int outputOffset) throws ShortBufferException,
105 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
117 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument
H A DMyExemptionMechanismSpi.java55 protected int engineGenExemptionBlob(byte[] output, int outputOffset) argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLEnginePair.java160 ByteBuffer output,
165 // make the other side's output into our input
200 if (output.remaining() != output.capacity()) {
205 int outputPositionBefore = output.position();
206 SSLEngineResult wrapResult = engine.wrap(emptyByteBuffer, output);
210 assertEquals(output.position() - outputPositionBefore,
225 // shift consumed input, restore to output mode
159 handshakeCompleted(SSLEngine engine, ByteBuffer output, ByteBuffer input, ByteBuffer scratch, boolean[] finished) argument
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoderICU.java31 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input bytes consumed
32 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output chars written
42 private char[] output= null; field in class:CharsetDecoderICU
99 output = null;
117 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true);
143 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false);
166 output = out.array();
175 output
[all...]
H A DCharsetEncoderICU.java46 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input chars consumed
47 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output bytes written
57 private byte[] output = null; field in class:CharsetEncoderICU
127 output = null;
145 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true);
172 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false);
194 output = out.array();
203 output
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DObjectStreamClassTest.java198 public void writeExternal(ObjectOutput output) throws IOException { argument
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java24 char[] output, int outEnd, int[] data, boolean flush);
27 byte[] output, int outEnd, int[] data, boolean flush);
23 decode(long converterHandle, byte[] input, int inEnd, char[] output, int outEnd, int[] data, boolean flush) argument
26 encode(long converterHandle, char[] input, int inEnd, byte[] output, int outEnd, int[] data, boolean flush) argument
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectOutputStreamTest.java83 public BasicObjectOutputStream(OutputStream output) throws IOException { argument
84 super(output);
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherInputStreamTest.java233 * CipherSpi that increments it's engineGetOutputSize output when
245 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
248 if ((output.length - outputOffset) < expectedOutputSize) {
275 // to output buffer size before calling CipherSpi.egineUpdate(byte[],int,int,byte[],int).
H A DMockCipherSpi.java259 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument
271 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument

Completed in 322 milliseconds

12