/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();
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
EOLConvertingInputStream.java | 7 * "License"); you may not use this file except in compliance * 12 * Unless required by applicable law or agreed to in writing, * 42 private PushbackInputStream in = null; field in class:EOLConvertingInputStream 57 * instance converting bytes in the given <code>InputStream</code>. 60 * @param in the <code>InputStream</code> to read from. 64 in = new PushbackInputStream(_in, 2); 69 * instance converting bytes in the given <code>InputStream</code>. 89 in.close(); 93 int b = in.read(); 106 in.unread(c) [all...] |
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
WearEstimate.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 * Current technology offers wear data in increments of 10% (i.e. from 0 == new device up to 36 * cell, in which case it is expected that the storage type not supported will have UNKNOWN wear. 49 public WearEstimate createFromParcel(Parcel in) { 50 return new WearEstimate(in); 81 public WearEstimate(Parcel in) { 82 typeA = validateWearValue(in.readInt()); 83 typeB = validateWearValue(in.readInt()); 86 public WearEstimate(JsonReader in) throws IOException [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/templates/ |
SimpleFile.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 104 TemplatedInputStream in = new TemplatedInputStream(sourceURL.openStream(), local 106 destFile.create(in, true, monitor); 107 in.close();
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ProfilesLoader.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 BufferedReader in = null; local 48 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); 54 String response = in.readLine(); 69 if (in != null) { 70 in.close();
|
VersionLoader.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 BufferedReader in = null; local 51 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); 57 return Integer.parseInt(in.readLine()); 65 if (in != null) { 66 in.close();
|
/tools/tradefederation/core/src/com/android/tradefed/util/net/ |
HttpMultipartPost.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 81 FileInputStream in = new FileInputStream(file); local 84 addTextFile(name, fileName, in); 86 in.close(); 94 * @param fileName file name to report for the data in the stream. 95 * @param in stream whose contents are being uploaded. 98 public void addTextFile(String name, String fileName, InputStream in) 108 mBuilder.append(StreamUtil.getStringFromStream(in));
|