/libcore/ojluni/src/main/java/sun/misc/ |
H A D | IOUtils.java | 52 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 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 [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | UTF16BECharsetTest.java | 39 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 D | UTF16LECharsetTest.java | 39 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 D | ASCCharsetTest.java | 42 byte[] output = new byte[] { 97, 98, 45 internalTestEncode(input, output); 55 char[] output = "ab??".toCharArray(); 56 internalTestDecode(input, output);
|
H A D | ISOCharsetTest.java | 41 byte[] output = new byte[] { 97, 98, 44 internalTestEncode(input, output); 54 char[] output = "ab??".toCharArray(); 55 internalTestDecode(input, output);
|
H A D | UTF8CharsetTest.java | 41 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 D | AbstractCharsetTestCase.java | 139 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 D | MessageDigest2Test.java | 103 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 D | CaseMapper.java | 155 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 D | CipherOutputStream.java | 68 // 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 D | CipherSpi.java | 61 * 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 D | NullCipherSpi.java | 88 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 D | ExemptionMechanismSpi.java | 49 * 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 D | StreamHandler.java | 76 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 D | CipherSymmetricKeyThread.java | 35 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 D | CipherPBEThread.java | 36 byte[] output = new byte[128]; 53 cip.doFinal(input, 0, input.length, output); 56 cip.doFinal(output, 0, outputSize, decrypted);
|
H A D | CipherRSAThread.java | 32 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 D | CharsetDecoderICU.java | 30 * 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 D | ModifiedUtf8.java | 25 * 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 D | LinuxFileSystemTestData.java | 74 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 D | SerializationTester.java | 87 * @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 D | DeflaterOutputStreamTest.java | 66 * 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 D | CipherSpiTest.java | 58 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 D | CipherInputStreamBenchmark.java | 51 private byte[] output = new byte[8192]; field in class:CipherInputStreamBenchmark 73 while (is.read(output) != -1) {
|