Searched refs:stream (Results 1 - 25 of 33) sorted by path

12

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppHandoverReceiver.java48 Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM);
49 if (stream != null && type != null) {
50 // Save type/stream, will be used when adding transfer
53 stream.toString(), true);
55 if (D) Log.d(TAG, "No mimeType or stream attached to handover request");
65 if (D) Log.d(TAG, "No mimeType or stream attached to handover request");
H A DBluetoothOppLauncherActivity.java80 Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM);
87 if (stream != null && type != null) {
88 if (V) Log.v(TAG, "Get ACTION_SEND intent: Uri = " + stream + "; mimetype = "
90 // Save type/stream, will be used when adding transfer
93 stream.toString(), false);
H A DTestActivity.java110 Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM);
112 if (stream != null && type != null) {
116 * addAttachment(stream);
118 Log.v(Constants.TAG, " Get share intent with Uri " + stream + " mimetype is "
121 // stream.getAuthority() + " " + Uri.parse(stream));
122 Cursor cursor = c.getContentResolver().query(stream, null, null, null, null);
129 * values.put(BluetoothShare.URI, stream.toString());
/packages/apps/Browser/src/com/android/browser/
H A DSnapshotTab.java217 GZIPInputStream stream = new GZIPInputStream(ins);
218 web.loadViewState(stream);
H A DTab.java1848 GZIPOutputStream stream = new GZIPOutputStream(outs);
1850 web.saveViewState(stream, callback);
1853 stream.flush();
1854 stream.close();
1885 ByteArrayOutputStream stream = new ByteArrayOutputStream();
1886 bitmap.compress(CompressFormat.PNG, 100, stream);
1887 return stream.toByteArray();
/packages/apps/Browser/src/com/android/browser/homepages/
H A DRequestHandler.java129 public void writeValue(OutputStream stream, String key) throws IOException {
132 stream.write(htmlEncode(cursor.getString(0)));
134 stream.write(htmlEncode(cursor.getString(1)));
136 stream.write("data:image/png;base64,".getBytes());
138 stream.write(Base64.encode(thumb, Base64.DEFAULT));
169 public void writeValue(OutputStream stream, String key) throws IOException {
172 stream.write(f.getName().getBytes());
175 stream.write(("file://" + f.getAbsolutePath()).getBytes());
178 stream.write((f.isDirectory() ? "dir" : "file").getBytes());
182 stream
[all...]
H A DTemplate.java52 void write(OutputStream stream, EntityData params) throws IOException; argument
56 void writeValue(OutputStream stream, String key) throws IOException; argument
74 public void write(OutputStream stream, EntityData params) throws IOException { argument
75 stream.write(mValue);
89 public void write(OutputStream stream, EntityData params) throws IOException { argument
90 params.writeValue(stream, mKey);
106 public void write(OutputStream stream, EntityData params) throws IOException { argument
110 mSubTemplate.write(stream, iter);
159 public void writeValue(OutputStream stream, String key) throws IOException { argument
160 stream
226 write(OutputStream stream) argument
230 write(OutputStream stream, EntityData data) argument
[all...]
/packages/apps/Camera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java71 BufferedInputStream stream = null;
89 stream = new BufferedInputStream(new FileInputStream(file));
90 stream.read(jpegData);
92 if (stream != null) stream.close();
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DRfc822Output.java175 * Write the entire message to an output stream. This method provides buffering, so it is
176 * not necessary to pass in a buffered output stream here.
180 * @param out the output stream to write the message to
191 OutputStream stream = new BufferedOutputStream(out, 1024);
192 Writer writer = new OutputStreamWriter(stream);
231 writeTextWithHeaders(writer, stream, bodyText);
255 writeTextWithHeaders(writer, stream, bodyText);
263 writeOneAttachment(context, writer, stream, attachment);
299 // Set up input stream and write it out via base64
310 // switch to output stream fo
[all...]
/packages/apps/Email/src/com/android/email/mail/store/imap/
H A DImapTempFileLiteral.java46 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { argument
47 mSize = stream.getLength();
55 IOUtils.copy(stream, out);
82 // Return 0 byte stream as a dummy...
/packages/apps/Email/src/org/apache/commons/io/
H A DHexDump.java48 * @param stream the OutputStream to which the data is to be
53 * the data to stream
56 * @throws IllegalArgumentException if the output stream is null
60 OutputStream stream, int index)
69 if (stream == null) {
98 stream.write(buffer.toString().getBytes());
99 stream.flush();
59 dump(byte[] data, long offset, OutputStream stream, int index) argument
/packages/apps/Email/src/org/apache/commons/io/output/
H A DDemuxOutputStream.java23 * Data written to this stream is forwarded to a stream that has been associated
35 * Bind the specified stream to the current thread.
37 * @param output the stream to bind
42 OutputStream stream = getStream();
44 return stream;
48 * Closes stream associated with current thread.
64 * Flushes stream associated with current thread.
80 * Writes byte to stream associated with current thread.
82 * @param ch the byte to write to stream
[all...]
H A DFileWriterWithEncoding.java230 OutputStream stream = null;
233 stream = new FileOutputStream(file, append);
235 writer = new OutputStreamWriter(stream, (Charset)encoding);
237 writer = new OutputStreamWriter(stream, (CharsetEncoder)encoding);
239 writer = new OutputStreamWriter(stream, (String)encoding);
243 IOUtils.closeQuietly(stream);
250 IOUtils.closeQuietly(stream);
310 * Flush the stream.
318 * Close the stream.
H A DLockableFileWriter.java232 OutputStream stream = null;
238 stream = new FileOutputStream(file.getAbsolutePath(), append);
239 writer = new OutputStreamWriter(stream, encoding);
243 IOUtils.closeQuietly(stream);
251 IOUtils.closeQuietly(stream);
326 * Flush the stream.
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java31 * Performs Quoted-Printable decoding on an underlying stream.
40 private InputStream stream; field in class:QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { argument
46 this.stream = stream;
50 * Closes the underlying stream.
55 stream.close();
72 * Pulls bytes out of the underlying stream and places them in the
74 * underlying stream directly) to detect and filter out "transport
78 * @throws IOException Underlying stream thre
[all...]
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParser.java724 public AddressListParser(java.io.InputStream stream) { argument
725 this(stream, null);
727 public AddressListParser(java.io.InputStream stream, String encoding) { argument
728 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
737 public void ReInit(java.io.InputStream stream) { argument
738 ReInit(stream, null);
740 public void ReInit(java.io.InputStream stream, String encoding) { argument
741 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
751 public AddressListParser(java.io.Reader stream) { argument
752 jj_input_stream = new SimpleCharStream(stream,
761 ReInit(java.io.Reader stream) argument
[all...]
H A DAddressListParserTokenManager.java749 public AddressListParserTokenManager(SimpleCharStream stream){ argument
752 input_stream = stream;
754 public AddressListParserTokenManager(SimpleCharStream stream, int lexState){ argument
755 this(stream);
758 public void ReInit(SimpleCharStream stream) argument
762 input_stream = stream;
772 public void ReInit(SimpleCharStream stream, int lexState) argument
774 ReInit(stream);
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { argument
130 this(stream, null);
132 public ContentTypeParser(java.io.InputStream stream, String encoding) { argument
133 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
141 public void ReInit(java.io.InputStream stream) { argument
142 ReInit(stream, null);
144 public void ReInit(java.io.InputStream stream, String encoding) { argument
145 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
153 public ContentTypeParser(java.io.Reader stream) { argument
154 jj_input_stream = new SimpleCharStream(stream,
162 ReInit(java.io.Reader stream) argument
[all...]
H A DContentTypeParserTokenManager.java635 public ContentTypeParserTokenManager(SimpleCharStream stream){ argument
638 input_stream = stream;
640 public ContentTypeParserTokenManager(SimpleCharStream stream, int lexState){ argument
641 this(stream);
644 public void ReInit(SimpleCharStream stream) argument
648 input_stream = stream;
658 public void ReInit(SimpleCharStream stream, int lexState) argument
660 ReInit(stream);
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { argument
429 this(stream, null);
431 public DateTimeParser(java.io.InputStream stream, String encoding) { argument
432 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
440 public void ReInit(java.io.InputStream stream) { argument
441 ReInit(stream, null);
443 public void ReInit(java.io.InputStream stream, String encoding) { argument
444 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
452 public DateTimeParser(java.io.Reader stream) { argument
453 jj_input_stream = new SimpleCharStream(stream,
461 ReInit(java.io.Reader stream) argument
[all...]
H A DDateTimeParserTokenManager.java674 public DateTimeParserTokenManager(SimpleCharStream stream){ argument
677 input_stream = stream;
679 public DateTimeParserTokenManager(SimpleCharStream stream, int lexState){ argument
680 this(stream);
683 public void ReInit(SimpleCharStream stream) argument
687 input_stream = stream;
697 public void ReInit(SimpleCharStream stream, int lexState) argument
699 ReInit(stream);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DFingerprint.java40 // Hard coded stream id length limit is 40-chars. Don't ask!
77 * Note that this will close() stream after calculating the digest.
81 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) argument
86 in = new DigestInputStream(stream, DIGESTER);
102 * Decodes a string stream id to a 128-bit fingerprint.
125 * @param streamIdList list of stream id's to be scanned
138 * Encodes a 128-bit fingerprint as a string stream id.
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
H A DImageLoader.java222 private void closeStream(Closeable stream) { argument
223 if (stream != null) {
225 stream.close();
253 Log.v(LOGTAG, "loading uri " + uri.getPath() + " input stream: "
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DSaveCopyTask.java76 private static void closeStream(Closeable stream) { argument
77 if (stream != null) {
79 stream.close();
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java76 BufferedInputStream stream = null;
94 stream = new BufferedInputStream(new FileInputStream(file));
95 stream.read(jpegData);
97 if (stream != null) stream.close();

Completed in 267 milliseconds

12