Home
last modified time | relevance | path

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

12345678

/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
50 is.close(); in test_Constructor()
60 INPUT_LENGTH, is.available()); in test_available()
62 is.close(); in test_available()
64 is.available(); in test_available()
72 is.close(); in test_close()
75 is.read(); in test_close()
82 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 …]
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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileInputStreamTest.java38 private java.io.InputStream is; field in FileInputStreamTest
114 is = new FileInputStream(f); in test_ConstructorLjava_io_File()
115 is.close(); in test_ConstructorLjava_io_File()
132 is = new FileInputStream(fileName); in test_ConstructorLjava_lang_String()
133 is.close(); in test_ConstructorLjava_lang_String()
141 is = new FileInputStream(""); in test_ConstructorLjava_lang_String_I()
146 if (is != null) { in test_ConstructorLjava_lang_String_I()
147 is.close(); in test_ConstructorLjava_lang_String_I()
151 is = new FileInputStream(new File("")); in test_ConstructorLjava_lang_String_I()
156 if (is != null) { in test_ConstructorLjava_lang_String_I()
[all …]
DByteArrayInputStreamTest.java27 private InputStream is; field in ByteArrayInputStreamTest
77 assertTrue("Returned incorrect number of available bytes", is in test_available()
85 is.read(); in test_close()
86 is.close(); in test_close()
87 is.read(); // Should be able to read from a closed stream in test_close()
96 is.skip(3000); in test_markI()
97 is.mark(1000); in test_markI()
98 is.read(buf1, 0, buf1.length); in test_markI()
99 is.reset(); in test_markI()
100 is.read(buf2, 0, buf2.length); in test_markI()
[all …]
DDataInputStreamTest.java160 DataInputStream is = new DataInputStream(new ByteArrayInputStream( in test_readFully$BII_Exception() local
166 is.readFully(byteArray, -1, -1); in test_readFully$BII_Exception()
173 is.readFully(byteArray, 0, -1); in test_readFully$BII_Exception()
180 is.readFully(byteArray, 1, -1); in test_readFully$BII_Exception()
186 is.readFully(byteArray, -1, 0); in test_readFully$BII_Exception()
187 is.readFully(byteArray, 0, 0); in test_readFully$BII_Exception()
188 is.readFully(byteArray, 1, 0); in test_readFully$BII_Exception()
191 is.readFully(byteArray, -1, 1); in test_readFully$BII_Exception()
197 is.readFully(byteArray, 0, 1); in test_readFully$BII_Exception()
198 is.readFully(byteArray, 1, 1); in test_readFully$BII_Exception()
[all …]
DFilterInputStreamTest.java32 public MyFilterInputStream(InputStream is) { in MyFilterInputStream() argument
33 super(is); in MyFilterInputStream()
38 private InputStream is; field in FilterInputStreamTest
104 is = new MyFilterInputStream(new java.io.FileInputStream(fileName)); in setUp()
114 is.close(); in tearDown()
125 assertTrue("Returned incorrect number of available bytes", is in test_available()
133 is.close(); in test_close()
136 is.read(); in test_close()
154 assertTrue("markSupported returned true", !is.markSupported()); in test_markSupported()
161 int c = is.read(); in test_read()
[all …]
DBufferedInputStreamTest.java87 private BufferedInputStream is; field in BufferedInputStreamTest
120 is = new BufferedInputStream(isBytes, bufferSize); in test_ConstructorLjava_io_InputStreamI()
122 is.read(); in test_ConstructorLjava_io_InputStreamI()
128 is.skip(bufferSize - 2); in test_ConstructorLjava_io_InputStreamI()
129 is.read(); in test_ConstructorLjava_io_InputStreamI()
133 is.read(); in test_ConstructorLjava_io_InputStreamI()
150 MockBufferedInputStream(InputStream is) throws IOException { in MockBufferedInputStream() argument
151 super(is); in MockBufferedInputStream()
155 MockBufferedInputStream(InputStream is, int size) throws IOException { in MockBufferedInputStream() argument
156 super(is, size); in MockBufferedInputStream()
[all …]
/libcore/ojluni/src/main/java/java/net/
DURLConnection.java1424 static public String guessContentTypeFromStream(InputStream is) in guessContentTypeFromStream() argument
1427 if (!is.markSupported()) in guessContentTypeFromStream()
1430 is.mark(16); in guessContentTypeFromStream()
1431 int c1 = is.read(); in guessContentTypeFromStream()
1432 int c2 = is.read(); in guessContentTypeFromStream()
1433 int c3 = is.read(); in guessContentTypeFromStream()
1434 int c4 = is.read(); in guessContentTypeFromStream()
1435 int c5 = is.read(); in guessContentTypeFromStream()
1436 int c6 = is.read(); in guessContentTypeFromStream()
1437 int c7 = is.read(); in guessContentTypeFromStream()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentityScopeTest.java49 IdentityScope is; field in IdentityScopeTest
69 is = new IdentityScopeStub("Sergio Giro"); in testIdentityScopeString()
70 assertNotNull(is); in testIdentityScopeString()
71 assertEquals("Sergio Giro", 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 …]
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 …]
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 …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipFileTest.java260 InputStream is = null; in test_getInputStreamLjava_util_zip_ZipEntry() local
263 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
266 is.read(rbuf, 0, r = (int) zentry.getSize()); in test_getInputStreamLjava_util_zip_ZipEntry()
273 is.close(); in test_getInputStreamLjava_util_zip_ZipEntry()
282 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
320 InputStream is = zfile.getInputStream(zentry); in test_reset() local
324 r1 = is.read(rbuf1); in test_reset()
326 r2 = is.read(rbuf2); in test_reset()
330 is.reset(); in test_reset()
334 is.close(); in test_reset()
[all …]
DDeflaterInputStreamTest.java45 private InputStream is; field in DeflaterInputStreamTest
50 is = new ByteArrayInputStream(TEST_STR.getBytes("UTF-8")); in setUp()
55 is.close(); in tearDown()
64 DeflaterInputStream dis = new DeflaterInputStream(is); in testAvailable()
86 DeflaterInputStream dis = new DeflaterInputStream(is); in testClose()
110 DeflaterInputStream dis = new DeflaterInputStream(is); in testMark()
122 DeflaterInputStream dis = new DeflaterInputStream(is); in testMarkSupported()
132 DeflaterInputStream dis = new DeflaterInputStream(is); in testRead()
150 try (DeflaterInputStream dis = new DeflaterInputStream(is)) { in testRead_golden()
171 DeflaterInputStreamWithPublicBuffer dis = new DeflaterInputStreamWithPublicBuffer(is); in testRead_leavesBufUnmodified()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarInputStreamTest.java57 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_ConstructorLjava_io_InputStream() local
59 JarInputStream jis = new JarInputStream(is); in test_ConstructorLjava_io_InputStream()
75 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_closeAfterException() local
76 JarInputStream jis = new JarInputStream(is, false); in test_closeAfterException()
97 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry_Ex() local
98 JarInputStream jis = new JarInputStream(is); in test_getNextJarEntry_Ex()
116 is = Support_Resources.getStream("Broken_entry.jar"); in test_getNextJarEntry_Ex()
117 jis = new JarInputStream(is, false); in test_getNextJarEntry_Ex()
131 InputStream is = new URL(jarName2).openConnection().getInputStream(); in test_getManifest() local
132 JarInputStream jis = new JarInputStream(is); in test_getManifest()
[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/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertPath.java138 public X509CertPath(InputStream is) throws CertificateException { in X509CertPath() argument
139 this(is, PKIPATH_ENCODING); in X509CertPath()
152 public X509CertPath(InputStream is, String encoding) in X509CertPath() argument
158 certs = parsePKIPATH(is); in X509CertPath()
161 certs = parsePKCS7(is); in X509CertPath()
176 private static List<X509Certificate> parsePKIPATH(InputStream is) in parsePKIPATH() argument
181 if (is == null) { in parsePKIPATH()
186 DerInputStream dis = new DerInputStream(readAllBytes(is)); in parsePKIPATH()
217 private static List<X509Certificate> parsePKCS7(InputStream is) in parsePKCS7() argument
221 if (is == null) { in parsePKCS7()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericSignatureFormatErrorTest.java28 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_readResource() local
29 assertNotNull(is); in test_readResource()
57 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_signatureFormatError() local
58 assertNotNull(is); in test_signatureFormatError()
60 copy(is, fos); in test_signatureFormatError()
86 private void copy(InputStream is, OutputStream os) { in copy() argument
89 while ((b = is.read()) != -1) { in copy()
92 is.close(); in copy()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTest.java405 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local
406 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
413 InputSource is = new InputSource(new FileInputStream(file)); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local
414 parser.parse(is, dh); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
427 InputSource is = new InputSource(new FileInputStream(list_wf[0])); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler() local
428 parser.parse(is, (DefaultHandler) null); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
433 is = new InputSource(in); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
434 parser.parse(is, (DefaultHandler) null); in test_parseLorg_xml_sax_InputSourceLorg_xml_sax_helpers_DefaultHandler()
446 InputSource is = new InputSource(new FileInputStream(list_wf[i])); in testParseInputSourceHandlerBase() local
447 parser.parse(is, dh); in testParseInputSourceHandlerBase()
[all …]
/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/tools/docs/crypto/
DREADME3 The central file is data/crypto_support.json, which is a JSON file that contains
14 supported_api_levels: The set of Android API levels that this algorithm was/is
16 ranges separated by commas followed by a "N+" value if the algorithm is
19 deprecated: Whether the algorithm is unsupported at the current API level. This
20 is equivalent to supported_api_levels.endswith('+'), but is included for
23 Updating the documentation is a three-step process: get the set of supported
26 Getting the set of supported algorithms is done using
27 src/java/libcore/java/security/ListProviders.java. It's important that this is
32 The data from ListProviders is fed into update_crypto_support.py, which rewrites
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java143 InputStream is = uncachedConnection.getInputStream(); in testUncachedJarStreamBehavior() local
144 is.close(); in testUncachedJarStreamBehavior()
205 InputStream is = null; in assertGetResourceAsStreamNotNull() local
207 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull()
208 assertNotNull(is); in assertGetResourceAsStreamNotNull()
210 if (is != null) { in assertGetResourceAsStreamNotNull()
211 is.close(); in assertGetResourceAsStreamNotNull()
219 InputStream is = null; in assertGetResourceIsValid() local
221 is = u.openStream(); in assertGetResourceIsValid()
222 assertNotNull(is); in assertGetResourceIsValid()
[all …]

12345678