/frameworks/base/services/core/java/com/android/server/connectivity/ |
IpConnectivityEventBuilder.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 74 for (ConnectivityMetricsEvent in : eventsIn) { 75 final IpConnectivityEvent out = toProto(in); 93 public static IpConnectivityEvent toProto(ConnectStats in) { 96 stats.connectCount = in.connectCount; 97 stats.connectBlockingCount = in.connectBlockingCount; 98 stats.ipv6AddrCount = in.ipv6ConnectCount; 99 stats.latenciesMs = in.latencies.toArray(); 100 stats.errnosCounters = toPairArray(in.errnos) [all...] |
/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/com/android/server/pm/ |
UserRestrictionsUtilsTest.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 Bundle in = new Bundle(); local 49 assertSame(in, UserRestrictionsUtils.nonNull(in)); 59 Bundle in = new Bundle(); local 60 Bundle out = UserRestrictionsUtils.clone(in); 61 assertNotSame(in, out);
|
/frameworks/base/test-runner/src/junit/textui/ |
TestRunner.java | 129 System.in.read();
|
/frameworks/base/tests/net/java/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/wifi/tests/src/android/net/wifi/hotspot2/omadm/ |
PpsMoParserTest.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 72 InputStream in = getClass().getClassLoader().getResourceAsStream(filename); local 73 BufferedReader reader = new BufferedReader(new InputStreamReader(in)); 84 * Generate a {@link PasspointConfiguration} that matches the configuration specified in the
|
/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 65 status_t IBinder::shellCommand(const sp<IBinder>& target, int in, int out, int err, 71 send.writeFileDescriptor(in); 172 e = expected; // Filled in by CAS 230 int in = data.readFileDescriptor(); local 244 //return shellCommand(in, out, err, args, resultReceiver); 245 (void)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 48 extern "C" void rsdIntrinsic3DLUT_K(void *dst, void const *in, size_t count, 60 uchar4 *in = (uchar4 *)info->inPtr[0]; local 83 rsdIntrinsic3DLUT_K(out, in, len, 88 in += len; 94 int4 baseCoord = convert_int4(*in) * coordMul; 129 ret.w = in->w; 133 ALOGE("in %08x %08x %08x %08x", in->r, in->g, in->b, in->a) [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/hal/audio_extn/ |
utils.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 218 if (usecase->stream.in == NULL) { 221 struct stream_in *in = usecase->stream.in; local 222 struct stream_app_type_cfg *app_type_cfg = &in->app_type_cfg; 225 if (audio_is_usb_in_device(in->device)) { 228 in->sample_rate, 232 app_type_cfg->mode = flags_to_mode(1 /*capture*/, in->flags); 234 if (in->format == AUDIO_FORMAT_PCM_16_BIT) 333 struct stream_in *in; local 438 struct stream_in *in = usecase->stream.in; local [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/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)); 194 // Assert that the new fd wasn't open in the second run 207 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
GZIPInputStreamTest.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 44 TestGZIPInputStream(InputStream in) throws IOException { 45 super(in); 48 TestGZIPInputStream(InputStream in, int size) throws IOException { 49 super(in, size); 87 why = "InflaterInputStream does not clean up the default Inflater created in the" 224 try (GZIPInputStream in = new GZIPInputStream( 227 in.read(outBuf, 530, 1); 232 result = in.read(outBuf, 0, 5) [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/dalvik/system/ |
DelegateLastClassLoaderTest.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 35 // NOTE: the jar files used by this test are created by create_test_jars.sh in the same 115 InputStream in = cl.getResourceAsStream(resourceName); local 116 assertNotNull(in); 118 byte[] contents = Streams.readFully(in); 208 // The dex file in this jar contains a single class ("java.util.HashMap") and a single 209 // resource ("android/icu/ICUConfig.properties"). Both of these appear in the boot
|
DexClassLoaderTest.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 102 InputStream in = cl.getResourceAsStream(resourceName); local 103 if (in == null) { 107 byte[] contents = Streams.readFully(in); 124 * Check that a class in the jar/dex file may be used successfully. In this 297 * Check that a resource in the jar file is retrievable and contains 306 * Check that a resource in the jar file can be retrieved from 323 * Check that a resource in the second jar file is retrievable an [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 138 // Android became more strict after M about which characters were allowed in request header 162 // '\t' in header values can either be (a) forbidden or (b) allowed. 169 // throws IAE in case (a), passes in case (b) 445 // Setting the server workerThreads to 1 ensures the responses are generated in the order 1070 InputStream in = connection.getInputStream(); local 1211 InputStream in = server.getUrl("\/").openConnection().getInputStream(); local [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
DateFormatSymbolsTest.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 64 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes)); local 65 DateFormatSymbols deserializedDfs = (DateFormatSymbols) in.readObject(); 66 assertEquals(-1, in.read());
|