HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 826 - 850 of 3217) sorted by null

<<31323334353637383940>>

  /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/libgdx/extensions/gdx-setup/src/com/badlogic/gdx/setup/
GdxSetup.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
384 InputStream in = null; local
388 in = GdxSetup.class.getResourceAsStream(path + resource);
389 if (in == null) throw new RuntimeException("Couldn't read resource '" + resource + "'");
391 while ((read = in.read(buffer)) > 0) {
398 if (in != null) try {
399 in.close();
406 InputStream in = null; local
410 in = new FileInputStream(file);
    [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...]
  /libcore/luni/src/test/java/dalvik/system/
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
82 * Copy a resource in the package directory to the indicated
89 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); local
90 if (in == null) {
95 Streams.copy(in, out);
97 in.close();
152 InputStream in = cl.getResourceAsStream(resourceName); local
153 if (in == null) {
157 byte[] contents = Streams.readFully(in);
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/zip/
AbstractZipFileTest.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
178 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local
179 while (in.getNextEntry() != null) {
180 while (in.read(readBuffer, 0, readBuffer.length) != -1) {}
182 in.close();
445 // when we find it in the central directory.
  /libcore/ojluni/src/main/java/sun/security/x509/
AVA.java 10 * by Oracle in the LICENSE file that accompanied this code.
12 * This code is distributed in the hope that it will be useful, but WITHOUT
15 * version 2 for more details (a copy is included in the LICENSE file that
91 * If the value has any of these characters in it, it must be quoted.
99 * In RFC2253, if the value has any of these characters in it, it
132 AVA(Reader in) throws IOException {
133 this(in, DEFAULT);
138 * or perhaps with quotes. Additional keywords can be specified in the
145 AVA(Reader in, Map<String, String> keywordMap) throws IOException
    [all...]
  /packages/apps/Email/provider_src/com/android/email/
LegacyConversions.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 /** DO NOT CHECK IN "TRUE" */
108 // Keep the message in the "unloaded" state until it has (at least) a display name.
109 // This prevents early flickering of empty messages in POP download.
127 // Only replace the local message-id if a new one was found. This is seen in some ISP's
227 // Run the mime type through inferMimeType in case we have something generic and can do
243 * This will skip adding attachments if they are already found in the attachments table.
245 * included in a single POP3 message.
281 // We test each of the fields here (instead of in SQL) because they may b
333 InputStream in = null; local
    [all...]
  /packages/apps/Messaging/src/android/support/v7/mms/
MmsHttpClient.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
194 final InputStream in = new BufferedInputStream(connection.getInputStream()); local
198 while ((count = in.read(buf)) > 0) {
201 in.close();
250 * US if we are in a different locale than US.
280 } else if ("in".equals(langCode)) {
304 * Resolve the macro in HTTP param value text
341 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class
  /packages/apps/Nfc/src/com/android/nfc/beam/
FireflyRenderer.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
254 InputStream in = null; local
257 in = mContext.getAssets().open("star.png");
259 Bitmap bitmap = BitmapFactory.decodeStream(in);
272 if (in != null) {
274 in.close();
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.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
78 * Attachment size in bytes. See {@link AttachmentColumns#SIZE}.
125 * handles file:// uris not content:// uris. We do the same workaround in
174 public Attachment(Parcel in) {
175 name = in.readString();
176 size = in.readInt();
177 uri = in.readParcelable(null);
178 contentType = in.readString();
179 state = in.readInt()
267 final InputStream in = part.getBody().getInputStream(); local
    [all...]
  /packages/services/Mms/src/com/android/mms/service/
MmsHttpClient.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
154 // after an MMS request/response is complete. In these cases keep alive
203 final InputStream in = new BufferedInputStream(connection.getInputStream()); local
207 while ((count = in.read(buf)) > 0) {
210 in.close();
293 * US if we are in a different locale than US.
323 } else if ("in".equals(langCode)) {
348 * macros like "##LINE1##" or "##NAI##" which is resolved with methods in this class
376 * Resolve the macro in HTTP param value tex
    [all...]
  /platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DataCollector.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
275 // Spaces matter in the following command line. Make sure there are no spaces
276 // in the filename and around the '>' sign.
326 InputStream in = null; local
330 in = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
334 bytesRead = in.read(buffer);
341 if (in != null) {
342 in.close();
  /prebuilts/tools/common/fest/
fest-reflect-1.2.jar 
  /bionic/libc/kernel/uapi/linux/
netfilter.h 25 #include <linux/in.h>
81 struct in_addr in; member in union:nf_inet_addr
  /bionic/tests/
time_test.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
151 t.tm_isdst = 0; // "0 if Daylight Savings Time is not in effect".
156 t.tm_isdst = 2; // "positive if Daylight Savings Time is in effect"
572 timespec in; local
574 ASSERT_EQ(EINVAL, clock_nanosleep(-1, 0, &in, &out));
  /bootable/recovery/minui/
graphics.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
284 // fall back to the compiled-in font.
295 unsigned char* in = font.rundata; local
296 while((data = *in++)) {

Completed in 1070 milliseconds

<<31323334353637383940>>