/libcore/tools/docs/crypto/ |
D | format_supported_algorithm_table.py | 62 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/ |
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/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest2Test.java | 116 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/ |
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/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()
|
D | Cipher.java | 1762 byte[] output) in update() argument 1777 output, 0); in update() 1820 byte[] output, int outputOffset) in update() argument 1836 output, outputOffset); in update() 1877 public final int update(ByteBuffer input, ByteBuffer output) in update() argument 1881 if ((input == null) || (output == null)) { in update() 1884 if (input == output) { in update() 1888 if (output.isReadOnly()) { in update() 1893 return spi.engineUpdate(input, output); in update() 1991 public final int doFinal(byte[] output, int outputOffset) in doFinal() argument [all …]
|
/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 | 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 | 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 | 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/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/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()
|
D | CipherRSAThread.java | 32 byte[] output = new byte[256]; in crypt() 43 cip.doFinal(input, 0, input.length, output); in crypt() 46 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
|
/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() 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/ |
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/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/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()
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | PssInstrumentation.java | 44 File output = resolveRelativeOutputFilename(label + ".pss.txt"); in takeMeasurement() local 46 try (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(output), cs)) { in takeMeasurement() 49 Log.i(TAG, "Wrote to total PSS of " + totalPssKb + " kB to " + output.getCanonicalPath()); in takeMeasurement()
|