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

<<21222324252627282930>>

  /libcore/luni/src/test/java/libcore/java/util/zip/
ZipFileTest.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
177 ZipInputStream in = new ZipInputStream(new FileInputStream(createZipFile(1, originalSize))); local
178 while (in.getNextEntry() != null) {
179 while (in.read(readBuffer, 0, readBuffer.length) != -1) {}
181 in.close();
448 // when we find it in the central directory.
  /packages/apps/OMA-DM/engine/dmlib/tool-src/dmt_validate/com/mot/treetest/
TreeTest.java 178 // Utility function to parse the contents of parm.txt files in each DMT directory
187 BufferedReader in = new BufferedReader(new FileReader(modifiedFileName + local
191 while ( (line = in.readLine()) != null) {
313 in.close();
317 in = new BufferedReader(new FileReader( (new File(
320 while ( (line = in.readLine()) != null) {
342 in.close();
356 BufferedReader in = new BufferedReader(new FileReader(resultFile)); local
362 while ( (line = in.readLine()) != null) {
  /external/smack/src/org/xbill/DNS/
Name.java 50 /** The maximum number of labels in a Name */
62 /* Used in wildcard names. */
294 * that it will avoid creating new objects in some cases.
312 * to the constructor, except that it will avoid creating new objects in some
340 * @param in A stream containing the DNS message which is currently
344 Name(DNSInput in) throws WireParseException {
351 len = in.readU8();
361 in.readByteArray(label, 1, len);
366 pos = in.readU8();
369 System.err.println("currently " + in.current()
    [all...]
Record.java 75 rrFromWire(DNSInput in) throws IOException;
78 newRecord(Name name, int type, int dclass, long ttl, int length, DNSInput in)
82 rec = getEmptyRecord(name, type, dclass, ttl, in != null);
83 if (in != null) {
84 if (in.remaining() < length)
86 in.setActive(length);
88 rec.rrFromWire(in);
90 if (in.remaining() > 0)
92 in.clearActive();
104 * @param data The rdata of the record, in uncompressed DNS wire format. Onl
115 DNSInput in; local
467 DNSInput in = new DNSInput(data); local
    [all...]
  /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
85 * is used in the {@code <intent-filter>} of a {@code <provider>}.
96 * Included in {@link AssetFileDescriptor#getExtras()} when returned
176 * Timestamp when a document was last modified, in milliseconds since
211 * Size of a document, in bytes, or {@code null} if unknown. This column
272 * Flag indicating that a directory prefers its contents be shown in a
302 * this directory in a larger format grid. For example, a directory
385 * Number of bytes available in this root. This column is optional, and
479 * Optional boolean flag included in a directory {@link Cursor#getExtras()
913 final Bundle in = new Bundle(); local
952 final Bundle in = new Bundle(); local
984 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/java/net/
SocketTest.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
108 SocketChannel in = ssc.accept(); local
110 in.socket().setTcpNoDelay(false);
113 InetSocketAddress listenAddress = (InetSocketAddress) in.socket().getLocalSocketAddress();
116 InetSocketAddress inLocalAddress = (InetSocketAddress) in.socket().getLocalSocketAddress();
117 InetSocketAddress inRemoteAddress = (InetSocketAddress) in.socket().getRemoteSocketAddress();
135 assertTrue(in.isConnected());
136 assertTrue(in.socket().isConnected());
140 in.close()
245 InputStream in = socket.getInputStream(); local
308 InputStream in = socket.getInputStream(); local
376 InputStream in = socket.getInputStream(); 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/theme/src/android/theme/cts/
ThemeHostTest.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
55 private static final int CAPTURE_TIMEOUT = 500;//0.5sec in ms
57 private static final int ADB_TIMEOUT = 60 * 60 * 1000;//60mins in ms
65 /** The class name of the main activity in the APK. */
230 final ZipInputStream in = new ZipInputStream(zipStream); local
234 while ((ze = in.getNextEntry()) != null) {
239 while ((count = in.read(buffer)) != -1) {
247 in.close();
305 assertTrue(failures + " failures in theme test", failures == 0)
327 final Scanner in = new Scanner(logs); 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/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();
  /frameworks/base/core/java/android/ddm/
DdmHandleViewDebug.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
50 /** Operation on view root, first parameter in packet should be one of VURT_* constants */
63 * Generic View Operation, first parameter in the packet should be one of the
83 /** Error code indicating operation specified in chunk is invalid. */
124 ByteBuffer in = wrapChunk(request); local
125 int op = in.getInt();
127 View rootView = getRootView(in);
134 return dumpHierarchy(rootView, in);
143 final View targetView = getTargetView(rootView, in);
169 ByteBuffer in = wrapChunk(request); local
    [all...]
  /frameworks/base/core/java/android/os/
FileUtils.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
166 InputStream in = new FileInputStream(srcFile); local
168 result = copyToFile(in, destFile);
170 in.close();
264 } else { // "cat" mode: size unknown, read it all in streaming fashion
325 * Delete older files in a directory until only those matching the given
  /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...]
  /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
435 assertNotNull("the file " + name + " can not be found in this directory", str2);
438 assertNull("the file " + nameBadURI + " should not be found in this directory",
574 InputStream in = local
576 assertNotNull(in);
577 in.close();
586 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); local
587 assertNotNull(in);
588 in.close()
592 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
55 // Init tests need to use different optimized directories because the tests are executed in the
129 * Copy a resource in the package directory to the indicated
138 InputStream in = local
141 Streams.copy(in, out);
142 in.close();
195 * Check that a class in the jar/dex file may be used successfully. In this
454 InputStream in = dcl.getResourceAsStream(resourceName) local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppObexServerSession.java 6 * Redistribution and use in source and binary forms, with or without
12 * - Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
143 * TODO now we implement in a tough way, just close the socket.
214 /* first we look for Mimetype in Android map */
244 // MIME Types. Also reject everything in the "black list".
251 if (D) Log.w(TAG, "mimeType is null or in unacceptable list, reject the transfer")
296 Intent in = new Intent(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION); local
    [all...]
  /packages/apps/Email/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...]

Completed in 87 milliseconds

<<21222324252627282930>>