/frameworks/compile/libbcc/bcinfo/tools/ |
main.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 269 FILE *in = fopen(inFile.c_str(), "r"); local 270 if (!in) { 278 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); 283 fclose(in);
|
/frameworks/native/libs/binder/ |
Binder.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 64 status_t IBinder::shellCommand(const sp<IBinder>& target, int in, int out, int err, 69 send.writeFileDescriptor(in); 169 e = expected; // Filled in by CAS 227 int in = data.readFileDescriptor(); local 239 //return shellCommand(in, out, err, args, resultReceiver);
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsic3DLUT.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 55 extern "C" void rsdIntrinsic3DLUT_K(void *dst, void const *in, size_t count, 67 uchar4 *in = (uchar4 *)info->inPtr[0]; local 90 rsdIntrinsic3DLUT_K(out, in, len, 95 in += len; 101 int4 baseCoord = convert_int4(*in) * coordMul; 136 ret.w = in->w; 140 ALOGE("in %08x %08x %08x %08x", in->r, in->g, in->b, in->a) [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
BasicNetwork.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 71 // If a pool isn't passed in, then build a small default pool that will give us a lot of 78 * @param pool a buffer pool that improves GC performance in copy operations 186 * Attempts to prepare the request for a retry. If there are no more attempts remaining in the 232 InputStream in = entity.getContent(); local 233 if (in == null) { 238 while ((count = in.read(buffer)) != -1) { 247 // This can happen if there was an exception above that left the entity in
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_resize.c | 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. 467 const uint8_t *const in = (s == 0 ? input : out); local 473 down2_symodd(in, filteredlength, out); 475 down2_symeven(in, filteredlength, out);
|
/hardware/libhardware_legacy/audio/ |
AudioHardwareGeneric.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 121 AudioStreamInGeneric* in = new AudioStreamInGeneric(); local 122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); 127 mInput = in; 129 delete in; 134 void AudioHardwareGeneric::closeInputStream(AudioStreamIn* in) { 135 if (mInput && in == mInput) {
|
/libcore/benchmarks/src/benchmarks/regression/ |
URLConnectionBenchmark.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 83 InputStream in = connection.getInputStream(); local 85 while ((count = in.read(readBuffer)) != -1) {
|
/libcore/dex/src/main/java/com/android/dex/ |
TableOfContents.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 116 private void readMap(Dex.Section in) throws IOException { 117 int mapSize = in.readInt(); 120 short type = in.readShort(); 121 in.readShort(); // unused 123 int size = in.readInt(); 124 int offset = in.readInt();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ProcessManagerTest.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 48 // BrokenTest: Sporadic failures in CTS, but not in CoreTestRunner 82 fail("InterruptedException was thrown in " + 132 InputStream in = process.getInputStream(); local 133 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 140 InputStream in = process.getErrorStream(); 142 = new BufferedReader(new InputStreamReader(in)); 177 InputStream in; field in class:ProcessManagerTest 205 InputStream in = process.getInputStream(); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
ASCIICharsetEncoderTest.java | 5 * (the "License"); you may not use this file except in compliance with 10 * Unless required by applicable law or agreed to in writing, software 95 // We consume the entire input buffer because we're in an underflow 96 // state. We can't make a decision on whether the char in this buffer 139 CharBuffer in = CharBuffer.wrap("A"); local 144 encoder.encode(in, out, false); 145 in = CharBuffer.wrap("B"); 146 encoder.encode(in, out, true); 161 CharBuffer in = CharBuffer.wrap("A"); local 163 newEncoder.encode(in, out, false) 169 CharBuffer in = CharBuffer.wrap("A"); local 176 CharBuffer in = CharBuffer.wrap("A"); local 188 CharBuffer in = CharBuffer.wrap("A"); local 195 CharBuffer in = CharBuffer.wrap("A"); local 203 CharBuffer in = CharBuffer.wrap("A"); local 213 CharBuffer in = CharBuffer.wrap("A"); local 227 CharBuffer in = CharBuffer.wrap("A"); local 246 CharBuffer in = CharBuffer.wrap("A"); local 253 CharBuffer in = CharBuffer.wrap("A"); local 262 CharBuffer in = CharBuffer.wrap("A"); local 272 CharBuffer in = CharBuffer.wrap("A"); local 282 CharBuffer in = CharBuffer.wrap("A"); local 314 CharBuffer in = CharBuffer.wrap("A"); local 329 CharBuffer in = CharBuffer.wrap("A"); local 344 CharBuffer in = CharBuffer.wrap("A"); local 353 CharBuffer in = CharBuffer.wrap("A"); local 365 CharBuffer in = CharBuffer.wrap("A"); local 372 CharBuffer in = CharBuffer.wrap("A"); local 379 CharBuffer in = CharBuffer.wrap("A"); local 389 CharBuffer in = CharBuffer.wrap("A"); local 399 CharBuffer in = CharBuffer.wrap("A"); local 413 CharBuffer in = CharBuffer.wrap("A"); local 420 CharBuffer in = CharBuffer.wrap("A"); local 433 CharBuffer in = CharBuffer.wrap("A"); local 442 CharBuffer in = CharBuffer.wrap("A"); local 449 CharBuffer in = CharBuffer.wrap("A"); local [all...] |
CharsetDecoder2Test.java | 5 * (the "License"); you may not use this file except in compliance with 10 * Unless required by applicable law or agreed to in writing, software 61 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 94 ByteBuffer in = ByteBuffer.wrap(new byte[] { 109, 97, 109 }); local 96 decoder2.decode(in); 159 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 173 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 191 ByteBuffer in = ByteBuffer.wrap(new byte[] { 0x45, 0x38, 0x45, 0x45 }); local 192 CoderResult result = decoder.decode(in, out, false); 198 // and then decode "in" [all...] |
/libcore/json/src/main/java/org/json/ |
JSONTokener.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 57 * designed for inheritance and should not be subclassed. In particular, 65 private final String in; field in class:JSONTokener 74 * @param in JSON encoded string. Null is not permitted and will yield a 78 public JSONTokener(String in) { 80 if (in != null && in.startsWith("\ufeff")) { 81 in = in.substring(1) [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
CharsetDecoderICU.java | 45 // These instance variables are always assigned in the methods before being used. This class 130 @Override protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 131 if (!in.hasRemaining()) { 135 data[INPUT_OFFSET] = getArray(in); 154 setPosition(in); 176 private int getArray(ByteBuffer in) { 177 if (in.hasArray()) { 178 input = in.array(); 179 inEnd = in.arrayOffset() + in.limit() [all...] |
CharsetEncoderICU.java | 29 // ICU has different default replacements to the RI in some cases. There are many 32 // the byte corresponding to '?' in ASCII as the replacement byte for charsets where that 61 // These instance variables are always assigned in the methods before being used. This class 159 @Override protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 160 if (!in.hasRemaining()) { 164 data[INPUT_OFFSET] = getArray(in); 184 setPosition(in); 205 private int getArray(CharBuffer in) { 206 if (in.hasArray()) { 207 input = in.array() [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
ExpatReader.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 216 * <p>Applications may register a new or different handler in the 275 InputStream in = input.getByteStream(); local 277 if (in != null) { 279 parse(in, encoding, input.getPublicId(), input.getSystemId()); 281 IoUtils.closeQuietly(in); 292 in = ExpatParser.openUrl(systemId); 294 parse(in, encoding, input.getPublicId(), systemId); 296 IoUtils.closeQuietly(in); [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldFileWriterTest.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 99 InputStreamReader in = null; local 101 in = new InputStreamReader(fis); 105 b = in.read();
|
/libcore/luni/src/test/java/libcore/java/net/ |
URLConnectionTest.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 130 // Android became more strict after M about which characters were allowed in request header 424 // Setting the server workerThreads to 1 ensures the responses are generated in the order 1038 InputStream in = connection.getInputStream(); local 1118 InputStream in = server.getUrl("\/").openConnection().getInputStream(); local [all...] |
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldJarFileTest.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 138 InputStream in = jf.getInputStream(new JarEntry("invalid")); local 139 assertNull("Got stream for non-existent entry", in); 147 // InputStream returned in any way, exception can be thrown in case 160 // InputStream returned in any way, exception can be thrown in case
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherInputStreamTest.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 71 protected MeasuringInputStream(InputStream in) { 72 super(in); 99 MeasuringInputStream in = new MeasuringInputStream(new ByteArrayInputStream(aesCipherText)); local 100 InputStream cin = new CipherInputStream(in, cipher); 102 assertEquals(aesCipherText.length, in.getTotalRead()); 108 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); local 111 discard -= in.read(null, 0, discard); 113 byte[] bytes = readAll(in); 121 InputStream in = new CipherInputStream( local 133 InputStream in = new CipherInputStream( local 145 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); local 153 InputStream in = new CipherInputStream(new ByteArrayInputStream(rc4CipherText), cipher); local 161 InputStream in = new CipherInputStream(new ByteArrayInputStream(aesCipherText), cipher); local [all...] |
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
MethodHandles.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 57 public Lookup in(Class<?> requestedLookupClass) { return null; } method in class:MethodHandles.Lookup
|
/libcore/ojluni/src/main/java/java/io/ |
Console.java | 10 * by Oracle in the LICENSE file that accompanied this code. 12 * This code is distributed in the hope that it will be useful, but WITHOUT 15 * version 2 for more details (a copy is included in the LICENSE file that 39 * underlying platform and also upon the manner in which the virtual 58 * block in multithreaded scenarios. 71 * in this class will cause a {@link NullPointerException} to be thrown. 77 * lifetime of sensitive data in memory. 126 * on the returned object will not read in characters beyond the line 143 * A format string as described in <a 147 * Arguments referenced by the format specifiers in the forma 404 private Reader in; field in class:Console.LineReader [all...] |
DataInputStream.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 33 * types from an underlying input stream in a machine-independent 39 * methods in this class. 52 * @param in the specified input stream 54 public DataInputStream(InputStream in) { 55 super(in); 81 * be the number of bytes actually read; these bytes will be stored in 99 * @see java.io.FilterInputStream#in [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
X509CRLSelector.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 61 * Unless otherwise specified, the methods defined in this class are not 95 * Sets the issuerNames criterion. The issuer distinguished name in the 140 * Sets the issuerNames criterion. The issuer distinguished name in the 152 * or a byte array representing a distinguished name (in 163 * encoded distinguished name, as defined in X.501. The ASN.1 notation for 211 * name in the <code>X509CRL</code> must match at least one of the specified 231 * encoding information in the RFC 2253 String form of some distinguishe 631 DerInputStream in = new DerInputStream(crlNumExtVal); local [all...] |
/libcore/ojluni/src/main/java/java/text/ |
ChoiceFormat.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 48 * It is generally used in a <code>MessageFormat</code> for handling plurals. 58 * in ascending order, the results of formatting will be incorrect. ChoiceFormat 64 * classes in that you create a <code>ChoiceFormat</code> object with a 67 * doesn't require any complex setup for a given locale. In fact, 286 // Single quotes themselves must be escaped in either case. 323 * Set the choices to be used in formatting. 325 * parsed with that format,and should be in ascending sorted order. Whe [all...] |
/libcore/ojluni/src/main/java/java/util/ |
ArrayPrefixHelpers.java | 43 * Managing this relies on ORing some bits in the pendingCount for 80 T in, out; field in class:ArrayPrefixHelpers.CumulateTask 125 T pin = t.in; 126 lt.in = pin; 130 rt.in = (l == org ? lout : 171 if (l == org) { // leftmost; no in 176 sum = t.in; 188 sum = t.in; 232 long in, out; field in class:ArrayPrefixHelpers.LongCumulateTask 277 long pin = t.in; 382 double in, out; field in class:ArrayPrefixHelpers.DoubleCumulateTask 532 int in, out; field in class:ArrayPrefixHelpers.IntCumulateTask [all...] |