Home
last modified time | relevance | path

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

123

/libcore/luni/src/main/java/java/lang/
DCaseMapper.java148 char[] output = null; in toUpperCase() local
157 if (output != null && i >= output.length) { in toUpperCase()
158 char[] newoutput = new char[output.length + (count / 6) + 2]; in toUpperCase()
159 System.arraycopy(output, 0, newoutput, 0, output.length); in toUpperCase()
160 output = newoutput; in toUpperCase()
164 if (output == null) { in toUpperCase()
165 output = new char[count]; in toUpperCase()
167 System.arraycopy(value, offset, output, 0, i); in toUpperCase()
169 output[i++] = upch; in toUpperCase()
170 } else if (output != null) { in toUpperCase()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java103 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/luni/src/main/java/java/io/
DObjectOutputStream.java57 private DataOutputStream output; field in ObjectOutputStream
266 public ObjectOutputStream(OutputStream output) throws IOException { in ObjectOutputStream() argument
267 this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output in ObjectOutputStream()
268 : new DataOutputStream(output); in ObjectOutputStream()
277 primitiveTypes = this.output; in ObjectOutputStream()
338 output.close(); in close()
391 output.writeByte(TC_BLOCKDATA); in drain()
392 output.writeByte((byte) toWrite); in drain()
394 output.writeByte(TC_BLOCKDATALONG); in drain()
395 output.writeInt(toWrite); in drain()
[all …]
DEmulatedFieldsForDumping.java196 public void write(ObjectOutput output) throws IOException { in write() argument
197 if (!output.equals(oos)) { in write()
204 output.writeInt(fieldValue != null ? ((Integer) fieldValue).intValue() : 0); in write()
206 output.writeByte(fieldValue != null ? ((Byte) fieldValue).byteValue() : 0); in write()
208 output.writeChar(fieldValue != null ? ((Character) fieldValue).charValue() : 0); in write()
210 output.writeShort(fieldValue != null ? ((Short) fieldValue).shortValue() : 0); in write()
212output.writeBoolean(fieldValue != null ? ((Boolean) fieldValue).booleanValue() : false); in write()
214 output.writeLong(fieldValue != null ? ((Long) fieldValue).longValue() : 0); in write()
216 output.writeFloat(fieldValue != null ? ((Float) fieldValue).floatValue() : 0); in write()
218 output.writeDouble(fieldValue != null ? ((Double) fieldValue).doubleValue() : 0); in write()
[all …]
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
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()
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()
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()
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()
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/luni/src/main/java/org/apache/harmony/crypto/internal/
DNullCipherSpi.java107 byte[] output, int outputOffset) throws ShortBufferException { in engineUpdate() argument
111 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); in engineUpdate()
116 public int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument
120 } else if (output == null) { in engineUpdate()
125 output.put(input); in engineUpdate()
143 byte[] output, int outputOffset) throws ShortBufferException, in engineDoFinal() argument
145 int result = engineUpdate(input, inputOffset, inputLen, output, in engineDoFinal()
151 public int engineDoFinal(ByteBuffer input, ByteBuffer output) in engineDoFinal() argument
154 return engineUpdate(input, output); in engineDoFinal()
/libcore/luni/src/main/java/javax/crypto/
DCipherSpi.java310 int inputLen, byte[] output, int outputOffset) in engineUpdate() argument
331 protected int engineUpdate(ByteBuffer input, ByteBuffer output) in engineUpdate() argument
336 if (output == null) { in engineUpdate()
359 if (output.remaining() < bOutput.length) { in engineUpdate()
363 output.put(bOutput); in engineUpdate()
483 int inputLen, byte[] output, int outputOffset) in engineDoFinal() argument
514 protected int engineDoFinal(ByteBuffer input, ByteBuffer output) in engineDoFinal() argument
520 if (output == null) { in engineDoFinal()
542 if (output.remaining() < bOutput.length) { in engineDoFinal()
546 output.put(bOutput); in engineDoFinal()
DCipher.java937 byte[] output) throws ShortBufferException { in update() argument
938 return update(input, inputOffset, inputLen, output, 0); in update()
972 byte[] output, int outputOffset) throws ShortBufferException { in update() argument
979 if (output == null) { in update()
989 return spiImpl.engineUpdate(input, inputOffset, inputLen, output, in update()
1017 public final int update(ByteBuffer input, ByteBuffer output) in update() argument
1022 if (input == output) { in update()
1025 return spiImpl.engineUpdate(input, output); in update()
1169 public final int doFinal(byte[] output, int outputOffset) in doFinal() argument
1178 return spiImpl.engineDoFinal(null, 0, 0, output, outputOffset); in doFinal()
[all …]
/libcore/crypto/src/main/java/org/conscrypt/
DOpenSSLRandom.java37 byte[] output = new byte[numBytes]; in engineGenerateSeed()
38 NativeCrypto.RAND_bytes(output); in engineGenerateSeed()
39 return output; in engineGenerateSeed()
DOpenSSLCipherRSA.java231 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
260 byte[] output = new byte[buffer.length]; in engineDoFinal()
264 resultSize = NativeCrypto.RSA_private_encrypt(tmpBuf.length, tmpBuf, output, in engineDoFinal()
267 resultSize = NativeCrypto.RSA_public_encrypt(tmpBuf.length, tmpBuf, output, in engineDoFinal()
273 resultSize = NativeCrypto.RSA_private_decrypt(tmpBuf.length, tmpBuf, output, in engineDoFinal()
276 resultSize = NativeCrypto.RSA_public_decrypt(tmpBuf.length, tmpBuf, output, in engineDoFinal()
285 if (!encrypting && resultSize != output.length) { in engineDoFinal()
286 output = Arrays.copyOf(output, resultSize); in engineDoFinal()
290 return output; in engineDoFinal()
294 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
[all …]
DOpenSSLCipher.java333 private final int updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, in updateInternal() argument
337 final int bytesLeft = output.length - outputOffset; in updateInternal()
343 outputOffset += NativeCrypto.EVP_CipherUpdate(cipherCtx.getContext(), output, outputOffset, in updateInternal()
356 final byte[] output; in engineUpdate()
358 output = new byte[maximumLen]; in engineUpdate()
360 output = EmptyArray.BYTE; in engineUpdate()
365 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineUpdate()
371 if (output.length == bytesWritten) { in engineUpdate()
372 return output; in engineUpdate()
376 return Arrays.copyOfRange(output, 0, bytesWritten); in engineUpdate()
[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()
DCipherRSAThread.java32 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()
DCipherPBEThread.java36 byte[] output = new byte[128]; in crypt()
53 cip.doFinal(input, 0, input.length, output); in crypt()
56 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
/libcore/luni/src/test/java/libcore/java/util/zip/
DDeflaterOutputStreamTest.java123 byte[] output = new byte[outputBufferSize]; in testSyncFlushDeflater()
124 for (int i = 0; i < output.length; i++) { in testSyncFlushDeflater()
125 output[i] = (byte) i; in testSyncFlushDeflater()
127 dos.write(output); in testSyncFlushDeflater()
141 byte[] input = new byte[output.length]; in testSyncFlushDeflater()
158 assertEquals(output.length, total); in testSyncFlushDeflater()
159 assertTrue(Arrays.equals(input, output)); in testSyncFlushDeflater()
DOldAndroidDeflateTest.java47 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/
DCipherSpiTest.java56 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
59 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
116 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
118 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
365 byte[] output, int outputOffset) throws ShortBufferException { in engineUpdate() argument
368 if ((output.length - outputOffset) < t) { in engineUpdate()
372 output[i + outputOffset] = initV[i]; in engineUpdate()
390 byte[] output, int outputOffset) throws ShortBufferException, in engineDoFinal() argument
395 if ((output.length - outputOffset) < t) { in engineDoFinal()
399 output[i + outputOffset] = res[i]; in engineDoFinal()
[all …]
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java40 private char[] output= null; field in CharsetDecoderICU
94 output = null; in implReset()
112 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush()
138 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); in decodeLoop()
169 output = out.array(); in getArray()
178 output = allocatedOutput; in getArray()
207 out.put(output, 0, data[OUTPUT_OFFSET]); in setPosition()
210 output = null; in setPosition()
DCharsetEncoderICU.java55 private byte[] output = null; field in CharsetEncoderICU
122 output = null; in implReset()
140 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush()
167 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false); in encodeLoop()
198 output = out.array(); in getArray()
207 output = allocatedOutput; in getArray()
236 out.put(output, 0, data[OUTPUT_OFFSET]); in setPosition()
239 output = null; in setPosition()
/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 …]

123