/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/serializable/ |
SerializableChecker.java | 28 * This class examines all the classes in a Jar file or a directory 61 // we're in deep trouble... 88 // Skip things in com.ibm.icu.dev; they're not relevant. 137 ObjectInputStream in = new ObjectInputStream(byteIn); local 140 objectsIn = (Object[]) in.readObject(); 141 in.close();
|
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/ |
CoverageTransformerTest.java | 231 final InputStream in = clazz.getResourceAsStream(resource); local 235 while ((len = in.read(buffer)) != -1) { 238 in.close();
|
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/ |
MockSocketConnectionTest.java | 88 final InputStream in = a.getInputStream(); local 90 in.read(); 95 final InputStream in = a.getInputStream(); local 98 in.read(); 128 final InputStream in = a.getInputStream(); local 131 assertEquals(0, in.available()); 140 assertEquals(4, in.available()); 143 assertEquals(0, in.read()); 144 assertEquals(1, in.read()); 145 assertEquals(2, in.read()) 151 final InputStream in = a.getInputStream(); local 168 final InputStream in = a.getInputStream(); local 174 final InputStream in = a.getInputStream(); local [all...] |
/external/jarjar/src/main/com/tonicsystems/jarjar/util/ |
ClassHeaderReader.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 30 private InputStream in; field in class:ClassHeaderReader 53 public void read(InputStream in) throws IOException { 55 this.in = in; 122 in.close(); 146 bsize += read(in, b, bsize, rounded - bsize); 152 private static int read(InputStream in, byte[] b, int off, int len) throws IOException { 155 int result = in.read(b, off + total, len - total) [all...] |
/external/javassist/src/main/javassist/tools/rmi/ |
AppletServer.java | 6 * 1.1 (the "License"); you may not use this file except in compliance with 133 public void doReply(InputStream in, OutputStream out, String cmd) 137 processRMI(in, out); 139 lookupName(cmd, in, out); 141 super.doReply(in, out, cmd); 147 ObjectInputStream in = new ObjectInputStream(ins); local 149 int objectId = in.readInt(); 150 int methodId = in.readInt(); 156 Object[] args = readParameters(in); 185 in.close() 224 ObjectInputStream in = new ObjectInputStream(ins); local [all...] |
ObjectImporter.java | 6 * 1.1 (the "License"); you may not use this file except in compliance with 50 * <p>The parameters to a remote method is passed in the <i>call-by-value</i> 165 InputStream in = new BufferedInputStream(sock.getInputStream()); local 166 skipHeader(in); 167 ObjectInputStream din = new ObjectInputStream(in); 219 * object in Netscape's JVM. It returns a 273 private void skipHeader(InputStream in) throws IOException { 278 while ((c = in.read()) >= 0 && c != 0x0d) 281 in.read(); /* skip 0x0a (LF) */
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/ |
LZMA2InputStream.java | 39 * indexing. The limitation shouldn't matter much in practice since so 46 private DataInputStream in; field in class:LZMA2InputStream 69 * in the range [<code>DICT_SIZE_MIN</code>, 95 * from <code>in</code>. 109 * @param in input stream from which LZMA2-compressed 113 * in the range [<code>DICT_SIZE_MIN</code>, 116 public LZMA2InputStream(InputStream in, int dictSize) { 117 this(in, dictSize, null); 128 * @param in input stream from which LZMA2-compressed 132 * in the range [<code>DICT_SIZE_MIN</code> [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/transform/ |
AbstractTransformTask.java | 5 * use this file except in compliance with the License. You may obtain a copy of 10 * Unless required by applicable law or agreed to in writing, software 108 InputStream in = new BufferedInputStream(new FileInputStream(file)); local 110 ClassReader r = new ClassReader(in); 113 in.close(); 244 InputStream in = new BufferedInputStream(zip); local 246 while ((b = in.read()) != -1) { 253 DataInputStream in = new DataInputStream(new FileInputStream(file)); local 255 int m = in.readInt(); 258 in.close() [all...] |
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
MockWebServerTest.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 72 InputStream in = response.getBodyStream(); local 73 assertEquals('A', in.read()); 74 assertEquals('B', in.read()); 75 assertEquals('C', in.read()); 76 assertEquals(-1, in.read()); 107 InputStream in = connection.getInputStream(); local 108 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 126 InputStream in = connection.getInputStream() local 154 InputStream in = connection.getInputStream(); local 167 InputStream in = connection.getInputStream(); local 186 InputStream in = urlConnection.getInputStream(); local 225 InputStream in = server.getUrl("\/").openConnection().getInputStream(); local [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
HttpFacade.java | 43 private void inputStreamToOutputStream(InputStream in, OutputStream out) throws IOException { 44 if (in == null) { 55 while ((read = in.read(bytes)) != -1) { 61 in.close(); 67 private String inputStreamToString(InputStream in) throws IOException { 68 BufferedReader r = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)); 136 InputStream in = new BufferedInputStream(urlConnection.getInputStream()); local 139 inputStreamToOutputStream(in, output); 157 InputStream in = new BufferedInputStream(urlConnection.getInputStream()); local 158 String result = inputStreamToString(in); [all...] |
/external/vogar/src/vogar/target/ |
TestRunner.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 * Runs an action, in process on the target. 112 * Load the properties that were either encapsulated in the APK (if using 113 * {@link vogar.android.ActivityMode}), or encapsulated in the JAR compiled by Vogar (in other 120 InputStream in = getPropertiesStream(); local 122 properties.load(in); 123 in.close(); 197 // if there is more than one class in the set, this must be a package. Since we'r [all...] |
/frameworks/base/core/java/android/os/health/ |
HealthStats.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 * Each of the keys references data in one of five data types: 36 * (COUNT, MS, etc) will always be in the name of the constant for the key to 51 * measured in milliseconds. Timers track how many times a resource was used, and 129 public HealthStats(Parcel in) { 133 mDataType = in.readString(); 136 count = in.readInt(); 141 mTimerKeys[i] = in.readInt(); 142 mTimerCounts[i] = in.readInt() [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
BandwidthTestUtil.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 47 * Parses the first line in a file if exists. 57 DataInputStream in = new DataInputStream(fstream); local 58 BufferedReader br = new BufferedReader(new InputStreamReader(in)); 64 in.close(); 76 * @param size in bytes of the file to download
|
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioPolicyConfig.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 102 private AudioPolicyConfig(Parcel in) { 104 int nbMixes = in.readInt(); 108 int routeFlags = in.readInt(); 111 mixBuilder.setCallbackFlags(in.readInt()); 113 mixBuilder.setDevice(in.readInt(), in.readString()); 115 int sampleRate = in.readInt(); 116 int encoding = in.readInt() [all...] |
/frameworks/base/services/usage/java/com/android/server/usage/ |
UsageStatsXml.java | 5 * use this file except in compliance with the License. You may obtain a copy 10 * Unless required by applicable law or agreed to in writing, software 44 // would be appended more than once to a checked-in file, causing a crash 60 FileInputStream in = file.openRead(); local 63 read(in, statsOut); 67 in.close(); 90 static void read(InputStream in, IntervalStats statsOut) throws IOException { 93 parser.setInput(in, "utf-8");
|
/frameworks/base/tools/preload/ |
MemoryUsage.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 // These values are in 1kB increments (not 4kB like you'd expect). 246 BufferedReader in = new BufferedReader( local 248 String line = in.readLine(); 256 in.close(); 274 private static void copy(InputStream in, OutputStream out) { 278 while ((read = in.read(buffer)) > -1) { 286 /** Measures memory usage information and stores it in the model. */
|
/libcore/dex/src/main/java/com/android/dex/ |
EncodedValueReader.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 45 protected final ByteInput in; field in class:EncodedValueReader 50 public EncodedValueReader(ByteInput in) { 51 this.in = in; 54 public EncodedValueReader(EncodedValue in) { 55 this(in.asByteInput()); 64 public EncodedValueReader(ByteInput in, int knownType) { 65 this.in = in [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ProcessBuilderTest.java | 5 * (the "License"); you may not use this file except in compliance with 10 * Unless required by applicable law or agreed to in writing, software 152 InputStream in = process.getInputStream(); local 165 if (in.available() > 0) { 166 assertTrue(in.read(buf) > 0);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
JarEntryTest.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 131 try (InputStream in = jarFile.getInputStream(jarEntry1)) { 140 in.read(new byte[64]); 147 Streams.skipByReading(in, Long.MAX_VALUE); 149 assertEquals(-1, in.read()); 163 InputStream in = jarFile.getInputStream(jarEntry); local 165 while (in.available() > 0) { 168 in.read(buffer); 170 assertEquals("the file is fully read", -1, in.read()) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
GZIPInputStreamTest.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 37 TestGZIPInputStream(InputStream in) throws IOException { 38 super(in); 41 TestGZIPInputStream(InputStream in, int size) throws IOException { 42 super(in, size); 210 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(baos.toByteArray())); local 212 in.read(outBuf, 530, 1); 217 result = in.read(outBuf, 0, 5); 224 result = in.read(null, 100, 1) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.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 // not leave us in a bad state. 67 PipedInputStream in = new PipedInputStream(out); local 68 testInterruptInputStream(in); 120 private void testInterruptInputStream(final InputStream in) throws Exception { 123 in.read();
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldUnixSocketTest.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 48 InputStream in = worker.getInputStream(); local 49 in.read(); 100 // Port 0 is not allowed to be used in connect() on some platforms,
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
GZIPInputStreamTest.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 89 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(gzipped)); local 94 count = in.skip(Long.MAX_VALUE); 99 in.close(); 197 InputStream in = new GZIPInputStream(bis); local 201 while ((count = in.read(buffer)) != -1) { 206 in.close();
|
OldZipFileTest.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 54 InputStream in; local 58 in = zfile.getInputStream(zentry); 64 if (in != null) { 65 data = in.read(); 66 in.close(); 71 // the file hyts_zipFile.zip in setup must be included as a resource
|
ZipEntryTest.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 73 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local 76 while ((entry = in.getNextEntry()) != null) { 81 in.close(); 150 // that forces zip64. This also needs followup changes in ZipInputStream et al. to assume zip64 222 // Read it back and make sure comments and extra are in the right order
|