/libcore/tools/docs/crypto/ |
D | format_supported_algorithm_table.py | 45 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.append(' <tr>') [all …]
|
/libcore/libart/src/main/java/java/lang/ |
D | CaseMapper.java | 155 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/ojluni/src/main/java/sun/misc/ |
D | IOUtils.java | 52 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/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest2Test.java | 103 DataOutputStream output = new DataOutputStream(out); in testSerializationSHA_DATA_2() local 106 output.writeUTF("tests.api.java.security.MessageDigestTest$InitializerFieldsTest3"); in testSerializationSHA_DATA_2() 107 output.writeInt(0); // class modifiers in testSerializationSHA_DATA_2() 108 output.writeUTF("java.io.Serializable"); // interfaces in testSerializationSHA_DATA_2() 111 output.writeUTF("sub_toBeNotSerialized"); // name in testSerializationSHA_DATA_2() 112 output.writeInt(9); // modifiers in testSerializationSHA_DATA_2() 113 output.writeUTF("Ljava/lang/String;"); // signature in testSerializationSHA_DATA_2() 115 output.writeUTF("sub_toBeNotSerialized2"); // name in testSerializationSHA_DATA_2() 116 output.writeInt(9); // modifiers in testSerializationSHA_DATA_2() 117 output.writeUTF("Ljava/lang/String;"); // signature in testSerializationSHA_DATA_2() [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 518 int inputLen, byte[] output, in engineUpdate() argument 552 protected int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument 555 return bufferCrypt(input, output, true); in engineUpdate() 667 int inputLen, byte[] output, in engineDoFinal() argument 727 protected int engineDoFinal(ByteBuffer input, ByteBuffer output) in engineDoFinal() argument 730 return bufferCrypt(input, output, false); in engineDoFinal() 744 private int bufferCrypt(ByteBuffer input, ByteBuffer output, in bufferCrypt() argument 747 if ((input == null) || (output == null)) { in bufferCrypt() 758 if (output.remaining() < outLenNeeded) { in bufferCrypt() 764 boolean a2 = output.hasArray(); in bufferCrypt() [all …]
|
D | CipherOutputStream.java | 69 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()
|
D | NullCipherSpi.java | 88 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | AbstractCharsetTestCase.java | 139 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()
|
D | UTF16BECharsetTest.java | 39 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()
|
D | UTF16LECharsetTest.java | 39 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()
|
D | ISOCharsetTest.java | 41 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()
|
D | ASCCharsetTest.java | 42 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()
|
D | UTF8CharsetTest.java | 41 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/main/java/java/util/logging/ |
D | StreamHandler.java | 76 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/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherSymmetricKeyThread.java | 35 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/main/java/java/nio/charset/ |
D | CharsetDecoderICU.java | 40 private char[] output= null; field in CharsetDecoderICU 95 output = null; in implReset() 113 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush() 139 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); in decodeLoop() 162 output = out.array(); in getArray() 171 output = allocatedOutput; in getArray() 200 out.put(output, 0, data[OUTPUT_OFFSET]); in setPosition() 203 output = null; in setPosition()
|
D | ModifiedUtf8.java | 101 byte[] output = new byte[(int) size + 2]; in encode() 102 encode(output, 2, s); in encode() 103 output[0] = (byte) (size >>> 8); in encode() 104 output[1] = (byte) size; in encode() 105 return output; in encode()
|
D | CharsetEncoderICU.java | 56 private byte[] output = null; field in CharsetEncoderICU 124 output = null; in implReset() 142 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush() 169 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false); in encodeLoop() 191 output = out.array(); in getArray() 200 output = allocatedOutput; in getArray() 229 out.put(output, 0, data[OUTPUT_OFFSET]); in setPosition() 232 output = null; in setPosition()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 280 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/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 130 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()
|
D | OldAndroidDeflateTest.java | 47 byte[] output = new byte[100]; in simpleTest() 51 int compressedDataLength = compresser.deflate(output); in simpleTest() 55 decompresser.setInput(output, 0, compressedDataLength); in simpleTest() 78 byte[] output = new byte[128 * 1024 + 512]; in bigTest() 85 expand(inflater, comp, (int) deflater.getBytesWritten(), output); in bigTest()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherSpiTest.java | 58 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() 330 byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) { in testCrypt_doNotCallPutForZeroLengthOutput() 498 byte[] output, int outputOffset) throws ShortBufferException { in engineUpdate() argument 501 if ((output.length - outputOffset) < t) { in engineUpdate() 505 output[i + outputOffset] = initV[i]; in engineUpdate() 523 byte[] output, int outputOffset) throws ShortBufferException, in engineDoFinal() argument 528 if ((output.length - outputOffset) < t) { in engineDoFinal() [all …]
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 169 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 499 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/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxFileSystemTestData.java | 74 public String output; field in LinuxFileSystemTestData.TestData 79 TestData(String output, String input, String... inputArray) { in TestData() argument 80 this.output = output; in TestData()
|