/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.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 160 InputStream in = new FileInputStream(file); local 164 while ((c = in.read(buffer)) != -1) {
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
JdwpSecurityHostTest.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 177 // We need a dalvik-cache in /data/local/tmp so we have read-write access. 178 // Note: this will cause the runtime to optimize the DEX file (contained in 205 private InputStream in; field in class:JdwpSecurityHostTest.AdbJdwpOutputReader 210 // in the background. Since we know the tested app is already running, we only need to 215 in = adbProcess.getInputStream(); 217 // Read the output for 5s in a separate thread before stopping the command. 233 br = new BufferedReader(new InputStreamReader(in));
|
/cts/libs/vogar-expect/src/vogar/commands/ |
Command.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 121 BufferedReader in = new BufferedReader( local 125 while ((outputLine = in.readLine()) != null) {
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.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 98 private byte[] inputStreamToBytes(InputStream in) throws IOException { 102 while ((len = in.read(buffer)) >= 0) { 105 in.close();
|
/dalvik/dx/src/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...] |
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
ViewDebug$ViewServer.class | |
/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,
|
/device/google/dragon/audio/hal/ |
iniparser.c | 96 @brief Get number of sections in a dictionary 98 @return int Number of sections found in dictionary 100 This function returns the number of sections found in a dictionary. 101 The test to recognize sections is done on the string stored in the 106 This clearly fails in the case a section name contains a colon, but 109 This function returns -1 in case of error. 131 @brief Get name for section n in a dictionary. 136 This function locates the n-th section in a dictionary and returns 140 This function returns NULL in case of error. 216 /* No section in file: dump all keys as they are * 631 FILE * in ; local [all...] |
/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/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 544 const uint8_t *in = in_block->bytes; local 640 const uint8_t *in = input->bytes; local [all...] |
/external/boringssl/src/crypto/ec/ |
ec_asn1.c | 5 * Redistribution and use in source and binary forms, with or without 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in 20 * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 28 * nor may "OpenSSL" appear in their names without prior written 34 * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 39 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 46 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 242 const uint8_t *in = *inp local 290 const uint8_t *in = *inp; local [all...] |
/external/boringssl/src/crypto/evp/ |
evp_extra_test.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 33 // kExampleRSAKeyDER is an RSA private key in ASN.1, DER format. Of course, you 34 // should never use this key anywhere but in an example. 316 // kExampleRSAKeyPKCS8 is kExampleRSAKeyDER encoded in a PKCS #8 406 // then concatenated with an ECPrivateKey wrapped in a PrivateKeyInfo, 581 CBS in = *in_; local 640 CBS in, tbs_cert, signature; local 662 CBS in, tbs_cert, signature; 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 45 // num_calls is the number of function calls done in the time period. 47 // us is the number of microseconds that elapsed in the time period. 51 printf("Did %u %s operations in %uus (%.1f ops/sec)\n", num_calls, 57 printf("Did %u %s operations in %uus (%.1f ops/sec): %.1f MB/s\n", 169 static uint8_t *align(uint8_t *in, unsigned alignment) { 171 (reinterpret_cast<uintptr_t>(in) + alignment) 193 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 | 109 * return the encoding format we produce in getEncoded(). 194 ObjectInputStream in) 197 in.defaultReadObject(); 199 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 | 239 * return the encoding format we produce in getEncoded(). 416 ObjectInputStream in) 419 in.defaultReadObject(); 421 byte[] enc = (byte[])in.readObject();
|
BCECPublicKey.java | 396 ObjectInputStream in) 399 in.defaultReadObject(); 401 byte[] enc = (byte[])in.readObject();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseWrapCipher.java | 366 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); local 368 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); 376 throw new InvalidKeyException("algorithm " + in.getPrivateKeyAlgorithm().getAlgorithm() + " not supported");
|