/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/graphics/java/android/graphics/ |
FontListParser.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 91 public static Config parse(InputStream in) throws XmlPullParserException, IOException { 94 parser.setInput(in, null); 98 in.close();
|
/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 352 * No rule-to-parameter type check, all done in {@link #checkAddRuleObjInternal(int, Object)}. 440 throw new IllegalStateException("Unreachable code in addRuleInternal()"); 446 Builder addRuleFromParcel(Parcel in) throws IllegalArgumentException { 447 final int rule = in.readInt(); 453 int usage = in.readInt(); 458 int preset = in.readInt(); 463 intProp = new Integer(in.readInt()); 466 // assume there was in int value to read as for now they come in pai [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/base/services/core/java/com/android/server/pm/ |
CompilerStats.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 59 * This map stores compile-times for all code paths in the package. The value 60 * is in milliseconds. 69 // We expect at least one element in here, but let's make it minimal. 207 BufferedReader in = new BufferedReader(r); local 210 String versionLine = in.readLine(); 226 // collect it in a fake package. 230 while ((s = in.readLine()) != null) { 286 BufferedReader in = null local [all...] |
/frameworks/base/services/tests/servicestests/src/android/net/apf/ |
Bpf2Apf.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 248 // comparison instruction, so in this case we'll jump 268 // comparison instruction, so in this case we'll jump 316 * Convert the output of "tcpdump -d" (human readable BPF program dump) piped in stdin into an 320 BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); local 324 while ((line = in.readLine()) != null) convertLine(line, gen);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsCollectionTest.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 155 // assert that we report boundary in atomic buckets 176 // Record one entry for another UID in this user. 186 // Record one entry for a UID in a different user. 200 // Verify security check in getHistory. 211 // Verify appropriate aggregation in getSummary. 226 InputStream in = null; local 229 in = getContext().getResources().openRawResource(rawId); 231 Streams.copy(in, out) [all...] |
/frameworks/base/tools/aapt2/test/ |
Builders.h | 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 238 std::stringstream in; local 239 in << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" << str; 241 std::unique_ptr<xml::XmlResource> doc = xml::inflate(&in, &diag, Source("test.xml"));
|
/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();
|