HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 276 - 300 of 2162) sorted by null

<<11121314151617181920>>

  /external/okhttp/okio/src/test/java/okio/
RealBufferedSourceTest.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 InputStream in = new RealBufferedSource(source).inputStream(); local
36 assertEquals(0, in.available());
40 assertEquals('a', in.read());
41 assertEquals(Segment.SIZE - 1, in.available());
46 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length));
51 assertEquals('b', in.read());
52 assertEquals(1, in.available());
56 assertEquals('c', in.read())
68 InputStream in = new RealBufferedSource(source).inputStream(); local
    [all...]
  /external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
Crawler.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
96 InputStream in = connection.getInputStream(); local
98 in.close();
103 Document document = Jsoup.parse(in, mediaType.charset(UTF_8).name(), url.toString());
110 in.close();
  /external/smack/src/org/jivesoftware/smack/proxy/
Socks4ProxySocketFactory.java 7 * you may not use this file except in compliance with the License.
12 * Unless required by applicable law or agreed to in writing, software
75 InputStream in = null; local
85 in=socket.getInputStream();
97 includes in the request packet the IP address and the port number of the
98 destination host, and userid, in the following format.
171 int i=in.read(buf, s, len-s);
197 in.read(temp, 0, 2);
  /frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
ManageDialog.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 // mConfig can be null if we are a restricted user, in that case don't show this dialog
155 // [1] and [2] are received data in bytes and packets.
159 // [9] and [10] are transmitted data in bytes and packets.
169 DataInputStream in = null; local
171 // See dev_seq_printf_stats() in net/core/dev.c.
172 in = new DataInputStream(new FileInputStream("/proc/net/dev"));
176 String line = in.readLine().trim();
191 in.close()
    [all...]
  /frameworks/base/services/usage/java/com/android/server/usage/
