Searched refs:output (Results 1 - 25 of 87) sorted by relevance

1234

/libcore/ojluni/src/main/java/sun/misc/
H A DIOUtils.java52 byte[] output = {};
57 if (pos >= output.length) { // Only expand when there's no room
58 bytesToRead = Math.min(length - pos, output.length + 1024);
59 if (output.length < pos + bytesToRead) {
60 output = Arrays.copyOf(output, pos + bytesToRead);
63 bytesToRead = output.length - pos;
65 int cc = is.read(output, pos, bytesToRead);
70 if (output.length != pos) {
71 output
[all...]
/libcore/tools/docs/crypto/
H A Dformat_supported_algorithm_table.py45 output = []
48 output.append('<h2 id="SupportedAlgorithms">Supported Algorithms</h2>')
49 output.append('')
50 output.append('<ul>')
53 output.append(' <li><a href="#Supported{name}">'
55 output.append('</ul>')
106 output.append('<h3 id="Supported{name}">{name}</h3>'.format(**category))
107 output.append('<table>')
108 output.append(' <thead>')
109 output
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DUTF16BECharsetTest.java39 byte[] output = new byte[] { 0, 97, 0, 98, 93, 20, 101, 79 };
40 internalTestEncode(input, output);
50 char[] output = "ab\u5D14\u654F".toCharArray();
51 internalTestDecode(input, output);
H A DUTF16LECharsetTest.java39 byte[] output = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 };
40 internalTestEncode(input, output);
50 char[] output = "ab\u5D14\u654F".toCharArray();
51 internalTestDecode(input, output);
H A DASCCharsetTest.java42 byte[] output = new byte[] { 97, 98,
45 internalTestEncode(input, output);
55 char[] output = "ab??".toCharArray();
56 internalTestDecode(input, output);
H A DISOCharsetTest.java41 byte[] output = new byte[] { 97, 98,
44 internalTestEncode(input, output);
54 char[] output = "ab??".toCharArray();
55 internalTestDecode(input, output);
H A DUTF8CharsetTest.java41 char[] output = "ab\u5D14\u654F".toCharArray();
42 internalTestDecode(input, output);
52 byte[] output = new byte[] { 97, 98, -27, -76, -108, -26, -107, -113 };
53 internalTestEncode(input, output);
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/security/tests/java/security/
H A DMessageDigest2Test.java103 DataOutputStream output = new DataOutputStream(out);
106 output.writeUTF("tests.api.java.security.MessageDigestTest$InitializerFieldsTest3");
107 output.writeInt(0); // class modifiers
108 output.writeUTF("java.io.Serializable"); // interfaces
111 output.writeUTF("sub_toBeNotSerialized"); // name
112 output.writeInt(9); // modifiers
113 output.writeUTF("Ljava/lang/String;"); // signature
115 output.writeUTF("sub_toBeNotSerialized2"); // name
116 output.writeInt(9); // modifiers
117 output
[all...]
/libcore/libart/src/main/java/java/lang/
H A DCaseMapper.java155 char[] output = null;
164 if (output != null && i >= output.length) {
165 char[] newoutput = new char[output.length + (count / 6) + 2];
166 System.arraycopy(output, 0, newoutput, 0, output.length);
167 output = newoutput;
170 if (output != null) {
171 output[i++] = upch;
173 output
[all...]
/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 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 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 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...]
/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/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherSymmetricKeyThread.java35 byte[] output = new byte[128];
57 cip.doFinal(input, 0, input.length, output);
62 cip.doFinal(output, 0, outputSize, decrypted);
65 cip.doFinal(input, 0, input.length, output);
68 cip.doFinal(output, 0, outputSize, decrypted);
H A DCipherPBEThread.java36 byte[] output = new byte[128];
53 cip.doFinal(input, 0, input.length, output);
56 cip.doFinal(output, 0, outputSize, decrypted);
H A DCipherRSAThread.java32 byte[] output = new byte[256];
43 cip.doFinal(input, 0, input.length, output);
46 cip.doFinal(output, 0, outputSize, decrypted);
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoderICU.java30 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input bytes consumed
31 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output chars written
40 private char[] output= null; field in class:CharsetDecoderICU
95 output = null;
113 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true);
139 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false);
162 output = out.array();
171 output
[all...]
H A DModifiedUtf8.java25 * 0xc0 0x80 . This avoids the presence of bytes 0 in the output.
65 * <p>The output buffer is guaranteed to have enough space.
92 * <p>- the first two bytes of the buffer are the length of the modified-utf8 output
96 * <p>- the remainder of the buffer contains the modified-utf8 output (equivalent to
101 byte[] output = new byte[(int) size + 2];
102 encode(output, 2, s);
103 output[0] = (byte) (size >>> 8);
104 output[1] = (byte) size;
105 return output;
112 * <p>A maximum of {@code length} chars are written to the output startin
[all...]
/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/support/src/test/java/tests/util/
H A DSerializationTester.java87 * @param fileName the serialization output file generated by reference
101 * @param fileName the serialization output file generated by reference
153 * Creates a serialization output.
155 * @param obj the object to be serialized @param fileName the output file
169 OutputStream output = null;
172 output = new FileOutputStream(fileName);
173 ooutput = new ObjectOutputStream(output);
184 if (null != output) {
185 output.close();
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DDeflaterOutputStreamTest.java66 * output.
127 // make output buffer large enough that even if compressed it
130 byte[] output = new byte[outputBufferSize];
131 for (int i = 0; i < output.length; i++) {
132 output[i] = (byte) i;
134 dos.write(output);
148 byte[] input = new byte[output.length];
165 assertEquals(output.length, total);
166 assertTrue(Arrays.equals(input, output));
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
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/benchmarks/src/benchmarks/regression/
H A DCipherInputStreamBenchmark.java51 private byte[] output = new byte[8192]; field in class:CipherInputStreamBenchmark
73 while (is.read(output) != -1) {

Completed in 4123 milliseconds

1234