/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/Email/provider_src/com/android/email/provider/ |
AttachmentProvider.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 196 InputStream in = local 198 Bitmap thumbnail = createThumbnail(type, in); 206 in.close(); 240 * Returns a cursor based on the data in the attachments table, or null if the attachment 241 * is not recorded in the table. 332 * Need this to suppress warning in unit tests.
|
/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
|
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/ |
CertInstallerHelper.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 78 InputStream in = null; local 83 in = new FileInputStream(new File( 85 raw = Streams.readFully(in); 94 Assert.fail("key store failed to put in keychain"); 98 // be only one alias in the keystore 119 if (in != null) { 121 in.close();
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
MimeUtility.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 119 * character following the sequence resulting in a line longer than 76 176 * parameter is returned, or if there are no additional parameters in the 178 * searched for in a case insensitive fashion and returned. If the parameter 185 * TODO: Need to decode %-escaped strings, as in: filename="ab%22d". 222 * @return a String containing the converted text in the body, or null if there was no text 228 InputStream in = part.getBody().getInputStream(); local 236 IOUtils.copy(in, out); 237 in.close() [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
NotificationActionIntentService.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 95 * Grab the alarm from the intent. Since the remote AlarmManagerService fills in the Intent 103 final Parcel in = Parcel.obtain(); local 104 in.unmarshall(data, 0, data.length); 105 in.setDataPosition(0); 106 notificationAction = NotificationAction.CREATOR.createFromParcel(in, 123 // logic after the Undo notification expires in a regular flow.
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ThumbnailLoadTask.java | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 40 * Performs the load of a thumbnail bitmap in a background 137 LogUtils.d(LOG_TAG, "in background, src w/h=%d/%d dst w/h=%d/%d, divider=%d", 170 InputStream in = null; local 173 in = resolver.openInputStream(thumbnailUri); 174 return Exif.getOrientation(in, -1); 179 if (in != null) { 181 in.close(); 194 LogUtils.d(LOG_TAG, "back in UI thread, decode failed or file does not exist") [all...] |
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
MimeUtility.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 118 * character following the sequence resulting in a line longer than 76 175 * parameter is returned, or if there are no additional parameters in the 177 * searched for in a case insensitive fashion and returned. If the parameter 184 * TODO: Need to decode %-escaped strings, as in: filename="ab%22d". 221 * @return a String containing the converted text in the body, or null if there was no text 227 InputStream in = part.getBody().getInputStream(); local 235 IOUtils.copy(in, out); 236 in.close() [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
CaptureLoader.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 43 DataInputStream in = null; local 53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); 59 int width = in.readInt(); 60 int height = in.readInt(); 64 while (readLayer(in, psd)) { 77 if (in != null) { 78 in.close(); 91 private static boolean readLayer(DataInputStream in, PsdFile psd) 131 BufferedInputStream in = null; local [all...] |
ViewHierarchyLoader.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 43 BufferedReader in = null; local 56 in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "utf-8")); 70 while ((line = in.readLine()) != null) { 122 if (in != null) { 123 in.close();
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_HttpServer.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 218 InputStream in = socket.getInputStream(); local 224 while (((line = readln(in)) != null) && (line.length() > 1)) { 227 // determine the resource requested in the first line 286 postTest(length, in); 291 in.close(); 366 // the URL was in the format: 446 private void postTest(int length, InputStream in) { 451 data.write(in.read()) [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
DecodeTask.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 39 * decode is complete, even if the task is cancelled, the result is placed in the given cache. 122 InputStream in = null; local 130 in = reset(in); 131 if (in == null) { 169 in = new AutoCloseInputStream(orientationFd); 172 orientation = Exif.getOrientation(in, byteSize); 176 in.close() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedInputStreamTest.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 194 InputStream in = new InputStream() { local 221 final BufferedInputStream bufin = new BufferedInputStream(in); 260 InputStream in = new BufferedInputStream( local 262 in.skip(6); 263 in.mark(14); 264 in.read(new byte[14], 0, 14); 265 in.reset(); 266 assertTrue("Wrong bytes", in.read() == 6 && in.read() == 7) 325 InputStream in = new BufferedInputStream( local [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
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();
|
/prebuilts/tools/common/m2/repository/org/sonatype/gshell/gshell-io/2.4/ |
gshell-io-2.4.jar | |
/art/runtime/ |
utf_test.cc | 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 159 // Unpaired (or incorrectly paired) surrogates in the middle of the input. 187 std::vector<uint16_t> in = prefix_in; local 188 in.insert(in.end(), test_in.begin(), test_in.end()); 189 in.insert(in.end(), suffix_in.begin(), suffix_in.end()); 193 AssertConversion(in, out);
|
/cts/apps/CtsVerifier/ |
Android.mk | 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 61 define java-files-in 73 $(call java-files-in, src/com/android/cts/verifier) \ 74 $(call java-files-in, src/com/android/cts/verifier/backup) \ 119 # turned off sensor power tests in initial L release 123 # Copy the necessary host-side scripts to include in the zip file:
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
LibraryDeviceInfo.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 85 InputStream in = null; local 87 in = new FileInputStream(file); 88 return sha1(in); 90 close(in); 112 private static byte[] digest(InputStream in, String algorithm) 117 int read = in.read(buffer);
|