UsageStatsXml.java 5 * use this file except in compliance with the License. You may obtain a copy
10 * Unless required by applicable law or agreed to in writing, software
46 FileInputStream in = file.openRead(); local
49 read(in, statsOut);
53 in.close();
76 private static void read(InputStream in, IntervalStats statsOut) throws IOException {
79 parser.setInput(in, "utf-8");
  /libcore/benchmarks/src/benchmarks/regression/
SSLSocketBenchmark.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 = s.getInputStream(); local
87 int n = in.read(buffer);
92 in.close();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
AttributedCharacterIteratorAttributeTest.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
73 ObjectInputStream in = null; local
93 in = new ObjectInputStream(new ByteArrayInputStream(bytes
97 dattribute2 = (AttributedCharacterIterator.Attribute) in.readObject();
111 if (in != null)
112 in.close();
  /libcore/luni/src/main/java/java/io/
BufferedReader.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
41 private Reader in; field in class:BufferedReader
44 * The characters that can be read and refilled in bulk. We maintain three
55 * value is in the range {@code [0...pos]}. If the mark is {@code -1}, the
74 * readLine returns a line as soon as it sees '\n' or '\r'. In the latter
83 * We also need to keep the 'lastWasCR' state for the mark position, in case
89 * Constructs a new {@code BufferedReader}, providing {@code in} with a buffer
92 * @param in the {@code Reader} the buffer reads from.
94 public BufferedReader(Reader in) {
    [all...]
InputStreamReader.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
39 private InputStream in; field in class:InputStreamReader
49 * {@code in}. This constructor sets the character converter to the encoding
50 * specified in the "file.encoding" property and falls back to ISO 8859_1
53 * @param in
56 public InputStreamReader(InputStream in) {
57 this(in, Charset.defaultCharset());
61 * Constructs a new InputStreamReader on the InputStream {@code in}. The
66 * @param in
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
ProcessBuilderTest.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 InputStream in = process.getInputStream(); local
65 in.read();
  /libcore/luni/src/test/java/libcore/java/text/
OldAttributedCharacterIteratorAttributeTest.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
158 ObjectInputStream in = null; local
169 in = new ObjectInputStream(new ByteArrayInputStream(bytes
173 attr2 = (AttributedCharacterIterator.Attribute) in.readObject();
187 if (in != null)
188 in.close();
  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipStreamTest.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
139 ZipInputStream in = new ZipInputStream(bytesIn); local
144 ZipEntry entry = in.getNextEntry();
149 while ((len = in.read(buf)) > 0) {
162 assertNull("should only be three entries", in.getNextEntry());
164 in.close();
  /libcore/luni/src/test/java/libcore/util/
ZoneInfoDBTest.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 // Given no tzdata files we can use, we should fall back to built-in "GMT".
58 RandomAccessFile in = new RandomAccessFile(TZDATA_IN_ROOT, "r"); local
59 byte[] content = new byte[(int) in.length()];
60 in.readFully(content);
67 in.close();
  /packages/apps/Email/src/com/android/email/provider/
EmailMessageCursor.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
41 * To get around this, we load null values in those columns, and then in this wrapper we directly
44 * This will still potentially blow up if this cursor gets wrapped in a CrossProcessCursorWrapper
72 final InputStream in = cr.openInputStream(htmlUri); local
75 underlyingHtmlString = IOUtils.toString(in);
77 in.close();
88 final InputStream in = cr.openInputStream(textUri); local
91 underlyingTextString = IOUtils.toString(in);
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Fingerprint.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 * Name of the digest algorithm we use in {@link java.security.MessageDigest}
83 DigestInputStream in = null; local
86 in = new DigestInputStream(stream, DIGESTER);
90 int n = in.read(bytes);
95 if (in != null) in.close();
98 return new Fingerprint(in.getMessageDigest().digest());
175 throw new IllegalArgumentException("illegal hex digit in " + streamId)
    [all...]
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
WindowsLoader.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 BufferedReader in = null; local
47 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
54 while ((line = in.readLine()) != null) {
83 if (in != null) {
84 in.close();
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
GetElementAt.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
30 private int[] in; field in class:GetElementAt
49 in = new int[size];
51 in[i] = random.nextInt(100);
60 gIn.copyFrom(in);
69 assertEquals("idx = " + k, in[k], out[k]);
81 gIn.copyFrom(in);
90 assertEquals("idx = " + k, in[k], out[k]);
  /development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/
HelloCompute.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
45 ImageView in = (ImageView) findViewById(R.id.displayin); local
46 in.setImageBitmap(mBitmapIn);
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
ExplicitTest.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
176 DerInputStream in = new DerInputStream((byte[]) taggedType[i][1]); local
178 ((ASN1Type) taggedType[i][2]).decode(in));
GeneralizedTimeTest.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
107 DerInputStream in = new DerInputStream( local
111 gtime.decode(in)); //decoded
116 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local
120 gtime.decode(in)); //decoded
ImplicitTest.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
167 DerInputStream in = new DerInputStream((byte[]) taggedType[i][1]); local
169 ((ASN1Type) taggedType[i][2]).decode(in));
IntegerTest.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
93 DerInputStream in = new DerInputStream((byte[]) validTestcase[i][2]); local
96 (byte[]) asn1.decode(in))); // returned
101 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local
105 (byte[]) asn1.decode(in))); //returned
126 // wrong content: is not encoded in minimum number of octets
128 // wrong content: is not encoded in minimum number of octets
133 DerInputStream in = new DerInputStream(invalid[i]); local
134 ASN1Integer.getInstance().decode(in);
    [all...]
UTCTimeTest.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 DerInputStream in = new DerInputStream((byte[]) validUTCTimes[i][1]); local
102 utime.decode(in)); //decoded
107 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local
111 utime.decode(in)); //decoded
  /external/apache-http/src/org/apache/http/impl/conn/
LoggingSessionInputBuffer.java 12 * (the "License"); you may not use this file except in compliance with
17 * Unless required by applicable law or agreed to in writing, software
51 private final SessionInputBuffer in; field in class:LoggingSessionInputBuffer
58 * @param in The session input buffer.
61 public LoggingSessionInputBuffer(final SessionInputBuffer in, final Wire wire) {
63 this.in = in;
68 return this.in.isDataAvailable(timeout);
72 int l = this.in.read(b, off, len);
80 int l = this.in.read()
    [all...]
  /external/apache-http/src/org/apache/http/impl/io/
ContentLengthInputStream.java 12 * "License"); you may not use this file except in compliance
17 * Unless required by applicable law or agreed to in writing,
89 private SessionInputBuffer in = null; field in class:ContentLengthInputStream
94 * @param in The session input buffer to wrap
98 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) {
100 if (in == null) {
106 this.in = in;
147 return this.in.read();
174 int count = this.in.read(b, off, len)
    [all...]

Completed in 72 milliseconds

<<11121314151617181920>>