Home
last modified time | relevance | path

Searched refs:is (Results 1 – 25 of 97) sorted by relevance

1234

/libcore/luni/src/test/java/libcore/java/io/
DOldFilterInputStreamTest.java30 public MyFilterInputStream(java.io.InputStream is) { in MyFilterInputStream() argument
31 super(is); in MyFilterInputStream()
37 private FilterInputStream is; field in OldFilterInputStreamTest
52 is.close(); in test_Constructor()
62 testLength, is.available()); in test_available()
64 is.close(); in test_available()
66 is.available(); in test_available()
74 is.close(); in test_close()
77 is.read(); in test_close()
84 is = new MyFilterInputStream(sis); in test_close()
[all …]
DOldObjectInputOutputStreamTest.java30 private ObjectInputStream is; field in OldObjectInputOutputStreamTest
42 is.readBoolean()); in test_read_writeBoolean()
45 is.readBoolean(); in test_read_writeBoolean()
51 is.close(); in test_read_writeBoolean()
53 is.readBoolean(); in test_read_writeBoolean()
66 (byte) 127, is.readByte()); in test_read_writeByte()
69 is.readByte(); in test_read_writeByte()
75 is.close(); in test_read_writeByte()
77 is.readByte(); in test_read_writeByte()
90 'b', is.readChar()); in test_read_writeChar()
[all …]
DOldByteArrayInputStreamTest.java25 private ByteArrayInputStream is; field in OldByteArrayInputStreamTest
81 assertTrue("Returned incorrect number of available bytes", is in test_available()
89 is.read(); in test_close()
91 is.close(); in test_close()
96 is.read(); in test_close()
107 is.skip(3000); in test_markI()
108 is.mark(1000); in test_markI()
109 is.read(buf1, 0, buf1.length); in test_markI()
110 is.reset(); in test_markI()
111 is.read(buf2, 0, buf2.length); in test_markI()
[all …]
DOldFileInputStreamTest.java33 private FileInputStream is; field in OldFileInputStreamTest
40 is = new FileInputStream(f); in test_ConstructorLjava_io_File()
41 is.close(); in test_ConstructorLjava_io_File()
47 is = new FileInputStream(f2); in test_ConstructorLjava_io_File()
48 is.close(); in test_ConstructorLjava_io_File()
73 is = new FileInputStream(fileName); in test_ConstructorLjava_lang_String()
74 is.close(); in test_ConstructorLjava_lang_String()
79 is = new FileInputStream("ImprobableFile.42"); in test_ConstructorLjava_lang_String()
80 is.close(); in test_ConstructorLjava_lang_String()
91 is = new FileInputStream(fileName); in test_available()
[all …]
DOldBufferedInputStreamTest.java35 private BufferedInputStream is; field in OldBufferedInputStreamTest
40 is = new BufferedInputStream(isFile); in test_ConstructorLjava_io_InputStream()
43 is.read(); in test_ConstructorLjava_io_InputStream()
60 testBufferedInputStream(InputStream is) throws IOException { in testBufferedInputStream() argument
61 super(is); in testBufferedInputStream()
65 testBufferedInputStream(InputStream is, int size) throws IOException { in testBufferedInputStream() argument
66 super(is, size); in testBufferedInputStream()
74 assertTrue("Returned incorrect number of available bytes", is in test_available()
105 is.close(); in test_close()
108 is.read(); in test_close()
[all …]
DOldInputStreamTest.java29 private InputStream is; field in OldInputStreamTest
62 assertEquals(is.available(), 0); in test_available()
67 is.close(); in test_close()
75 is.mark(10); in test_markI()
83 is.markSupported()); in test_markSupported()
95 is.read(b), 10); in test_read$B()
105 bytesRead = is.read(b); in test_read$B()
116 bytesRead = is.read(b); in test_read$B()
126 bytesRead = is.read(b, -1, 5); in test_read$BII_Exception()
134 bytesRead = is.read(b, 5, -1); in test_read$BII_Exception()
[all …]
DOldInputStreamReaderTest.java39 private InputStreamReader is; field in OldInputStreamReaderTest
58 is = new InputStreamReader(fis); in setUp()
64 is.close(); in tearDown()
170 is = new InputStreamReader(fis, "8859_1"); in test_ConstructorLjava_io_InputStreamLjava_lang_String()
176 is = new InputStreamReader(fis, "Bogus"); in test_ConstructorLjava_io_InputStreamLjava_lang_String()
186 is.close(); in test_close()
191 is.read(); in test_close()
197 is = new InputStreamReader(new Support_ASimpleInputStream(true)); in test_close()
199 is.read(); in test_close()
223 is.read(rbuf, 0, 100); in test_read$CII()
[all …]
/libcore/luni/src/main/java/libcore/net/url/
DFtpURLInputStream.java31 private InputStream is; // Actual input stream field in FtpURLInputStream
35 public FtpURLInputStream(InputStream is, Socket controlSocket) { in FtpURLInputStream() argument
36 this.is = is; in FtpURLInputStream()
42 return is.read(); in read()
47 return is.read(buf, off, nbytes); in read()
52 is.reset(); in reset()
57 is.mark(limit); in mark()
62 return is.markSupported(); in markSupported()
67 IoUtils.closeQuietly(is); in close()
73 return is.available(); in available()
[all …]
/libcore/luni/src/main/java/java/util/zip/
DInflaterInputStream.java76 public InflaterInputStream(InputStream is) { in InflaterInputStream() argument
77 this(is, new Inflater(), BUF_SIZE); in InflaterInputStream()
89 public InflaterInputStream(InputStream is, Inflater inflater) { in InflaterInputStream() argument
90 this(is, inflater, BUF_SIZE); in InflaterInputStream()
104 public InflaterInputStream(InputStream is, Inflater inflater, int bsize) { in InflaterInputStream() argument
105 super(is); in InflaterInputStream()
106 if (is == null || inflater == null) { in InflaterInputStream()
113 if (is instanceof ZipFile.RAFStream) { in InflaterInputStream()
190 ZipFile.RAFStream is = (ZipFile.RAFStream)in; in fill() local
191 synchronized (is.mSharedRaf) { in fill()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentityScopeTest.java49 IdentityScope is; field in IdentityScopeTest
69 is = new IdentityScopeStub("Aleksei Semenov"); in testIdentityScopeString()
70 assertNotNull(is); in testIdentityScopeString()
71 assertEquals("Aleksei Semenov", is.getName()); in testIdentityScopeString()
79 is = new IdentityScopeStub("Aleksei Semenov", scope); in testIdentityScopeStringIdentityScope()
80 assertNotNull(is); in testIdentityScopeStringIdentityScope()
81 assertEquals("Aleksei Semenov", is.getName()); in testIdentityScopeStringIdentityScope()
82 assertEquals(scope.getName(), is.getScope().getName()); in testIdentityScopeStringIdentityScope()
107 is = new IdentityScopeStub("Aleksei Semenov"); in testSetSystemScope()
108 IdentityScopeStub.mySetSystemScope(is); in testSetSystemScope()
[all …]
DDigestInputStream2Test.java137 DigestInputStream is = new DigestInputStream(inStream, digest); in test_read$BII_Exception() local
140 is.read(buf, -1, 0); in test_read$BII_Exception()
148 is.read(buf, -1, 0); in test_read$BII_Exception()
155 is.read(buf, 0, -1); in test_read$BII_Exception()
162 is.read(buf, -1, -1); in test_read$BII_Exception()
169 is.read(buf, 0, 1001); in test_read$BII_Exception()
176 is.read(buf, 1001, 0); in test_read$BII_Exception()
183 is.read(buf, 500, 501); in test_read$BII_Exception()
189 is.close(); in test_read$BII_Exception()
192 is = new DigestInputStream(sis, digest); in test_read$BII_Exception()
[all …]
DDigestInputStreamTest.java84 InputStream is = new ByteArrayInputStream(myMessage); in testDigestInputStream01() local
85 InputStream dis = new DigestInputStream(is, md); in testDigestInputStream01()
117 InputStream is = new ByteArrayInputStream(myMessage); in testRead01() local
118 DigestInputStream dis = new DigestInputStream(is, md); in testRead01()
150 InputStream is = new ByteArrayInputStream(myMessage); in testRead02() local
151 DigestInputStream dis = new DigestInputStream(is, md); in testRead02()
185 InputStream is = new ByteArrayInputStream(myMessage); in testRead03() local
186 DigestInputStream dis = new DigestInputStream(is, md); in testRead03()
246 InputStream is = new ByteArrayInputStream(myMessage); in testRead05() local
247 DigestInputStream dis = new DigestInputStream(is, null); in testRead05()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
DZipFileTest.java38 public byte[] getAllBytesFromStream(InputStream is) throws IOException { in getAllBytesFromStream() argument
43 while (is.available() > 0) { in getAllBytesFromStream()
44 iRead = is.read(buf, 0, buf.length); in getAllBytesFromStream()
299 InputStream is = null; in test_getInputStreamLjava_util_zip_ZipEntry() local
302 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
305 is.read(rbuf, 0, r = (int) zentry.getSize()); in test_getInputStreamLjava_util_zip_ZipEntry()
312 is.close(); in test_getInputStreamLjava_util_zip_ZipEntry()
321 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
359 InputStream is = zfile.getInputStream(zentry); in test_reset() local
363 r1 = is.read(rbuf1); in test_reset()
[all …]
/libcore/luni/src/main/java/javax/xml/parsers/
DSAXParser.java124 public void parse(InputStream is, HandlerBase hb) in parse() argument
126 if (is == null) { in parse()
130 InputSource input = new InputSource(is); in parse()
153 InputStream is, in parse() argument
157 if (is == null) { in parse()
161 InputSource input = new InputSource(is); in parse()
180 public void parse(InputStream is, DefaultHandler dh) in parse() argument
182 if (is == null) { in parse()
186 InputSource input = new InputSource(is); in parse()
206 InputStream is, in parse() argument
[all …]
DDocumentBuilder.java100 public Document parse(InputStream is) in parse() argument
102 if (is == null) { in parse()
106 InputSource in = new InputSource(is); in parse()
124 public Document parse(InputStream is, String systemId) in parse() argument
126 if (is == null) { in parse()
130 InputSource in = new InputSource(is); in parse()
199 public abstract Document parse(InputSource is) in parse() argument
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DGenericSignatureFormatErrorTest.java30 InputStream is = this.getClass().getResourceAsStream("dex1.bytes"); in test_readResource() local
31 assertNotNull(is); in test_readResource()
61 InputStream is = this.getClass().getResourceAsStream("dex1.bytes"); in test_signatureFormatError() local
62 assertNotNull(is); in test_signatureFormatError()
64 copy(is, fos); in test_signatureFormatError()
90 private void copy(InputStream is, OutputStream os) { in copy() argument
93 while ((b = is.read()) != -1) { in copy()
96 is.close(); in copy()
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DDefaultSSLContextImpl.java76 InputStream is = null; in getKeyManagers() local
78 is = new BufferedInputStream(new FileInputStream(keystore)); in getKeyManagers()
79 ks.load(is, pwd); in getKeyManagers()
81 if (is != null) { in getKeyManagers()
82 is.close(); in getKeyManagers()
113 InputStream is = null; in getTrustManagers() local
115 is = new BufferedInputStream(new FileInputStream(keystore)); in getTrustManagers()
116 ks.load(is, pwd); in getTrustManagers()
118 if (is != null) { in getTrustManagers()
119 is.close(); in getTrustManagers()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarInputStreamTest.java35 InputStream is = new BufferedInputStream(new ByteArrayInputStream(new byte[0])); in test_ConstructorLjava_io_InputStreamZ() local
36 is.close(); in test_ConstructorLjava_io_InputStreamZ()
37 new JarInputStream(is, false); in test_ConstructorLjava_io_InputStreamZ()
59 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_createZipEntryLjava_lang_String() local
60 Mock_JarInputStream mjis = new Mock_JarInputStream(is); in test_createZipEntryLjava_lang_String()
67 InputStream is = Support_Resources.getStream("Broken_entry_data.jar"); in test_read$ZII() local
68 JarInputStream jis = new JarInputStream(is, true); in test_read$ZII()
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/
DSAXParserTest.java409 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local
410 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
417 InputSource is = new InputSource(new FileInputStream(file)); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local
418 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
431 InputSource is = new InputSource(new FileInputStream(list_wf[0])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local
432 parser.parse(is, (DefaultHandler) null); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
437 is = new InputSource(in); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
438 parser.parse(is, (DefaultHandler) null); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
450 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in testParseInputSourceHandlerBase() local
451 parser.parse(is, dh); in testParseInputSourceHandlerBase()
[all …]
/libcore/luni/src/test/resources/META-INF/services/
Dlibcore.java.util.ServiceLoaderTestInterface1 # this is a comment
5 libcore.java.util.ServiceLoaderTest$Impl2 # this comment is valid
6 libcore.java.util.ServiceLoaderTest$Impl2#as is this
/libcore/luni/src/test/resources/tests/api/java/io/
Dtestfile.txt1 This is a test message with Unicode character. �й� is China's name in Chinese
Dtestfile-utf8.txt1 This is a test message with Unicode character. 中国 is China's name in Chinese
Dtestfile1 This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory4Test.java74 InputStream is = Support_Resources.getResourceStream("hyts_badpem.cer"); in test_generateCertificateLjava_io_InputStream() local
76 fact.generateCertificate(is); in test_generateCertificateLjava_io_InputStream()
80 is.close(); in test_generateCertificateLjava_io_InputStream()
94 InputStream is = certUrl.openStream(); in test_generateCertificatesLjava_io_InputStream() local
95 Collection<? extends Certificate> certs = fact.generateCertificates(is); in test_generateCertificatesLjava_io_InputStream()
116 InputStream is = certUrl.openStream(); in test_generateCRLLjava_io_InputStream() local
117 CRL crl = fact.generateCRL(is); in test_generateCRLLjava_io_InputStream()
137 InputStream is = certUrl.openStream(); in test_generateCRLsLjava_io_InputStream() local
138 Collection<? extends CRL> crls = fact.generateCRLs(is); in test_generateCRLsLjava_io_InputStream()
/libcore/luni/src/test/java/tests/api/java/lang/
DProcess2Test.java52 InputStream is = process.getErrorStream(); in test_getErrorStream() local
55 int c = is.read(); in test_getErrorStream()
71 InputStream is = erProcess.getErrorStream(); in test_getErrorStream() local
74 int c = is.read(); in test_getErrorStream()

1234