/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileInputStreamTest.java | 123 FileInputStream fis = new FileInputStream(fos.getFD()); in test_ConstructorLjava_io_FileDescriptor() local 125 fis.close(); in test_ConstructorLjava_io_FileDescriptor() 208 FileInputStream fis = new FileInputStream(fileName); in test_getFD() local 209 assertTrue("Returned invalid fd", fis.getFD().valid()); in test_getFD() 210 fis.close(); in test_getFD() 211 assertTrue("Returned invalid fd", !fis.getFD().valid()); in test_getFD() 400 FileInputStream fis = new FileInputStream(fileName); in test_regressionNNN() local 403 fis.read(new byte[1], -1, 1); in test_regressionNNN() 410 fis.read(new byte[1], 0, -1); in test_regressionNNN() 417 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 | 38 private FileInputStream fis; field in FileOutputStreamTest 61 if (fis != null) { in tearDown() 62 fis.close(); in tearDown() 86 fis = new FileInputStream(fileName); in test_ConstructorLjava_io_FileDescriptor() 87 fos = new FileOutputStream(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor() 89 fis.close(); in test_ConstructorLjava_io_FileDescriptor() 119 fis = new FileInputStream(f.getPath()); in test_ConstructorLjava_lang_StringZ() 120 fis.read(buf, 0, buf.length); in test_ConstructorLjava_lang_StringZ() 186 fis = new FileInputStream(f.getPath()); in test_write$B() 188 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 | 509 FileInputStream fis = new java.io.FileInputStream(fileName); in test_write$B() local 510 fis.read(rbuf, 0, fileString.length()); in test_write$B() 513 fis.close(); in test_write$B() 526 FileInputStream fis = new java.io.FileInputStream(fileName); in test_write$BII() local 527 fis.read(rbuf, 0, fileString.length()); in test_write$BII() 530 fis.close(); in test_write$BII() 682 FileInputStream fis = new java.io.FileInputStream(fileName); in test_writeI() local 683 fis.read(rbuf, 0, 1); in test_writeI() 685 fis.close(); in test_writeI()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | FdsanTest.java | 34 try (FileInputStream fis = new FileInputStream("/dev/null")) { in testFileInputStream() argument 35 FileDescriptor fd = fis.getFD(); in testFileInputStream() 39 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testFileInputStream() 44 try (FileOutputStream fis = new FileOutputStream("/dev/null")) { in testFileOutputStream() argument 45 FileDescriptor fd = fis.getFD(); in testFileOutputStream() 49 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testFileOutputStream() 54 try (RandomAccessFile fis = new RandomAccessFile("/dev/null", "r")) { in testRandomAccessFile() argument 55 FileDescriptor fd = fis.getFD(); in testRandomAccessFile() 59 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testRandomAccessFile() 72 try (FileInputStream fis = new FileInputStream("/dev/null")) { in testParcelFileDescriptor() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileInputStreamTest.java | 90 FileInputStream fis = new FileInputStream(pipe[0]); in testSkipInPipes() local 91 fis.skip(SKIP_SIZE); in testSkipInPipes() 92 verifyData(fis, SKIP_SIZE, TOTAL_SIZE - SKIP_SIZE); in testSkipInPipes() 93 assertEquals(-1, fis.read()); in testSkipInPipes() 180 FileInputStream fis = new FileInputStream(tmp); in testClose() local 183 fis.close(); in testClose() 184 fis.close(); in testClose() 188 fis.available(); in testClose() 193 fis.read(); in testClose() 198 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 | 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()
|
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()
|
/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()
|
/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/luni/src/test/java/libcore/dalvik/system/ |
D | BlockGuardTest.java | 123 FileInputStream fis = new FileInputStream(tmpFile); in testFileInputStream() local 126 fis.read(new byte[4], 0, 4); in testFileInputStream() 129 fis.read(); in testFileInputStream() 132 fis.skip(1); in testFileInputStream() 135 fis.close(); in testFileInputStream() 205 try (FileInputStream fis = new FileInputStream(new File("/dev/null"))) { in testUnbufferedIO() argument 210 fis.read(b); in testUnbufferedIO()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 195 FastInputStream fis = new FastInputStream(is); in read() local 199 attr.read(fis, lbuf); in read() 210 while ((len = fis.readLine(lbuf)) != -1) { in read() 227 if (fis.peek() == ' ') { in read() 238 if (fis.peek() == ' ') { in read() 251 attr.read(fis, lbuf); in read()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipInputStreamTest.java | 125 FileInputStream fis = new FileInputStream(new File(resources, in test_closeAfterException() local 128 ZipInputStream zis1 = new ZipInputStream(fis); in test_closeAfterException() 222 FileInputStream fis = new FileInputStream(fl); in test_available() local 224 ZipInputStream zis1 = new ZipInputStream(fis); in test_available()
|
D | DeflaterOutputStreamTest.java | 313 FileInputStream fis = new FileInputStream(f1); in test_writeI() local 314 InflaterInputStream iis = new InflaterInputStream(fis); in test_writeI() 362 FileInputStream fis = new FileInputStream(f1); in test_write$BII() local 363 InflaterInputStream iis = new InflaterInputStream(fis); in test_write$BII()
|
D | InflaterInputStreamTest.java | 311 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII2() local 313 InflaterInputStream iis = new InflaterInputStream(fis); in test_read$BII2() 328 FileInputStream fis = new FileInputStream(new File(resources, in test_read$BII3() local 330 try (InflaterInputStream iis = new InflaterInputStream(fis)) { in test_read$BII3()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | AnchorCertificates.java | 58 try (FileInputStream fis = new FileInputStream(f)) { in AccessController.doPrivileged() 59 cacerts.load(fis, null); in AccessController.doPrivileged()
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 112 private FileInputStream fis; field in FileChannelTest 126 fis = null; in setUp() 146 IoUtils.closeQuietly(fis); in tearDown() 186 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_forceJ() 187 fis.read(readBuffer); in test_forceJ() 427 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_positionJ_WriteOnly() 428 fis.read(result); in test_positionJ_WriteOnly() 2105 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_writeLByteBuffer() 2107 fis.read(inputBuffer); in test_writeLByteBuffer() 2126 fis = new FileInputStream(fileOfWriteOnlyFileChannel); in test_writeLByteBuffer_positioned() [all …]
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 66 FileInputStream fis = new FileInputStream(f); in testIsSocket() local 67 assertFalse(S_ISSOCK(Os.fstat(fis.getFD()).st_mode)); in testIsSocket() 68 fis.close(); in testIsSocket() 77 FileInputStream fis = null; in testFcntlInt() local 79 fis = new FileInputStream(f); in testFcntlInt() 80 Os.fcntlInt(fis.getFD(), F_SETFD, FD_CLOEXEC); in testFcntlInt() 81 int flags = Os.fcntlVoid(fis.getFD(), F_GETFD); in testFcntlInt() 84 IoUtils.closeQuietly(fis); in testFcntlInt() 220 FileInputStream fis = new FileInputStream(new File("/dev/zero")); in test_byteBufferPositions_read_pread() local 221 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread() [all …]
|