Searched refs:close (Results 176 - 200 of 453) sorted by relevance

1234567891011>>

/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidDatagramTest.java81 socket.close();
162 socket.close();
186 sock.close();
196 s.close();
206 s.close();
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DDatagramChannelTest.java65 dc.close();
87 dc.close();
102 dc.close();
124 dc.close();
153 dc.close();
H A DOldSocketChannelTest.java65 this.channel1.close();
72 this.channel2.close();
79 this.server1.close();
131 this.channel1.close();
143 this.channel1.close();
163 this.channel1.close();
209 this.server1.close();
309 sc.close();
325 sc.close();
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldJarFileTest.java108 jarFile.close();
109 jarFile.close();
123 is.close();
130 jf.close();
153 jf.close();
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidZipFileTest.java96 out.close();
113 zipFile.close();
156 * Read the rest of file #1, and close the stream.
164 stream1.close();
167 * Read the rest of file #2, and close the stream.
173 stream2.close();
184 zipFile.close();
H A DOldZipInputStreamTest.java50 zos.close();
56 zis.close();
79 zis1.close(); // Android throws exception here, already!
110 zis1.close(); // Android throws exception here, already!
122 zis.close();
H A DDeflaterInputStreamTest.java44 in.close();
78 in.close();
105 in.close();
H A DOldAndroidZipStreamTest.java41 outFile.close();
50 inFile.close();
108 out.close();
134 out.close();
164 in.close();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterInputStreamTest.java50 is.close();
67 dis.close();
77 * DeflaterInputStream#close()
83 dis.close();
96 // can close after close
97 dis.close();
109 dis.close();
119 dis.close();
135 dis.close();
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSourceChannelTest.java92 sink.close();
109 source.close();
169 // invoke close to ensure all data will be sent out
170 sink.close();
194 // close pipe everytime
195 sink.close();
196 source.close();
239 sink.close();
258 source.close();
312 // invoke close t
[all...]
H A DSinkChannelTest.java161 source.close();
170 sink.close();
237 source.close();
250 sink.close();
375 source.close();
386 sink.close();
460 sink.close();
477 ssc.close();
478 sc.close();
485 sock.close();
[all...]
H A DSocketChannelTest.java83 this.channel1.close();
90 this.channel2.close();
97 this.server1.close();
104 this.server2.close();
178 channel1.close();
193 portPickingChannel.close();
196 // close() and bind().
216 sc.close();
252 testServer.close();
600 s.close();
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DBufferedWriterTest.java63 public void close() throws IOException { method in class:BufferedWriterTest.MockWriter
81 * java.io.BufferedWriter#close()
85 bw.close();
91 assertTrue("Write after close", !sw.toString().equals(testString));
97 bw.close();
105 assertEquals("BufferdWriter do not flush itself before close", "a", mw
111 * java.io.BufferedWriter#close()
115 bw.close();
201 bWriter.close();
259 bWriter.close();
[all...]
H A DPipedInputStreamTest.java93 pis.close();
94 pos.close();
129 * java.io.PipedInputStream#close()
132 // Test for method void java.io.PipedInputStream.close()
136 pis.close();
323 pos.close();
341 out.close();
361 in.close();
362 out.close();
366 * Tears down the fixture, for example, close
[all...]
H A DFilterInputStreamTest.java103 fos.close();
108 * Tears down the fixture, for example, close a network connection. This
114 is.close();
130 * java.io.FilterInputStream#close()
133 is.close();
H A DStringReaderTest.java38 * java.io.StringReader#close()
41 // Test for method void java.io.StringReader.close()
44 sr.close();
111 sr.close();
158 sr.close();
H A DObjectInputStream2Test.java45 oos.close();
51 ois.close();
69 oos.close();
74 ois.close();
/libcore/luni/src/main/java/libcore/net/url/
H A DJarURLConnectionImpl.java120 jar.close();
151 fos.close();
158 fos.close();
166 is.close();
352 public void close() throws IOException { method in class:JarURLConnectionImpl.JarURLConnectionInputStream
353 super.close();
356 jarFile.close();
/libcore/luni/src/test/java/libcore/java/io/
H A DOldInputStreamReaderTest.java56 osw.close();
63 in.close();
64 is.close();
65 fis.close();
184 // Test for method void java.io.InputStreamReader.close()
186 is.close();
188 fail("Failed to close reader : " + e.getMessage());
194 // Exception means read failed due to close
208 reader.close();
214 reader.close();
[all...]
H A DFilterInputStreamNullSourceTest.java59 in.close();
118 in.close();
135 in.close();
H A DOldAndroidPushbackInputStreamTest.java39 a.close();
47 b.close();
54 c.close();
/libcore/luni/src/test/java/tests/java/sql/
H A DStressTest.java53 statement.close();
54 conn.close();
132 // close the pool and wait for all tasks to finish.
139 c.close();
181 rs.close();
205 // close the pool and wait for all tasks to finish.
218 rs.close();
264 vc.elementAt(i).close();
267 assertEquals("Unable to close a connection", vc.size(), i);
333 ps.close();
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarInputStreamTest.java84 jis.close();
105 jis.close();
169 jin.close();
196 jin.close();
216 jin.close();
243 jin.close();
270 jin.close();
299 jin.close();
320 jin.close();
351 jin.close();
[all...]
/libcore/dalvik/src/main/java/dalvik/system/
H A DCloseGuard.java21 * resources that should have been cleaned up by explicit close
37 * guard.close();
73 * guard.close();
127 * failure to close. If CloseGuard is disabled, a non-null no-op
193 public void close() { method in class:CloseGuard
199 * properly cleanup by calling an explicit close method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThrowableTest.java91 ps.close();
136 ps.close();
152 ps.close();
169 pw.close();

Completed in 582 milliseconds

1234567891011>>