HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 651 - 675 of 2135) sorted by null

<<21222324252627282930>>

  /cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DocumentsClientTest.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
316 InputStream in = getInstrumentation().getContext().getContentResolver() local
322 while ((count = in.read(buffer)) != -1) {
327 in.close();
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageFetcher.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
182 * The main process method, which will be called by the ImageWorker in the AsyncTask background
185 * @param data The data to load the bitmap, in this case, a regular http URL
210 Log.d(TAG, "processBitmap, not found in http cache, downloading...");
270 BufferedInputStream in = null; local
275 in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE);
279 while ((b = in.read()) != -1) {
284 Log.e(TAG, "Error in downloadBitmap - " + e);
293 if (in != null)
    [all...]
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageFetcher.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
182 * The main process method, which will be called by the ImageWorker in the AsyncTask background
185 * @param data The data to load the bitmap, in this case, a regular http URL
210 Log.d(TAG, "processBitmap, not found in http cache, downloading...");
270 BufferedInputStream in = null; local
275 in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE);
279 while ((b = in.read()) != -1) {
284 Log.e(TAG, "Error in downloadBitmap - " + e);
293 if (in != null)
    [all...]
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageFetcher.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
182 * The main process method, which will be called by the ImageWorker in the AsyncTask background
185 * @param data The data to load the bitmap, in this case, a regular http URL
210 Log.d(TAG, "processBitmap, not found in http cache, downloading...");
270 BufferedInputStream in = null; local
275 in = new BufferedInputStream(urlConnection.getInputStream(), IO_BUFFER_SIZE);
279 while ((b = in.read()) != -1) {
284 Log.e(TAG, "Error in downloadBitmap - " + e);
293 if (in != null)
    [all...]
  /external/apache-http/src/org/apache/commons/logging/impl/
SimpleLog.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
49 * included in output messages. Defaults to <code>false</code>.</li>
52 * included in output messages. Defaults to <code>true</code>.</li>
55 * to be included in output messages. Default is <code>false</code>.</li>
57 * The date and time format to be used in the output messages.
59 * used in <code>java.text.SimpleDateFormat</code>. If the format is not
64 * <p>In addition to looking for system properties with the names specified
96 /** Include the instance name in the log message? */
98 /** Include the short name ( last component ) of the logger in the lo
159 InputStream in = getResourceAsStream("simplelog.properties"); typedefs
162 simpleLogProps.load(in); typedefs
    [all...]
  /external/chromium_org/components/cronet/android/test/src/org/chromium/cronet_test_apk/
CronetTestActivity.java 3 // found in the LICENSE file.
142 InputStream in = assetManager.open(testFile); local
146 while ((read = in.read(buffer)) != -1) {
149 in.close();
  /frameworks/base/sax/tests/saxtests/src/android/sax/
SafeSaxTest.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
147 InputStream in = mContext.getResources().openRawResource(R.raw.youtube); local
153 while ((length = in.read(buffer)) != -1) {
158 in.close();
  /frameworks/base/services/core/java/com/android/server/net/
IpConfigStore.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
157 loge("Failure in writing " + config + e);
179 DataInputStream in = null; local
181 in = new DataInputStream(new BufferedInputStream(new FileInputStream(filePath)));
183 int version = in.readInt();
202 key = in.readUTF();
205 id = in.readInt();
207 ipAssignment = IpAssignment.valueOf(in.readUTF());
210 NetworkUtils.numericToInetAddress(in.readUTF()), in.readInt())
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
ViewServer.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
60 // Lists all of the available windows in the system
219 BufferedReader in = null; local
221 in = new BufferedReader(new InputStreamReader(mClient.getInputStream()), 1024);
223 final String request = in.readLine();
259 if (in != null) {
261 in.close();
  /frameworks/multidex/library/test/src/android/support/multidex/
ZipUtilTest.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
120 InputStream in = zip.getInputStream(refEntry); local
122 int read = in.read(buffer);
125 read = in.read(buffer);
127 in.close();
150 InputStream in = zip.getInputStream(refEntry); local
152 int read = in.read(buffer);
155 read = in.read(buffer);
157 in.close()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
JarURLConnectionTest.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
165 InputStream in = connection.getInputStream(); local
169 while (in.read(data) >= 0)
171 in.close();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
SAXParserTest.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
425 InputStream in = null; local
427 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10);
428 is = new InputSource(in);
433 in.close();
475 InputStream in = null; local
477 in = new BrokenInputStream(new FileInputStream(list_wf[0]), 10);
478 parser.parse(in, (HandlerBase) null, SAXParserTestSupport.XML_SYSTEM_ID);
482 in.close()
    [all...]
  /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/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.
  /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...]
  /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)
328 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();

Completed in 73 milliseconds

<<21222324252627282930>>