/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
InputStreamReaderTest.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 93 private InputStream in; field in class:InputStreamReaderTest 99 private final String source = "This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese"; 108 in = new ByteArrayInputStream(source.getBytes("UTF-8")); 109 reader = new InputStreamReader(in, "UTF-8"); 127 in.close(); 161 in = new BufferedInputStream( 167 reader = new InputStreamReader(in, "utf-8"); 168 in.close() 342 InputStream in; local [all...] |
PipedInputStreamTest.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 65 // Used in tests 349 PipedInputStream in = new PipedInputStream(); local 351 in.connect(out); 355 assertEquals("Should read 20.", 20, in.read()); 357 assertEquals("Write end is closed, should return -1", -1, in.read()); 359 assertEquals("Write end is closed, should return -1", -1, in.read(buf, 0, 1)); 360 assertEquals("Buf len 0 should return first", 0, in.read(buf, 0, 0)); 361 in.close() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ClassTest.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 435 assertNotNull("the file " + name + " can not be found in this directory", str2); 438 assertNull("the file " + nameBadURI + " should not be found in this directory", 574 InputStream in = local 576 assertNotNull(in); 577 in.close(); 586 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); local 587 assertNotNull(in); 588 in.close() 592 InputStream in = getClass().getResourceAsStream(resourceName); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ControlTest.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 391 Reader in = new InputStreamReader(src.openStream()); local 394 while ((c = in.read()) != -1) { 397 in.close(); 414 * change the value in the .properties file
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
ZipFileTest.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 35 // the file hyts_zipFile.zip in setup must be included as a resource 96 InputStream in = Support_Resources.getStream("hyts_ZipFile.zip"); local 101 while ((result = in.read(buf)) != -1) { 104 in.close(); 192 InputStream in; local 198 in = zfile.getInputStream(zentry); 199 assertNotNull("testdir1/ should not have null input stream", in); 200 r = in.read() 218 InputStream in; local [all...] |
/libcore/luni/src/test/java/dalvik/system/ |
DexClassLoaderTest.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 * Copy a resource in the package directory to the indicated 85 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); local 86 if (in == null) { 91 Streams.copy(in, out); 93 in.close(); 148 InputStream in = cl.getResourceAsStream(resourceName); local 149 if (in == null) { 153 byte[] contents = Streams.readFully(in); [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
AbstractZipFileTest.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 178 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 179 while (in.getNextEntry() != null) { 180 while (in.read(readBuffer, 0, readBuffer.length) != -1) {} 182 in.close(); 445 // when we find it in the central directory.
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppObexServerSession.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 143 * TODO now we implement in a tough way, just close the socket. 214 /* first we look for Mimetype in Android map */ 244 // MIME Types. Also reject everything in the "black list". 251 if (D) Log.w(TAG, "mimeType is null or in unacceptable list, reject the transfer") 302 Intent in = new Intent(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION); local [all...] |
/packages/apps/Email/provider_src/com/android/email/ |
LegacyConversions.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 64 /** DO NOT CHECK IN "TRUE" */ 108 // Keep the message in the "unloaded" state until it has (at least) a display name. 109 // This prevents early flickering of empty messages in POP download. 127 // Only replace the local message-id if a new one was found. This is seen in some ISP's 227 // Run the mime type through inferMimeType in case we have something generic and can do 243 * This will skip adding attachments if they are already found in the attachments table. 245 * included in a single POP3 message. 281 // We test each of the fields here (instead of in SQL) because they may b 333 InputStream in = null; local [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsHttpClient.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 194 final InputStream in = new BufferedInputStream(connection.getInputStream()); local 198 while ((count = in.read(buf)) > 0) { 201 in.close(); 250 * US if we are in a different locale than US. 280 } else if ("in".equals(langCode)) { 304 * Resolve the macro in HTTP param value text 341 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
FireflyRenderer.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 254 InputStream in = null; local 257 in = mContext.getAssets().open("star.png"); 259 Bitmap bitmap = BitmapFactory.decodeStream(in); 272 if (in != null) { 274 in.close();
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
Attachment.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 * Attachment size in bytes. See {@link AttachmentColumns#SIZE}. 125 * handles file:// uris not content:// uris. We do the same workaround in 174 public Attachment(Parcel in) { 175 name = in.readString(); 176 size = in.readInt(); 177 uri = in.readParcelable(null); 178 contentType = in.readString(); 179 state = in.readInt() 267 final InputStream in = part.getBody().getInputStream(); local [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
VoicemailProviderTest.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 121 InputStream in = mResolver.openInputStream(uri); local 123 int numBytesRead = in.read(inBuffer); 127 assertEquals(-1, in.read(inBuffer)); 128 in.close(); 571 // Insertion request for the same package should fail with no change in count.
|
/packages/services/Mms/src/com/android/mms/service/ |
MmsHttpClient.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 181 final InputStream in = new BufferedInputStream(connection.getInputStream()); local 185 while ((count = in.read(buf)) > 0) { 188 in.close(); 237 * US if we are in a different locale than US. 267 } else if ("in".equals(langCode)) { 292 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class 320 * Resolve the macro in HTTP param value text
|
/prebuilts/tools/common/fest/ |
fest-reflect-1.2.jar | |
/bionic/libc/tools/zoneinfo/ |
ZoneCompactor.java | 27 // Maximum number of characters in a zone name, including '\0' terminator. 43 InputStream in = new FileInputStream(inFile); local 46 int nbytes = in.read(buf); 89 // Fill in fields for links. 106 // int index_offset -- so we can slip in extra header fields in a backwards-compatible way 164 // Go back and fix up the offsets in the header.
|
/bionic/tests/ |
time_test.cpp | 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 66 // PTHREAD_STACK_MIN not currently in the host GCC sysroot. 542 timespec in; local 544 ASSERT_EQ(EINVAL, clock_nanosleep(-1, 0, &in, &out));
|
/bootable/recovery/minui/ |
graphics.cpp | 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 284 // fall back to the compiled-in font. 295 unsigned char* in = font.rundata; local 296 while((data = *in++)) {
|
/cts/common/host-side/java-scanner/tests/src/com/android/compatibility/common/scanner/ |
JavaScannerTest.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 48 // TestCases must have TestCase in their hierarchy 113 final BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); local 115 while ((line = in.readLine()) != null) {
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.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 160 InputStream in = new FileInputStream(file); local 164 while ((c = in.read(buffer)) != -1) {
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
JdwpSecurityHostTest.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 177 // We need a dalvik-cache in /data/local/tmp so we have read-write access. 178 // Note: this will cause the runtime to optimize the DEX file (contained in 205 private InputStream in; field in class:JdwpSecurityHostTest.AdbJdwpOutputReader 210 // in the background. Since we know the tested app is already running, we only need to 215 in = adbProcess.getInputStream(); 217 // Read the output for 5s in a separate thread before stopping the command. 233 br = new BufferedReader(new InputStreamReader(in));
|
/cts/libs/vogar-expect/src/vogar/commands/ |
Command.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 121 BufferedReader in = new BufferedReader( local 125 while ((outputLine = in.readLine()) != null) {
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.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 98 private byte[] inputStreamToBytes(InputStream in) throws IOException { 102 while ((len = in.read(buffer)) >= 0) { 105 in.close();
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
DecodedInstruction.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 33 * match the names given in the Dalvik instruction format 35 * arbitrarily alphabetically from A. In this class, non-register 55 * though it is stored in an {@code int}. 69 public static DecodedInstruction decode(CodeInput in) throws EOFException { 70 int opcodeUnit = in.read(); 74 return format.decode(opcodeUnit, in); 85 ShortArrayCodeInput in = new ShortArrayCodeInput(encodedInstructions); local 88 while (in.hasMore()) [all...] |
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
ViewDebug$ViewServer.class | |