HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 801 - 825 of 3057) sorted by null

<<31323334353637383940>>

  /libcore/luni/src/test/java/libcore/java/io/
OldInputStreamReaderTest.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
33 private final String source = "This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese";
35 private InputStream in; field in class:OldInputStreamReaderTest
48 in = new ByteArrayInputStream(source.getBytes("UTF-8"));
49 reader = new InputStreamReader(in, "UTF-8");
63 in.close();
  /libcore/ojluni/src/main/java/java/net/
ServerSocket.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
36 * requests to come in over the network. It performs some operation
108 * This could result in a SecurityException.
152 * This could result in a SecurityException.
156 * specific. In particular, an implementation may impose a maximum length
201 * This could result in a SecurityException.
205 * specific. In particular, an implementation may impose a maximum length
344 * specific. In particular, an implementation may impose a maximum lengt
403 InetAddress in = getImpl().getInetAddress(); local
    [all...]
SocksSocketImpl.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
114 private int readSocksReply(InputStream in, byte[] data) throws IOException {
115 return readSocksReply(in, data, 0L);
118 private int readSocksReply(InputStream in, byte[] data, long deadlineMillis) throws IOException {
124 count = ((SocketInputStream)in).read(data, received, len - received, remainingMillis(deadlineMillis));
138 private boolean authenticate(byte method, InputStream in,
140 return authenticate(method, in, out, 0L);
143 private boolean authenticate(byte method, InputStream in,
697 InputStream in = cmdIn; local
    [all...]
  /packages/apps/Settings/src/com/android/settings/dashboard/conditional/
ConditionManager.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
79 FileReader in = new FileReader(xmlFile); local
80 parser.setInput(in);
101 in.close();
  /frameworks/base/core/java/android/provider/
DocumentsContract.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
88 * is used in the {@code <intent-filter>} of a {@code <provider>}.
108 * Set this in a DocumentsUI intent to cause a package's own roots to be
114 * Included in {@link AssetFileDescriptor#getExtras()} when returned
122 * Overrides the default prompt text in DocumentsUI when set in an intent.
206 * Timestamp when a document was last modified, in milliseconds since
246 * Size of a document, in bytes, or {@code null} if unknown. This column
307 * Flag indicating that a directory prefers its contents be shown in
1078 final Bundle in = new Bundle(); local
1091 final Bundle in = new Bundle(); local
1135 final Bundle in = new Bundle(); local
1167 final Bundle in = new Bundle(); local
1198 final Bundle in = new Bundle(); local
1233 final Bundle in = new Bundle(); local
1270 final Bundle in = new Bundle(); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
CharsetEncoderTest.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
282 CharBuffer in = CharBuffer.wrap("aaa"); local
295 encoder.encode(in, out, true);
304 encoder.encode(in, out, false);
327 // encode facade can be execute in anywhere
328 CharBuffer in = CharBuffer.wrap("aaa"); local
330 encoder.encode(in);
331 in.rewind();
334 encoder.encode(in);
372 CharBuffer in = CharBuffer.wrap("aaa"); local
422 CharBuffer in = CharBuffer.wrap("aaa"); local
591 CharBuffer in = CharBuffer.wrap("\\ud800"); local
628 CharBuffer in; local
708 CharBuffer in = CharBuffer.wrap(unistr); local
833 CharBuffer in = getMalformedCharBuffer(); local
917 CharBuffer in = CharBuffer.wrap("aaa"); local
    [all...]
  /libcore/luni/src/test/java/libcore/xml/
XsltXPathConformanceTestSuite.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
80 * <p>Unfortunately, some of the tests in the OASIS suite will fail when
84 * "Couldn't open file" errors due to a mismatch in file name casing.
86 * stylesheet files. In particular, "http://webxtest/" isn't generally
271 * Finds the named file in the named directory. This tries extra hard to
273 * available in a different casing.
428 * Returns the given file's XML fragment as a single node, wrapped in
451 // it in <result> tags would result in a malformed XML document
581 InputStream in = new BufferedInputStream(new FileInputStream(file), 1024); local
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
SplitAppTest.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
97 fail("Unexpected drawable in base");
120 // Receiver disabled by default in base
127 // We shouldn't have any native code in base
130 fail("Unexpected native code in base");
265 // Receiver only enabled in feature
283 // And assert that we spun up the provider in this process
334 * done in {@link #testBaseInstalled()}.
381 * Write app data in a number of locations that expect to remain intact ove
576 BufferedReader in = null; local
    [all...]
  /cts/libs/json/src/com/android/json/stream/
JsonReader.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
29 * end delimiters of objects and arrays. The tokens are traversed in
30 * depth-first order, the same order that they appear in the JSON document.
37 * <p>Next, create handler methods for each structure in your JSON text. You'll
86 * public List<Message> readJsonStream(InputStream in) throws IOException {
87 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8"));
165 * in JSON.
176 private final Reader in; field in class:JsonReader
207 * and length in the buffer
    [all...]
  /cts/tests/tests/app.usage/src/android/app/usage/cts/
NetworkUsageStatsTest.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
105 " your phone, have enabled data over cellular and in case of" +
129 InputStreamReader in = null; local
141 in = new InputStreamReader(
145 while (in.read() != -1) ++mBytesRead;
150 if (in != null) {
152 in.close();
  /cts/tests/tests/os/src/android/os/cts/
ParcelFileDescriptorTest.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
53 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local
56 assertEquals(0, in.read());
57 assertEquals(1, in.read());
58 assertEquals(2, in.read());
59 assertEquals(3, in.read());
61 in.close();
105 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local
106 assertEquals(DATA, in.read())
181 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local
    [all...]
  /external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DebugEventSocketProxy.java 6 Redistribution and use in source and binary forms, with or without
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
20 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
43 * be kept in sync. New events must be handled on both sides of socket.
52 protected BufferedReader in; field in class:DebugEventSocketProxy
83 in = new BufferedReader(isr);
108 in.readLine()
    [all...]
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KeyStore2Test.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
472 InputStream in = new ByteArrayInputStream(keyStore); local
473 keyTest.load(in, pssWord);
474 in.close();
484 in = new ByteArrayInputStream(keyStore);
485 keyTest.load(in, null);
486 in.close();
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/utils/
Util.java 166 InputStream in = new FileInputStream(src); local
170 while ((len = in.read(buf)) > 0) {
173 in.close();
188 * @param in the input stream.
193 public static boolean copyStream(InputStream in, File dest) {
199 while ((len = in.read(buf)) > 0) {
202 in.close();
  /external/guava/guava-tests/test/com/google/common/io/
ByteSourceTest.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 InputStream in = source.openBufferedStream(); local
76 ByteStreams.copy(in, out);
77 in.close();
336 for (ByteSource in : BROKEN_SOURCES) {
337 runFailureTest(in, newNormalByteSink());
340 runFailureTest(in, BROKEN_CLOSE_SINK);
341 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, getAndResetRecords(logHandler));
352 for (ByteSource in : BROKEN_SOURCES)
    [all...]
  /external/jacoco/org.jacoco.ant/src/org/jacoco/ant/
ReportTask.java 62 * The source files are specified in a resource collection with additional
367 * Sets whether the build should fail in case of a violation. Default is
511 InputStream in = null; local
513 in = resource.getInputStream();
514 loader.load(in);
520 FileUtils.close(in);
569 final InputStream in = resource.getInputStream(); local
570 analyzer.analyzeAll(in, resource.getName());
571 in.close();
585 "Classes in bundle '%s' do no match with execution data.
    [all...]
  /external/jetty/src/java/org/eclipse/jetty/server/session/
HashSessionManager.java 49 * An in-memory implementation of SessionManager.
148 * @return the period in seconds at which a check is made for sessions to be invalidated.
183 * Configures the period in seconds after which a session is deemed idle and saved
246 * @return the period in seconds at which sessions are periodically saved to disk
258 * @param seconds the period in seconds at which a check is made for sessions to be invalidated.
295 * Find sessions that have timed out and invalidate them. This runs in the
443 // CanonicalFile is used to capture the base store directory in a way that will
506 FileInputStream in = null; local
512 in = new FileInputStream(file);
513 HashedSession session = restoreSession(in, null)
571 DataInputStream in = new DataInputStream(is); local
    [all...]
  /external/okhttp/okio/okio/src/test/java/okio/
BufferedSourceTest.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
463 sink.writeUtf8("d"); // b...bcd, d is in the 2nd segment.
547 InputStream in = source.inputStream(); local
549 int read = in.read(bytes);
554 read = in.read(bytes);
558 read = in.read(bytes);
566 assertEquals(-1, in.read());
571 InputStream in = source.inputStream(); local
573 int read = in.read(bytes, 1, 3)
585 InputStream in = source.inputStream(); local
592 InputStream in = source.inputStream(); local
601 InputStream in = source.inputStream(); local
    [all...]
  /frameworks/base/core/java/android/util/
JsonReader.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
31 * end delimiters of objects and arrays. The tokens are traversed in
32 * depth-first order, the same order that they appear in the JSON document.
39 * <p>Next, create handler methods for each structure in your JSON text. You'll
88 * public List<Message> readJsonStream(InputStream in) throws IOException {
89 * JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8"));
171 * in JSON.
184 private final Reader in; field in class:JsonReader
200 * The offset of the first character in the buffer
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
NetworkStatsHistoryTest.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
66 final DataInputStream in = new DataInputStream( local
71 final NetworkStatsHistory history = new NetworkStatsHistory(in);
87 in.close();
154 // now record something in middle, spread across two buckets
160 // now should have four buckets, with new record in middle two buckets
172 // record some data in one bucket, and another overlapping buckets
293 // verify total in first hour
391 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()) local
498 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
InputStreamReaderTest.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 private InputStream in; field in class:InputStreamReaderTest
99 private final String source = "This is a test message with Unicode character. \u4e2d\u56fd is China's name in Chinese";
108 in = new ByteArrayInputStream(source.getBytes("UTF-8"));
109 reader = new InputStreamReader(in, "UTF-8");
127 in.close();
161 in = new BufferedInputStream(
167 reader = new InputStreamReader(in, "utf-8");
168 in.close()
342 InputStream in; local
    [all...]
PipedInputStreamTest.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
65 // Used in tests
349 PipedInputStream in = new PipedInputStream(); local
351 in.connect(out);
355 assertEquals("Should read 20.", 20, in.read());
357 assertEquals("Write end is closed, should return -1", -1, in.read());
359 assertEquals("Write end is closed, should return -1", -1, in.read(buf, 0, 1));
360 assertEquals("Buf len 0 should return first", 0, in.read(buf, 0, 0));
361 in.close()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
ClassTest.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
438 assertNotNull("the file " + name + " can not be found in this directory", str2);
441 assertNull("the file " + nameBadURI + " should not be found in this directory",
576 InputStream in = local
578 assertNotNull(in);
579 in.close();
602 InputStream in = local
604 assertNotNull(in);
605 in.close()
628 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); local
634 InputStream in = getClass().getResourceAsStream(resourceName); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
ControlTest.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
391 Reader in = new InputStreamReader(src.openStream()); local
394 while ((c = in.read()) != -1) {
397 in.close();
414 * change the value in the .properties file
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
ZipFileTest.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 // the file hyts_zipFile.zip in setup must be included as a resource
96 InputStream in = Support_Resources.getStream("hyts_ZipFile.zip"); local
101 while ((result = in.read(buf)) != -1) {
104 in.close();
192 InputStream in; local
198 in = zfile.getInputStream(zentry);
199 assertNotNull("testdir1/ should not have null input stream", in);
200 r = in.read()
218 InputStream in; local
    [all...]

Completed in 1392 milliseconds

<<31323334353637383940>>