/libcore/dex/src/main/java/com/android/dex/util/ |
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 71 FileInputStream in = new FileInputStream(file); local 74 int amt = in.read(result, at, length); 81 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
InputStreamTest.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 29 InputStream in = new MockInputStream(); local 30 in.read(null, -1, 1);
|
/libcore/luni/src/main/java/java/io/ |
SequenceInputStream.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 38 private InputStream in; field in class:SequenceInputStream 58 in = s1; 69 * if any of the elements in {@code e} is {@code null}. 74 in = e.nextElement(); 75 if (in == null) { 83 if (e != null && in != null) { 84 return in.available(); 90 * Closes all streams in this sequence of input stream [all...] |
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
XMLReaderFactory.java | 5 // NO WARRANTY! This class is in the Public Domain. 22 * <em>This module, both source code and documentation, is in the 43 * best to return a parser when one is in the class path, even when 66 * In environments which can support it, the name of the XMLReader 67 * class is determined by trying each these options in order, and 74 * in the <em>META-INF/services/org.xml.sax.driver</em> file in 82 * return a system default SAX1 parser, that parser is wrapped in 89 * <p> In environments such as small embedded systems, which can not 94 * initialized on a command line. This means that <em>in most cases</em 120 InputStream in; local [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
LittleEndianDataInputStreamTest.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 70 DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); local 72 in.readFully(b); 77 DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0])); local 79 in.readUnsignedByte(); 87 DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(buf)); local 89 in.readUnsignedShort(); 95 DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); local 97 in.readLine() 105 DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); local 137 DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data)); local [all...] |
/external/jarjar/src/main/com/tonicsystems/jarjar/util/ |
StandaloneJarProcessor.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 JarFile in = new JarFile(from); local 37 Enumeration<JarEntry> e = in.entries(); 43 IoUtil.pipe(in.getInputStream(entry), baos, buf); 62 in.close();
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
ShutdownTest.java | 32 // Keep-alive seems to be on by default, but just in case that changes. 34 InputStream in = connection.getInputStream(); local 35 while (in.available() > 0) { 36 in.read(); 38 in.close();
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldMessageFormatFieldTest.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 44 // implemented in 47 ObjectInputStream in = null; local 62 in = new ObjectInputStream(new ByteArrayInputStream(bytes 66 mfield2 = (MessageFormat.Field) in.readObject(); 73 in.readObject(); 86 if (in != null) 87 in.close();
|
OldNumberFormatFieldTest.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 43 // implemented in 57 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); local 58 NumberFormat.Field nfield2 = (NumberFormat.Field) in.readObject(); 62 in.readObject(); 67 in.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
ZipInputStreamTest.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 54 ZipInputStream in = new ZipInputStream(new ByteArrayInputStream(bytes)); local 57 ZipEntry entry = in.getNextEntry(); 62 while ((count = in.read(buffer)) != -1) { 66 assertNull(in.getNextEntry()); // There's only one entry in the Zip files we create. 68 in.close(); 77 ZipInputStream in = new ZipInputStream(emptyZipIn); local 79 ZipEntry entry = in.getNextEntry() [all...] |
/dalvik/dx/tests/117-modified-utf8/com/android/dx/util/ |
Mutf8Test.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 29 ByteInput in = new ByteArrayByteInput( local 31 assertEquals('A', in.readByte()); 32 assertEquals("BC\u0000", Mutf8.decode(in, new char[3])); 33 assertEquals('E', in.readByte());
|
/external/chromium_org/chrome/browser/net/ |
disk_cache_dir_policy_handler_unittest.cc | 3 // found in the LICENSE file. 41 // Use a variable in the value. It should be expanded by the handler. 42 const std::string in = "${user_name}/foo"; local 46 base::Value::CreateStringValue(in),
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/ |
inet_ntop.cc | 3 // found in the LICENSE file. 25 struct in_addr in; local 26 memcpy(&in, src, sizeof(in)); 27 char* result = inet_ntoa(in);
|