/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | ASCIICharsetEncoderTest.java | 139 CharBuffer in = CharBuffer.wrap("A"); in testInternalState() local 161 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Reset() local 169 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Reset() local 176 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Reset() local 188 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Encoding() local 195 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Encoding() local 203 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Encoding() local 213 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Encoding() local 227 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Encoding() local 246 CharBuffer in = CharBuffer.wrap("A"); in testInternalState_Encoding_END() local [all …]
|
D | CharsetDecoder2Test.java | 61 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { in decodeLoop() 94 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 }); in test_decode() local 159 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { in decodeLoop() 173 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { in encodeLoop() 191 ByteBuffer in = ByteBuffer.wrap(new byte[] { 0x45, 0x38, 0x45, 0x45 }); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow() local 219 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { in decodeLoop()
|
D | CharsetDecoderTest.java | 218 ByteBuffer in = getByteBuffer(); in implTestDecodeByteBuffer() local 237 ByteBuffer in; in testDecodeByteBufferException() local 308 void implTestDecodeByteBufferCharBuffer(ByteBuffer in) { in implTestDecodeByteBufferCharBuffer() 403 void implTestDecodeCharBufferByteBufferUnmappedException(ByteBuffer in, in implTestDecodeCharBufferByteBufferUnmappedException() 457 void implTestDecodeCharBufferByteBufferMalformedException(ByteBuffer in, in implTestDecodeCharBufferByteBufferMalformedException() 509 void implTestDecodeCharBufferByteBufferException(ByteBuffer in, in implTestDecodeCharBufferByteBufferException() 573 ByteBuffer in = ByteBuffer.wrap(new byte[] { 12, 12 }); in testFlush() local 601 ByteBuffer in = ByteBuffer.wrap(new byte[] { 98, 98 }); in testFlushIllegalState() local 635 ByteBuffer in = getByteBuffer(); in testDecodeFacadeIllegalState() local 667 ByteBuffer in = ByteBuffer.wrap(new byte[] { 98, 98 }); in testDecodeTrueIllegalState() local [all …]
|
D | CharsetEncoderTest.java | 282 CharBuffer in = CharBuffer.wrap("aaa"); in testFlushIllegalState() local 328 CharBuffer in = CharBuffer.wrap("aaa"); in testEncodeFacadeIllegalState() local 372 CharBuffer in = CharBuffer.wrap("aaa"); in testEncodeTrueIllegalState() local 422 CharBuffer in = CharBuffer.wrap("aaa"); in testEncodeFalseIllegalState() local 591 CharBuffer in = CharBuffer.wrap("\ud800"); in testEncodeCharBuffer() local 628 CharBuffer in; in testEncodeCharBufferException() local 708 CharBuffer in = CharBuffer.wrap(unistr); in testEncodeCharBufferByteBufferboolean() local 833 CharBuffer in = getMalformedCharBuffer(); in implTestEncodeCharBufferByteBufferbooleanException() local 899 CharBuffer in, byte[] expect) { in assertCodingErrorAction() 917 CharBuffer in = CharBuffer.wrap("aaa"); in testFlush() local [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 39 public static int readSingleByte(InputStream in) throws IOException { in readSingleByte() 59 public static void readFully(InputStream in, byte[] dst) throws IOException { in readFully() 69 …public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOExcep… in readFully() 93 public static byte[] readFully(InputStream in) throws IOException { in readFully() 104 public static byte[] readFullyNoClose(InputStream in) throws IOException { in readFullyNoClose() 131 public static void skipAll(InputStream in) throws IOException { in skipAll() 149 public static long skipByReading(InputStream in, long byteCount) throws IOException { in skipByReading() 179 public static int copy(InputStream in, OutputStream out) throws IOException { in copy() 197 public static String readAsciiLine(InputStream in) throws IOException { in readAsciiLine()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | GZIPInputStream.java | 76 public GZIPInputStream(InputStream in, int size) throws IOException { in GZIPInputStream() 91 public GZIPInputStream(InputStream in) throws IOException { in GZIPInputStream() 162 CheckedInputStream in = new CheckedInputStream(this_in, crc); in readHeader() local 213 InputStream in = this.in; in readTrailer() local 250 private long readUInt(InputStream in) throws IOException { in readUInt() 258 private int readUShort(InputStream in) throws IOException { in readUShort() 266 private int readUByte(InputStream in) throws IOException { in readUByte() 285 private void skipBytes(InputStream in, int n) throws IOException { in skipBytes()
|
/libcore/support/src/test/java/libcore/tlswire/util/ |
D | IoUtils.java | 24 public static int readUnsignedInt24(DataInput in) throws IOException { in readUnsignedInt24() 28 public static byte[] readTlsVariableLengthByteVector(DataInput in, int maxSizeBytes) in readTlsVariableLengthByteVector() 36 public static int[] readTlsVariableLengthUnsignedShortVector(DataInput in, int maxSizeBytes) in readTlsVariableLengthUnsignedShortVector() 47 private static int readTlsVariableLengthVectorSizeBytes(DataInput in, int maxSizeBytes) in readTlsVariableLengthVectorSizeBytes()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterInputStreamTest.java | 37 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data)); in testReadByteByByte() local 58 try (InputStream in = new InflaterInputStream(new ByteArrayInputStream(bytes))) { in inflate() 72 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data)); in testReadWithBuffer() local 95 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data)); in testReadExceptions() local
|
D | GZIPOutputStreamTest.java | 56 InputStream in = DeflaterOutputStreamTest.createInflaterStream(GZIPOutputStream.class, true); in testSyncFlushEnabled() local 64 InputStream in = DeflaterOutputStreamTest.createInflaterStream(GZIPOutputStream.class, false); in testSyncFlushDisabled() local
|
/libcore/ojluni/src/main/java/java/io/ |
D | InputStreamReader.java | 71 public InputStreamReader(InputStream in) { in InputStreamReader() 94 public InputStreamReader(InputStream in, String charsetName) in InputStreamReader() 112 public InputStreamReader(InputStream in, Charset cs) { in InputStreamReader() 128 public InputStreamReader(InputStream in, CharsetDecoder dec) { in InputStreamReader()
|
D | FilterReader.java | 46 protected Reader in; field in FilterReader 54 protected FilterReader(Reader in) { in FilterReader()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKWeekFieldsSerialization.java | 113 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform() 124 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform() 135 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform() 146 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform()
|
D | TCKValueRangeSerialization.java | 148 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform() 159 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform() 170 try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(val))) { in test_invalid_serialform()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HostnameVerifierTest.java | 46 InputStream in; in testVerify() local 135 InputStream in = new ByteArrayInputStream(X509_MULTIPLE_SUBJECT_ALT); in testSubjectAlt() local 149 InputStream in = new ByteArrayInputStream(X509_MULTIPLE_SUBJECT_ALT); in testVerifyIpAddress() local 172 InputStream in = new ByteArrayInputStream(cert.getBytes("UTF-8")); in testWildcardsCannotMatchIpAddresses() local 200 InputStream in = new ByteArrayInputStream(cert.getBytes("UTF-8")); in testWildcardsDoesNotNeedTwoDots() local 233 InputStream in = new ByteArrayInputStream(cert.getBytes("UTF-8")); in testSubjectAltName() local 270 InputStream in = new ByteArrayInputStream(cert.getBytes("UTF-8")); in testSubjectAltNameWithWildcard() local
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FilterInputStreamNullSourceTest.java | 49 InputStream in = new CipherInputStream(null, new NullCipher()); in testCipherInputStream() local 105 private void assertReadsFailWithIoException(InputStream in) throws IOException { in assertReadsFailWithIoException() 121 private void assertReadsFailWithNullPointerException(InputStream in) throws IOException { in assertReadsFailWithNullPointerException()
|
D | OldAndroidPipedStreamTest.java | 42 final PipedInputStream in = new PipedInputStream(); in testA() local 109 final PipedInputStream in = new PipedInputStream(); in testB() local 194 final PipedInputStream in = new PipedInputStream(); in testC() local
|
/libcore/luni/src/main/java/javax/xml/parsers/ |
D | DocumentBuilder.java | 106 InputSource in = new InputSource(is); in parse() local 130 InputSource in = new InputSource(is); in parse() local 154 InputSource in = new InputSource(uri); in parse() local 182 InputSource in = new InputSource(escapedURI); in parse() local
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | Ser.java | 181 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in readExternal() 186 static Object read(DataInput in) throws IOException, ClassNotFoundException { in read() 191 …private static Object readInternal(byte type, DataInput in) throws IOException, ClassNotFoundExcep… in readInternal() 237 static ZoneOffset readOffset(DataInput in) throws IOException { in readOffset() 269 static long readEpochSec(DataInput in) throws IOException { in readEpochSec()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherInputStreamTest.java | 84 protected MeasuringInputStream(InputStream in) { in MeasuringInputStream() 112 MeasuringInputStream in = new MeasuringInputStream(new ByteArrayInputStream(aesCipherText)); in testAvailable() local 121 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); in testDecrypt_NullInput_Discarded() local 134 InputStream in = new CipherInputStream( in testEncrypt() local 146 InputStream in = new CipherInputStream( in testEncrypt_RC4() local 158 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); in testDecrypt() local 166 InputStream in = new CipherInputStream(new ByteArrayInputStream(rc4CipherText), cipher); in testDecrypt_RC4() local 174 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); in testSkip() local 178 private byte[] readAll(InputStream in) throws IOException { in readAll()
|
/libcore/support/src/test/java/libcore/tlswire/handshake/ |
D | HandshakeMessage.java | 37 public static HandshakeMessage read(DataInput in) throws IOException { in read() 61 protected void parseBody(@SuppressWarnings("unused") DataInput in) throws IOException {} in parseBody()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetLocal.java | 42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); in getLocalFile() local 62 InputStream in = new URL(url).openStream(); in getExternalLocalFile() local 80 InputStream in = new URL(url).openStream(); in getStream() local
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | StreamDecoder.java | 61 public static StreamDecoder forInputStreamReader(InputStream in, in forInputStreamReader() 76 public static StreamDecoder forInputStreamReader(InputStream in, in forInputStreamReader() 83 public static StreamDecoder forInputStreamReader(InputStream in, in forInputStreamReader() 213 private static FileChannel getChannel(FileInputStream in) { in getChannel() 229 private InputStream in; field in StreamDecoder 232 StreamDecoder(InputStream in, Object lock, Charset cs) { in StreamDecoder() 239 StreamDecoder(InputStream in, Object lock, CharsetDecoder dec) { in StreamDecoder()
|
/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 112 InputStream in = Support_Resources.getStream(resourceName); in copyFile() local 127 public static void copyLocalFileto(File dest, InputStream in) throws IOException { in copyLocalFileto() 137 private static int copy(InputStream in, OutputStream out) throws IOException { in copy() 150 InputStream in = new URL(url).openStream(); in getExternalLocalFile() local 196 public static void copyLocalFileTo(File dest, InputStream in) throws IOException { in copyLocalFileTo()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Ser.java | 222 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in readExternal() 227 static Object read(ObjectInput in) throws IOException, ClassNotFoundException { in read() 232 …private static Object readInternal(byte type, ObjectInput in) throws IOException, ClassNotFoundExc… in readInternal()
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 66 public static byte[] readFully(InputStream in) throws IOException { in readFully() 128 InputStream in = cl.getResourceAsStream("test/Resource1.txt"); in test_getResourceAsStream() local 184 InputStream in = cl.getResourceAsStream("test2/Resource2.txt"); in test_diff_getResourceAsStream() local
|