/hardware/libhardware/modules/audio/ |
audio_hw.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 380 struct stub_stream_in *in; local 383 in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in)); 384 if (!in) 387 in->stream.common.get_sample_rate = in_get_sample_rate; 388 in->stream.common.set_sample_rate = in_set_sample_rate; 389 in->stream.common.get_buffer_size = in_get_buffer_size; 390 in->stream.common.get_channels = in_get_channels; 391 in->stream.common.get_format = in_get_format [all...] |
/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) {
|
/hardware/qcom/audio/msm8909/hal/audio_extn/ |
ssr.c | 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 287 ssrmod.real_coeffs, // Coeffs hardcoded in header 288 ssrmod.imag_coeffs, // Coeffs hardcoded in header 381 int32_t audio_extn_ssr_init(struct stream_in *in) 388 in->config.channels = SSR_CHANNEL_INPUT_NUM; 389 in->config.period_size = SSR_PERIOD_SIZE; 390 in->config.period_count = SSR_PERIOD_COUNT; 471 struct stream_in *in = (struct stream_in *)stream; local 472 struct audio_device *adev = in->dev [all...] |
/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 30 * types from an underlying input stream in a machine-independent 36 * methods in this class. 49 * @param in the specified input stream 51 public DataInputStream(InputStream in) { 52 super(in); 78 * be the number of bytes actually read; these bytes will be stored in 96 * @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...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
GZIPInputStream.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 35 * This class implements a stream filter for reading compressed data in 67 * @param in the input stream 75 public GZIPInputStream(InputStream in, int size) throws IOException { 76 super(in, new Inflater(true), size); 77 readHeader(in); 82 * @param in the input stream 88 public GZIPInputStream(InputStream in) throws IOException 159 CheckedInputStream in = new CheckedInputStream(this_in, crc); local 210 InputStream in = this.in; local [all...] |
/libcore/ojluni/src/main/java/sun/net/www/http/ |
ChunkedInputStream.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 49 private InputStream in; field in class:ChunkedInputStream 64 * The size, in bytes, of the chunk that is currently being read. 65 * This size is only valid if the current position in the underlying 72 * chunk. This value is always in the range <code>0</code> through to 84 * The current position in the buffer. It contains the index 90 * The index one greater than the index of the last valid byte in the 91 * buffer. This value is always in the range <code>0</code> throug [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
ObjectIdentifier.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 38 * string name used instead of (or in addition to) the numerical id. 44 * meaning to identifiers below the 1.3.6.1.4.1.42.2.17 node in the 65 * IMPORTANT NOTES FOR CODE CHANGES (bug 4811968) IN JDK 1.7.0 77 * Below are all 4 cases in a serialization/deserialization process: 90 * Therfore, for the first 3 cases, exact compatibility is preserved. In 91 * the 4th case, non-huge OID is still supportable in old versions, while 228 * The encoding of the ID in the stream uses "DER", a BER/1 subset 270 DerInputStream in = new DerInputStream(buf); local [all...] |