/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 44 * {@code slice()} views in the same way. 119 InputStream in = source.openStream(); local 121 byte[] readBytes = ByteStreams.toByteArray(in); 124 in.close(); 129 InputStream in = source.openBufferedStream(); local 131 byte[] readBytes = ByteStreams.toByteArray(in); 134 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/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/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/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/jmonkeyengine/engine/src/core-plugins/com/jme3/scene/plugins/ |
MTLLoader.java | 5 * Redistribution and use in source and binary forms, with or without 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 164 // material is already in cache, generate it 280 // Ni: index of refraction - unsupported in jME 284 logger.log(Level.WARNING, "Unknown statement in MTL! {0}", cmd); 300 InputStream in = null local [all...] |
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/ |
HDRLoader.java | 5 * Redistribution and use in source and binary forms, with or without 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 116 private short flip(int in){ 117 return (short) ((in << 8 & 0xFF00) | (in >> 8)); 142 private boolean decodeScanlineRLE(InputStream in, int width) throws IOException 320 InputStream in = null; local [all...] |
TGALoader.java | 5 * Redistribution and use in source and binary forms, with or without 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 60 // 0 - no image data in file 86 InputStream in = null; local 88 in = info.openStream(); 89 Image img = load(in, flip) [all...] |
/external/jmonkeyengine/engine/src/desktop/com/jme3/system/ |
Natives.java | 5 * Redistribution and use in source and binary forms, with or without 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 135 InputStream in = conn.getInputStream(); local 141 // file in jar 154 while ((len = in.read(buf)) > 0) { 157 in.close() [all...] |
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/util/ |
Converter.java | 5 * Redistribution and use in source and binary forms, with or without 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 214 public static com.bulletphysics.linearmath.Transform convert(com.jme3.math.Transform in, com.bulletphysics.linearmath.Transform out) { 215 convert(in.getTranslation(), out.origin); 216 convert(in.getRotation(), out.basis); 220 public static com.jme3.math.Transform convert(com.bulletphysics.linearmath.Transform in, com.jme3.math.Transform out) [all...] |
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/ |
OGGLoader.java | 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
158 * @param dataBytesTotal The number of bytes in the input
160 * of bytes in the input, it is returned, otherwise the number
161 * of bytes in the input is returned.
197 // Don't know how many bytes are in input, pass MAX_VALUE 293 InputStream in = null; local [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/nanohttpd/websocket/src/main/java/fi/iki/elonen/ |
WebSocket.java | 19 protected InputStream in; field in class:WebSocket 45 this.in = handshakeRequest.getInputStream(); 66 handleWebsocketFrame(WebSocketFrame.read(in)); 156 if (in != null) { 158 in.close();
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/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 81 InputStream in = connection.getInputStream(); local 82 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 99 InputStream in = connection.getInputStream(); local 100 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 120 server.enqueue(new MockResponse().setBody("enqueued in the background")); 125 InputStream in = connection.getInputStream(); local 126 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 127 assertEquals("enqueued in the background", reader.readLine()) 137 InputStream in = connection.getInputStream(); local 154 InputStream in = urlConnection.getInputStream(); local 198 InputStream in = connection.getInputStream(); local [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 37 * Runs an action, in process on the target. 111 InputStream in = getPropertiesStream(); local 113 properties.load(in); 114 in.close(); 204 // if there is more than one class in the set, this must be a package. Since we're 205 // running everything in the package already, remove any class called AllTests.
|
/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/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 69 // mConfig can be null if we are a restricted user, in that case don't show this dialog 157 // [1] and [2] are received data in bytes and packets. 161 // [9] and [10] are transmitted data in bytes and packets. 171 DataInputStream in = null; local 173 // See dev_seq_printf_stats() in net/core/dev.c. 174 in = new DataInputStream(new FileInputStream("/proc/net/dev")); 178 String line = in.readLine().trim(); 193 in.close() [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 private 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. */
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiApConfigStore.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 144 //to indicate the write is currently in progress 159 DataInputStream in = null; local 162 in = new DataInputStream(new BufferedInputStream(new FileInputStream( 165 int version = in.readInt(); 171 config.SSID = in.readUTF(); 174 config.apBand = in.readInt(); 175 config.apChannel = in.readInt(); 178 int authType = in.readInt() [all...] |