Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 103) 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/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()
DNullCipherSpi.java88 int inputLen, byte[] output, in engineUpdate() argument
91 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); in engineUpdate()
102 int inputLen, byte[] output, in engineDoFinal() argument
106 output, outputOffset); in engineDoFinal()
/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/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()
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterOutputStreamTest.java130 byte[] output = new byte[outputBufferSize]; in testSyncFlushDeflater()
131 for (int i = 0; i < output.length; i++) { in testSyncFlushDeflater()
132 output[i] = (byte) i; in testSyncFlushDeflater()
134 dos.write(output); in testSyncFlushDeflater()
148 byte[] input = new byte[output.length]; in testSyncFlushDeflater()
165 assertEquals(output.length, total); in testSyncFlushDeflater()
166 assertTrue(Arrays.equals(input, output)); in testSyncFlushDeflater()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherSpiTest.java58 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
61 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
118 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
120 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
366 byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) { in testCrypt_doNotCallPutForZeroLengthOutput()
534 byte[] output, int outputOffset) throws ShortBufferException { in engineUpdate() argument
537 if ((output.length - outputOffset) < t) { in engineUpdate()
541 output[i + outputOffset] = initV[i]; in engineUpdate()
559 byte[] output, int outputOffset) throws ShortBufferException, in engineDoFinal() argument
564 if ((output.length - outputOffset) < t) { in engineDoFinal()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollections2Test.java499 ArrayList<Integer> output = new ArrayList<Integer>(); in testCollectionForEach() local
500 collection.forEach(k -> output.add(k)); in testCollectionForEach()
502 assertEquals(new ArrayList<>(collection), output); in testCollectionForEach()
517 HashMap<String, String> output = new HashMap<String, String>(); in testMapForEach() local
518 map.forEach((k, v) -> output.put(k, v)); in testMapForEach()
519 assertEquals(map, output); in testMapForEach()
521 output.clear(); in testMapForEach()
522 map.entrySet().forEach(entry -> output.put(entry.getKey(), entry.getValue())); in testMapForEach()
523 assertEquals(map, output); in testMapForEach()
546 HashSet<Integer> output = new HashSet<Integer>(); in testSetForEach() local
[all …]
/libcore/support/src/test/java/tests/util/
DSerializationTester.java169 OutputStream output = null; in writeObject() local
172 output = new FileOutputStream(fileName); in writeObject()
173 ooutput = new ObjectOutputStream(output); in writeObject()
184 if (null != output) { in writeObject()
185 output.close(); in writeObject()
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxFileSystemTestData.java74 public String output; field in LinuxFileSystemTestData.TestData
79 TestData(String output, String input, String... inputArray) { in TestData() argument
80 this.output = output; in TestData()

12345