/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
KernelTest.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 65 Allocation in = Allocation.createTyped(mRS, t); local 68 kernel_all.forEach_test_i8(in, out); 71 kernel_all.forEach_test_i8(in, badOut); 76 in.destroy(); 81 in = Allocation.createTyped(mRS, t); 84 kernel_all.forEach_test_i8_2(in, out); 87 kernel_all.forEach_test_i8_2(in, badOut); 92 in.destroy() [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
DebugEventSocketProxy.java | 6 Redistribution and use in source and binary forms, with or without 11 2. Redistributions in binary form must reproduce the above copyright 12 notice, this list of conditions and the following disclaimer in the 20 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 43 * be kept in sync. New events must be handled on both sides of socket. 52 protected BufferedReader in; field in class:DebugEventSocketProxy 83 in = new BufferedReader(isr); 108 in.readLine() [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
ByteSourceTest.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 71 InputStream in = source.openBufferedStream(); local 76 ByteStreams.copy(in, out); 77 in.close(); 336 for (ByteSource in : BROKEN_SOURCES) { 337 runFailureTest(in, newNormalByteSink()); 340 runFailureTest(in, BROKEN_CLOSE_SINK); 341 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, getAndResetRecords(logHandler)); 352 for (ByteSource in : BROKEN_SOURCES) [all...] |
/external/jacoco/org.jacoco.ant/src/org/jacoco/ant/ |
ReportTask.java | 62 * The source files are specified in a resource collection with additional 367 * Sets whether the build should fail in case of a violation. Default is 511 InputStream in = null; local 513 in = resource.getInputStream(); 514 loader.load(in); 520 FileUtils.close(in); 569 final InputStream in = resource.getInputStream(); local 570 analyzer.analyzeAll(in, resource.getName()); 571 in.close(); 585 "Classes in bundle '%s' do no match with execution data. [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
BufferedSourceTest.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 463 sink.writeUtf8("d"); // b...bcd, d is in the 2nd segment. 547 InputStream in = source.inputStream(); local 549 int read = in.read(bytes); 554 read = in.read(bytes); 558 read = in.read(bytes); 566 assertEquals(-1, in.read()); 571 InputStream in = source.inputStream(); local 573 int read = in.read(bytes, 1, 3) 585 InputStream in = source.inputStream(); local 592 InputStream in = source.inputStream(); local 601 InputStream in = source.inputStream(); local [all...] |
/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/telephony/java/android/telephony/mbms/ |
MbmsDownloadReceiver.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 49 * that wish to download using MBMS APIs should declare this class in their AndroidManifest.xml as 225 Log.w(LOG_TAG, "Cleanup request did not include the list of temp files in use. " + 428 // If any of the files in use match the uri, return false to reject it from the 440 * Moves a tempfile located at fromPath to a new location in the staging directory. 498 "in the manifest."); 503 "in the manifest."); 517 InputStream in = null; local 523 in = new FileInputStream(src) [all...] |
/frameworks/base/tests/net/java/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 513 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); local [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiConfigStore.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 79 * Directory to store the config store files in. 165 * for a block of data in the store file, and provides serialization/deserialization functions 212 * @param userId userId corresponding to the currently logged-in user. 321 * being buffered in the respective stores and cancels any pending buffer write alarms. 333 Log.d(TAG, "Writing to stores completed in " + writeTime + " ms."); 353 Log.d(TAG, "Reading from stores completed in " + readTime + " ms."); 378 Log.d(TAG, "Reading from user store completed in " + readTime + " ms."); 383 * Reset share data or user data in all store data 406 final XmlPullParser in = Xml.newPullParser(); 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 442 assertNotNull("the file " + name + " can not be found in this directory", str2); 445 assertNull("the file " + nameBadURI + " should not be found in this directory", 559 InputStream in = local 561 assertNotNull(in); 562 in.close(); 585 InputStream in = local 587 assertNotNull(in); 588 in.close() 611 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); local 617 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 40 // the file hyts_zipFile.zip in setup must be included as a resource 101 InputStream in = Support_Resources.getStream("hyts_ZipFile.zip"); local 106 while ((result = in.read(buf)) != -1) { 109 in.close(); 197 InputStream in; local 203 in = zfile.getInputStream(zentry); 204 assertNotNull("testdir1/ should not have null input stream", in); 205 r = in.read() 223 InputStream in; local [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 183 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 184 while (in.getNextEntry() != null) { 185 while (in.read(readBuffer, 0, readBuffer.length) != -1) {} 187 in.close(); 451 // when we find it in the central directory.
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
AVA.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 91 * If the value has any of these characters in it, it must be quoted. 99 * In RFC2253, if the value has any of these characters in it, it 134 AVA(Reader in) throws IOException { 135 this(in, DEFAULT); 140 * or perhaps with quotes. Additional keywords can be specified in the 147 AVA(Reader in, Map<String, String> keywordMap) throws IOException [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/Settings/src/com/android/settings/ |
UserCredentialsSettings.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 225 * The credentials are stored in a {@link CredentialAdapter} attached to the main 226 * {@link ListView} in the fragment. 256 // Do not show work profile keys in user credentials 261 // Do not show synthetic password keys in user credential 298 * Helper class to display {@link Credential}s in a list. 337 * Mapping from View IDs in {@link R} to the types of credentials they describe. 415 Credential(Parcel in) { 416 this(in.readString(), in.readInt()) [all...] |
/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 164 * Streamable mime type of the attachment in case it's a virtual file. 182 public Attachment(Parcel in) { 183 name = in.readString(); 184 size = in.readInt(); 185 uri = in.readParcelable(null); 186 contentType = in.readString() 279 final InputStream in = part.getBody().getInputStream(); local [all...] |
/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 154 // after an MMS request/response is complete. In these cases keep alive 203 final InputStream in = new BufferedInputStream(connection.getInputStream()); local 207 while ((count = in.read(buf)) > 0) { 210 in.close(); 293 * US if we are in a different locale than US. 323 } else if ("in".equals(langCode)) { 348 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class 376 * Resolve the macro in HTTP param value tex [all...] |
/prebuilts/tools/common/fest/ |
fest-reflect-1.2.jar | |
/art/runtime/ |
native_stack_dump.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 72 // The state of an open pipe to addr2line. In "server" mode, addr2line takes input on stdin 76 : in(in_fd, false), out(out_fd, false), file(file_name), child_pid(pid), odd(true) {} 82 File in; // The file descriptor that is connected to the output of addr2line. member in struct:art::Addr2linePipe 140 int in = pipe->get()->in.Fd(); local 141 DCHECK_GE(in, 0); 155 FD_SET(in, &rfds); 157 int retval = TEMP_FAILURE_RETRY(select(in + 1, &rfds, nullptr, nullptr, &tv)) [all...] |
/bionic/libc/kernel/uapi/linux/ |
netfilter.h | 24 #include <linux/in.h> 69 struct in_addr in; member in union:nf_inet_addr
|