Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/Browser/src/com/android/browser/homepages/
DTemplate.java52 void write(OutputStream stream, EntityData params) throws IOException; in write() argument
56 void writeValue(OutputStream stream, String key) throws IOException; in writeValue() argument
74 public void write(OutputStream stream, EntityData params) throws IOException { in write() argument
75 stream.write(mValue); in write()
89 public void write(OutputStream stream, EntityData params) throws IOException { in write() argument
90 params.writeValue(stream, mKey); in write()
106 public void write(OutputStream stream, EntityData params) throws IOException { in write() argument
110 mSubTemplate.write(stream, iter); in write()
159 public void writeValue(OutputStream stream, String key) throws IOException { in writeValue() argument
160 stream.write((byte[]) mData.get(key)); in writeValue()
[all …]
DRequestHandler.java129 public void writeValue(OutputStream stream, String key) throws IOException { in writeTemplatedIndex()
132 stream.write(htmlEncode(cursor.getString(0))); in writeTemplatedIndex()
134 stream.write(htmlEncode(cursor.getString(1))); in writeTemplatedIndex()
136 stream.write("data:image/png;base64,".getBytes()); in writeTemplatedIndex()
138 stream.write(Base64.encode(thumb, Base64.DEFAULT)); in writeTemplatedIndex()
169 public void writeValue(OutputStream stream, String key) throws IOException { in writeFolderIndex()
172 stream.write(f.getName().getBytes()); in writeFolderIndex()
175 stream.write(("file://" + f.getAbsolutePath()).getBytes()); in writeFolderIndex()
178 stream.write((f.isDirectory() ? "dir" : "file").getBytes()); in writeFolderIndex()
182 stream.write(readableFileSize(f.length()).getBytes()); in writeFolderIndex()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { in ContentTypeParser() argument
130 this(stream, null); in ContentTypeParser()
132 public ContentTypeParser(java.io.InputStream stream, String encoding) { in ContentTypeParser() argument
133 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in ContentTypeParser()
141 public void ReInit(java.io.InputStream stream) { in ReInit() argument
142 ReInit(stream, null); in ReInit()
144 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
145 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
153 public ContentTypeParser(java.io.Reader stream) { in ContentTypeParser() argument
154 jj_input_stream = new SimpleCharStream(stream, 1, 1); in ContentTypeParser()
[all …]
DContentTypeParserTokenManager.java635 public ContentTypeParserTokenManager(SimpleCharStream stream){ in ContentTypeParserTokenManager() argument
638 input_stream = stream; in ContentTypeParserTokenManager()
640 public ContentTypeParserTokenManager(SimpleCharStream stream, int lexState){ in ContentTypeParserTokenManager() argument
641 this(stream); in ContentTypeParserTokenManager()
644 public void ReInit(SimpleCharStream stream) in ReInit() argument
648 input_stream = stream; in ReInit()
658 public void ReInit(SimpleCharStream stream, int lexState) in ReInit() argument
660 ReInit(stream); in ReInit()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { in DateTimeParser() argument
429 this(stream, null); in DateTimeParser()
431 public DateTimeParser(java.io.InputStream stream, String encoding) { in DateTimeParser() argument
432 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in DateTimeParser()
440 public void ReInit(java.io.InputStream stream) { in ReInit() argument
441 ReInit(stream, null); in ReInit()
443 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
444 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
452 public DateTimeParser(java.io.Reader stream) { in DateTimeParser() argument
453 jj_input_stream = new SimpleCharStream(stream, 1, 1); in DateTimeParser()
[all …]
DDateTimeParserTokenManager.java674 public DateTimeParserTokenManager(SimpleCharStream stream){ in DateTimeParserTokenManager() argument
677 input_stream = stream; in DateTimeParserTokenManager()
679 public DateTimeParserTokenManager(SimpleCharStream stream, int lexState){ in DateTimeParserTokenManager() argument
680 this(stream); in DateTimeParserTokenManager()
683 public void ReInit(SimpleCharStream stream) in ReInit() argument
687 input_stream = stream; in ReInit()
697 public void ReInit(SimpleCharStream stream, int lexState) in ReInit() argument
699 ReInit(stream); in ReInit()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.java724 public AddressListParser(java.io.InputStream stream) { in AddressListParser() argument
725 this(stream, null); in AddressListParser()
727 public AddressListParser(java.io.InputStream stream, String encoding) { in AddressListParser() argument
728 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in AddressListParser()
737 public void ReInit(java.io.InputStream stream) { in ReInit() argument
738 ReInit(stream, null); in ReInit()
740 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
741 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
751 public AddressListParser(java.io.Reader stream) { in AddressListParser() argument
752 jj_input_stream = new SimpleCharStream(stream, 1, 1); in AddressListParser()
[all …]
DAddressListParserTokenManager.java749 public AddressListParserTokenManager(SimpleCharStream stream){ in AddressListParserTokenManager() argument
752 input_stream = stream; in AddressListParserTokenManager()
754 public AddressListParserTokenManager(SimpleCharStream stream, int lexState){ in AddressListParserTokenManager() argument
755 this(stream); in AddressListParserTokenManager()
758 public void ReInit(SimpleCharStream stream) in ReInit() argument
762 input_stream = stream; in ReInit()
772 public void ReInit(SimpleCharStream stream, int lexState) in ReInit() argument
774 ReInit(stream); in ReInit()
/packages/apps/Mms/src/com/android/mms/transaction/
DNotificationPlayer.java53 int stream; field in NotificationPlayer.Command
59 return "{ code=" + code + " looping=" + looping + " stream=" + stream in toString()
90 player.setAudioStreamType(mCmd.stream); in run()
98 audioManager.requestAudioFocus(null, mCmd.stream, in run()
101 audioManager.requestAudioFocus(null, mCmd.stream, in run()
273 public void play(Context context, Uri uri, boolean looping, int stream, float volume) { in play() argument
280 cmd.stream = stream; in play()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DFileWriterWithEncoding.java230 OutputStream stream = null; in initWriter() local
233 stream = new FileOutputStream(file, append); in initWriter()
235 writer = new OutputStreamWriter(stream, (Charset)encoding); in initWriter()
237 writer = new OutputStreamWriter(stream, (CharsetEncoder)encoding); in initWriter()
239 writer = new OutputStreamWriter(stream, (String)encoding); in initWriter()
243 IOUtils.closeQuietly(stream); in initWriter()
250 IOUtils.closeQuietly(stream); in initWriter()
DLockableFileWriter.java232 OutputStream stream = null; in initWriter() local
238 stream = new FileOutputStream(file.getAbsolutePath(), append); in initWriter()
239 writer = new OutputStreamWriter(stream, encoding); in initWriter()
243 IOUtils.closeQuietly(stream); in initWriter()
251 IOUtils.closeQuietly(stream); in initWriter()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java40 private InputStream stream; field in QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { in QuotedPrintableInputStream() argument
46 this.stream = stream; in QuotedPrintableInputStream()
55 stream.close(); in close()
87 int i = stream.read(); in populatePushbackQueue()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DMoreKeysResources.java62 final InputStream stream = JarUtils.openResource(name); in MoreKeysResources() local
64 mResourcesMap.put(language, new StringResourceMap(stream)); in MoreKeysResources()
66 close(stream); in MoreKeysResources()
256 private static void close(Closeable stream) { in close() argument
258 if (stream != null) { in close()
259 stream.close(); in close()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java71 BufferedInputStream stream = null; in testExtraOutput() local
89 stream = new BufferedInputStream(new FileInputStream(file)); in testExtraOutput()
90 stream.read(jpegData); in testExtraOutput()
92 if (stream != null) stream.close(); in testExtraOutput()
/packages/apps/Camera/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java71 BufferedInputStream stream = null; in testExtraOutput() local
89 stream = new BufferedInputStream(new FileInputStream(file)); in testExtraOutput()
90 stream.read(jpegData); in testExtraOutput()
92 if (stream != null) stream.close(); in testExtraOutput()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java859 …ByteArrayOutputStream stream = new ByteArrayOutputStream(msgStart.length + msgEnd.length + length); in encodeGeneric() local
860 stream.write(msgStart); in encodeGeneric()
863 stream.write("BEGIN:MSG\r\n".getBytes("UTF-8")); in encodeGeneric()
864 stream.write(fragment); in encodeGeneric()
865 stream.write("\r\nEND:MSG\r\n".getBytes("UTF-8")); in encodeGeneric()
867 stream.write(msgEnd); in encodeGeneric()
869 if(V) Log.v(TAG,stream.toString("UTF-8")); in encodeGeneric()
870 return stream.toByteArray(); in encodeGeneric()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java76 BufferedInputStream stream = null; in testExtraOutput() local
94 stream = new BufferedInputStream(new FileInputStream(file)); in testExtraOutput()
95 stream.read(jpegData); in testExtraOutput()
97 if (stream != null) stream.close(); in testExtraOutput()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DHexDump.java60 OutputStream stream, int index) in dump() argument
69 if (stream == null) { in dump()
98 stream.write(buffer.toString().getBytes()); in dump()
99 stream.flush(); in dump()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DRfc822Output.java131 OutputStream stream = new BufferedOutputStream(out, 1024); in writeTo() local
132 Writer writer = new OutputStreamWriter(stream); in writeTo()
171 writeTextWithHeaders(writer, stream, bodyText); in writeTo()
194 writeTextWithHeaders(writer, stream, bodyText); in writeTo()
200 writeOneAttachment(context, writer, stream, att); in writeTo()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DEmlMessageLoader.java56 final InputStream stream; in loadInBackground() local
58 stream = resolver.openInputStream(mEmlFileUri); in loadInBackground()
67 mimeMessage = new MimeMessage(stream); in loadInBackground()
77 stream.close(); in loadInBackground()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.java155 InputStream stream = mPackageContext.getContentResolver().openInputStream(uri); in getDrawable() local
156 if (stream == null) { in getDrawable()
160 return Drawable.createFromStream(stream, null); in getDrawable()
163 stream.close(); in getDrawable()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivity.java91 final Uri stream = (Uri)intent.getParcelableExtra(Intent.EXTRA_STREAM); in onCreate() local
98 if (stream != null && type != null) { in onCreate()
99 if (V) Log.v(TAG, "Get ACTION_SEND intent: Uri = " + stream + "; mimetype = " in onCreate()
106 .saveSendingFileInfo(type,stream.toString(), false); in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java228 static void writeUIntToStream(final OutputStream stream, final int value, final int size) in writeUIntToStream() argument
232 stream.write((value >> 24) & 0xFF); in writeUIntToStream()
235 stream.write((value >> 16) & 0xFF); in writeUIntToStream()
238 stream.write((value >> 8) & 0xFF); in writeUIntToStream()
241 stream.write(value & 0xFF); in writeUIntToStream()
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapTempFileLiteral.java45 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { in ImapTempFileLiteral() argument
46 mSize = stream.getLength(); in ImapTempFileLiteral()
54 IOUtils.copy(stream, out); in ImapTempFileLiteral()
/packages/apps/Email/src/com/android/email/service/
DImapTempFileLiteral.java48 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { in ImapTempFileLiteral() argument
49 mSize = stream.getLength(); in ImapTempFileLiteral()
57 IOUtils.copy(stream, out); in ImapTempFileLiteral()

123