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

<<21222324252627282930>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
ProcessBuilderTest.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
152 InputStream in = process.getInputStream(); local
165 if (in.available() > 0) {
166 assertTrue(in.read(buf) > 0);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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
134 InputStream in = jarFile.getInputStream(jarEntry1); local
136 while (in.available() > 0) {
140 in.read(buffer);
142 assertEquals("the file is fully read", -1, in.read());
145 in.close();
157 InputStream in = jarFile.getInputStream(jarEntry); local
159 while (in.available() > 0) {
162 in.read(buffer)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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);
210 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(baos.toByteArray())); local
212 in.read(outBuf, 530, 1);
217 result = in.read(outBuf, 0, 5);
224 result = in.read(null, 100, 1)
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
InterruptedStreamTest.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
51 // not leave us in a bad state.
67 PipedInputStream in = new PipedInputStream(out); local
68 testInterruptInputStream(in);
120 private void testInterruptInputStream(final InputStream in) throws Exception {
123 in.read();
  /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,
OldJarURLConnectionTest.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
234 InputStream in = connection.getInputStream(); local
237 in.read();
238 in.close();
  /libcore/luni/src/test/java/libcore/java/util/zip/
GZIPInputStreamTest.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
56 GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(gzipped)); local
61 count = in.skip(Long.MAX_VALUE);
66 in.close();
166 InputStream in = new GZIPInputStream(bis); local
170 while ((count = in.read(buffer)) != -1) {
175 in.close();
OldZipFileTest.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
54 InputStream in; local
58 in = zfile.getInputStream(zentry);
64 if (in != null) {
65 data = in.read();
66 in.close();
71 // the file hyts_zipFile.zip in setup must be included as a resource
ZipEntryTest.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
72 ZipInputStream in = new ZipInputStream(new FileInputStream(f)); local
75 while ((entry = in.getNextEntry()) != null) {
80 in.close();
186 // Read it back and make sure comments and extra are in the right order
  /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
38 // If we have the resources packaged up in our jar file, get them that way.
44 // Otherwise, if we're in an Android build tree, get the files directly.
112 InputStream in = Support_Resources.getStream(folder == null ? file local
115 copyLocalFileto(dest, in);
131 public static void copyLocalFileto(File dest, InputStream in) throws IOException {
134 copy(in, out);
138 in.close();
141 private static int copy(InputStream in, OutputStream out) throws IOException
154 InputStream in = new URL(url).openStream(); local
    [all...]
  /ndk/tests/abcc/src/compiler/abcc/
AbccService.java 183 InputStream in = null; local
186 in = assetManager.open(asset_dir + "/" + filename);
188 copyFile(in, out);
189 in.close();
190 in = null;
206 private void copyFile(InputStream in, OutputStream out) throws IOException {
209 while((read = in.read(buffer)) != -1){
262 // If succeess, it will be 0 in file working_dir/compile_result.
263 // Otherwise, there will be error message in file working_dir/compile_error.
269 // FIXME: We cannot access ApplicationInfo in static context, how to prevent magic path
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppReceiver.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
53 * Intents from OppService; Intents from modules in Opp application layer.
117 Intent in = new Intent(context, BluetoothOppIncomingFileConfirmActivity.class); local
118 in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
119 in.setDataAndNormalize(uri)
158 Intent in = new Intent(context, BluetoothOppTransferActivity.class); local
173 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local
180 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local
187 Intent in = new Intent(context, BluetoothOppTransferHistory.class); local
    [all...]
  /packages/apps/Browser/src/com/android/browser/
BrowserBackupAgent.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
67 DataInputStream in = new DataInputStream( local
70 savedFileSize = in.readLong();
71 savedCrc = in.readLong();
72 savedVersion = in.readInt();
77 if (in != null) {
78 in.close();
86 * Restore from backup -- reads in the flattened bookmark file as supplied from
87 * the backup service, parses that out, and rebuilds the bookmarks table in th
102 DataInputStream in = new DataInputStream(infstream); local
    [all...]
  /packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.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
196 InputStream in = local
198 Bitmap thumbnail = createThumbnail(type, in);
206 in.close();
240 * Returns a cursor based on the data in the attachments table, or null if the attachment
241 * is not recorded in the table.
332 * Need this to suppress warning in unit tests.
  /packages/apps/Music/tests/src/com/android/music/functional/
TestSongs.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
87 InputStream in = new FileInputStream(src); local
90 // Transfer bytes from in to out
93 while ((len = in.read(buf)) > 0) {
96 in.close();
116 * Verification: The new playlist title should be sorted in alphabetical order
156 //This only check if there only 1 ringtone set in music player
  /packages/apps/OMA-DM/engine/dmlib/tool-src/dmt_gen_tool/com/mot/dm/tool/
DMTS.java 151 throw new Exception("DMTS file in read only mode: " + outputDir +
172 throw new Exception("DMTS file in read only mode: " + dmtsPath);
223 FileInputStream in = new FileInputStream(f); local
224 byte[] b = new byte[in.available()];
225 in.read(b);
234 in.close();
  /packages/apps/Settings/tests/src/com/android/settings/vpn2/
CertInstallerHelper.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 InputStream in = null; local
83 in = new FileInputStream(new File(
85 raw = Streams.readFully(in);
94 Assert.fail("key store failed to put in keychain");
98 // be only one alias in the keystore
119 if (in != null) {
121 in.close();
  /packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
MimeUtility.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
119 * character following the sequence resulting in a line longer than 76
176 * parameter is returned, or if there are no additional parameters in the
178 * searched for in a case insensitive fashion and returned. If the parameter
185 * TODO: Need to decode %-escaped strings, as in: filename="ab%22d".
222 * @return a String containing the converted text in the body, or null if there was no text
228 InputStream in = part.getBody().getInputStream(); local
236 IOUtils.copy(in, out);
237 in.close()
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/
NotificationActionIntentService.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
95 * Grab the alarm from the intent. Since the remote AlarmManagerService fills in the Intent
103 final Parcel in = Parcel.obtain(); local
104 in.unmarshall(data, 0, data.length);
105 in.setDataPosition(0);
106 notificationAction = NotificationAction.CREATOR.createFromParcel(in,
123 // logic after the Undo notification expires in a regular flow.
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ThumbnailLoadTask.java 6 * you may not use this file except in compliance with the License.
11 * Unless required by applicable law or agreed to in writing, software
40 * Performs the load of a thumbnail bitmap in a background
128 LogUtils.d(LOG_TAG, "in background, src w/h=%d/%d dst w/h=%d/%d, divider=%d",
161 InputStream in = null; local
164 in = resolver.openInputStream(thumbnailUri);
165 return Exif.getOrientation(in, -1);
170 if (in != null) {
172 in.close();
185 LogUtils.d(LOG_TAG, "back in UI thread, decode failed or file does not exist")
    [all...]
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
CaptureLoader.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
43 DataInputStream in = null; local
53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream()));
59 int width = in.readInt();
60 int height = in.readInt();
64 while (readLayer(in, psd)) {
77 if (in != null) {
78 in.close();
91 private static boolean readLayer(DataInputStream in, PsdFile psd)
131 BufferedInputStream in = null; local
    [all...]
ViewHierarchyLoader.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
43 BufferedReader in = null; local
56 in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "utf-8"));
70 while ((line = in.readLine()) != null) {
122 if (in != null) {
123 in.close();
  /external/apache-harmony/support/src/test/java/tests/support/
Support_HttpServer.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
218 InputStream in = socket.getInputStream(); local
224 while (((line = readln(in)) != null) && (line.length() > 1)) {
227 // determine the resource requested in the first line
286 postTest(length, in);
291 in.close();
366 // the URL was in the format:
446 private void postTest(int length, InputStream in) {
451 data.write(in.read())
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/
DecodeTask.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
39 * decode is complete, even if the task is cancelled, the result is placed in the given cache.
122 InputStream in = null; local
130 in = reset(in);
131 if (in == null) {
169 in = new AutoCloseInputStream(orientationFd);
172 orientation = Exif.getOrientation(in, byteSize);
176 in.close()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
BufferedInputStreamTest.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
194 InputStream in = new InputStream() { local
221 final BufferedInputStream bufin = new BufferedInputStream(in);
260 InputStream in = new BufferedInputStream( local
262 in.skip(6);
263 in.mark(14);
264 in.read(new byte[14], 0, 14);
265 in.reset();
266 assertTrue("Wrong bytes", in.read() == 6 && in.read() == 7)
325 InputStream in = new BufferedInputStream( local
    [all...]

Completed in 47 milliseconds

<<21222324252627282930>>