Home
last modified time | relevance | path

Searched refs:output (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java38 import org.apache.commons.io.output.ByteArrayOutputStream;
157 public static void closeQuietly(Writer output) { in closeQuietly() argument
159 if (output != null) { in closeQuietly()
160 output.close(); in closeQuietly()
193 public static void closeQuietly(OutputStream output) { in closeQuietly() argument
195 if (output != null) { in closeQuietly()
196 output.close(); in closeQuietly()
217 ByteArrayOutputStream output = new ByteArrayOutputStream(); in toByteArray() local
218 copy(input, output); in toByteArray()
219 return output.toByteArray(); in toByteArray()
[all …]
DCopyUtils.java136 public static void copy(byte[] input, OutputStream output) in copy() argument
138 output.write(input); in copy()
153 public static void copy(byte[] input, Writer output) in copy() argument
156 copy(in, output); in copy()
172 Writer output, in copy() argument
176 copy(in, output, encoding); in copy()
194 OutputStream output) in copy() argument
200 output.write(buffer, 0, n); in copy()
219 Writer output) in copy() argument
225 output.write(buffer, 0, n); in copy()
[all …]
DEndianUtils.java284 public static void writeSwappedShort(OutputStream output, short value) in writeSwappedShort() argument
287 output.write( (byte)( ( value >> 0 ) & 0xff ) ); in writeSwappedShort()
288 output.write( (byte)( ( value >> 8 ) & 0xff ) ); in writeSwappedShort()
329 public static void writeSwappedInteger(OutputStream output, int value) in writeSwappedInteger() argument
332 output.write( (byte)( ( value >> 0 ) & 0xff ) ); in writeSwappedInteger()
333 output.write( (byte)( ( value >> 8 ) & 0xff ) ); in writeSwappedInteger()
334 output.write( (byte)( ( value >> 16 ) & 0xff ) ); in writeSwappedInteger()
335 output.write( (byte)( ( value >> 24 ) & 0xff ) ); in writeSwappedInteger()
390 public static void writeSwappedLong(OutputStream output, long value) in writeSwappedLong() argument
393 output.write( (byte)( ( value >> 0 ) & 0xff ) ); in writeSwappedLong()
[all …]
DFileUtils.java43 import org.apache.commons.io.output.NullOutputStream;
671 FileOutputStream output = new FileOutputStream(destFile); in doCopyFile() local
673 IOUtils.copy(input, output); in doCopyFile()
675 IOUtils.closeQuietly(output); in doCopyFile()
954 FileOutputStream output = openOutputStream(destination); in copyURLToFile() local
956 IOUtils.copy(input, output); in copyURLToFile()
958 IOUtils.closeQuietly(output); in copyURLToFile()
/packages/apps/Email/src/org/apache/commons/io/output/
DDemuxOutputStream.java17 package org.apache.commons.io.output;
40 public OutputStream bindStream( OutputStream output ) in bindStream() argument
43 m_streams.set( output ); in bindStream()
55 OutputStream output = getStream(); in close() local
56 if( null != output ) in close()
58 output.close(); in close()
70 OutputStream output = getStream(); in flush() local
71 if( null != output ) in flush()
73 output.flush(); in flush()
86 OutputStream output = getStream(); in write() local
[all …]
DCloseShieldOutputStream.java17 package org.apache.commons.io.output;
DClosedOutputStream.java17 package org.apache.commons.io.output;
DNullOutputStream.java17 package org.apache.commons.io.output;
DNullWriter.java17 package org.apache.commons.io.output;
DProxyOutputStream.java17 package org.apache.commons.io.output;
DTeeOutputStream.java17 package org.apache.commons.io.output;
DProxyWriter.java17 package org.apache.commons.io.output;
DCountingOutputStream.java17 package org.apache.commons.io.output;
DThresholdingOutputStream.java17 package org.apache.commons.io.output;
DDeferredFileOutputStream.java17 package org.apache.commons.io.output;
DByteArrayOutputStream.java17 package org.apache.commons.io.output;
DFileWriterWithEncoding.java17 package org.apache.commons.io.output;
DLockableFileWriter.java17 package org.apache.commons.io.output;
/packages/apps/Camera/tests/src/com/android/camera/stress/
DImageCapture.java104 public void getMemoryWriteToLog(Writer output) { in getMemoryWriteToLog() argument
110 output.write(memusage); in getMemoryWriteToLog()
157 …public boolean validateMemoryResult (int startPid, int startMemory, Writer output) throws Exceptio… in validateMemoryResult() argument
162 output.write("The total diff = " + (mEndMemory - startMemory)); in validateMemoryResult()
163 output.write("\n\n"); in validateMemoryResult()
166 output.write("mediaserver died. Test failed\n"); in validateMemoryResult()
187 Writer output = new BufferedWriter(new FileWriter(imageCaptureMemFile, true)); in testImageCapture() local
188 output.write("Camera Image capture\n"); in testImageCapture()
189 output.write("No of loops : " + TOTAL_NUMBER_OF_VIDEOCAPTURE + "\n"); in testImageCapture()
190 getMemoryWriteToLog(output); in testImageCapture()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DFormatDateRangeTest.java41 int flags, String output) { in DateTest() argument
63 expectedOutput = output; in DateTest()
68 int flags, String output) { in DateTest() argument
71 flags, output); in DateTest()
193 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); in testAll() local
194 if (!dateTest.expectedOutput.equals(output)) { in testAll()
197 + " actual: " + output); in testAll()
199 assertEquals(dateTest.expectedOutput, output); in testAll()
DWeekNumberTest.java212 String output = DateUtils.formatDateTime(mContext, millis, flags); in testAll() local
214 + " date: " + output in testAll()
224 String output = DateUtils.formatDateTime(mContext, millis, flags); in testAll() local
226 + " date: " + output in testAll()