Home
last modified time | relevance | path

Searched refs:fis (Results 1 – 25 of 39) sorted by relevance

12

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DFileInputStreamTest.java57 FileInputStream fis = new FileInputStream(fos.getFD()); in test_ConstructorLjava_io_FileDescriptor() local
59 fis.close(); in test_ConstructorLjava_io_FileDescriptor()
152 FileInputStream fis = new FileInputStream(fileName); in test_getFD() local
153 assertTrue("Returned invalid fd", fis.getFD().valid()); in test_getFD()
154 fis.close(); in test_getFD()
155 assertTrue("Returned invalid fd", !fis.getFD().valid()); in test_getFD()
343 FileInputStream fis = new FileInputStream(fileName); in test_regressionNNN() local
346 fis.read(new byte[1], -1, 1); in test_regressionNNN()
353 fis.read(new byte[1], 0, -1); in test_regressionNNN()
360 fis.read(new byte[1], 0, 5); in test_regressionNNN()
[all …]
DFileOutputStreamTest.java35 FileInputStream fis; field in FileOutputStreamTest
62 fis = new FileInputStream(fileName); in test_ConstructorLjava_io_FileDescriptor()
63 fos = new FileOutputStream(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor()
65 fis.close(); in test_ConstructorLjava_io_FileDescriptor()
93 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ()
94 fis.read(buf, 0, buf.length); in test_ConstructorLjava_lang_StringZ()
160 fis = new FileInputStream(f.getPath()); in test_write$B()
162 fis.read(rbytes, 0, fileString.length()); in test_write$B()
174 fis = new FileInputStream(f.getPath()); in test_write$BII()
176 fis.read(rbytes, 0, fileString.length()); in test_write$BII()
[all …]
DFileReaderTest.java35 FileInputStream fis; field in FileReaderTest
61 FileInputStream fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor() local
62 br = new FileReader(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor()
66 fis.close(); in test_ConstructorLjava_io_FileDescriptor()
115 if (fis != null) { in tearDown()
116 fis.close(); in tearDown()
DFileDescriptorTest.java39 FileInputStream fis; field in FileDescriptorTest
60 fis = new FileInputStream(f.getPath()); in test_sync()
64 assertEquals("Bytes were not written after sync", length, fis in test_sync()
68 fd = fis.getFD(); in test_sync()
70 assertEquals("Bytes were not written after sync", length, fis in test_sync()
103 fis.close(); in tearDown()
DFileWriterTest.java35 FileInputStream fis; field in FileWriterTest
108 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor()
109 br = new BufferedReader(new FileReader(fis.getFD())); in test_ConstructorLjava_io_FileDescriptor()
113 fis.close(); in test_ConstructorLjava_io_FileDescriptor()
192 fis.close(); in tearDown()
DInputStreamReaderTest.java93 private InputStream fis; field in InputStreamReaderTest
119 fis = new ByteArrayInputStream(bos.toByteArray()); in setUp()
120 is = new InputStreamReader(fis); in setUp()
131 fis.close(); in tearDown()
209 is = new InputStreamReader(fis, "8859_1"); in test_ConstructorLjava_io_InputStreamLjava_lang_String()
212 is = new InputStreamReader(fis, "Bogus"); in test_ConstructorLjava_io_InputStreamLjava_lang_String()
304 InputStreamReader isr = new InputStreamReader(fis, "8859_1"); in test_getEncoding()
308 isr = new InputStreamReader(fis, "ISO-8859-1"); in test_getEncoding()
DRandomAccessFileTest.java501 FileInputStream fis = new java.io.FileInputStream(fileName); in test_write$B() local
502 fis.read(rbuf, 0, fileString.length()); in test_write$B()
505 fis.close(); in test_write$B()
518 FileInputStream fis = new java.io.FileInputStream(fileName); in test_write$BII() local
519 fis.read(rbuf, 0, fileString.length()); in test_write$BII()
522 fis.close(); in test_write$BII()
674 FileInputStream fis = new java.io.FileInputStream(fileName); in test_writeI() local
675 fis.read(rbuf, 0, 1); in test_writeI()
677 fis.close(); in test_writeI()
DSerializationStressTest5.java324 FileInputStream fis = null; in findClassFilesFromZip() local
332 fis = new FileInputStream(files[i].getPath()); in findClassFilesFromZip()
337 zis = new ZipInputStream(fis); in findClassFilesFromZip()
374 fis.close(); in findClassFilesFromZip()
/external/jmonkeyengine/engine/src/xml/com/jme3/export/xml/
DXMLImporter.java83 FileInputStream fis = null; in load() local
85 fis = new FileInputStream(f); in load()
86 Savable sav = load(fis); in load()
89 if (fis != null) fis.close(); in load()
/external/apache-xml/src/main/java/org/apache/xalan/xslt/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DObjectFactory.java295 FileInputStream fis = null; in lookUpFactoryClassName() local
320 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
321 fXalanProperties.load(fis); in lookUpFactoryClassName()
332 if (fis != null) { in lookUpFactoryClassName()
334 fis.close(); in lookUpFactoryClassName()
345 FileInputStream fis = null; in lookUpFactoryClassName() local
347 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
349 props.load(fis); in lookUpFactoryClassName()
358 if (fis != null) { in lookUpFactoryClassName()
360 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xpath/functions/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-xml/src/main/java/org/apache/xml/dtm/
DObjectFactory.java296 FileInputStream fis = null; in lookUpFactoryClassName() local
321 fis = ss.getFileInputStream(propertiesFile); in lookUpFactoryClassName()
322 fXalanProperties.load(fis); in lookUpFactoryClassName()
333 if (fis != null) { in lookUpFactoryClassName()
335 fis.close(); in lookUpFactoryClassName()
346 FileInputStream fis = null; in lookUpFactoryClassName() local
348 fis = ss.getFileInputStream(new File(propertiesFilename)); in lookUpFactoryClassName()
350 props.load(fis); in lookUpFactoryClassName()
359 if (fis != null) { in lookUpFactoryClassName()
361 fis.close(); in lookUpFactoryClassName()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory3Test.java153 InputStream fis = Support_Resources in testGenerateCertPath02() local
155 certPath = certFs[i].generateCertPath(fis, "PkiPath"); in testGenerateCertPath02()
156 fis.close(); in testGenerateCertPath02()
181 InputStream fis = Support_Resources in testGenerateCertPath03() local
183 certPath = certFs[i].generateCertPath(fis); in testGenerateCertPath03()
184 fis.close(); in testGenerateCertPath03()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DANTLRFileStream.java59 FileInputStream fis = new FileInputStream(fileName); in load() local
61 isr = new InputStreamReader(fis, encoding); in load()
64 isr = new InputStreamReader(fis); in load()
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DANTLRFileStream.js51 fis = new java.io.FileInputStream(f);
53 isr = new java.io.InputStreamReader(fis, encoding);
55 isr = new java.io.InputStreamReader(fis);
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DWebappAuthenticator.java209 FileInputStream fis = null; in getRandomBytes() local
211 fis = new FileInputStream("/dev/urandom"); in getRandomBytes()
213 if (bytes.length != fis.read(bytes)) { in getRandomBytes()
222 if (fis != null) { in getRandomBytes()
223 fis.close(); in getRandomBytes()
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
DZipInputStreamTest.java120 FileInputStream fis = new FileInputStream(new File(resources, in test_closeAfterException() local
123 ZipInputStream zis1 = new ZipInputStream(fis); in test_closeAfterException()
216 FileInputStream fis = new FileInputStream(fl); in test_available() local
218 ZipInputStream zis1 = new ZipInputStream(fis); in test_available()
DDeflaterOutputStreamTest.java295 FileInputStream fis = new FileInputStream(f1); in test_writeI() local
296 InflaterInputStream iis = new InflaterInputStream(fis); in test_writeI()
332 FileInputStream fis = new FileInputStream(f1); in test_write$BII() local
333 InflaterInputStream iis = new InflaterInputStream(fis); in test_write$BII()
DInflaterInputStreamTest.java301 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII2() local
303 InflaterInputStream iis = new InflaterInputStream(fis); in test_read$BII2()
318 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII3() local
320 InflaterInputStream iis = new InflaterInputStream(fis); in test_read$BII3()
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
Drhino-python.prog7 fis = new java.io.FileInputStream(f);
9 isr = new java.io.InputStreamReader(fis, encoding);
11 isr = new java.io.InputStreamReader(fis);
/external/jmonkeyengine/engine/src/test/jme3test/terrain/
DTerrainTestReadWrite.java228 FileInputStream fis = null; in loadTerrain() local
242 fis = new FileInputStream(f); in loadTerrain()
245 terrain = (TerrainQuad) imp.load(new BufferedInputStream(fis)); in loadTerrain()
260 if (fis != null) { in loadTerrain()
261 fis.close(); in loadTerrain()
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
DJarExecTest.java248 FileInputStream fis = new FileInputStream(resourceFile); in getResource() local
249 fis.read(resourceBody); in getResource()
250 fis.close(); in getResource()
DZipExecTest.java258 FileInputStream fis = new FileInputStream(resourceFile); in getResource() local
259 fis.read(resourceBody); in getResource()
260 fis.close(); in getResource()

12