/external/guava/guava/src/com/google/common/io/ |
LimitInputStream.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 * @param in the input stream to be wrapped 44 public LimitInputStream(InputStream in, long limit) { 45 super(in); 46 Preconditions.checkNotNull(in); 52 return (int) Math.min(in.available(), left); 56 in.mark(readlimit); 66 int result = in.read(); 79 int result = in.read(b, off, len) [all...] |
/external/javassist/src/main/javassist/tools/ |
Dump.java | 6 * 1.1 (the "License"); you may not use this file except in compliance with 23 * Dump is a tool for viewing the class definition in the given 47 DataInputStream in = new DataInputStream( local 49 ClassFile w = new ClassFile(in);
|
/external/libcxx/src/ |
hash.cpp | 23 // handle all next_prime(i) for i in [1, 210), special case 0 138 // some potential prime numbers are not prime. In an ideal world, all potential 183 // If n is small enough, search in small_primes 189 // Start searching list of potential primes: L * k0 + indices[in] 194 size_t in = static_cast<size_t>(std::lower_bound(indices, indices + M, n - k0 * L) local 196 n = L * k0 + indices[in]; 201 // 2. The i > sqrt(n), in which case n is prime. 561 if (++in == M) 564 in = 0; 566 n = L * k0 + indices[in]; [all...] |
/external/libopus/tests/ |
test_opus_padding.c | 4 Redistribution and use in source and binary forms, with or without 11 - Redistributions in binary form must reproduce the above copyright 12 notice, this list of conditions and the following disclaimer in the 18 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 23 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 24 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 /* Check for overflow in reading the padding length. 48 unsigned char *in = malloc(PACKETSIZE); local 52 if (!in || !out) { 56 in[0] = 0xff [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
pager.c | 15 * Work around bug in "less" by not starting it until we 18 fd_set in; local 20 FD_ZERO(&in); 21 FD_SET(0, &in); 22 select(1, &in, NULL, &in, NULL); 72 pager_process.in = -1; 79 dup2(pager_process.in, 1); 81 dup2(pager_process.in, 2); 82 close(pager_process.in); [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv20_state_frag.c | 7 * "Software"), to deal in the Software without restriction, including 14 * next paragraph) shall be included in all copies or substantial 20 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 60 uint64_t in; local 63 nv10_get_final_combiner(ctx, &in, &n); 66 PUSH_DATA (push, in); 67 PUSH_DATA (push, in >> 32) [all...] |
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
ServerRunner.java | 25 System.in.read();
|
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/samples/echo/ |
EchoSocketSample.java | 14 System.in.read();
|
/external/oauth/core/src/main/java/net/oauth/http/ |
HttpMessageDecoder.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 65 private HttpMessageDecoder(HttpResponseMessage in, String encoding) 67 super(in.method, in.url); 68 this.headers.addAll(in.headers); 71 InputStream body = in.getBody(); 82 this.in = in; 85 private final HttpResponseMessage in; field in class:HttpMessageDecoder [all...] |
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
SynchronousHttpClient.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 static long readAllAndClose(InputStream in) throws IOException { 47 for (int count; (count = in.read(buffer)) != -1; ) { 50 in.close();
|
/external/openssl/apps/ |
gendsa.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 16 * Copyright remains Eric Young's, and as such any Copyright notices in 18 * If this package is used in a product, Eric Young should be given attribution 20 * This can be in the form of a textual message at program startup or 21 * in documentation (online or textual) provided with the package. 23 * Redistribution and use in source and binary forms, with or without 28 * 2. Redistributions in binary form must reproduce the above copyright 29 * notice, this list of conditions and the following disclaimer in the 44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 86 BIO *out=NULL,*in=NULL; local [all...] |
nseq.c | 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 73 BIO *in = NULL, *out = NULL local [all...] |
pkeyparam.c | 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 72 BIO *in = NULL, *out = NULL local [all...] |
/external/openssl/crypto/asn1/ |
evp_asn1.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 16 * Copyright remains Eric Young's, and as such any Copyright notices in 18 * If this package is used in a product, Eric Young should be given attribution 20 * This can be in the form of a textual message at program startup or 21 * in documentation (online or textual) provided with the package. 23 * Redistribution and use in source and binary forms, with or without 28 * 2. Redistributions in binary form must reproduce the above copyright 29 * notice, this list of conditions and the following disclaimer in the 44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 105 ASN1_INTEGER in; local [all...] |
/external/openssl/crypto/des/ |
ecb_enc.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 16 * Copyright remains Eric Young's, and as such any Copyright notices in 18 * If this package is used in a product, Eric Young should be given attribution 20 * This can be in the form of a textual message at program startup or 21 * in documentation (online or textual) provided with the package. 23 * Redistribution and use in source and binary forms, with or without 28 * 2. Redistributions in binary form must reproduce the above copyright 29 * notice, this list of conditions and the following disclaimer in the 44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 113 const unsigned char *in = &(*input)[0]; local [all...] |
pcbc_enc.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 16 * Copyright remains Eric Young's, and as such any Copyright notices in 18 * If this package is used in a product, Eric Young should be given attribution 20 * This can be in the form of a textual message at program startup or 21 * in documentation (online or textual) provided with the package. 23 * Redistribution and use in source and binary forms, with or without 28 * 2. Redistributions in binary form must reproduce the above copyright 29 * notice, this list of conditions and the following disclaimer in the 44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 67 const unsigned char *in; local [all...] |
/external/openssl/crypto/pkcs12/ |
p12_decr.c | 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 67 /* Encrypt/Decrypt a buffer based on password and algor, result in 162 unsigned char *in = NULL; local [all...] |
/external/openssl/crypto/rc4/ |
rc4.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 16 * Copyright remains Eric Young's, and as such any Copyright notices in 18 * If this package is used in a product, Eric Young should be given attribution 20 * This can be in the form of a textual message at program startup or 21 * in documentation (online or textual) provided with the package. 23 * Redistribution and use in source and binary forms, with or without 28 * 2. Redistributions in binary form must reproduce the above copyright 29 * notice, this list of conditions and the following disclaimer in the 44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 76 FILE *in=NULL,*out=NULL; local [all...] |
/external/openssl/crypto/x509/ |
by_file.c | 11 * apply to all code found in this distribution, be it the RC4, RSA, 16 * Copyright remains Eric Young's, and as such any Copyright notices in 18 * If this package is used in a product, Eric Young should be given attribution 20 * This can be in the form of a textual message at program startup or 21 * in documentation (online or textual) provided with the package. 23 * Redistribution and use in source and binary forms, with or without 28 * 2. Redistributions in binary form must reproduce the above copyright 29 * notice, this list of conditions and the following disclaimer in the 44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 133 BIO *in=NULL; local 200 BIO *in=NULL; local 268 BIO *in; local [all...] |
/cts/common/host-side/java-scanner/src/com/android/compatibility/common/scanner/ |
JavaScanner.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 final BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); local 79 while ((line = in.readLine()) != null) { 87 if (in != null) { 88 in.close(); 129 // efficient than doing a check in each iteration of the loop.
|
/cts/common/host-side/xml-plan-generator/tests/src/com/android/compatibility/common/xmlgenerator/ |
XmlPlanGeneratorTest.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 final Scanner in = new Scanner(p.getInputStream()); local 111 while (in.hasNextLine()) { 112 output.append(in.nextLine()); 123 final ByteArrayInputStream in = new ByteArrayInputStream(input.getBytes()); local 124 final HashMap<String, TestSuite> suites = TestListParser.parse(in);
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
SampleHostTest.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 52 * The class name of the main activity in the APK. 129 Scanner in = new Scanner(logs); local 130 while (in.hasNextLine()) { 131 String line = in.nextLine(); 136 in.close();
|
/cts/tests/tests/security/src/android/security/cts/ |
HwRngTest.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 * Asserts that the {@code /dev/hw_random} device is configured in an acceptable way or is not 80 // In short, assert that: 82 // 2. a driver is selected in the hrwng framework, and 98 // 2. Assert that a driver is selected in the hrwng framework. 119 InputStream in = null; local 121 in = new FileInputStream(file); 122 return new String(readyFully(in), "US-ASCII"); 124 closeSilently(in); 144 BufferedReader in = null; local [all...] |
/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();
|