/packages/apps/UnifiedEmail/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;
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | CopyUtils.java | 134 * @param output the <code>OutputStream</code> to write to 137 public static void copy(byte[] input, OutputStream output) argument 139 output.write(input); 151 * @param output the <code>Writer</code> to write to 154 public static void copy(byte[] input, Writer output) argument 157 copy(in, output); 165 * @param output the <code>Writer</code> to write to 173 Writer output, 177 copy(in, output, encoding); 189 * @param output th 171 copy( byte[] input, Writer output, String encoding) argument 193 copy( InputStream input, OutputStream output) argument 218 copy( Reader input, Writer output) argument 244 copy( InputStream input, Writer output) argument 262 copy( InputStream input, Writer output, String encoding) argument 283 copy( Reader input, OutputStream output) argument 306 copy( String input, OutputStream output) argument 328 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 631 write(byte[] data, OutputStream output) argument 651 write(byte[] data, Writer output) argument 674 write(byte[] data, Writer output, String encoding) argument 698 write(char[] data, Writer output) argument 718 write(char[] data, OutputStream output) argument 743 write(char[] data, OutputStream output, String encoding) argument 765 write(String data, Writer output) argument 784 write(String data, OutputStream output) argument 807 write(String data, OutputStream output, String encoding) argument 829 write(StringBuffer data, Writer output) argument 849 write(StringBuffer data, OutputStream output) argument 872 write(StringBuffer data, OutputStream output, String encoding) argument 897 writeLines(Collection<Object> lines, String lineEnding, OutputStream output) argument 930 writeLines(Collection<Object> lines, String lineEnding, OutputStream output, String encoding) argument 1001 copy(InputStream input, OutputStream output) argument 1023 copyLarge(InputStream input, OutputStream output) argument 1050 copy(InputStream input, Writer output) argument 1075 copy(InputStream input, Writer output, String encoding) argument 1106 copy(Reader input, Writer output) argument 1127 copyLarge(Reader input, Writer output) argument 1157 copy(Reader input, OutputStream output) argument 1189 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/services/Telephony/src/org/apache/commons/io/ |
H A D | IOUtils.java | 42 * This class provides static utility methods for input/output operations. 154 * @param output the Writer to close, may be null or already closed 156 public static void closeQuietly(Writer output) { argument 158 if (output != null) { 159 output.close(); 190 * @param output the OutputStream to close, may be null or already closed 192 public static void closeQuietly(OutputStream output) { argument 194 if (output != null) { 195 output.close(); 216 ByteArrayOutputStream output 556 write(byte[] data, OutputStream output) argument 576 write(byte[] data, Writer output) argument 599 write(byte[] data, Writer output, String encoding) argument 623 write(char[] data, Writer output) argument 643 write(char[] data, OutputStream output) argument 668 write(char[] data, OutputStream output, String encoding) argument 690 write(String data, Writer output) argument 709 write(String data, OutputStream output) argument 732 write(String data, OutputStream output, String encoding) argument 754 write(StringBuffer data, Writer output) argument 774 write(StringBuffer data, OutputStream output) argument 797 write(StringBuffer data, OutputStream output, String encoding) argument 822 writeLines(Collection<Object> lines, String lineEnding, OutputStream output) argument 855 writeLines(Collection<Object> lines, String lineEnding, OutputStream output, String encoding) argument 926 copy(InputStream input, OutputStream output) argument 948 copyLarge(InputStream input, OutputStream output) argument 975 copy(InputStream input, Writer output) argument 1000 copy(InputStream input, Writer output, String encoding) argument 1031 copy(Reader input, Writer output) argument 1052 copyLarge(Reader input, Writer output) argument 1082 copy(Reader input, OutputStream output) argument 1114 copy(Reader input, OutputStream output, String encoding) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
H A D | StreamUtils.java | 27 * Copies the input byte array into the output int array with the given 31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { argument 33 if (output.length * 4 < length) { 37 for (int i = 0, j = 0; i < output.length; i++, j += 4) { 38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) 42 for (int i = 0, j = 0; i < output.length; i++, j += 4) { 43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) 51 int[] output = new int[input.length / 4]; 52 byteToIntArray(output, input, endianness); 53 return output; [all...] |
/packages/apps/Camera2/src/com/android/camera/async/ |
H A D | ObservableCombiner.java | 46 Supplier<T> output) { 48 mOutput = output; 57 * @param <O> The type of the output values. 59 * with the given function. Changes in the output value will result 60 * in calls to any callbacks registered with the output. 77 final Supplier<O> output) { 78 return new ObservableCombiner<>(inputs, output); 45 ObservableCombiner(List<? extends Observable<?>> inputs, Supplier<T> output) argument 76 transform(final List<? extends Observable<?>> inputs, final Supplier<O> output) argument
|
/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
H A D | ExpectedKeyOutput.java | 27 * This class represents an expected output of a key. 29 * There are two types of expected output, an integer code point and a string output text. 49 abstract boolean hasSameKeyOutput(final ExpectedKeyOutput output); argument 93 boolean hasSameKeyOutput(final ExpectedKeyOutput output) { argument 94 return (output instanceof Code) && mCode == ((Code)output).mCode; 115 * This class represents a string output text. 150 boolean hasSameKeyOutput(final ExpectedKeyOutput output) { argument 151 return (output instanceo [all...] |
H A D | ExpectedKey.java | 37 // A key that has a string label and a different output text and may have "more keys". 44 // A key that has a string label and a code point output and may have "more keys". 51 // A key that has an icon and an output text and may have "more keys". 58 // A key that has an icon and a code point output and may have "more keys". 65 static ExpectedKey newInstance(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, argument 68 return new ExpectedKey(visual, output); 90 return new ExpectedKeyWithMoreKeys(visual, output, moreKeys); 97 visual, output, moreKeysArray, firstAdditionalMoreKeyIndex, 105 // The expected output of this key. 142 protected ExpectedKey(final ExpectedKeyVisual visual, final ExpectedKeyOutput output) { argument 217 ExpectedAdditionalMoreKey(final ExpectedKeyVisual visual, final ExpectedKeyOutput output) argument 235 ExpectedKeyWithMoreKeys(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, final ExpectedKey... moreKeys) argument 315 ExpectedKeyWithMoreKeysAndAdditionalMoreKeys(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, final ExpectedKey[] moreKeys, final int additionalMoreKeysIndex, final ExpectedAdditionalMoreKey... additionalMoreKeys) argument [all...] |
H A D | ExpectedKeyVisual.java | 47 abstract boolean hasSameKeyVisual(final ExpectedKeyOutput output); argument 101 boolean hasSameKeyVisual(final ExpectedKeyOutput output) { argument 169 boolean hasSameKeyVisual(final ExpectedKeyOutput output) { argument 170 return output.hasSameKeyOutput(mLabel);
|
/packages/apps/Camera2/tests/src/com/android/camera/stress/ |
H A D | ShotToShotLatency.java | 124 BufferedWriter output = null; 126 output = new BufferedWriter(new FileWriter(outFile, true)); 127 output.write("Shot to shot latency - mean: " + mean + "\n"); 128 output.write("Shot to shot latency - standard deviation: " + standardDeviation + "\n"); 134 if (output != null) { 135 output.close();
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/stress/ |
H A D | ShotToShotLatency.java | 125 BufferedWriter output = null; 127 output = new BufferedWriter(new FileWriter(outFile, true)); 128 output.write("Shot to shot latency - mean: " + mean + "\n"); 129 output.write("Shot to shot latency - standard deviation: " + standardDeviation + "\n"); 135 if (output != null) { 136 output.close();
|
/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/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | Compress.java | 89 final OutputStream output = getFileOutputStreamOrStdOut(outFilename) 91 BinaryDictOffdeviceUtils.copy(uncompressedInput, output);
|