HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 176 - 200 of 646) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/Email/tests/src/com/android/email/mail/store/imap/
ImapTestUtils.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
103 ByteArrayInputStream in = new ByteArrayInputStream(Utility.toAscii(content + "#trailing")); local
104 return new FixedLengthInputStream(in, content.length());
  /system/core/cpio/
mkbootfs.c 47 // Nothing is special about this value, just picked something in the
107 static void _archive(char *in, char *out, int ilen, int olen);
113 static void _archive_dir(char *in, char *out, int ilen, int olen)
121 in, out, ilen, olen);
124 d = opendir(in);
125 if(d == 0) die("cannot open directory '%s'", in);
164 in[ilen] = '/';
165 memcpy(in + ilen + 1, names[i], t + 1);
170 _archive(in, out, ilen + t + 1, olen + t + 1);
173 _archive(in, out, ilen + t + 1, t)
229 char in[8192]; local
    [all...]
  /system/extras/ext4_utils/
simg2img.c 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
52 int process_raw_chunk(FILE *in, FILE *out, u32 blocks, u32 blk_sz, u32 *crc32)
59 if (fread(copybuf, chunk, 1, in) != 1) {
107 FILE *in, *out; local
124 if ((in = fopen(argv[1], "rb")) == 0) {
134 if (fread(&sparse_header, sizeof(sparse_header), 1, in) != 1) {
150 /* Skip the remaining bytes in a header that is longer than
153 fseek(in, sparse_header.file_hdr_sz - SPARSE_HEADER_LEN, SEEK_CUR);
162 if (fread(&chunk_header, sizeof(chunk_header), 1, in) != 1)
    [all...]
  /system/extras/tests/bionic/libc/other/
test_zlib.c 5 * Redistribution and use in source and binary forms, with or without
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
50 unsigned char in[CHUNK]; local
63 strm.avail_in = fread(in, 1, CHUNK, source);
69 strm.next_in = in;
72 compression if all of source has been read in */
98 static unsigned char in[CHUNK]; local
    [all...]
  /build/tools/droiddoc/src/
ClearPage.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
162 FileInputStream in; local
168 in = new FileInputStream(from);
189 size = in.read(buf);
209 in.close();
  /cts/tests/tests/media/src/android/media/cts/
MediaScannerConnectionTest.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 InputStream in = null; local
58 in = getContext().getResources().openRawResource(R.raw.testmp3);
60 int size = in.read(bs);
63 size = in.read(bs);
66 if (in != null) {
67 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
61 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local
64 assertEquals(0, in.read());
65 assertEquals(1, in.read());
66 assertEquals(2, in.read());
67 assertEquals(3, in.read());
69 in.close();
103 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local
104 assertEquals(DATA, in.read())
134 AutoCloseInputStream in = new AutoCloseInputStream(pfd); local
    [all...]
  /development/tools/monkeyrunner/src/com/android/monkeyrunner/
MonkeyRecorder.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 * It creates a unique directory, puts in an xml file that records each cmd and result.
36 * It stores every screenshot in this directory.
79 * And then zip it up with all the screenshots in the file: <script_name>-yyyyMMdd-HH:mm:ss.zip.
84 // xml file to store output results in
89 // unique subdirectory to put results in (screenshots and xml file)
96 // for getting the date and time in now()
117 // Get the current date and time in a simple string format (used for timestamping filenames)
125 * @param scriptName filename (not path) of the monkey script, stored as attribute in the xml fil
290 FileInputStream in = new FileInputStream(filepath); local
    [all...]
  /external/emma/core/java12/com/vladium/emma/rt/
ClassPathProcessorST.java 75 m_log.info ("[" + m_classCount + " class(es) processed in " + (end - start) + " ms]");
86 public void handleArchiveEntry (final JarInputStream in, final ZipEntry entry)
103 readZipEntry (in, entry);
150 // in the classpath wins" semantics:
250 // in the classpath wins" semantics:
318 InputStream in = null; local
321 in = new FileInputStream (file);
325 (totalread < length) && (read = in.read (m_readbuf, totalread, length - totalread)) >= 0;
331 if (in != null) try { in.close (); } catch (Exception ignore) {}
    [all...]
InstrClassLoader.java 53 // behavior in a few places, including URLClassLoader.getResource():
121 // or (c) it will define 'c' itself if allowed to. In any
153 if (resolve) resolveClass (c); // this never happens in J2SE JVMs
157 // TODO: remove this in the release build
166 if (trace1 && (result != null)) m_log.trace1 ("loadClass", "[" + name + "] found in " + result);
251 if (trace1 && (classURL != null)) m_log.trace1 ("findClass", "[" + name + "] found in " + classURL);
257 InputStream in = null; local
261 in = classURL.openStream ();
266 readFully (in, baos, buf.m_buf);
267 in.close (); // don't keep the file handle across reentrant call
    [all...]
  /external/emma/core/java12/com/vladium/util/
Property.java 219 InputStream in = null; local
222 in = ResourceLoader.getResourceAsStream (name);
223 if (in != null)
226 result.load (in);
235 if (in != null) try { in.close (); } catch (Throwable ignore) {}
236 in = null;
253 InputStream in = null; local
256 in = ResourceLoader.getResourceAsStream (name, loader);
257 if (in != null
291 InputStream in = null; local
    [all...]
  /external/emma/tools/java/com/vladium/tools/
ClassDep.java 140 InputStream in = null; local
144 in = loader.getResourceAsStream (classVMName + ".class");
146 if (in == null)
148 throw new IllegalArgumentException ("class [" + Descriptors.vmNameToJavaName (classVMName) + "] not found in the input classpath");
153 for (int read; (read = in.read (readbuf)) >= 0; baos.write (readbuf, 0, read));
158 if (in != null) try { in.close (); } catch (IOException ignore) { ignore.printStackTrace (); }
160 in = null;
  /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
74 * @param status Optional argument to fill in. It will only fill in the status if the file
115 InputStream in = new FileInputStream(srcFile); local
117 result = copyToFile(in, destFile);
119 in.close();
208 } else { // "cat" mode: size unknown, read it all in streaming fashion
  /frameworks/base/tools/preload/
MemoryUsage.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
38 // These values are in 1kB increments (not 4kB like you'd expect).
246 BufferedReader in = new BufferedReader( local
248 String line = in.readLine();
256 in.close();
274 private static void copy(InputStream in, OutputStream out) {
278 while ((read = in.read(buffer)) > -1) {
286 /** Measures memory usage information and stores it in the model. */
  /libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/
HttpConnection.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
63 * Try each of the host's addresses for best behaviour in mixed IPv4/IPv6
205 InputStream in = getInputStream(); local
206 if (in.available() > 0) {
214 in.mark(1);
215 int byteRead = in.read();
217 in.reset();
  /libcore/luni/src/main/java/org/apache/harmony/xml/
ExpatReader.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
211 * <p>Applications may register a new or different handler in the
271 InputStream in = input.getByteStream(); local
273 if (in != null) {
275 parse(in, encoding, input.getPublicId(), input.getSystemId());
278 in.close();
289 in = ExpatParser.openUrl(systemId);
291 parse(in, encoding, input.getPublicId(), systemId);
293 in.close()
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
FileClientSessionCache.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
52 * in the cache (see {@link #putSessionData}). Files are read on
57 * so the ordering actually ends up being least-recently-modified in some
58 * cases and even just "not accessed in this process" if the filesystem
63 /** Directory to store session files in. */
67 * Map of name -> File. Keeps track of the order files were accessed in.
94 // cache misses in getSessionData().
132 * Note: This method is only called when the in-memory cache
133 * in SSLSessionContext misses, so it would be unnecesaril
158 FileInputStream in; local
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldUnixSocketTest.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
48 InputStream in = worker.getInputStream(); local
49 in.read();
100 // Port 0 is not allowed to be used in connect() on some platforms,
  /libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
JarEntryTest.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
157 InputStream in = jarFile.getInputStream(jarEntry1); local
160 // the certificates are non-null too early and in.available() fails
161 // while (in.available() > 0) {
165 // in.read(buffer);
167 while (in.read(buffer) >= 0);
168 in.close();
170 assertEquals("the file is fully read", -1, in.read());
173 in.close()
185 InputStream in = jarFile.getInputStream(jarEntry); local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
GZIPInputStreamTest.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
37 TestGZIPInputStream(InputStream in) throws IOException {
38 super(in);
41 TestGZIPInputStream(InputStream in, int size) throws IOException {
42 super(in, size);
201 GZIPInputStream in= new GZIPInputStream(new ByteArrayInputStream(baos.toByteArray())); local
203 in.read(outBuf, 530, 1);
208 result = in.read(outBuf, 0, 5);
215 result = in.read(null, 100, 1)
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
ClassLoaderTest.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
229 InputStream in = this.getClass().getClassLoader().getResourceAsStream( local
231 assertNotNull(in);
232 in.close();
  /libcore/luni/src/test/java/tests/SQLite/
BlobTest.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
159 notes = "Can not be checked. Should be tested in DX test package.",
177 InputStream in = testBlob.getInputStream(); local
180 in.read();
  /libcore/support/src/test/java/tests/support/resource/
Support_Resources.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
100 InputStream in = Support_Resources.getStream(folder == null ? file local
103 copyLocalFileto(dest, in);
119 public static void copyLocalFileto(File dest, InputStream in)
125 while ((result = in.read(buf)) != -1) {
128 in.close();
137 InputStream in = new URL(url).openStream(); local
139 copyLocalFileto(temp, in);
  /packages/apps/DeskClock/src/com/android/deskclock/
AlarmReceiver.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
58 // fills in the Intent to add some extra data, it must unparcel the
63 Parcel in = Parcel.obtain(); local
64 in.unmarshall(data, 0, data.length);
65 in.setDataPosition(0);
66 alarm = Alarm.CREATOR.createFromParcel(in);
88 // information in bug reports.
185 // We have to cancel the original notification since it is in the
  /packages/apps/Gallery3D/src/com/cooliris/media/
Utils.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
111 * @param in
115 public static final long Crc64Long(String in) {
116 if (in == null || in.length() == 0) {
135 int length = in.length();
137 char c = in.charAt(k);
146 * @param in
150 public static final String Crc64(String in) {
240 InputStream in = new FileInputStream(src); local
    [all...]

Completed in 1331 milliseconds

1 2 3 4 5 6 78 91011>>