/external/qemu/distrib/libsparse/src/ |
simg2simg.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 44 int in; local 61 in = open(argv[1], O_RDONLY | O_BINARY); 62 if (in < 0) { 67 s = sparse_file_import(in, true, false); 112 close(in);
|
/external/smack/src/org/jivesoftware/smack/util/collections/ |
ReferenceMap.java | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 37 * in which case this class will behave like a 44 * It differs in that keys and values in this class are compared using <code>equals()</code>. 65 * @since Commons Collections 3.0 (previously in main package v2.1) 154 * Read the map in using a custom routine. 156 private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { 157 in.defaultReadObject(); 158 doReadObject(in); [all...] |
/external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/ |
Socks5Utils.java | 3 * you may not use this file except in compliance with the License.
8 * Unless required by applicable law or agreed to in writing, software
30 * Returns a SHA-1 digest of the given parameters as specified in <a
50 * @param in the DataInputStream to read the message from
55 public static byte[] receiveSocks5Message(DataInputStream in) throws IOException, XMPPException {
57 in.readFully(header, 0, 5);
68 in.readFully(response, header.length, addressLength + 2);
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/ |
isacfix_unittest.cc | 5 * that can be found in the LICENSE file in the root of the source 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 74 int16_t in[kSamples]; local 87 in[i] = WEBRTC_SPL_WORD32_MAX / (i + 1); 90 WebRtcIsacfix_HighpassFilterFixDec32(in, kSamples, 94 EXPECT_EQ(out[i], in[i]);
|
/external/wpa_supplicant_8/src/utils/ |
base64.c | 27 * not included in out_len. 33 const unsigned char *end, *in; local 47 in = src; 50 while (end - in >= 3) { 51 *pos++ = base64_table[in[0] >> 2]; 52 *pos++ = base64_table[((in[0] & 0x03) << 4) | (in[1] >> 4)]; 53 *pos++ = base64_table[((in[1] & 0x0f) << 2) | (in[2] >> 6)]; 54 *pos++ = base64_table[in[2] & 0x3f] [all...] |
/external/zlib/src/examples/ |
zpipe.c | 10 1.3 6 Apr 2005 Remove incorrect assertion in inf() 41 unsigned char in[CHUNK]; local 54 strm.avail_in = fread(in, 1, CHUNK, source); 60 strm.next_in = in; 63 compression if all of source has been read in */ 77 /* done when last data in file processed */ 97 unsigned char in[CHUNK]; local 112 strm.avail_in = fread(in, 1, CHUNK, source); 119 strm.next_in = in;
|
/frameworks/base/core/java/android/ddm/ |
DdmHandleExit.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 39 * Register for the messages we're interested in. 67 ByteBuffer in = wrapChunk(request); local 69 int statusCode = in.getInt();
|
/frameworks/base/media/jni/ |
android_media_ResampleInputStream.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 89 short in[BUF_SIZE]; local 90 env->GetByteArrayRegion(jIn, jInOffset, (jNpoints * 2 + nFir21 - 1) * 2, (jbyte*)in); 97 const short* inp = &in[i * 2];
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
ReceiverActivity.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 Intent in = getIntent(); local 41 body = in.getByteArrayExtra("data"); 42 header = in.getByteArrayExtra("header");
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Boolean.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 62 public Object decode(BerInputStream in) throws IOException { 63 in.readBoolean(); 65 if (in.isVerify) { 68 return getDecodedObject(in); 74 * @param in - BER input stream 77 @Override public Object getDecodedObject(BerInputStream in) throws IOException { 78 if (in.buffer[in.contentOffset] == 0) [all...] |
ASN1Enumerated.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 63 public Object decode(BerInputStream in) throws IOException { 64 in.readEnumerated(); 66 if (in.isVerify) { 69 return getDecodedObject(in); 77 public Object getDecodedObject(BerInputStream in) throws IOException { 78 return Arrays.copyOfRange(in.buffer, in.contentOffset, in.contentOffset + in.length) [all...] |
ASN1OctetString.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 @Override public Object decode(BerInputStream in) throws IOException { 62 in.readOctetString(); 64 if (in.isVerify) { 67 return getDecodedObject(in); 75 @Override public Object getDecodedObject(BerInputStream in) throws IOException { 76 return Arrays.copyOfRange(in.buffer, in.contentOffset, in.contentOffset + in.length) [all...] |
ASN1Sequence.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 39 public Object decode(BerInputStream in) throws IOException { 40 in.readSequence(this); 42 if (in.isVerify) { 45 return getDecodedObject(in);
|
ASN1SequenceOf.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 39 public Object decode(BerInputStream in) throws IOException { 40 in.readSequenceOf(this); 42 if (in.isVerify) { 45 return getDecodedObject(in);
|
ASN1Set.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 39 public Object decode(BerInputStream in) throws IOException { 40 in.readSet(this); 42 if(in.isVerify){ 45 return getDecodedObject(in);
|
ASN1SetOf.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 39 public Object decode(BerInputStream in) throws IOException { 40 in.readSetOf(this); 42 if (in.isVerify) { 45 return getDecodedObject(in);
|
/ndk/sources/cxx-stl/llvm-libc++/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...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
CopyUtils.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 53 * let you specify the buffer size because in modern VMs the impact on speed 58 * to the <code>copy</code> methods in <code>Buffered*</code> streams. For 61 * copy( new BufferedInputStream( in ), new BufferedOutputStream( out ) ); 66 * would usually suggest wrapping in a BufferedInputStream. The 109 * @deprecated Use IOUtils. Will be removed in 2.0. 111 * Null handling behaviour changed in IOUtils (null data does not 123 * Instances should NOT be constructed in standard programming. 135 * @throws IOException In case of an I/O proble 156 ByteArrayInputStream in = new ByteArrayInputStream(input); local 176 ByteArrayInputStream in = new ByteArrayInputStream(input); local 248 InputStreamReader in = new InputStreamReader(input); local 267 InputStreamReader in = new InputStreamReader(input, encoding); local 310 StringReader in = new StringReader(input); local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
AutoCloseInputStream.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 26 * closed, so any allocated in-memory buffers can be freed even if the 42 * @param in underlying input stream 44 public AutoCloseInputStream(InputStream in) { 45 super(in); 62 in.close(); 63 in = new ClosedInputStream(); 71 * @return next byte in the stream, or -1 if no more bytes are available 75 int n = in.read() [all...] |
/system/core/libsparse/ |
img2simg.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 48 int in; local 70 in = STDIN_FILENO; 72 in = open(argv[1], O_RDONLY | O_BINARY); 73 if (in < 0) { 89 len = lseek64(in, 0, SEEK_END); 90 lseek64(in, 0, SEEK_SET); 99 ret = sparse_file_read(s, in, false, false); 111 close(in); [all...] |
simg2simg.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 44 int in; local 61 in = open(argv[1], O_RDONLY | O_BINARY); 62 if (in < 0) { 67 s = sparse_file_import(in, true, false); 112 close(in);
|
/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...] |