/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
StrictLineReader.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 36 * cache entries or cache journal. Unlike the {@link java.io.BufferedReader} which in conjunction 42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1. 49 private final InputStream in; field in class:StrictLineReader 53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end 54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is 65 * @param in the {@code InputStream} to read data from. 68 * @throws NullPointerException if {@code in} or {@code charset} is null. 71 public StrictLineReader(InputStream in, Charset charset) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
CloseablesTest.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 TestInputStream in = new TestInputStream( local 73 Closeables.closeQuietly(in); 74 assertTrue(in.closed()); 78 TestReader in = new TestReader(TestOption.CLOSE_THROWS); local 79 Closeables.closeQuietly(in); 80 assertTrue(in.closed()); 101 expectLastCall().andThrow(new IOException("This should only appear in the " 120 // Close the closeable using the Closeables, passing in the swallowExceptio [all...] |
MultiInputStreamTest.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 84 InputStream in = joined.openStream(); local 85 assertFalse(in.markSupported()); 86 assertEquals(10, in.available()); 88 while (in.read() != -1) { 91 assertEquals(0, in.available());
|
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/ |
ClassFileDumperTest.java | 67 InputStream in = new FileInputStream(new File(location, filename)); local 70 while ((b = in.read()) != -1) { 73 in.close();
|
/external/jacoco/org.jacoco.agent.test/src/org/jacoco/agent/ |
AgentJarTest.java | 44 final InputStream in = AgentJar.getResource().openStream(); local 45 assertAgentContents(in); 50 final InputStream in = AgentJar.getResourceAsStream(); local 51 assertAgentContents(in); 76 private void assertAgentContents(InputStream in) throws IOException { 77 final ZipInputStream zip = new ZipInputStream(in); 85 in.close();
|
/external/jacoco/org.jacoco.cli/src/org/jacoco/cli/internal/commands/ |
ExecInfo.java | 40 return "Print exec file content in human readable format."; 57 final FileInputStream in = new FileInputStream(file); local 58 final ExecutionDataReader reader = new ExecutionDataReader(in); 76 in.close();
|
/external/jacoco/org.jacoco.cli.test/src/org/jacoco/cli/internal/ |
XmlDocumentationTest.java | 111 InputStream in = new FileInputStream(file); local 113 return builder.parse(new InputSource(in)); 115 in.close();
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/ |
ContentTypeDetector.java | 42 private final InputStream in; field in class:ContentTypeDetector 51 * @param in 56 public ContentTypeDetector(final InputStream in) throws IOException { 57 if (in.markSupported()) { 58 this.in = in; 60 this.in = new BufferedInputStream(in, BUFFER_SIZE); 62 this.in.mark(BUFFER_SIZE); 63 this.type = determineType(this.in); [all...] |
/external/jacoco/org.jacoco.examples/src/org/jacoco/examples/ |
ExecDump.java | 49 * in case of error reading a input file 61 final FileInputStream in = new FileInputStream(file); local 62 final ExecutionDataReader reader = new ExecutionDataReader(in); 80 in.close(); 100 * in case of errors executing the example
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/resources/ |
Resources.java | 63 * name of the static resource, see constants in this class 125 final InputStream in = Resources.class.getResourceAsStream(name); local 129 while ((len = in.read(buffer)) != -1) { 132 in.close();
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
DepFind.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 42 InputStream in = entry.openStream(); local 44 header.read(in); 49 in.close(); 61 InputStream in = entry.openStream(); local 63 new ClassReader(in).accept( 69 in.close();
|
StringDumper.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 34 InputStream in = entry.openStream(); local 36 new ClassReader(in).accept(stringReader, 0); 40 in.close();
|
/external/jcommander/src/test/java/com/beust/jcommander/internal/ |
DefaultConsoleTest.java | 12 final InputStream inBackup = System.in; 14 final StringInputStream in = new StringInputStream(); local 15 System.setIn(in); 18 in.setData("password1\n"); 21 Assert.assertFalse(in.isClosedCalled(), "System.in stream shouldn't be closed"); 23 in.setData("password2\n"); 26 Assert.assertFalse(in.isClosedCalled(), "System.in stream shouldn't be closed");
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/ |
XZInputStream.java | 19 * Decompresses a .xz file in streamed mode (no seeking). 33 * It's important to keep in mind that decompressor memory usage depends 65 private InputStream in; field in class:XZInputStream 77 * from <code>in</code>. The header of the first Block is not read 80 * @param in input stream from which XZ-compressed 84 * input is not in the XZ format 95 * from <code>in</code> 97 * @throws IOException may be thrown by <code>in</code> 99 public XZInputStream(InputStream in) throws IOException { 100 this(in, -1) [all...] |
/external/objenesis/main/src/main/java/org/objenesis/instantiator/basic/ |
ProxyingInstantiator.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 * in the bytecode. So that the constructor is indeed not called but you however instantiate a child class, not 83 * Will generate the bytes for a class extending the type passed in parameter. This class will 95 DataOutputStream in = null; local 98 in = new DataOutputStream(bIn); 100 in.write(MAGIC); 101 in.write(VERSION); 102 in.writeShort(CONSTANT_POOL_COUNT); 107 in.writeByte(CONSTANT_Class) [all...] |
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
IoUtils.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 35 BufferedInputStream in = new BufferedInputStream(input, BUFFER_SIZE); local 39 while ((n = in.read(buffer, 0, BUFFER_SIZE)) != -1) { 51 in.close();
|
/external/vogar/src/vogar/util/ |
Strings.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 42 public static boolean isNullOrEmpty(String in) { 43 return com.google.common.base.Strings.isNullOrEmpty(in); 48 BufferedReader in = new BufferedReader(reader); local 50 while ((line = in.readLine()) != null) { 54 in.close(); 63 BufferedReader in = local 67 while ((line = in.readLine()) != null) { 70 in.close() [all...] |
/frameworks/base/core/java/android/companion/ |
AssociationRequest.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 private AssociationRequest(Parcel in) { 57 in.readByte() != 0, 58 in.readParcelableList(new ArrayList<>(), AssociationRequest.class.getClassLoader())); 107 public AssociationRequest createFromParcel(Parcel in) { 108 return new AssociationRequest(in);
|
/frameworks/base/core/java/com/android/server/backup/ |
UsageStatsBackupHelper.java | 58 DataInputStream in = new DataInputStream(new ByteArrayInputStream(payload)); local 60 int user = in.readInt(); 62 in.read(restoreData, 0, restoreData.length);
|
/libcore/benchmarks/src/benchmarks/ |
BufferedZipFileBenchmark.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 60 InputStream in = zipFile.getInputStream(entry); local 62 while (in.read(buffer) != -1) { 64 in.close(); 73 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry)); local 75 while (in.read(buffer) != -1) { 77 in.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidGZIPStreamTest.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 GZIPInputStream in = new GZIPInputStream(bytesIn); local 101 while ((len = in.read(buf)) > 0) { 108 in.close();
|
/libcore/luni/src/test/java/tests/support/ |
Support_SQL.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 InputStream in = Class.forName("tests.support.Support_SQL") local 53 loadProperties(in); 54 in.close();
|
/libcore/ojluni/src/main/java/sun/misc/ |
Resource.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 74 /* Cache result in case getBytes is called after getByteBuffer. */ 89 InputStream in = cachedInputStream(); local 124 cc = in.read(b, pos, bytesToRead); 143 in.close(); 160 InputStream in = cachedInputStream(); local 161 if (in instanceof ByteBuffered) { 162 return ((ByteBuffered)in).getByteBuffer() [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_GetLocal.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 42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); local 48 while ((result = in.read(buf)) != -1) { 51 in.close(); 62 InputStream in = new URL(url).openStream(); local 68 while ((result = in.read(buf)) != -1) { 71 in.close(); 80 InputStream in = new URL(url).openStream(); local 84 while ((result = in.read(buf)) != -1) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AbstractHtmlTemplates.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 67 InputStreamReader in = null; local 70 in = new InputStreamReader( 75 while ((chars=in.read(buf)) > 0) { 82 if (in != null) { 83 in.close();
|