Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DRfc822Output.java192 Writer writer = new OutputStreamWriter(stream); in writeTo() local
198 writeHeader(writer, "Date", date); in writeTo()
200 writeEncodedHeader(writer, "Subject", message.mSubject); in writeTo()
202 writeHeader(writer, "Message-ID", message.mMessageId); in writeTo()
204 writeAddressHeader(writer, "From", message.mFrom); in writeTo()
205 writeAddressHeader(writer, "To", message.mTo); in writeTo()
206 writeAddressHeader(writer, "Cc", message.mCc); in writeTo()
210 writeAddressHeader(writer, "Bcc", message.mBcc); in writeTo()
212 writeAddressHeader(writer, "Reply-To", message.mReplyTo); in writeTo()
213 writeHeader(writer, "MIME-Version", "1.0"); in writeTo()
[all …]
DMimeMultipart.java86 BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out), 1024); in writeTo() local
89 writer.write(mPreamble + "\r\n"); in writeTo()
94 writer.write("--" + mBoundary + "\r\n"); in writeTo()
95 writer.flush(); in writeTo()
97 writer.write("\r\n"); in writeTo()
100 writer.write("--" + mBoundary + "--\r\n"); in writeTo()
101 writer.flush(); in writeTo()
DMimeHeader.java125 BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out), 1024); in writeTo() local
128 writer.write(field.name + ": " + field.value + "\r\n"); in writeTo()
131 writer.flush(); in writeTo()
DMimeBodyPart.java185 BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out), 1024); in writeTo() local
187 writer.write("\r\n"); in writeTo()
188 writer.flush(); in writeTo()
DMimeMessage.java486 BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out), 1024); in writeTo() local
492 writer.write("\r\n"); in writeTo()
493 writer.flush(); in writeTo()
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/
DSmilXmlSerializer.java36 Writer writer = new BufferedWriter(new OutputStreamWriter(out, "UTF-8"), 2048); in serialize() local
38 writeElement(writer, smilDoc.getDocumentElement()); in serialize()
39 writer.flush(); in serialize()
47 private static void writeElement(Writer writer, Element element) in writeElement() argument
49 writer.write('<'); in writeElement()
50 writer.write(element.getTagName()); in writeElement()
56 writer.write(" " + attribute.getName()); in writeElement()
57 writer.write("=\"" + attribute.getValue() + "\""); in writeElement()
65 writer.write('>'); in writeElement()
68 writeElement(writer, childElement); in writeElement()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DCalendarUtilities.java595 static private void writeNoDST(SimpleIcsWriter writer, TimeZone tz, String offsetString) in writeNoDST() argument
597 writer.writeTag("BEGIN", "STANDARD"); in writeNoDST()
598 writer.writeTag("TZOFFSETFROM", offsetString); in writeNoDST()
599 writer.writeTag("TZOFFSETTO", offsetString); in writeNoDST()
601 writer.writeTag("DTSTART", millisToEasDateTime(0L)); in writeNoDST()
602 writer.writeTag("END", "STANDARD"); in writeNoDST()
603 writer.writeTag("END", "VTIMEZONE"); in writeNoDST()
611 static void timeZoneToVTimezone(TimeZone tz, SimpleIcsWriter writer) in timeZoneToVTimezone() argument
618 writer.writeTag("BEGIN", "VTIMEZONE"); in timeZoneToVTimezone()
619 writer.writeTag("TZID", tz.getID()); in timeZoneToVTimezone()
[all …]
/packages/apps/Email/src/org/apache/commons/io/output/
DFileWriterWithEncoding.java231 Writer writer = null; in initWriter() local
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()
242 IOUtils.closeQuietly(writer); in initWriter()
249 IOUtils.closeQuietly(writer); in initWriter()
256 return writer; in initWriter()
DLockableFileWriter.java233 Writer writer = null; in initWriter() local
236 writer = new FileWriter(file.getAbsolutePath(), append); in initWriter()
239 writer = new OutputStreamWriter(stream, encoding); in initWriter()
242 IOUtils.closeQuietly(writer); in initWriter()
250 IOUtils.closeQuietly(writer); in initWriter()
258 return writer; in initWriter()
/packages/apps/Browser/tests/src/com/android/browser/
DPopularUrlsTest.java438 void loopUrls(BufferedReader input, OutputStreamWriter writer, in loopUrls() argument
492 if (writer != null) { in loopUrls()
493 writer.write(page + "|" + (stopTime - startTime) + newLine); in loopUrls()
494 writer.flush(); in loopUrls()
508 OutputStreamWriter writer = getOutputStream(); in testLoadPerformance() local
512 loopUrls(bufferedReader, writer, true, PERF_LOOPCOUNT); in testLoadPerformance()
522 if (writer != null) { in testLoadPerformance()
523 writer.close(); in testLoadPerformance()
/packages/apps/Email/src/org/apache/james/mime4j/message/
DMultipart.java172 …BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out, CharsetUtil.getCharset(getC… in writeTo() local
174 writer.write(getPreamble() + "\r\n"); in writeTo()
177 writer.write(boundary + "\r\n"); in writeTo()
181 writer.write(getEpilogue() + "\r\n"); in writeTo()
182 writer.write(boundary + "--" + "\r\n"); in writeTo()
DHeader.java153 …BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out, CharsetUtil.getCharset(char… in writeTo() local
154 writer.write(toString()+ "\r\n"); in writeTo()
155 writer.flush(); in writeTo()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java2178 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
2179 writer.println("" + mPlayListLen + " items in queue, currently at index " + mPlayPos); in dump()
2180 writer.println("Currently loaded:"); in dump()
2181 writer.println(getArtistName()); in dump()
2182 writer.println(getAlbumName()); in dump()
2183 writer.println(getTrackName()); in dump()
2184 writer.println(getPath()); in dump()
2185 writer.println("playing: " + mIsSupposedToBePlaying); in dump()
2186 writer.println("actual: " + mPlayer.mCurrentMediaPlayer.isPlaying()); in dump()
2187 writer.println("shuffle mode: " + mShuffleMode); in dump()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DExportProcessor.java102 Writer writer = null; in runInternal() local
140 writer = new BufferedWriter(new OutputStreamWriter(outputStream)); in runInternal()
174 writer.write(composer.createOneEntry()); in runInternal()
210 if (writer != null) { in runInternal()
212 writer.close(); in runInternal()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityMediumTests.java126 FileWriter writer = new FileWriter(file); in testAttachmentExists() local
127 writer.write("Foo"); in testAttachmentExists()
128 writer.flush(); in testAttachmentExists()
129 writer.close(); in testAttachmentExists()
/packages/apps/Email/src/com/android/email/widget/
DWidgetManager.java110 public void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
113 writer.println("Widget #" + (++n)); in dump()
114 writer.println(" " + widget.toString()); in dump()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java115 OutputStreamWriter writer = new OutputStreamWriter(c.getOutputStream()); in post() local
116 writer.write(content); in post()
117 writer.close(); in post()
/packages/experimental/procstatlog/
Dprocstatreport.py136 writer = csv.writer(file(filename, "w"))
137 writer.writerow(["Time"] + titles)
148 writer.writerow([msec] + [values.get(n, "") for n in range(num_cols)])
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java960 Writer writer) throws IOException { in writeLines() argument
970 writer.write(line.toString()); in writeLines()
972 writer.write(lineEnding); in writeLines()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java863 SimpleIcsWriter writer = new SimpleIcsWriter(); in testTimeZoneToVTimezone() local
870 writer = new SimpleIcsWriter(); in testTimeZoneToVTimezone()
871 CalendarUtilities.timeZoneToVTimezone(tz, writer); in testTimeZoneToVTimezone()
872 String vc = writer.toString(); in testTimeZoneToVTimezone()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java853 SimpleIcsWriter writer = new SimpleIcsWriter(); in testTimeZoneToVTimezone() local
860 writer = new SimpleIcsWriter(); in testTimeZoneToVTimezone()
861 CalendarUtilities.timeZoneToVTimezone(tz, writer); in testTimeZoneToVTimezone()
862 String vc = writer.toString(); in testTimeZoneToVTimezone()
/packages/apps/Email/src/com/android/email/provider/
DWidgetProvider.java117 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
118 WidgetManager.getInstance().dump(fd, writer, args); in dump()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DTestLoaderManager.java222 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) {
223 mDelegate.dump(prefix, fd, writer, args);
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DVideoEditorProject.java1243 final StringWriter writer = new StringWriter(); in saveToXml() local
1244 serializer.setOutput(writer); in saveToXml()
1280 out.write(writer.toString().getBytes("UTF-8")); in saveToXml()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadService.java431 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
432 final IndentingPrintWriter pw = new IndentingPrintWriter(writer, " "); in dump()

12