/libcore/luni/src/test/java/libcore/java/io/ |
OldBufferedReaderTest.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 78 // Avoid IOException in tearDown(). 111 Reader in = new BufferedReader(new Support_StringReader(new String( local 114 in.skip(6); 115 in.mark(14); 116 in.read(new char[14], 0, 14); 117 in.reset(); 118 assertTrue("Wrong chars", in.read() == (char) 6 119 && in.read() == (char) 7) 159 Reader in = new BufferedReader(new Support_StringReader(new String( local [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
DeflaterOutputStreamTest.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 42 InputStream in = createInflaterStream(DeflaterOutputStream.class, true); local 43 assertEquals(1, in.read()); 44 assertEquals(2, in.read()); 45 assertEquals(3, in.read()); 46 in.close(); 50 InputStream in = createInflaterStream(DeflaterOutputStream.class, false); local 52 in.read(); 56 in.close() [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_TestWebData.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 117 FileInputStream in = null; local 119 in = new FileInputStream(file); 120 while (in.available() > 0) { 121 out.write(in.read()); 123 in.close(); 134 if (in != null) { 135 in.close();
|
/external/emma/lib/internal/ |
stamptool.jar | |
/external/emma/core/java12/com/vladium/util/ |
IPathEnumerator.java | 52 void handleArchiveEntry (JarInputStream in, ZipEntry entry); 206 JarInputStream in = null; local 210 // crash the JVM in some builds; however, it uses random file 212 // entries in their archives (which JarInputStream can't do); 219 in = new JarInputStream (new BufferedInputStream (new FileInputStream (fullArchive), 32 * 1024)); 223 Manifest manifest = in.getManifest (); // can be null 230 for (ZipEntry entry; (entry = in.getNextEntry ()) != null; ) 235 handler.handleArchiveEntry (in, entry); 236 in.closeEntry (); 245 if (manifest == null) manifest = in.getManifest () [all...] |
/external/javassist/src/main/javassist/tools/web/ |
Webserver.java | 6 * 1.1 (the "License"); you may not use this file except in compliance with 31 * <p><b>Note:</b> although this class is included in the Javassist API, 33 * Javassist. Especially, there might be security flaws in this server. 189 InputStream in = new BufferedInputStream(clnt.getInputStream()); local 190 String cmd = readLine(in); 193 while (skipLine(in) > 0){ 198 doReply(in, out, cmd); 205 in.close(); 210 private String readLine(InputStream in) throws IOException { 213 while ((c = in.read()) >= 0 && c != 0x0d [all...] |
/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 87 InputStream in = connection.getInputStream(); local 88 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 105 InputStream in = connection.getInputStream(); local 106 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 126 server.enqueue(new MockResponse().setBody("enqueued in the background")); 131 InputStream in = connection.getInputStream(); local 132 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 133 assertEquals("enqueued in the background", reader.readLine()) 143 InputStream in = connection.getInputStream(); local 160 InputStream in = urlConnection.getInputStream(); local 204 InputStream in = connection.getInputStream(); local 263 InputStream in = connection.getInputStream(); local [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SerializationBenchmark.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 99 ObjectInputStream in = new ObjectInputStream(bais); local 100 in.readObject(); 101 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedReaderTest.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 61 private void assertLines(String in, String... lines) throws IOException { 63 = new BufferedReader(new Support_StringReader(in)); 75 assertTrue("Used in tests", true); 83 assertTrue("Used in tests", true); 131 Reader in = new BufferedReader(new Support_StringReader(new String( local 134 in.skip(6); 135 in.mark(14); 136 in.read(new char[14], 0, 14) 205 Reader in = new BufferedReader(new Support_StringReader(new String( local [all...] |
FileInputStreamTest.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 246 FileInputStream in = new FileInputStream(tmpFile); local 248 in.read(null, 0, 0); 253 in.close();
|
/bionic/tests/ |
fcntl_test.cpp | 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 161 int in = open("/proc/cpuinfo", O_RDONLY); local 162 ASSERT_NE(in, -1); 166 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); 174 close(in); 211 int in = open("/proc/version", O_RDONLY); local 212 ASSERT_NE(in, -1); 215 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE);
|
/bootable/recovery/mtdutils/ |
flash_image.c | 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 78 MtdReadContext *in = mtd_read_partition(partition); local 79 if (in == NULL) { 84 int checklen = mtd_read_data(in, check, sizeof(check)); 92 mtd_read_close(in);
|
/build/tools/ |
java-layers.py | 12 sys.stderr.write("the rules defined in the DEPENDENCY_FILE.\n") 22 sys.stderr.write(" to any classes present in the second package, or any\n") 30 sys.stderr.write(" listed in the dependency file.\n") 49 for d in self.transitive: 58 if dep in visited: 61 for v in visited: 67 for upper in dep.uppers: 69 if upper in deps: 72 self.parts = [(dep.lower.split('.'),dep) for dep in deps.itervalues()] 74 for dep in deps.itervalues() 231 sys.stderr.write("%s: Illegal import in package '%s' of '%s'\\n" namespace [all...] |
/build/tools/rgb2565/ |
to565.c | 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 unsigned char in[3]; local 34 while(read(0, in, 3) == 3) { 35 out = to565(in[0],in[1],in[2]); 43 unsigned char in[3]; local 55 while(read(0, in, 3) == 3) { 56 int r = in[0] + error[i*3+0] 103 unsigned char in[3]; local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
Utils.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 110 InputStream in = new FileInputStream(fd.getFileDescriptor()); local 112 while (in.read(buffer) > 0) ;
|
/cts/tests/tests/rscpp/librscpptest/ |
rs_jni_foreach.cpp | 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 52 sp<Allocation> in = Allocation::createTyped(mRS, t); local 55 fe_all->forEach_test_i8(in, out); 60 in = Allocation::createTyped(mRS, t); 63 fe_all->forEach_test_i8_2(in, out); 68 in = Allocation::createTyped(mRS, t); 71 fe_all->forEach_test_i8_3(in, out); 76 in = Allocation::createTyped(mRS, t); 79 fe_all->forEach_test_i8_4(in, out) [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
DexJarMaker.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 66 // Ignoring deliberately in order to keep the original exception clear. 84 BufferedInputStream in = new BufferedInputStream(new FileInputStream(source)); local 90 while ((curr = in.read()) != -1) {
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
TextSwitcher1.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 51 Animation in = AnimationUtils.loadAnimation(this, local 55 mSwitcher.setInAnimation(in);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
SecureClassLoader2Test.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 65 InputStream in = jar.getInputStream(jar.getEntry("packA/SecurityTest.class")); local 66 byte[] bytes = InputStreamHelper.readFullyAndClose(in);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
BerInputStreamTest.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 82 BerInputStream in = new BerInputStream( local 87 assertEquals(expected, in.getLength()); 116 encoding[1] = (byte) 0x82; // length is encoded in two bytes 120 BerInputStream in = new BerInputStream(new ByteArrayInputStream( local 122 assertEquals(encoding.length, in.getBuffer().length); 140 BerInputStream in = new BerInputStream(encoded, 0, 3); local 141 assertEquals("boolean", 1, in.getLength()); 144 in = new BerInputStream(encoded, 3, 4) 178 ByteArrayInputStream in = new ByteArrayInputStream(encoding) { local [all...] |
BitStringTest.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 64 DerInputStream in = new DerInputStream( local 68 BitString decoded = (BitString) asn1.decode(in); 79 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local 83 BitString decoded = (BitString) asn1.decode(in); 111 // wrong content: unused bits in final octet are not 0 118 DerInputStream in = new DerInputStream(invalid[i]); local 119 ASN1BitString.getInstance().decode(in); 159 DerInputStream in = new DerInputStream local 201 DerInputStream in = new DerInputStream( local [all...] |
/external/boringssl/src/crypto/bytestring/ |
ber.c | 5 * copyright notice and this permission notice appear in all copies. 9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 12 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 27 /* cbs_find_ber walks an ASN.1 structure in |orig_in| and sets |*ber_found| 29 * |in| is not changed. It returns one on success (i.e. |*ber_found| was set) 32 CBS in; local 38 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); 41 while (CBS_len(&in) > 0) { 46 if (!CBS_get_any_ber_asn1_element(&in, &contents, &tag, &header_len)) [all...] |
/external/boringssl/src/crypto/cipher/ |
cipher_test.cc | 8 * Redistribution and use in source and binary forms, with or without 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in 23 * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 31 * nor may "OpenSSL" appear in their names without prior written 37 * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 42 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 119 const std::vector<uint8_t> *in, *out local [all...] |
/external/boringssl/src/crypto/ |
mem.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 43 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 138 const uint8_t *in = ptr; local [all...] |
/external/boringssl/src/decrepit/blowfish/ |
blowfish.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 43 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 441 uint32_t *p, ri, in[2]; local [all...] |