/external/smack/src/org/xbill/DNS/ |
Record.java | 75 rrFromWire(DNSInput in) throws IOException; 78 newRecord(Name name, int type, int dclass, long ttl, int length, DNSInput in) 82 rec = getEmptyRecord(name, type, dclass, ttl, in != null); 83 if (in != null) { 84 if (in.remaining() < length) 86 in.setActive(length); 88 rec.rrFromWire(in); 90 if (in.remaining() > 0) 92 in.clearActive(); 104 * @param data The rdata of the record, in uncompressed DNS wire format. Onl 115 DNSInput in; local 467 DNSInput in = new DNSInput(data); local [all...] |
/frameworks/base/core/java/android/ddm/ |
DdmHandleViewDebug.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 50 /** Operation on view root, first parameter in packet should be one of VURT_* constants */ 63 * Generic View Operation, first parameter in the packet should be one of the 83 /** Error code indicating operation specified in chunk is invalid. */ 124 ByteBuffer in = wrapChunk(request); local 125 int op = in.getInt(); 127 View rootView = getRootView(in); 134 return dumpHierarchy(rootView, in); 143 final View targetView = getTargetView(rootView, in); 169 ByteBuffer in = wrapChunk(request); local [all...] |
/frameworks/base/core/java/android/os/ |
FileUtils.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 165 InputStream in = new FileInputStream(srcFile); local 167 result = copyToFile(in, destFile); 169 in.close(); 263 } else { // "cat" mode: size unknown, read it all in streaming fashion 324 * Delete older files in a directory until only those matching the given
|
/frameworks/base/core/java/android/util/ |
JsonReader.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 31 * end delimiters of objects and arrays. The tokens are traversed in 32 * depth-first order, the same order that they appear in the JSON document. 39 * <p>Next, create handler methods for each structure in your JSON text. You'll 88 * public List<Message> readJsonStream(InputStream in) throws IOException { 89 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8")); 171 * in JSON. 184 private final Reader in; field in class:JsonReader 200 * The offset of the first character in the buffer [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsHistoryTest.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 66 final DataInputStream in = new DataInputStream( local 71 final NetworkStatsHistory history = new NetworkStatsHistory(in); 87 in.close(); 154 // now record something in middle, spread across two buckets 160 // now should have four buckets, with new record in middle two buckets 172 // record some data in one bucket, and another overlapping buckets 293 // verify total in first hour 391 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()) local 498 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); local [all...] |
/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 55 // Init tests need to use different optimized directories because the tests are executed in the 129 * Copy a resource in the package directory to the indicated 138 InputStream in = local 141 Streams.copy(in, out); 142 in.close(); 195 * Check that a class in the jar/dex file may be used successfully. In this 454 InputStream in = dcl.getResourceAsStream(resourceName) local [all...] |
/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") 297 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/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 98 InputStream in = mResolver.openInputStream(uri); local 100 int numBytesRead = in.read(inBuffer); 104 assertEquals(-1, in.read(inBuffer)); 105 in.close(); 496 // 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 183 final InputStream in = new BufferedInputStream(connection.getInputStream()); local 187 while ((count = in.read(buf)) > 0) { 190 in.close(); 268 * US if we are in a different locale than US. 298 } else if ("in".equals(langCode)) { 322 * Resolve the macro in HTTP param value text 362 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class
|
/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.
|
/bootable/recovery/minui/ |
graphics.c | 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 282 // fall back to the compiled-in font. 293 unsigned char* in = font.rundata; local 294 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/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();
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
TestAcosh.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 38 public float in; field in class:TestAcosh.ArgumentsFloatFloat 43 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xb2c74105f8e94ea7l, false); local 46 script.forEach_testAcoshFloatFloat(in, out); 47 verifyResultsAcoshFloatFloat(in, out, false); 53 scriptRelaxed.forEach_testAcoshFloatFloat(in, out); 54 verifyResultsAcoshFloatFloat(in, out, true); 60 private void verifyResultsAcoshFloatFloat(Allocation in, Allocation out, boolean relaxed) { 62 in.copyTo(arrayIn) 102 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x4123c61e7e518f4bl, false); local 161 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 3, 0x4123d0bfdd5824e5l, false); local 220 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 4, 0x4123db613c5eba7fl, false); local [all...] |
TestAsinh.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 38 public float in; field in class:TestAsinh.ArgumentsFloatFloat 43 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x3c94145f20a86cdal, false); local 46 script.forEach_testAsinhFloatFloat(in, out); 47 verifyResultsAsinhFloatFloat(in, out, false); 53 scriptRelaxed.forEach_testAsinhFloatFloat(in, out); 54 verifyResultsAsinhFloatFloat(in, out, true); 60 private void verifyResultsAsinhFloatFloat(Allocation in, Allocation out, boolean relaxed) { 62 in.copyTo(arrayIn) 102 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x8986450e91b2ada6l, false); local 161 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 3, 0x89864faff0b94340l, false); local 220 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 4, 0x89865a514fbfd8dal, false); local [all...] |
TestCbrt.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 38 public float in; field in class:TestCbrt.ArgumentsFloatFloat 43 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x4e2c540726cc677al, false); local 46 script.forEach_testCbrtFloatFloat(in, out); 47 verifyResultsCbrtFloatFloat(in, out, false); 53 scriptRelaxed.forEach_testCbrtFloatFloat(in, out); 54 verifyResultsCbrtFloatFloat(in, out, true); 60 private void verifyResultsCbrtFloatFloat(Allocation in, Allocation out, boolean relaxed) { 62 in.copyTo(arrayIn) 102 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x9e2a09a2eb8fdb46l, false); local 161 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 3, 0x9e2a14444a9670e0l, false); local 220 Allocation in = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 4, 0x9e2a1ee5a99d067al, false); local [all...] |