/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
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();
|
/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. */
|