/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/ |
H A D | DemuxOutputStream.java | 17 package org.apache.commons.io.output;
37 * @param output the stream to bind
40 public OutputStream bindStream( OutputStream output )
43 m_streams.set( output );
56 OutputStream output = getStream();
57 if( null != output )
59 output.close();
72 OutputStream output = getStream();
73 if( null != output )
75 output [all...] |
H A D | CloseShieldOutputStream.java | 17 package org.apache.commons.io.output;
22 * Proxy stream that prevents the underlying output stream from being closed.
24 * This class is typically used in cases where an output stream needs to be
26 * other components would still use the stream for output.
34 * Creates a proxy that shields the given output stream from being
37 * @param out underlying output stream
44 * Replaces the underlying output stream with a {@link ClosedOutputStream}
45 * sentinel. The original output stream will remain open, but this proxy
|
H A D | ClosedOutputStream.java | 17 package org.apache.commons.io.output;
23 * Closed output stream. This stream throws an exception on all attempts to
27 * that accept an output stream and acting as a sentinel value instead of
28 * a <code>null</code> output stream.
|
H A D | NullOutputStream.java | 17 package org.apache.commons.io.output;
25 * This output stream has no destination (file/socket etc.) and all
39 * Does nothing - output to <code>/dev/null</code>.
49 * Does nothing - output to <code>/dev/null</code>.
57 * Does nothing - output to <code>/dev/null</code>.
|
H A D | NullWriter.java | 17 package org.apache.commons.io.output;
43 * Does nothing - output to <code>/dev/null</code>.
51 * Does nothing - output to <code>/dev/null</code>.
59 * Does nothing - output to <code>/dev/null</code>.
69 * Does nothing - output to <code>/dev/null</code>.
77 * Does nothing - output to <code>/dev/null</code>.
|
H A D | ProxyOutputStream.java | 17 package org.apache.commons.io.output;
|
H A D | CountingOutputStream.java | 17 package org.apache.commons.io.output;
23 * A decorating output stream that counts the number of bytes that have passed
47 * Writes the contents of the specified byte array to this output stream
60 * Writes a portion of the specified byte array to this output stream
75 * Writes a single byte to the output stream adding to the count of the
|
H A D | ProxyWriter.java | 17 package org.apache.commons.io.output;
|
H A D | TeeOutputStream.java | 17 package org.apache.commons.io.output;
|
H A D | ThresholdingOutputStream.java | 17 package org.apache.commons.io.output;
24 * An output stream which triggers an event when a specified number of bytes of
30 * overrides ultimately call the corresponding methods in the underlying output
55 * The number of bytes written to the output stream.
85 * Writes the specified byte to this output stream.
101 * output stream.
117 * offset <code>off</code> to this output stream.
134 * Flushes this output stream and forces any buffered output bytes to be
146 * Closes this output strea [all...] |
/packages/apps/Email/emailcommon/src/org/apache/commons/io/ |
H A D | CopyUtils.java | 133 * @param output the <code>OutputStream</code> to write to
136 public static void copy(byte[] input, OutputStream output)
argument 138 output.write(input);
150 * @param output the <code>Writer</code> to write to
153 public static void copy(byte[] input, Writer output)
argument 156 copy(in, output);
164 * @param output the <code>Writer</code> to write to
172 Writer output,
176 copy(in, output, encoding);
188 * @param output th 170 copy( byte[] input, Writer output, String encoding) argument 192 copy( InputStream input, OutputStream output) argument 217 copy( Reader input, Writer output) argument 243 copy( InputStream input, Writer output) argument 261 copy( InputStream input, Writer output, String encoding) argument 282 copy( Reader input, OutputStream output) argument 305 copy( String input, OutputStream output) argument 327 copy(String input, Writer output) argument [all...] |
H A D | IOUtils.java | 38 import org.apache.commons.io.output.ByteArrayOutputStream;
43 * This class provides static utility methods for input/output operations.
155 * @param output the Writer to close, may be null or already closed
157 public static void closeQuietly(Writer output) {
argument 159 if (output != null) {
160 output.close();
191 * @param output the OutputStream to close, may be null or already closed
193 public static void closeQuietly(OutputStream output) {
argument 195 if (output != null) {
196 output 628 write(byte[] data, OutputStream output) argument 648 write(byte[] data, Writer output) argument 671 write(byte[] data, Writer output, String encoding) argument 695 write(char[] data, Writer output) argument 715 write(char[] data, OutputStream output) argument 740 write(char[] data, OutputStream output, String encoding) argument 762 write(String data, Writer output) argument 781 write(String data, OutputStream output) argument 804 write(String data, OutputStream output, String encoding) argument 826 write(StringBuffer data, Writer output) argument 846 write(StringBuffer data, OutputStream output) argument 869 write(StringBuffer data, OutputStream output, String encoding) argument 894 writeLines(Collection<Object> lines, String lineEnding, OutputStream output) argument 927 writeLines(Collection<Object> lines, String lineEnding, OutputStream output, String encoding) argument 998 copy(InputStream input, OutputStream output) argument 1020 copyLarge(InputStream input, OutputStream output) argument 1047 copy(InputStream input, Writer output) argument 1072 copy(InputStream input, Writer output, String encoding) argument 1103 copy(Reader input, Writer output) argument 1124 copyLarge(Reader input, Writer output) argument 1154 copy(Reader input, OutputStream output) argument 1186 copy(Reader input, OutputStream output, String encoding) argument [all...] |
H A D | EndianUtils.java | 280 * @param output target OutputStream
284 public static void writeSwappedShort(OutputStream output, short value)
argument 287 output.write( (byte)( ( value >> 0 ) & 0xff ) );
288 output.write( (byte)( ( value >> 8 ) & 0xff ) );
325 * @param output target OutputStream
329 public static void writeSwappedInteger(OutputStream output, int value)
argument 332 output.write( (byte)( ( value >> 0 ) & 0xff ) );
333 output.write( (byte)( ( value >> 8 ) & 0xff ) );
334 output.write( (byte)( ( value >> 16 ) & 0xff ) );
335 output 390 writeSwappedLong(OutputStream output, long value) argument 427 writeSwappedFloat(OutputStream output, float value) argument 453 writeSwappedDouble(OutputStream output, double value) argument [all...] |
/packages/inputmethods/LatinIME/native/src/ |
H A D | debug.h | 23 static inline unsigned char* convertToUnibyteString(unsigned short* input, unsigned char* output, argument 27 output[i] = input[i] & 0xFF; 28 output[i] = 0; 29 return output; 33 unsigned char* output, const unsigned int length, unsigned char c) { 36 output[i] = input[i] & 0xFF; 37 output[i-1] = c; 38 output[i] = 0; 39 return output; 32 convertToUnibyteStringAndReplaceLastChar(unsigned short* input, unsigned char* output, const unsigned int length, unsigned char c) argument
|
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/ |
H A D | BackendTest.java | 43 StringBuffer output = new StringBuffer(); 49 output.append("aa"); 56 output.append("bb"); 64 output.append("cc"); 67 output.append("dd"); 70 output.append("ee"); 84 // Marks the start of our output, trim anything before it 89 output.append(binOutput.substring(elhIndex, binOutput.length())); 95 output.append(e.getMessage()); 104 return output [all...] |
/packages/apps/Nfc/src/com/android/nfc/snep/ |
H A D | SnepMessage.java | 130 DataOutputStream output = new DataOutputStream(buffer); 131 output.writeByte(mVersion); 132 output.writeByte(mField); 134 output.writeInt(bytes.length + 4); 135 output.writeInt(mAcceptableLength); 137 output.writeInt(bytes.length); 139 output.write(bytes);
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
H A D | NdefPushProtocol.java | 150 DataOutputStream output = new DataOutputStream(buffer); 153 output.writeByte(VERSION); 154 output.writeInt(mNumMessages); 156 output.writeByte(mActions[i]); 158 output.writeInt(bytes.length); 159 output.write(bytes);
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | FormatDateRangeTest.java | 40 int flags, String output) { 62 expectedOutput = output; 67 int flags, String output) { 70 flags, output); 188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); 189 if (!dateTest.expectedOutput.equals(output)) { 192 + " actual: " + output); 194 assertEquals(dateTest.expectedOutput, output); 38 DateTest(int year1, int month1, int day1, int hour1, int minute1, int year2, int month2, int day2, int hour2, int minute2, int flags, String output) argument 66 DateTest(int year1, int month1, int day1, int hour1, int minute1, int flags, String output) argument
|
H A D | WeekNumberTest.java | 213 String output = DateUtils.formatDateTime(mContext, millis, flags); 215 + " date: " + output 225 String output = DateUtils.formatDateTime(mContext, millis, flags); 227 + " date: " + output
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | GalleryUtils.java | 96 int output = 0; 98 result[output++] = (byte) (ch & 0xFF); 99 result[output++] = (byte) (ch >> 8); 333 public static void doubleToRational(double value, long[] output) { argument 335 doubleToRational(value, output, 0.00001); 338 private static void doubleToRational(double value, long[] output, double error) { argument 342 output[0] = (int) (number + value + 0.5); 343 output[1] = 1; 345 doubleToRational(1.0 / value, output, error / value); 346 number = number * output[ [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadUtils.java | 82 public static boolean download(JobContext jc, URL url, OutputStream output) { argument 86 dump(jc, input, output);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PositionRepository.java | 86 Position source, Position target, Position output, float progress) { 88 output.set( 95 output.set(target); 85 interpolate( Position source, Position target, Position output, float progress) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
H A D | EffectAction.java | 96 // Wait till last output callback is done before finishing. 128 protected void notifyFilterChanged(Filter filter, boolean output) { argument 133 if (pushedFilter && output) { 134 // Notify the stack to execute the changed top filter and output the results.
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | LevenshteinFormatterTest.java | 43 private void verifyTokenizeResult(String input, String... output) { argument 45 assertEquals(output.length, tokens.length); 46 for (int i=0; i<output.length; ++i) { 47 assertEquals(output[i], tokens[i].toString());
|
/packages/apps/Browser/tests/src/com/android/browser/ |
H A D | PopularUrlsTest.java | 370 FileWriter output = null; 375 output = new FileWriter(mFile); 376 output.write(iteration + newLine); 377 output.write(page + newLine); 378 output.write(url + newLine); 380 if (output != null) { 381 output.close(); 429 * @param writer the writer to which to output the results.
|