Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 112) sorted by relevance

12345

/libcore/tools/docs/crypto/
Dformat_supported_algorithm_table.py62 output = []
65 output.append('<h2 id="SupportedAlgorithms">Supported Algorithms</h2>')
66 output.append('')
67 output.append('<ul>')
70 output.append(' <li><a href="#Supported{name}">'
72 output.append('</ul>')
129 output.append('<h3 id="Supported{name}">{name}</h3>'.format(**category))
130 output.append('<table>')
131 output.append(' <thead>')
132 output.append(' <tr>')
[all …]
/libcore/libart/src/main/java/java/lang/
DCaseMapper.java155 char[] output = null; in toUpperCase() local
164 if (output != null && i >= output.length) { in toUpperCase()
165 char[] newoutput = new char[output.length + (count / 6) + 2]; in toUpperCase()
166 System.arraycopy(output, 0, newoutput, 0, output.length); in toUpperCase()
167 output = newoutput; in toUpperCase()
170 if (output != null) { in toUpperCase()
171 output[i++] = upch; in toUpperCase()
173 output = new char[count]; in toUpperCase()
175 s.getCharsNoCheck(0, i, output, 0); in toUpperCase()
176 output[i++] = upch; in toUpperCase()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java116 DataOutputStream output = new DataOutputStream(out); in testSerializationSHA_DATA_2() local
119 output.writeUTF("tests.api.java.security.MessageDigestTest$InitializerFieldsTest3"); in testSerializationSHA_DATA_2()
120 output.writeInt(0); // class modifiers in testSerializationSHA_DATA_2()
121 output.writeUTF("java.io.Serializable"); // interfaces in testSerializationSHA_DATA_2()
124 output.writeUTF("sub_toBeNotSerialized"); // name in testSerializationSHA_DATA_2()
125 output.writeInt(9); // modifiers in testSerializationSHA_DATA_2()
126 output.writeUTF("Ljava/lang/String;"); // signature in testSerializationSHA_DATA_2()
128 output.writeUTF("sub_toBeNotSerialized2"); // name in testSerializationSHA_DATA_2()
129 output.writeInt(9); // modifiers in testSerializationSHA_DATA_2()
130 output.writeUTF("Ljava/lang/String;"); // signature in testSerializationSHA_DATA_2()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DIOUtils.java52 byte[] output = {}; in readFully()
57 if (pos >= output.length) { // Only expand when there's no room in readFully()
58 bytesToRead = Math.min(length - pos, output.length + 1024); in readFully()
59 if (output.length < pos + bytesToRead) { in readFully()
60 output = Arrays.copyOf(output, pos + bytesToRead); in readFully()
63 bytesToRead = output.length - pos; in readFully()
65 int cc = is.read(output, pos, bytesToRead); in readFully()
70 if (output.length != pos) { in readFully()
71 output = Arrays.copyOf(output, pos); in readFully()
78 return output; in readFully()
/libcore/ojluni/src/main/java/java/util/zip/
DDeflater.java475 public int deflate(byte[] output, int off, int len) { in deflate() argument
476 return deflate(output, off, len, NO_FLUSH); in deflate()
494 public int deflate(byte[] output) { in deflate() argument
495 return deflate(output, 0, output.length, NO_FLUSH); in deflate()
514 public int deflate(ByteBuffer output) { in deflate() argument
515 return deflate(output, NO_FLUSH); in deflate()
569 public int deflate(byte[] output, int off, int len, int flush) { in deflate() argument
570 if (off < 0 || len < 0 || off > output.length - len) { in deflate()
599 output, off, len, in deflate()
609 output, off, len, in deflate()
[all …]
DInflater.java375 public int inflate(byte[] output, int off, int len) in inflate() argument
378 if (off < 0 || len < 0 || off > output.length - len) { in inflate()
392 output, off, len); in inflate()
406 output, off, len); in inflate()
415 output, off, len); in inflate()
475 public int inflate(byte[] output) throws DataFormatException { in inflate() argument
476 return inflate(output, 0, output.length); in inflate()
513 public int inflate(ByteBuffer output) throws DataFormatException { in inflate() argument
514 if (output.isReadOnly()) { in inflate()
522 int outputPos = output.position(); in inflate()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/
DCipherSpi.java519 int inputLen, byte[] output, in engineUpdate() argument
553 protected int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument
556 return bufferCrypt(input, output, true); in engineUpdate()
668 int inputLen, byte[] output, in engineDoFinal() argument
728 protected int engineDoFinal(ByteBuffer input, ByteBuffer output) in engineDoFinal() argument
731 return bufferCrypt(input, output, false); in engineDoFinal()
745 private int bufferCrypt(ByteBuffer input, ByteBuffer output, in bufferCrypt() argument
748 if ((input == null) || (output == null)) { in bufferCrypt()
759 if (output.remaining() < outLenNeeded) { in bufferCrypt()
765 boolean a2 = output.hasArray(); in bufferCrypt()
[all …]
DCipherOutputStream.java69 private OutputStream output; field in CipherOutputStream
93 output = os; in CipherOutputStream()
108 output = os; in CipherOutputStream()
123 output.write(obuffer); in write()
160 output.write(obuffer); in write()
181 output.write(obuffer); in flush()
184 output.flush(); in flush()
/libcore/ojluni/src/test/java/lang/String/
DFormatted.java48 static void check(String test, String output, String expected) { in check() argument
49 if (output != expected && (output == null || !output.equals(expected))) { in check()
51 + "Output:" + output + " Expected: " + expected); in check()
DTransform.java65 static void check(String test, Object output, Object expected) { in check() argument
66 if (output != expected && (output == null || !output.equals(expected))) { in check()
69 System.err.println(output); in check()
/libcore/ojluni/src/test/java/io/InputStream/
DTransferTo.java77 transferToThenCheckIfAnyClosed(input(0, new byte[]{1, 2, 3}), output()); in ifExceptionInInputNeitherStreamIsClosed()
78 transferToThenCheckIfAnyClosed(input(1, new byte[]{1, 2, 3}), output()); in ifExceptionInInputNeitherStreamIsClosed()
79 transferToThenCheckIfAnyClosed(input(2, new byte[]{1, 2, 3}), output()); in ifExceptionInInputNeitherStreamIsClosed()
85 transferToThenCheckIfAnyClosed(input(new byte[]{1, 2, 3}), output(0)); in ifExceptionInOutputNeitherStreamIsClosed()
86 transferToThenCheckIfAnyClosed(input(new byte[]{1, 2, 3}), output(1)); in ifExceptionInOutputNeitherStreamIsClosed()
87 transferToThenCheckIfAnyClosed(input(new byte[]{1, 2, 3}), output(2)); in ifExceptionInOutputNeitherStreamIsClosed()
91 OutputStream output) in transferToThenCheckIfAnyClosed() argument
95 new CloseLoggingOutputStream(output)) { in transferToThenCheckIfAnyClosed()
117 new CloseLoggingOutputStream(output())) { in onReturnNeitherStreamIsClosed()
130 OutputStream out = output()) { in onReturnInputIsAtEnd()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DAbstractCharsetTestCase.java139 protected void internalTestEncode(String input, byte[] output) { in internalTestEncode() argument
143 while (bb.hasRemaining() && i < output.length) { in internalTestEncode()
144 assertEquals(output[i], bb.get()); in internalTestEncode()
148 assertEquals(output.length, i); in internalTestEncode()
159 protected void internalTestDecode(byte[] input, char[] output) { in internalTestDecode() argument
163 while (chb.hasRemaining() && i < output.length) { in internalTestDecode()
164 assertEquals(output[i], chb.get()); in internalTestDecode()
168 assertEquals(output.length, i); in internalTestDecode()
DUTF16BECharsetTest.java39 byte[] output = new byte[] { 0, 97, 0, 98, 93, 20, 101, 79 }; in testEncode_Normal()
40 internalTestEncode(input, output); in testEncode_Normal()
50 char[] output = "ab\u5D14\u654F".toCharArray(); in testDecode_Normal() local
51 internalTestDecode(input, output); in testDecode_Normal()
DUTF16LECharsetTest.java39 byte[] output = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 }; in testEncode_Normal()
40 internalTestEncode(input, output); in testEncode_Normal()
50 char[] output = "ab\u5D14\u654F".toCharArray(); in testDecode_Normal() local
51 internalTestDecode(input, output); in testDecode_Normal()
DISOCharsetTest.java41 byte[] output = new byte[] { 97, 98, in testEncode_Normal()
44 internalTestEncode(input, output); in testEncode_Normal()
54 char[] output = "ab??".toCharArray(); in testDecode_Normal() local
55 internalTestDecode(input, output); in testDecode_Normal()
DASCCharsetTest.java42 byte[] output = new byte[] { 97, 98, in testEncode_Normal()
45 internalTestEncode(input, output); in testEncode_Normal()
55 char[] output = "ab??".toCharArray(); in testDecode_Normal() local
56 internalTestDecode(input, output); in testDecode_Normal()
DUTF8CharsetTest.java41 char[] output = "ab\u5D14\u654F".toCharArray(); in testDecode_Normal() local
42 internalTestDecode(input, output); in testDecode_Normal()
52 byte[] output = new byte[] { 97, 98, -27, -76, -108, -26, -107, -113 }; in testEncode_Normal()
53 internalTestEncode(input, output); in testEncode_Normal()
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java78 transferToThenCheckIfAnyClosed(input(0, new char[]{1, 2, 3}), output()); in ifExceptionInInputNeitherStreamIsClosed()
79 transferToThenCheckIfAnyClosed(input(1, new char[]{1, 2, 3}), output()); in ifExceptionInInputNeitherStreamIsClosed()
80 transferToThenCheckIfAnyClosed(input(2, new char[]{1, 2, 3}), output()); in ifExceptionInInputNeitherStreamIsClosed()
86 transferToThenCheckIfAnyClosed(input(new char[]{1, 2, 3}), output(0)); in ifExceptionInOutputNeitherStreamIsClosed()
87 transferToThenCheckIfAnyClosed(input(new char[]{1, 2, 3}), output(1)); in ifExceptionInOutputNeitherStreamIsClosed()
88 transferToThenCheckIfAnyClosed(input(new char[]{1, 2, 3}), output(2)); in ifExceptionInOutputNeitherStreamIsClosed()
92 Writer output) in transferToThenCheckIfAnyClosed() argument
96 new CloseLoggingWriter(output)) { in transferToThenCheckIfAnyClosed()
118 new CloseLoggingWriter(output())) { in onReturnNeitherStreamIsClosed()
131 Writer out = output()) { in onReturnInputIsAtEnd()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DStreamHandler.java76 private OutputStream output; field in StreamHandler
142 output = out; in setOutputStream()
146 writer = new OutputStreamWriter(output); in setOutputStream()
149 writer = new OutputStreamWriter(output, encoding); in setOutputStream()
175 if (output == null) { in setEncoding()
181 writer = new OutputStreamWriter(output); in setEncoding()
183 writer = new OutputStreamWriter(output, encoding); in setEncoding()
285 output = null; in flushAndClose()
/libcore/ojluni/src/test/java/util/zip/
DDeflaterDictionaryTests.java91 byte[] output = new byte[RESULT_SIZE]; in testByteArray()
99 … int compressedDataLength = deflater.deflate(output, 0, output.length, Deflater.NO_FLUSH); in testByteArray()
106 inflater.setInput(output, 0, compressedDataLength); in testByteArray()
137 byte[] output = new byte[RESULT_SIZE]; in testHeapByteBuffer()
147 … int compressedDataLength = deflater.deflate(output, 0, output.length, Deflater.NO_FLUSH); in testHeapByteBuffer()
154 inflater.setInput(output, 0, compressedDataLength); in testHeapByteBuffer()
185 byte[] output = new byte[RESULT_SIZE]; in testByteBufferDirect()
201 … int compressedDataLength = deflater.deflate(output, 0, output.length, Deflater.NO_FLUSH); in testByteBufferDirect()
208 inflater.setInput(output, 0, compressedDataLength); in testByteBufferDirect()
/libcore/ojluni/src/main/native/
DDeflater.c128 jbyte *output, jint outputLen, in doDeflate() argument
136 strm->next_out = (Bytef *) output; in doDeflate()
198 jbyte *output; in Deflater_deflateBytesBytes() local
207 output = (*env)->GetPrimitiveArrayCritical(env, outputArray, 0); in Deflater_deflateBytesBytes()
208 if (output == NULL) { in Deflater_deflateBytesBytes()
215 res = doDeflate(env, addr, input + inputOff, inputLen,output + outputOff, in Deflater_deflateBytesBytes()
218 (*env)->ReleasePrimitiveArrayCritical(env, outputArray, output, 0); in Deflater_deflateBytesBytes()
233 jbyte *output; in Deflater_deflateBytesBuffer() local
241 output = jlong_to_ptr(outputBuffer); in Deflater_deflateBytesBuffer()
243 res = doDeflate(env, addr, input + inputOff, inputLen, output, outputLen, in Deflater_deflateBytesBuffer()
[all …]
DInflater.c133 jbyte *output, jint outputLen) in doInflate() argument
139 strm->next_out = (Bytef *) output; in doInflate()
195 jbyte *output; in Inflater_inflateBytesBytes() local
204 output = (*env)->GetPrimitiveArrayCritical(env, outputArray, 0); in Inflater_inflateBytesBytes()
205 if (output == NULL) { in Inflater_inflateBytesBytes()
212 ret = doInflate(addr, input + inputOff, inputLen, output + outputOff, in Inflater_inflateBytesBytes()
215 (*env)->ReleasePrimitiveArrayCritical(env, outputArray, output, 0); in Inflater_inflateBytesBytes()
228 jbyte *output; in Inflater_inflateBytesBuffer() local
237 output = jlong_to_ptr(outputBuffer); in Inflater_inflateBytesBuffer()
239 ret = doInflate(addr, input + inputOff, inputLen, output, outputLen); in Inflater_inflateBytesBuffer()
[all …]
/libcore/ojluni/annotations/flagged_api/java/util/zip/
DDeflater.annotated.java62 public int deflate(byte[] output, int off, int len) { throw new RuntimeException("Stub!"); } in deflate() argument
64 public int deflate(byte[] output) { throw new RuntimeException("Stub!"); } in deflate() argument
67 public int deflate(java.nio.ByteBuffer output) { throw new RuntimeException("Stub!"); } in deflate() argument
69 public int deflate(byte[] output, int off, int len, int flush) { throw new RuntimeException("Stub!"… in deflate() argument
72 public int deflate(java.nio.ByteBuffer output, int flush) { throw new RuntimeException("Stub!"); } in deflate() argument
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java280 byte[] output = res.getBytes(1); in testGetBytesIntVarbinary()
281 String helloTest = new String(output); in testGetBytesIntVarbinary()
312 byte[] output = res.getBytes(1); in testGetBytesIntBinary()
313 String helloTest = new String(output); in testGetBytesIntBinary()
362 byte[] output = res.getBytes("value"); in testGetBytesStringVarbinary()
363 String helloTest = new String(output); in testGetBytesStringVarbinary()
394 byte[] output = res.getBytes("value"); in testGetBytesStringBinary()
395 String helloTest = new String(output); in testGetBytesStringBinary()
493 double output = 0.0; in testGetDoubleInt() local
496 output = res.getDouble(8); in testGetDoubleInt()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherSymmetricKeyThread.java35 byte[] output = new byte[128]; in crypt()
57 cip.doFinal(input, 0, input.length, output); in crypt()
62 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
65 cip.doFinal(input, 0, input.length, output); in crypt()
68 cip.doFinal(output, 0, outputSize, decrypted); in crypt()

12345