/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.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 32 private String decodeString(String in) throws Exception { 33 byte[] out = Base64.decode(in, 0); 38 * Encodes the string 'in' using 'flags'. Asserts that decoding 41 private String encodeToString(String in, int flags) throws Exception { 42 String b64 = Base64.encodeToString(in.getBytes(), flags); 44 assertEquals(in, dec); 48 /** Assert that decoding 'in' throws IllegalArgumentException. */ 49 private void assertBad(String in) throws Exception 412 InputStream in = new Base64InputStream( local [all...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioMixingRule.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 270 Builder addRuleFromParcel(Parcel in) throws IllegalArgumentException { 271 int rule = in.readInt(); 274 int usage = in.readInt(); 279 int preset = in.readInt(); 283 in.readInt(); // assume there was in int value to read as for now they come in pair 284 throw new IllegalArgumentException("Illegal rule value " + rule + " in parcel") [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaTestUtil.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 94 InputStream in = p.getInputStream(); local 96 while ((ch = in.read()) != -1) {
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
DefaultContainerService.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 124 * @return returns status code according to those in 382 InputStream in = null; local 385 in = new FileInputStream(sourcePath); 388 Streams.copy(in, out); 391 IoUtils.closeQuietly(in);
|
/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 233 FILE *in = fopen(inFile.c_str(), "r"); local 234 if (!in) { 242 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); 247 fclose(in);
|
/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 *)p->in; 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/support/tests/java/android/support/v4/content/ |
FileProviderTest.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 320 final InputStream in = mResolver.openInputStream(actual); local 322 MoreAsserts.assertEquals(expected, Streams.readFully(in)); 324 IoUtils.closeQuietly(in);
|
/frameworks/volley/src/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 68 // If a pool isn't passed in, then build a small default pool that will give us a lot of 75 * @param pool a buffer pool that improves GC performance in copy operations 169 * Attempts to prepare the request for a retry. If there are no more attempts remaining in the 215 InputStream in = entity.getContent(); local 216 if (in == null) { 221 while ((count = in.read(buffer)) != -1) { 230 // 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/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 337 struct stub_stream_in *in; local 340 in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in)); 341 if (!in) 344 in->stream.common.get_sample_rate = in_get_sample_rate; 345 in->stream.common.set_sample_rate = in_set_sample_rate; 346 in->stream.common.get_buffer_size = in_get_buffer_size; 347 in->stream.common.get_channels = in_get_channels; 348 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) {
|
/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 85 InputStream in = connection.getInputStream(); local 87 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 115 private void readMap(Dex.Section in) throws IOException { 116 int mapSize = in.readInt(); 119 short type = in.readShort(); 120 in.readShort(); // unused 122 int size = in.readInt(); 123 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/lang/ |
StringBuilder.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 * A modifiable {@link CharSequence sequence of characters} for use in creating 620 * Replaces the specified subsequence in this builder with the specified 642 * Reverses the order of characters in this builder. 654 * @return the string representation of the data in this builder. 659 * in the RI javac (at least in 1.5.0_06) that will generate a 670 * @param in 677 private void readObject(ObjectInputStream in) throws IOException [all...] |
Throwable.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 35 * circumstances in which the {@code Throwable} was created (basically an error 36 * message in most cases), and for saving a stack trace (that is, a record of 37 * the call stack at a particular point in time) which can be printed later. 155 * traces for their language. Filling in the stack trace is relatively expensive. 156 * <i>Overriding</i> this method in the root of a language's exception hierarchy allows the 165 // Fill in the intermediate representation. 167 // Mark the full representation as in need of update. 193 * {@code StackTraceElement} represents an entry in the call stack. Th [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 129 @Override protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 130 if (!in.hasRemaining()) { 134 data[INPUT_OFFSET] = getArray(in); 153 setPosition(in); 183 private int getArray(ByteBuffer in) { 184 if (in.hasArray()) { 185 input = in.array(); 186 inEnd = in.arrayOffset() + in.limit() [all...] |
CharsetEncoder.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 26 * Transforms a sequence of 16-bit Java characters to a byte sequence in some encoding. 56 * <p>Errors can be handled in three ways. The default is to 229 * @param in 233 * of the last byte in the buffer, and the position will be zero. 251 public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException { 252 int length = (int) (in.remaining() * averageBytesPerChar); 258 CoderResult result = encode(in, out, true); 314 * as many characters as possible in the input buffer have been encoded. I 539 ByteBuffer in = ByteBuffer.wrap(replacement); local [all...] |
CharsetEncoderICU.java | 28 // ICU has different default replacements to the RI in some cases. There are many 31 // the byte corresponding to '?' in ASCII as the replacement byte for charsets where that 60 // These instance variables are always assigned in the methods before being used. This class 157 @Override protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 158 if (!in.hasRemaining()) { 162 data[INPUT_OFFSET] = getArray(in); 182 setPosition(in); 212 private int getArray(CharBuffer in) { 213 if (in.hasArray()) { 214 input = in.array() [all...] |
/libcore/luni/src/main/java/java/util/ |
PriorityQueue.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 101 * if any of the elements in the collection are not comparable. 103 * if any of the elements in the collection are null. 146 * in any specified ordering. 182 * if the element cannot be compared with the elements in the 238 * @return true if the object was in the priority queue, false if the object 239 * was not in the priority queue. 263 * if the element cannot be compared with the elements in the 301 private void readObject(ObjectInputStream in) throws IOException [all...] |
UUID.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 36 * most of the methods will be unsupported in those cases; see each method for 383 * Returns a string representation of this UUID in the following format, as 436 * @param in 439 * if {@code in} throws it. 441 * if {@code in} throws it. 443 private void readObject(ObjectInputStream in) throws IOException, 445 // read in non-transient fields 446 in.defaultReadObject() [all...] |
/libcore/luni/src/main/java/java/util/jar/ |
JarFile.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 254 * Return an enumeration containing the {@code JarEntrys} contained in this 271 * the name of the entry in the JAR file. 305 // the associated Verifier in the constructor itself. 390 InputStream in = super.getInputStream(ze); local 391 if (in == null) { 395 return in; 399 return in; 401 return new JarFileInputStream(in, ze.getSize(), entry) [all...] |