/dalvik/dx/src/com/android/dx/io/ |
DexIndexPrinter.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 Dex.Section in = dex.open(tableOfContents.typeLists.off); local 98 int size = in.readInt(); 101 System.out.print(" " + dex.typeNames().get((int) in.readShort())); 104 in.readShort(); // retain alignment
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
SerializedGrammar.java | 6 Redistribution and use in source and binary forms, with or without 11 2. Redistributions in binary form must reproduce the above copyright 12 notice, this list of conditions and the following disclaimer in the 20 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 44 public char type; // in {l, p, t, c} 93 DataInputStream in = new DataInputStream(bos); local 94 readFile(in); 95 in.close() [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/ |
JPDADebuggeeSynchronizer.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 59 protected DataInputStream in; field in class:JPDADebuggeeSynchronizer 110 msg = in.readUTF(); 130 msg = in.readUTF(); 149 msg = in.readUTF(); 181 "[SYNC] Exception in binding for socket sync connection", e); 205 "[SYNC] Exception in binding for socket sync connection", e); 222 in = new DataInputStream(clientSocket.getInputStream()); 225 "[SYNC] Exception in accepting socket sync connection", e) [all...] |
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixSocketTest.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 52 InputStream in = worker.getInputStream(); local 53 in.read(); 104 // Port 0 is not allowed to be used in connect() on some platforms,
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_Exec.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 68 InputStream in = proc.getInputStream(); local 72 while ((result = in.read(bytes)) != -1) { 79 in.close(); 119 InputStream in = proc.getInputStream(); local 123 while ((result = in.read(bytes)) != -1) { 130 in.close();
|
/external/apache-harmony/support/src/test/java/tests/support/resource/ |
Support_Resources.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 91 InputStream in = Support_Resources.getStream(src); local 94 copyLocalFileTo(dst, in); 104 public static void copyLocalFileTo(File dest, InputStream in) throws IOException { 109 while ((result = in.read(buf)) != -1) { 112 in.close(); 120 InputStream in = new URL(url).openStream(); local 122 copyLocalFileTo(temp, in);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
FileClientSessionCache.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 46 * in the cache (see {@link #putSessionData}). Files are read on 51 * so the ordering actually ends up being least-recently-modified in some 52 * cases and even just "not accessed in this process" if the filesystem 57 /** Directory to store session files in. */ 61 * Map of name -> File. Keeps track of the order files were accessed in. 87 // cache misses in getSessionData(). 92 // File.list() will return null in error cases without throwing IOException 130 * Note: This method is only called when the in-memory cach 156 FileInputStream in; local [all...] |
/external/doclava/src/com/google/doclava/ |
ClearPage.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 164 FileInputStream in; local 170 in = new FileInputStream(from); 194 size = in.read(buf); 210 in.close(); 228 /* Setting excepted types to allow everything. Leaving it this way in in case we want to explicitly
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
BuildMachineManager.java | 41 // findKey represents the key in cfg from which which to obtain the list of 136 FileInputStream in = new FileInputStream(markerFiles[i]); local 137 properties.load(in); 138 in.close(); 167 FileInputStream in = new FileInputStream(new File(cfg)); local 168 cfgProperties.load(in); 169 in.close();
|
/external/emma/core/java12/com/vladium/emma/rt/ |
ClassPathProcessorST.java | 75 m_log.info ("[" + m_classCount + " class(es) processed in " + (end - start) + " ms]"); 86 public void handleArchiveEntry (final JarInputStream in, final ZipEntry entry) 103 readZipEntry (in, entry); 150 // in the classpath wins" semantics: 250 // in the classpath wins" semantics: 318 InputStream in = null; local 321 in = new FileInputStream (file); 325 (totalread < length) && (read = in.read (m_readbuf, totalread, length - totalread)) >= 0; 331 if (in != null) try { in.close (); } catch (Exception ignore) {} [all...] |
InstrClassLoader.java | 53 // behavior in a few places, including URLClassLoader.getResource(): 121 // or (c) it will define 'c' itself if allowed to. In any 153 if (resolve) resolveClass (c); // this never happens in J2SE JVMs 157 // TODO: remove this in the release build 166 if (trace1 && (result != null)) m_log.trace1 ("loadClass", "[" + name + "] found in " + result); 251 if (trace1 && (classURL != null)) m_log.trace1 ("findClass", "[" + name + "] found in " + classURL); 257 InputStream in = null; local 261 in = classURL.openStream (); 266 readFully (in, baos, buf.m_buf); 267 in.close (); // don't keep the file handle across reentrant call [all...] |
/external/emma/core/java12/com/vladium/util/ |
Property.java | 219 InputStream in = null; local 222 in = ResourceLoader.getResourceAsStream (name); 223 if (in != null) 226 result.load (in); 235 if (in != null) try { in.close (); } catch (Throwable ignore) {} 236 in = null; 253 InputStream in = null; local 256 in = ResourceLoader.getResourceAsStream (name, loader); 257 if (in != null 291 InputStream in = null; local [all...] |
/external/emma/tools/java/com/vladium/tools/ |
ClassDep.java | 140 InputStream in = null; local 144 in = loader.getResourceAsStream (classVMName + ".class"); 146 if (in == null) 148 throw new IllegalArgumentException ("class [" + Descriptors.vmNameToJavaName (classVMName) + "] not found in the input classpath"); 153 for (int read; (read = in.read (readbuf)) >= 0; baos.write (readbuf, 0, read)); 158 if (in != null) try { in.close (); } catch (IOException ignore) { ignore.printStackTrace (); } 160 in = null;
|
/external/guava/guava-tests/test/com/google/common/io/ |
ByteSourceTester.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 43 * {@code slice()} views in the same way. 109 InputStream in = source.openStream(); local 111 byte[] readBytes = ByteStreams.toByteArray(in); 114 in.close(); 119 InputStream in = source.openBufferedStream(); local 121 byte[] readBytes = ByteStreams.toByteArray(in); 124 in.close();
|
CharSinkTest.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 76 TestReader in = new TestReader(); local 77 assertFalse(in.closed()); 78 sink.writeFrom(in); 79 assertFalse(in.closed());
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
CollationThaiTest.java | 55 // commonly used mark-in-context order. 56 // In effect, marks are sorted after each syllable. 68 // combining character, similar to "c < ch" in traditional spanish. 120 * Read the external dictionary file, which is already in proper 133 // Read in a dictionary of Thai words 137 BufferedReader in = null; local 140 in = TestUtil.getDataReader(fileName, "UTF-8"); 143 // Loop through each word in the dictionary and compare it to the previous 144 // word. They should be in sorted order. 147 String word = in.readLine() [all...] |
UCAConformanceTest.java | 8 * UCAConformanceTest performs conformance tests defined in the data 89 BufferedReader in; field in class:UCAConformanceTest 95 in = TestUtil.getDataReader(collationTest+type+"_SHORT"+ext); 98 in = TestUtil.getDataReader(collationTest+type+ext); 101 in = TestUtil.getDataReader(collationTest+type+"_STUB"+ext); 188 if(in == null || coll == null) { 199 logln("-prop:ucaconfnosortkeys=1 turns off getSortKey() in UCAConformanceTest"); 209 while ((line = in.readLine()) != null) { 282 in.close(); 285 in = null [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
DataDrivenNumberFormatTestSuite.java | 106 * Runs all the tests in the data driven test suite against codeUnderTest. 119 * Runs every format test in data driven test suite including those 143 BufferedReader in = null; local 145 in = TestUtil.getDataReader("numberformattestspecification.txt", "UTF-8"); 147 readLine(in); 157 if (!readLine(in)) { 218 if (in != null) { 219 in.close(); 291 private boolean readLine(BufferedReader in) throws IOException { 292 String line = in.readLine() [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/ |
NormalizerBuilder.java | 10 * in connection with or arising out of the use of the information here. 64 } else { // for use in Applets 87 BufferedReader in = TestUtil.getDataReader("unicode/CompositionExclusions.txt"); local 92 String line = in.readLine(); 100 // store -1 in the excluded table for each character hit 106 in.close(); 118 //BufferedReader in = new BufferedReader(new FileReader(UNICODE_DATA), 64*1024); 119 BufferedReader in = null; local 121 in = TestUtil.getDataReader("unicode/UnicodeData.txt"); 134 String line = in.readLine() [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
IDNAConformanceTest.java | 252 BufferedReader in = TestUtil.getDataReader("IDNATestInput.txt", "utf-8"); local 259 while ((tempStr = in.readLine()) != null) { 286 tempStr = in.readLine(); 304 in.close();
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
CollationThaiTest.java | 51 // commonly used mark-in-context order. 52 // In effect, marks are sorted after each syllable. 64 // combining character, similar to "c < ch" in traditional spanish. 116 * Read the external dictionary file, which is already in proper 129 // Read in a dictionary of Thai words 133 BufferedReader in = null; local 136 in = TestUtil.getDataReader(fileName, "UTF-8"); 139 // Loop through each word in the dictionary and compare it to the previous 140 // word. They should be in sorted order. 143 String word = in.readLine() [all...] |
UCAConformanceTest.java | 7 * UCAConformanceTest performs conformance tests defined in the data 85 BufferedReader in; field in class:UCAConformanceTest 91 in = TestUtil.getDataReader(collationTest+type+"_SHORT"+ext); 94 in = TestUtil.getDataReader(collationTest+type+ext); 97 in = TestUtil.getDataReader(collationTest+type+"_STUB"+ext); 184 if(in == null || coll == null) { 195 logln("-prop:ucaconfnosortkeys=1 turns off getSortKey() in UCAConformanceTest"); 205 while ((line = in.readLine()) != null) { 278 in.close(); 281 in = null [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
DataDrivenNumberFormatTestSuite.java | 102 * Runs all the tests in the data driven test suite against codeUnderTest. 115 * Runs every format test in data driven test suite including those 139 BufferedReader in = null; local 141 in = TestUtil.getDataReader("numberformattestspecification.txt", "UTF-8"); 143 readLine(in); 153 if (!readLine(in)) { 214 if (in != null) { 215 in.close(); 287 private boolean readLine(BufferedReader in) throws IOException { 288 String line = in.readLine() [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
NormalizerBuilder.java | 9 * in connection with or arising out of the use of the information here. 63 } else { // for use in Applets 86 BufferedReader in = TestUtil.getDataReader("unicode/CompositionExclusions.txt"); local 91 String line = in.readLine(); 99 // store -1 in the excluded table for each character hit 105 in.close(); 117 //BufferedReader in = new BufferedReader(new FileReader(UNICODE_DATA), 64*1024); 118 BufferedReader in = null; local 120 in = TestUtil.getDataReader("unicode/UnicodeData.txt"); 133 String line = in.readLine() [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
IDNAConformanceTest.java | 248 BufferedReader in = TestUtil.getDataReader("IDNATestInput.txt", "utf-8"); local 255 while ((tempStr = in.readLine()) != null) { 282 tempStr = in.readLine(); 300 in.close();
|