/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
DexMergeTest.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 128 * Merging dex files uses pessimistic sizes that naturally leave gaps in the 186 private void copy(InputStream in, OutputStream out) throws IOException { 189 while ((count = in.read(buffer)) != -1) { 192 in.close();
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
ToyVpnService.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 // In this demo, all we need to know is the server address. 158 // Packets to be sent are queued in this input stream. 159 FileInputStream in = new FileInputStream(mInterface.getFileDescriptor()); local 174 // Assume that we did not make any progress in this iteration. 178 int length = in.read(packet.array()); 219 // since everything is operated in non-blocking mode. 258 // and exchange session keys for encryption. To keep things simple in 259 // this demo, we just send the shared secret in plaintext and wai [all...] |
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/development/tools/yuv420sp2rgb/ |
yuv420sp2rgb.c | 54 int size, /* buffer size in bytes */ 199 void *in, *out; local 240 in = mmap(0, width * height * 3 / 2, PROT_READ, MAP_PRIVATE, ifd, 0); 241 FAILIF(in == MAP_FAILED, "could not mmap input file: %s (%d)\n", 260 color_convert_common(in, in + width * height,
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
TestSuiteFactory.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 53 InputStream in = loader.getResourceAsStream(TEMPLATE_FILE); typedefs 54 if ( in == null ) { 57 Reader rd = new InputStreamReader(in); 63 * suite file in the same directory of the grammar file [all...] |
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/serialization/ |
SerializationTest.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 49 * returns array of objects to be de/serialized in tests, and the second 57 * should be set to value "serial.reference". In this mode, no testing 61 * The location of golden files (in both modes) is controlled via 121 * @return array of objects to be de/serialized in tests. 385 * The <code>comparator</code> is searched in the following order: <br>- 388 * has class in its classes hierarchy that overrides <code>equals(Object)</code> 499 * with corresponding object in provided array (i.e. <code>objects[N]</code>) 501 * in object's array. 603 InputStream in = SerializationTest.class.getResourceAsStream(path.toString()); local 661 ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); local [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_Configuration.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 105 InputStream in = null; local 114 in = new FileInputStream(iniName); 121 if (in == null) { 125 in = cl.getResourceAsStream(iniName); 130 if (in != null) { 131 load(in, props); 221 static void load(InputStream in, Hashtable<String, String> result) throws IOException { 227 while ((nextChar = in.read()) != -1) [all...] |
/external/bison/src/ |
output.c | 13 This program is distributed in the hope that it will be useful, 93 /* Build `NAME_min' and `NAME_max' in the obstack. */ \ 233 /* Index of rule R in RHS. */ 242 /* Separator in RHS. */ 465 YYPACT) so that in states with unresolved conflicts, the default 466 reduction is not used in the conflicted entries, so that there is 470 parser, so we could avoid accidents by not writing them out in 505 FILE *in; 548 /* Some future version of GNU M4 (most likely 1.6) may treat the -dV in a 603 in = fdopen (filter_fd[0], "r") 504 FILE *in; local [all...] |
/external/boringssl/src/crypto/conf/ |
conf.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 714 BIO *in = BIO_new_file(filename, "rb"); local [all...] |
/external/boringssl/src/crypto/des/ |
des.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 300 const uint8_t *in; local 552 const uint8_t *in = in_block->bytes; local 648 const uint8_t *in = input->bytes; local [all...] |
/external/boringssl/src/ssl/ |
ssl_cert.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 585 BIO *in; local 655 BIO *in; local [all...] |
/external/boringssl/src/tool/ |
speed.cc | 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 51 // num_calls is the number of function calls done in the time period. 53 // us is the number of microseconds that elapsed in the time period. 57 printf("Did %u %s operations in %uus (%.1f ops/sec)\n", num_calls, 63 printf("Did %u %s operations in %uus (%.1f ops/sec): %.1f MB/s\n", 175 static uint8_t *align(uint8_t *in, unsigned alignment) { 177 (reinterpret_cast<uintptr_t>(in) + alignment) 199 uint8_t *const in = align(in_storage.get(), kAlignment); local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
BCDHPrivateKey.java | 108 * return the encoding format we produce in getEncoded(). 193 ObjectInputStream in) 196 in.defaultReadObject(); 198 this.dhSpec = new DHParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), in.readInt());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
BCECPrivateKey.java | 268 * return the encoding format we produce in getEncoded(). 445 ObjectInputStream in) 448 in.defaultReadObject(); 450 byte[] enc = (byte[])in.readObject();
|
BCECPublicKey.java | 434 ObjectInputStream in) 437 in.defaultReadObject(); 439 byte[] enc = (byte[])in.readObject();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseWrapCipher.java | 367 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); local 369 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); 377 throw new InvalidKeyException("algorithm " + in.getPrivateKeyAlgorithm().getAlgorithm() + " not supported");
|
/external/deqp/modules/gles3/functional/ |
es3fShaderPackingFunctionTests.cpp | 8 * you may not use this file except in compliance with the License. 13 * Unless required by applicable law or agreed to in writing, software 173 // Random values, mostly in range. 194 const void* in = &inputs[0]; local 198 m_executor->execute((int)inputs.size(), &in, &out); 222 m_testCtx.getLog() << TestLog::Message << "ERROR: Mismatch in value " << valNdx 282 const void* in = &inputs[0]; local 286 m_executor->execute((int)inputs.size(), &in, &out); 311 m_testCtx.getLog() << TestLog::Message << "ERROR: Mismatch in value " << valNdx << ",\n" 364 // Random values, mostly in range 385 const void* in = &inputs[0]; local 473 const void* in = &inputs[0]; local 581 const void* in = &inputs[0]; local 684 const void* in = &inputs[0]; local [all...] |
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
DecodedInstruction.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 33 * match the names given in the Dalvik instruction format 35 * arbitrarily alphabetically from A. In this class, non-register 55 * though it is stored in an {@code int}. 69 public static DecodedInstruction decode(CodeInput in) throws EOFException { 70 int opcodeUnit = in.read(); 74 return format.decode(opcodeUnit, in); 85 ShortArrayCodeInput in = new ShortArrayCodeInput(encodedInstructions); local 88 while (in.hasMore()) [all...] |
/external/dnsmasq/src/ |
util.c | 8 This program is distributed in the hope that it will be useful, 49 static uint32 in[12]; variable 58 !read_write(fd, (unsigned char *)&in, sizeof(in), 1)) 72 for (i = 0;i < 12;++i) t[i] = in[i] ^ seed[12 + i]; 91 if (!++in[0]) if (!++in[1]) if (!++in[2]) ++in[3]; 101 static int check_name(char *in) [all...] |
/external/drm_hwcomposer/ |
seperate_rects.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 74 void seperate_rects(const std::vector<Rect<TNum> > &in, 78 // The sweep stops at each vertical edge of each input rectangle in sorted 79 // order of x-coordinate. At each stop, the sweep line is examined in order of 83 // that set is recorded in along with the the y-coordinate it happened at in a 88 if (in.size() > IdSet<TNum>::max_elements) { 109 for (TId i = 0; i < in.size(); i++) { 110 const Rect<TNum> &rect = in[i] 321 std::vector<Rect> in; local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
CompileErrorCheck.java | 16 * information in monitor.properties. 120 BufferedReader in = null; 124 in = new BufferedReader(new FileReader(file)); 130 while ((aLine = in.readLine()) != null) { 145 if (in != null) { 147 in.close(); 190 //send email notification that there are compile errors in the build 206 mailer.sendMultiPartMessage("Compile errors in build", "Compile errors in build. See attached compile logs.", logFiles); 211 System.out.println("Compile errors detected in "+nameWithPlugin) [all...] |
/external/eigen/unsupported/Eigen/src/Eigenvalues/ |
ArpackSelfAdjointEigenSolver.h | 16 // Eigen is distributed in the hope that it will be useful, but WITHOUT ANY 66 * The default constructor is for cases in which the user intends to 81 * \param[in] A Self-adjoint matrix whose eigenvalues / eigenvectors will 84 * \param[in] B Self-adjoint matrix for the generalized eigenvalue problem. 85 * \param[in] nbrEigenvalues The number of eigenvalues / eigenvectors to compute. 87 * \param[in] eigs_sigma String containing either "LM", "SM", "LA", or "SA", with 90 * value can contain floating point value in string form, in which case the 92 * \param[in] options Can be #ComputeEigenvectors (default) or #EigenvaluesOnly. 93 * \param[in] tol What tolerance to find the eigenvalues to. Default is 0, whic 515 Scalar *in = workd + ipntr[0] - 1; local 566 Scalar *in = workd + ipntr[0] - 1; local [all...] |
/external/f2fs-tools/lib/ |
libf2fs.c | 220 static void TEA_transform(unsigned int buf[4], unsigned int const in[]) 224 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; 278 __u32 in[8], buf[4]; local 293 str2hashbuf(p, len, in, 4); 294 TEA_transform(buf, in); 407 * the file system. In this case, we should not format. 415 MSG(0, "\tError: In use by the system!\n") [all...] |