/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ProcessBuilderTest.java | 5 * (the "License"); you may not use this file except in compliance with 10 * Unless required by applicable law or agreed to in writing, software 152 InputStream in = process.getInputStream(); local 165 if (in.available() > 0) { 166 assertTrue(in.read(buf) > 0);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
JarEntryTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 134 InputStream in = jarFile.getInputStream(jarEntry1); local 136 while (in.available() > 0) { 140 in.read(buffer); 142 assertEquals("the file is fully read", -1, in.read()); 145 in.close(); 157 InputStream in = jarFile.getInputStream(jarEntry); local 159 while (in.available() > 0) { 162 in.read(buffer) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
GZIPInputStreamTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 37 TestGZIPInputStream(InputStream in) throws IOException { 38 super(in); 41 TestGZIPInputStream(InputStream in, int size) throws IOException { 42 super(in, size); 210 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(baos.toByteArray())); local 212 in.read(outBuf, 530, 1); 217 result = in.read(outBuf, 0, 5); 224 result = in.read(null, 100, 1) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 51 // not leave us in a bad state. 67 PipedInputStream in = new PipedInputStream(out); local 68 testInterruptInputStream(in); 120 private void testInterruptInputStream(final InputStream in) throws Exception { 123 in.read();
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldUnixSocketTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 48 InputStream in = worker.getInputStream(); local 49 in.read(); 100 // Port 0 is not allowed to be used in connect() on some platforms,
|
OldJarURLConnectionTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 234 InputStream in = connection.getInputStream(); local 237 in.read(); 238 in.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
GZIPInputStreamTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 56 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(gzipped)); local 61 count = in.skip(Long.MAX_VALUE); 66 in.close(); 166 InputStream in = new GZIPInputStream(bis); local 170 while ((count = in.read(buffer)) != -1) { 175 in.close();
|
OldZipFileTest.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 54 InputStream in; local 58 in = zfile.getInputStream(zentry); 64 if (in != null) { 65 data = in.read(); 66 in.close(); 71 // the file hyts_zipFile.zip in setup must be included as a resource
|
ZipEntryTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 72 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 75 while ((entry = in.getNextEntry()) != null) { 80 in.close(); 186 // Read it back and make sure comments and extra are in the right order
|
/libcore/support/src/test/java/tests/support/resource/ |
Support_Resources.java | 6 * (the "License"); you may not use this file except in compliance with 11 * Unless required by applicable law or agreed to in writing, software 38 // If we have the resources packaged up in our jar file, get them that way. 44 // Otherwise, if we're in an Android build tree, get the files directly. 112 InputStream in = Support_Resources.getStream(folder == null ? file local 115 copyLocalFileto(dest, in); 131 public static void copyLocalFileto(File dest, InputStream in) throws IOException { 134 copy(in, out); 138 in.close(); 141 private static int copy(InputStream in, OutputStream out) throws IOException 154 InputStream in = new URL(url).openStream(); local [all...] |