/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileInputStreamTest.java | 118 FileInputStream fis = new FileInputStream(fos.getFD()); in test_ConstructorLjava_io_FileDescriptor() local 120 fis.close(); in test_ConstructorLjava_io_FileDescriptor() 203 FileInputStream fis = new FileInputStream(fileName); in test_getFD() local 204 assertTrue("Returned invalid fd", fis.getFD().valid()); in test_getFD() 205 fis.close(); in test_getFD() 206 assertTrue("Returned invalid fd", !fis.getFD().valid()); in test_getFD() 395 FileInputStream fis = new FileInputStream(fileName); in test_regressionNNN() local 398 fis.read(new byte[1], -1, 1); in test_regressionNNN() 405 fis.read(new byte[1], 0, -1); in test_regressionNNN() 412 fis.read(new byte[1], 0, 5); in test_regressionNNN() [all …]
|
D | FileDescriptorTest.java | 35 FileInputStream fis = null; in test_sync() local 42 fis = new FileInputStream(f.getPath()); in test_sync() 47 assertEquals(length, fis.available()); in test_sync() 50 fd = fis.getFD(); in test_sync() 52 assertEquals(length, fis.available()); in test_sync() 61 if (fis != null) { in test_sync() 62 fis.close(); in test_sync()
|
D | FileReaderTest.java | 35 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() 110 if (fis != null) { in tearDown() 111 fis.close(); in tearDown()
|
D | FileOutputStreamTest.java | 32 private FileInputStream fis; field in FileOutputStreamTest 55 if (fis != null) { in tearDown() 56 fis.close(); in tearDown() 80 fis = new FileInputStream(fileName); in test_ConstructorLjava_io_FileDescriptor() 81 fos = new FileOutputStream(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor() 83 fis.close(); in test_ConstructorLjava_io_FileDescriptor() 112 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ() 113 fis.read(buf, 0, buf.length); in test_ConstructorLjava_lang_StringZ() 179 fis = new FileInputStream(f.getPath()); in test_write$B() 181 fis.read(rbytes, 0, fileString.length()); in test_write$B() [all …]
|
D | FileWriterTest.java | 32 private FileInputStream fis; field in FileWriterTest 101 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_io_FileDescriptor() 102 br = new BufferedReader(new FileReader(fis.getFD())); in test_ConstructorLjava_io_FileDescriptor() 106 fis.close(); in test_ConstructorLjava_io_FileDescriptor() 180 fis.close(); in tearDown()
|
D | InputStreamReaderTest.java | 91 private InputStream fis; field in InputStreamReaderTest 117 fis = new ByteArrayInputStream(bos.toByteArray()); in setUp() 118 is = new InputStreamReader(fis); in setUp() 129 fis.close(); in tearDown() 207 is = new InputStreamReader(fis, "8859_1"); in test_ConstructorLjava_io_InputStreamLjava_lang_String() 210 is = new InputStreamReader(fis, "Bogus"); in test_ConstructorLjava_io_InputStreamLjava_lang_String() 303 InputStreamReader isr = new InputStreamReader(fis, "8859_1"); in test_getEncoding() 306 isr = new InputStreamReader(fis, "ISO-8859-1"); in test_getEncoding()
|
D | RandomAccessFileTest.java | 503 FileInputStream fis = new java.io.FileInputStream(fileName); in test_write$B() local 504 fis.read(rbuf, 0, fileString.length()); in test_write$B() 507 fis.close(); in test_write$B() 520 FileInputStream fis = new java.io.FileInputStream(fileName); in test_write$BII() local 521 fis.read(rbuf, 0, fileString.length()); in test_write$BII() 524 fis.close(); in test_write$BII() 676 FileInputStream fis = new java.io.FileInputStream(fileName); in test_writeI() local 677 fis.read(rbuf, 0, 1); in test_writeI() 679 fis.close(); in test_writeI()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileInputStreamTest.java | 74 FileInputStream fis = new FileInputStream(pipe[0]); in testSkipInPipes() local 75 fis.skip(SKIP_SIZE); in testSkipInPipes() 76 verifyData(fis, SKIP_SIZE, TOTAL_SIZE - SKIP_SIZE); in testSkipInPipes() 77 assertEquals(-1, fis.read()); in testSkipInPipes() 159 FileInputStream fis = new FileInputStream(tmp); in testClose() local 162 fis.close(); in testClose() 163 fis.close(); in testClose() 167 fis.available(); in testClose() 172 fis.read(); in testClose() 177 fis.read(new byte[1], 0, 1); in testClose() [all …]
|
D | FileDescriptorTest.java | 35 FileInputStream fis = new FileInputStream(f); in test_isSocket$() local 36 assertFalse(fis.getFD().isSocket$()); in test_isSocket$() 37 fis.close(); in test_isSocket$()
|
D | OldFileWriterTest.java | 33 FileInputStream fis; field in OldFileWriterTest 100 FileInputStream fis = new FileInputStream(f); in test_handleEarlyEOFChar_1() local 101 in = new InputStreamReader(fis); in test_handleEarlyEOFChar_1() 159 fis.close(); in tearDown()
|
D | OldInputStreamReaderTest.java | 41 private InputStream fis; field in OldInputStreamReaderTest 57 fis = new ByteArrayInputStream(bos.toByteArray()); in setUp() 58 is = new InputStreamReader(fis); in setUp() 65 fis.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()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldZipInputStreamTest.java | 63 FileInputStream fis = new FileInputStream(new File(resources, in test_skipJ() local 66 ZipInputStream zis1 = new ZipInputStream(fis); in test_skipJ() 92 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII() local 95 ZipInputStream zis1 = new ZipInputStream(fis); in test_read$BII() 131 FileInputStream fis = new FileInputStream(new File(resources, in test_closeEntry() local 134 ZipInputStream zis1 = new ZipInputStream(fis); in test_closeEntry() 169 FileInputStream fis = new FileInputStream(fl); in test_createZipEntryLjava_lang_String() local 171 Mock_ZipInputStream zis1 = new Mock_ZipInputStream(fis); in test_createZipEntryLjava_lang_String()
|
D | GZIPInputStreamTest.java | 185 FileInputStream fis = new FileInputStream(f); in testMultipleMembersWithCustomBufferSize() local 188 gzip = new GZIPInputStream(fis, memberSizes[0]); in testMultipleMembersWithCustomBufferSize()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory3Test.java | 152 InputStream fis = Support_Resources in testGenerateCertPath02() local 154 certPath = certFs[i].generateCertPath(fis, "PkiPath"); in testGenerateCertPath02() 155 fis.close(); in testGenerateCertPath02() 180 InputStream fis = Support_Resources in testGenerateCertPath03() local 182 certPath = certFs[i].generateCertPath(fis); in testGenerateCertPath03() 183 fis.close(); in testGenerateCertPath03()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileIOInterruptTest.java | 101 FileInputStream fis = new FileInputStream(fifoFile); in testStreamRead_exceptionWhenAlreadyClosed() local 102 fis.close(); in testStreamRead_exceptionWhenAlreadyClosed() 106 fis.read(buffer); in testStreamRead_exceptionWhenAlreadyClosed() 120 FileInputStream fis = new FileInputStream(fifoFile); in testStreamRead_exceptionOnCloseWhenBlocked() local 121 StreamReader streamReader = new StreamReader(fis); in testStreamRead_exceptionOnCloseWhenBlocked() 128 fis.close(); in testStreamRead_exceptionOnCloseWhenBlocked() 193 FileInputStream fis = new FileInputStream(fifoFile); in testChannelRead_exceptionWhenAlreadyClosed() local 194 FileChannel fileInputChannel = fis.getChannel(); in testChannelRead_exceptionWhenAlreadyClosed() 225 FileInputStream fis = new FileInputStream(fifoFile); in testChannelRead_exceptionWhenAlreadyInterrupted() local 226 FileChannel fileInputChannel = fis.getChannel(); in testChannelRead_exceptionWhenAlreadyInterrupted() [all …]
|
D | OldFileChannelTest.java | 74 private FileInputStream fis; field in OldFileChannelTest 88 fis = null; in setUp() 120 if (null != fis) { in tearDown() 122 fis.close(); in tearDown() 153 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_forceZ() 154 fis.read(readBuffer); in test_forceZ() 159 fis.close(); in test_forceZ() 162 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_forceZ() 163 fis.read(readBuffer); in test_forceZ() 165 fis.close(); in test_forceZ() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipInputStreamTest.java | 120 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()
|
D | DeflaterOutputStreamTest.java | 295 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()
|
D | InflaterInputStreamTest.java | 301 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()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 47 FileInputStream fis = new FileInputStream(f); in testIsSocket() local 48 assertFalse(S_ISSOCK(Libcore.os.fstat(fis.getFD()).st_mode)); in testIsSocket() 49 fis.close(); in testIsSocket() 58 FileInputStream fis = null; in testFcntlInt() local 60 fis = new FileInputStream(f); in testFcntlInt() 61 Libcore.os.fcntlInt(fis.getFD(), F_SETFD, FD_CLOEXEC); in testFcntlInt() 62 int flags = Libcore.os.fcntlVoid(fis.getFD(), F_GETFD); in testFcntlInt() 65 IoUtils.closeQuietly(fis); in testFcntlInt() 195 FileInputStream fis = new FileInputStream(new File("/dev/zero")); in test_byteBufferPositions_read_pread() local 196 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | MappedByteBufferTest.java | 45 FileInputStream fis = new FileInputStream(tmpFile); in testasIntBuffer() local 46 FileChannel fc = fis.getChannel(); in testasIntBuffer() 75 FileInputStream fis = new FileInputStream(emptyFile); in testEmptyBuffer() local 76 FileChannel fc = fis.getChannel(); in testEmptyBuffer()
|
/libcore/tzdata/tools/src/main/libcore/tzdata/update/tools/ |
D | TzDataBundleBuilder.java | 125 try (FileInputStream fis = new FileInputStream(file)) { in readFileAsByteArray() argument 127 while ((count = fis.read(buffer)) != -1) { in readFileAsByteArray()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 106 private FileInputStream fis; field in FileChannelTest 120 fis = null; in setUp() 152 if (null != fis) { in tearDown() 154 fis.close(); in tearDown() 239 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_forceJ() 240 fis.read(readBuffer); in test_forceJ() 480 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_positionJ_WriteOnly() 481 fis.read(result); in test_positionJ_WriteOnly() 2007 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_writeLByteBuffer() 2009 fis.read(inputBuffer); in test_writeLByteBuffer() [all …]
|
/libcore/tzdata/update/src/main/libcore/tzdata/update/ |
D | FileUtils.java | 111 try (FileInputStream fis = new FileInputStream(file)) { in calculateChecksum() argument 114 while ((count = fis.read(buffer)) != -1) { in calculateChecksum()
|
/libcore/luni/src/main/java/java/security/ |
D | KeyStore.java | 973 FileInputStream fis = null; in getKeyStore() local 975 fis = new FileInputStream(fileForLoad); in getKeyStore() 976 ks.load(fis, passwd); in getKeyStore() 978 IoUtils.closeQuietly(fis); in getKeyStore()
|