/development/tools/idegen/src/ |
Configuration.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 59 throw new AssertionError("Not in root directory."); 101 // Look for user-specific excluded-paths file in current directory. 120 * source roots in our generated source directory (specifically, 176 * if the file doesn't have a package or if the file isn't in the 204 BufferedReader in = new BufferedReader(new FileReader(file)); local 207 while ((line = in.readLine()) != null) { 212 // line ends in a ";". 219 in.close() 254 BufferedReader in = new BufferedReader(new FileReader(file)); local [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/ |
ImageFactory.java | 44 final InputStream in = loader.getResourceAsStream(name); local 45 final byte[] data = new byte[in.available()]; 46 in.read(data); 47 in.close();
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
ClassFileVersionTest.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 84 DataInputStream in = new DataInputStream(new FileInputStream( local 86 int magic = in.readInt(); 90 expectedMinorVersion = in.readUnsignedShort(); 91 expectedMajorVersion = in.readUnsignedShort(); 92 in.close(); 94 printErrorAndFail(thisCommandName + "has error in reading target class file!");
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
SequenceTest.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 79 protected Object getDecodedObject(BerInputStream in) 81 Object[] values = (Object[]) in.content; 149 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 151 .decode(in)); 178 protected Object getDecodedObject(BerInputStream in) 186 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 187 in.setVerify(); 188 seqVerify.decode(in); [all...] |
/external/emma/core/java12/com/vladium/util/ |
Files.java | 43 BufferedReader in = null; local 46 in = new BufferedReader (new FileReader (atfile), 8 * 1024); // uses default encoding 49 for (String line; (line = in.readLine ()) != null; ) 59 if (in != null) try { in.close (); } catch (Exception ignore) {} 83 * Note that duplicate removal in classpaths affects ClassLoader.getResources(). 86 * necessary for reproducing its behavior in Sun-compatible JVMs. 292 * A slightly stricter version of File.createTempFile() in J2SDK 1.3: it requires 301 * guarantees do not hold if files are created in the same directory outside 311 * @return writeable temp file descriptor [incorporates 'parentDir' in its pathname [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableClassToInstanceMapTest.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 74 Map<Class<?>, Object> in = Collections.emptyMap(); local 75 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); 82 Map<Class<? extends Number>, Number> in = Maps.newHashMap(); local 83 in.put(Number.class, 0); 84 in.put(Double.class, Math.PI); 85 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in); 116 Map<Class<?>, Object> in = Collections.emptyMap(); local 117 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); 122 ImmutableMap<Class<? extends Number>, ? extends Number> in local [all...] |
/external/jarjar/src/main/com/tonicsystems/jarjar/util/ |
IoUtil.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 41 InputStream in = new FileInputStream(from); local 45 pipe(in, out, buf); 50 in.close(); 84 // treat them again and write them in output, wenn they not are empty directories
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
MetadataManager.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 * additional data files such as PhoneNumberAlternateFormats, but in the future it is envisaged it 64 private static void close(InputStream in) { 65 if (in != null) { 67 in.close(); 77 ObjectInputStream in = null; local 79 in = new ObjectInputStream(source); 81 alternateFormats.readExternal(in); 88 close(in); 107 ObjectInputStream in = null; local [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/prefixmapper/ |
PrefixFileReader.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 // prefix mapping file is available in the file system, so that a file can be loaded when needed. 54 ObjectInputStream in = null; local 56 in = new ObjectInputStream(source); 57 mappingFileProvider.readExternal(in); 61 close(in); 80 ObjectInputStream in = null; local 82 in = new ObjectInputStream(source); 84 map.readExternal(in); [all...] |
/external/mockito/src/org/mockito/internal/configuration/ |
ClassPathLoader.java | 21 * Loads configuration or extension points available in the classpath. 44 * <br>Suppose you wrote an extension to create mocks with some <em>Awesome</em> library, in order to tell 45 * Mockito to use it you need to put in your classpath 48 * <li>A file named <code>org.mockito.plugins.MockMaker</code> in a folder named 94 * {@link MockMaker} extension exists or is visible in the current classpath.</p> 153 InputStream in = null; local 155 in = resource.openStream(); 156 for (String line : readerToLines(new InputStreamReader(in, "UTF-8"))) { 166 closeQuietly(in); 190 private static void closeQuietly(InputStream in) { [all...] |
/external/okhttp/okio/src/test/java/okio/ |
RealBufferedSourceTest.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 InputStream in = new RealBufferedSource(source).inputStream(); local 36 assertEquals(0, in.available()); 40 assertEquals('a', in.read()); 41 assertEquals(Segment.SIZE - 1, in.available()); 46 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length)); 51 assertEquals('b', in.read()); 52 assertEquals(1, in.available()); 56 assertEquals('c', in.read()) 68 InputStream in = new RealBufferedSource(source).inputStream(); local [all...] |
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
Crawler.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 96 InputStream in = connection.getInputStream(); local 98 in.close(); 103 Document document = Jsoup.parse(in, mediaType.charset(UTF_8).name(), url.toString()); 110 in.close();
|
/external/smack/src/org/jivesoftware/smack/proxy/ |
Socks4ProxySocketFactory.java | 7 * you may not use this file except in compliance with the License. 12 * Unless required by applicable law or agreed to in writing, software 75 InputStream in = null; local 85 in=socket.getInputStream(); 97 includes in the request packet the IP address and the port number of the 98 destination host, and userid, in the following format. 171 int i=in.read(buf, s, len-s); 197 in.read(temp, 0, 2);
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
ManageDialog.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 68 // mConfig can be null if we are a restricted user, in that case don't show this dialog 155 // [1] and [2] are received data in bytes and packets. 159 // [9] and [10] are transmitted data in bytes and packets. 169 DataInputStream in = null; local 171 // See dev_seq_printf_stats() in net/core/dev.c. 172 in = new DataInputStream(new FileInputStream("/proc/net/dev")); 176 String line = in.readLine().trim(); 191 in.close() [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SSLSocketBenchmark.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 85 InputStream in = s.getInputStream(); local 87 int n = in.read(buffer); 92 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
AttributedCharacterIteratorAttributeTest.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 73 ObjectInputStream in = null; local 93 in = new ObjectInputStream(new ByteArrayInputStream(bytes 97 dattribute2 = (AttributedCharacterIterator.Attribute) in.readObject(); 111 if (in != null) 112 in.close();
|
/libcore/luni/src/main/java/java/io/ |
BufferedReader.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 41 private Reader in; field in class:BufferedReader 44 * The characters that can be read and refilled in bulk. We maintain three 55 * value is in the range {@code [0...pos]}. If the mark is {@code -1}, the 74 * readLine returns a line as soon as it sees '\n' or '\r'. In the latter 83 * We also need to keep the 'lastWasCR' state for the mark position, in case 89 * Constructs a new {@code BufferedReader}, providing {@code in} with a buffer 92 * @param in the {@code Reader} the buffer reads from. 94 public BufferedReader(Reader in) { [all...] |
InputStreamReader.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 39 private InputStream in; field in class:InputStreamReader 49 * {@code in}. This constructor sets the character converter to the encoding 50 * specified in the "file.encoding" property and falls back to ISO 8859_1 53 * @param in 56 public InputStreamReader(InputStream in) { 57 this(in, Charset.defaultCharset()); 61 * Constructs a new InputStreamReader on the InputStream {@code in}. The 66 * @param in [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
ProcessBuilderTest.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 59 InputStream in = process.getInputStream(); local 65 in.read();
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldAttributedCharacterIteratorAttributeTest.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 158 ObjectInputStream in = null; local 169 in = new ObjectInputStream(new ByteArrayInputStream(bytes 173 attr2 = (AttributedCharacterIterator.Attribute) in.readObject(); 187 if (in != null) 188 in.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidZipStreamTest.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 139 ZipInputStream in = new ZipInputStream(bytesIn); local 144 ZipEntry entry = in.getNextEntry(); 149 while ((len = in.read(buf)) > 0) { 162 assertNull("should only be three entries", in.getNextEntry()); 164 in.close();
|
/libcore/luni/src/test/java/libcore/util/ |
ZoneInfoDBTest.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 48 // Given no tzdata files we can use, we should fall back to built-in "GMT". 58 RandomAccessFile in = new RandomAccessFile(TZDATA_IN_ROOT, "r"); local 59 byte[] content = new byte[(int) in.length()]; 60 in.readFully(content); 67 in.close();
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
EmailMessageCursor.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 41 * To get around this, we load null values in those columns, and then in this wrapper we directly 44 * This will still potentially blow up if this cursor gets wrapped in a CrossProcessCursorWrapper 72 final InputStream in = cr.openInputStream(htmlUri); local 75 underlyingHtmlString = IOUtils.toString(in); 77 in.close(); 88 final InputStream in = cr.openInputStream(textUri); local 91 underlyingTextString = IOUtils.toString(in); [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Fingerprint.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 * Name of the digest algorithm we use in {@link java.security.MessageDigest} 83 DigestInputStream in = null; local 86 in = new DigestInputStream(stream, DIGESTER); 90 int n = in.read(bytes); 95 if (in != null) in.close(); 98 return new Fingerprint(in.getMessageDigest().digest()); 175 throw new IllegalArgumentException("illegal hex digit in " + streamId) [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
WindowsLoader.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 BufferedReader in = null; local 47 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); 54 while ((line = in.readLine()) != null) { 83 if (in != null) { 84 in.close();
|