/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,
|
/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 89 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(gzipped)); local 94 count = in.skip(Long.MAX_VALUE); 99 in.close(); 197 InputStream in = new GZIPInputStream(bis); local 201 while ((count = in.read(buffer)) != -1) { 206 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 73 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 76 while ((entry = in.getNextEntry()) != null) { 81 in.close(); 150 // that forces zip64. This also needs followup changes in ZipInputStream et al. to assume zip64 222 // Read it back and make sure comments and extra are in the right order
|
/libcore/ojluni/src/main/java/java/io/ |
BufferedReader.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 44 * <p> In general, each read request made of a Reader causes a corresponding 51 * BufferedReader in 52 * = new BufferedReader(new FileReader("foo.in")); 73 private Reader in; field in class:BufferedReader 96 * @param in A Reader 101 public BufferedReader(Reader in, int sz) { 102 super(in); [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
Channels.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 72 * Write all remaining bytes in buffer to the given channel. 86 * Write all remaining bytes in buffer to the given channel. 113 * channel is in non-blocking mode. The stream will not be buffered, and 116 * multiple concurrent threads. Closing the stream will in turn cause the 134 * channel is in non-blocking mode. The stream will not be buffered. The 136 * the stream will in turn cause the channel to be closed. </p> 190 * its I/O operations to the given stream. Closing the channel will in 213 InputStream in; field in class:ReadableByteChannelImpl [all...] |
/libcore/ojluni/src/main/java/java/util/ |
ServiceLoader.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 46 * of a service. The classes in a provider typically implement the interfaces 47 * and subclass the classes defined in the service itself. Service providers 48 * can be installed in an implementation of the Java platform in the form of 68 * <i>provider-configuration file</i> in the resource directory 76 * The file must be encoded in UTF-8. 78 * <p> If a particular concrete provider class is named in more than on 293 InputStream in = null; local [all...] |
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
JarURLConnection.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 141 " not found in " + 159 " not found in " + 209 InputStream in = jarFile.getInputStream(jarEntry); local 211 new BufferedInputStream(in)); 212 in.close(); 313 * "reload" button in a browser). If the UseCaches flag on a connection
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
StreamDecoder.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 50 // In order to handle surrogates properly we must never try to produce 61 public static StreamDecoder forInputStreamReader(InputStream in, 71 return new StreamDecoder(in, lock, Charset.forName(csn)); 76 public static StreamDecoder forInputStreamReader(InputStream in, 80 return new StreamDecoder(in, lock, cs); 83 public static StreamDecoder forInputStreamReader(InputStream in, 87 return new StreamDecoder(in, lock, dec) 228 private InputStream in; field in class:StreamDecoder [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
OCSP.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 61 * incur the overhead of validating all of the certificates in the 76 * Integer value indicating the timeout length, in seconds, to be 94 // specified in seconds 124 ("No OCSP Responder URI in certificate"); 215 InputStream in = null; local 242 in = con.getInputStream(); 250 int count = in.read(response, total, response.length - total) [all...] |
/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(resourceName); local 114 copyLocalFileto(dest, in); 127 public static void copyLocalFileto(File dest, InputStream in) throws IOException { 130 copy(in, out); 134 in.close(); 137 private static int copy(InputStream in, OutputStream out) throws IOException 150 InputStream in = new URL(url).openStream(); local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppReceiver.java | 6 * Redistribution and use in source and binary forms, with or without 12 * - Redistributions in binary form must reproduce the above copyright notice, 13 * this list of conditions and the following disclaimer in the documentation 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 53 * Intents from OppService; Intents from modules in Opp application layer. 117 Intent in = new Intent(context, BluetoothOppIncomingFileConfirmActivity.class); local 118 in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 119 in.setDataAndNormalize(uri) 165 Intent in = new Intent(context, BluetoothOppTransferActivity.class); local 175 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local 182 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local 189 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local [all...] |
/packages/apps/Music/tests/src/com/android/music/functional/ |
TestSongs.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 87 InputStream in = new FileInputStream(src); local 90 // Transfer bytes from in to out 93 while ((len = in.read(buf)) > 0) { 96 in.close(); 116 * Verification: The new playlist title should be sorted in alphabetical order 156 //This only check if there only 1 ringtone set in music player
|