Home
last modified time | relevance | path

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

1234

/packages/services/Telephony/src/org/apache/commons/io/
DIOUtils.java156 public static void closeQuietly(Writer output) { in closeQuietly() argument
158 if (output != null) { in closeQuietly()
159 output.close(); in closeQuietly()
192 public static void closeQuietly(OutputStream output) { in closeQuietly() argument
194 if (output != null) { in closeQuietly()
195 output.close(); in closeQuietly()
216 ByteArrayOutputStream output = new ByteArrayOutputStream(); in toByteArray() local
217 copy(input, output); in toByteArray()
218 return output.toByteArray(); in toByteArray()
234 ByteArrayOutputStream output = new ByteArrayOutputStream(); in toByteArray() local
[all …]
/packages/apps/UnifiedEmail/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.java137 public static void copy(byte[] input, OutputStream output) in copy() argument
139 output.write(input); in copy()
154 public static void copy(byte[] input, Writer output) in copy() argument
157 copy(in, output); in copy()
173 Writer output, in copy() argument
177 copy(in, output, encoding); in copy()
195 OutputStream output) in copy() argument
201 output.write(buffer, 0, n); in copy()
220 Writer output) in copy() argument
226 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 …]
/packages/apps/UnifiedEmail/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()
56 OutputStream output = getStream(); in close() local
57 if( null != output ) in close()
59 output.close(); in close()
72 OutputStream output = getStream(); in flush() local
73 if( null != output ) in flush()
75 output.flush(); in flush()
89 OutputStream output = getStream(); in write() local
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
DStreamUtils.java31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { in byteToIntArray() argument
33 if (output.length * 4 < length) { in byteToIntArray()
37 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray()
38 output[i] = ((input[j] & 0xFF) << 24) | ((input[j + 1] & 0xFF) << 16) in byteToIntArray()
42 for (int i = 0, j = 0; i < output.length; i++, j += 4) { in byteToIntArray()
43 output[i] = ((input[j + 3] & 0xFF) << 24) | ((input[j + 2] & 0xFF) << 16) in byteToIntArray()
51 int[] output = new int[input.length / 4]; in byteToIntArray() local
52 byteToIntArray(output, input, endianness); in byteToIntArray()
53 return output; in byteToIntArray()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKey.java65 static ExpectedKey newInstance(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, in newInstance() argument
68 return new ExpectedKey(visual, output); in newInstance()
90 return new ExpectedKeyWithMoreKeys(visual, output, moreKeys); in newInstance()
97 visual, output, moreKeysArray, firstAdditionalMoreKeyIndex, in newInstance()
142 protected ExpectedKey(final ExpectedKeyVisual visual, final ExpectedKeyOutput output) { in ExpectedKey() argument
144 mOutput = output; in ExpectedKey()
217 ExpectedAdditionalMoreKey(final ExpectedKeyVisual visual, final ExpectedKeyOutput output) { in ExpectedAdditionalMoreKey() argument
218 super(visual, output); in ExpectedAdditionalMoreKey()
235 ExpectedKeyWithMoreKeys(final ExpectedKeyVisual visual, final ExpectedKeyOutput output, in ExpectedKeyWithMoreKeys() argument
237 super(visual, output); in ExpectedKeyWithMoreKeys()
[all …]
DExpectedKeyOutput.java49 abstract boolean hasSameKeyOutput(final ExpectedKeyOutput output); in hasSameKeyOutput() argument
93 boolean hasSameKeyOutput(final ExpectedKeyOutput output) { in hasSameKeyOutput() argument
94 return (output instanceof Code) && mCode == ((Code)output).mCode; in hasSameKeyOutput()
150 boolean hasSameKeyOutput(final ExpectedKeyOutput output) { in hasSameKeyOutput() argument
151 return (output instanceof Text) && mText == ((Text)output).mText; in hasSameKeyOutput()
DActualKeyboardBuilder.java115 final String output; in toString() local
117 output = outputText; in toString()
119 output = Constants.printableCode(code); in toString()
121 output = StringUtils.newSingleCodePointString(code); in toString()
123 if (visual.equals(output)) { in toString()
126 return visual + "|" + output; in toString()
DExpectedKeyVisual.java47 abstract boolean hasSameKeyVisual(final ExpectedKeyOutput output); in hasSameKeyVisual() argument
101 boolean hasSameKeyVisual(final ExpectedKeyOutput output) { in hasSameKeyVisual() argument
169 boolean hasSameKeyVisual(final ExpectedKeyOutput output) { in hasSameKeyVisual() argument
170 return output.hasSameKeyOutput(mLabel); in hasSameKeyVisual()
/packages/apps/Camera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile44 # 4096 sub-directories (in 2 levels) under the output directory of each output
54 # information to generate all constant output in the proper language.
195 # sources only. Doxygen will then generate output that is more tailored for C.
202 # sources only. Doxygen will then generate output that is more tailored for
209 # sources only. Doxygen will then generate output that is more tailored for
215 # sources. Doxygen will then generate output that is tailored for
513 # provided by doxygen. Whatever the program writes to standard output
519 # doxygen. The layout file controls the global structure of the generated output files
520 # in an output format independent way. The create the layout file that represents
573 # and error messages should be written. If left blank the output is written
[all …]
/packages/apps/Camera/jni/feature_stab/doc/
Ddbreg_API_doxyfile44 # 4096 sub-directories (in 2 levels) under the output directory of each output
54 # information to generate all constant output in the proper language.
195 # sources only. Doxygen will then generate output that is more tailored for C.
202 # sources only. Doxygen will then generate output that is more tailored for
209 # sources only. Doxygen will then generate output that is more tailored for
215 # sources. Doxygen will then generate output that is tailored for
513 # provided by doxygen. Whatever the program writes to standard output
519 # doxygen. The layout file controls the global structure of the generated output files
520 # in an output format independent way. The create the layout file that represents
573 # and error messages should be written. If left blank the output is written
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile44 # 4096 sub-directories (in 2 levels) under the output directory of each output
54 # information to generate all constant output in the proper language.
195 # sources only. Doxygen will then generate output that is more tailored for C.
202 # sources only. Doxygen will then generate output that is more tailored for
209 # sources only. Doxygen will then generate output that is more tailored for
215 # sources. Doxygen will then generate output that is tailored for
513 # provided by doxygen. Whatever the program writes to standard output
519 # doxygen. The layout file controls the global structure of the generated output files
520 # in an output format independent way. The create the layout file that represents
573 # and error messages should be written. If left blank the output is written
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile44 # 4096 sub-directories (in 2 levels) under the output directory of each output
54 # information to generate all constant output in the proper language.
195 # sources only. Doxygen will then generate output that is more tailored for C.
202 # sources only. Doxygen will then generate output that is more tailored for
209 # sources only. Doxygen will then generate output that is more tailored for
215 # sources. Doxygen will then generate output that is tailored for
513 # provided by doxygen. Whatever the program writes to standard output
519 # doxygen. The layout file controls the global structure of the generated output files
520 # in an output format independent way. The create the layout file that represents
573 # and error messages should be written. If left blank the output is written
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DFormatDateRangeTest.java40 int flags, String output) { in DateTest() argument
62 expectedOutput = output; in DateTest()
67 int flags, String output) { in DateTest() argument
70 flags, output); in DateTest()
188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); in testAll() local
189 if (!dateTest.expectedOutput.equals(output)) { in testAll()
192 + " actual: " + output); in testAll()
194 assertEquals(dateTest.expectedOutput, output); in testAll()
DWeekNumberTest.java213 String output = DateUtils.formatDateTime(mContext, millis, flags); in testAll() local
215 + " date: " + output in testAll()
225 String output = DateUtils.formatDateTime(mContext, millis, flags); in testAll() local
227 + " date: " + output in testAll()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessage.java130 DataOutputStream output = new DataOutputStream(buffer); in toByteArray() local
131 output.writeByte(mVersion); in toByteArray()
132 output.writeByte(mField); in toByteArray()
134 output.writeInt(bytes.length + 4); in toByteArray()
135 output.writeInt(mAcceptableLength); in toByteArray()
137 output.writeInt(bytes.length); in toByteArray()
139 output.write(bytes); in toByteArray()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapbMessageTest.java542 String output; in testQuotedPrintableIso8859_1() local
543 output = new String(BluetoothMapUtils.quotedPrintableToUtf8(input, charset)); in testQuotedPrintableIso8859_1()
545 if(D) Log.d(TAG, "\nOutput: \n" + output); in testQuotedPrintableIso8859_1()
546 assertTrue(output.equals(expected)); in testQuotedPrintableIso8859_1()
565 String output; in testQuotedPrintableUTF_8() local
566 output = new String(BluetoothMapUtils.quotedPrintableToUtf8(input, charset)); in testQuotedPrintableUTF_8()
568 if(D) Log.d(TAG, "\nOutput: \n" + output); in testQuotedPrintableUTF_8()
569 assertTrue(output.equals(expected)); in testQuotedPrintableUTF_8()
/packages/apps/Camera2/tests_camera/src/com/android/camera/stress/
DShotToShotLatency.java125 BufferedWriter output = null; in testShotToShotLatency() local
127 output = new BufferedWriter(new FileWriter(outFile, true)); in testShotToShotLatency()
128 output.write("Shot to shot latency - mean: " + mean + "\n"); in testShotToShotLatency()
129 output.write("Shot to shot latency - standard deviation: " + standardDeviation + "\n"); in testShotToShotLatency()
135 if (output != null) { in testShotToShotLatency()
136 output.close(); in testShotToShotLatency()
/packages/apps/Camera/tests/src/com/android/camera/stress/
DShotToShotLatency.java125 BufferedWriter output = null; in testShotToShotLatency() local
127 output = new BufferedWriter(new FileWriter(outFile, true)); in testShotToShotLatency()
128 output.write("Shot to shot latency - mean: " + mean + "\n"); in testShotToShotLatency()
129 output.write("Shot to shot latency - standard deviation: " + standardDeviation + "\n"); in testShotToShotLatency()
135 if (output != null) { in testShotToShotLatency()
136 output.close(); in testShotToShotLatency()
/packages/apps/Camera2/tests/src/com/android/camera/stress/
DShotToShotLatency.java124 BufferedWriter output = null; in testShotToShotLatency() local
126 output = new BufferedWriter(new FileWriter(outFile, true)); in testShotToShotLatency()
127 output.write("Shot to shot latency - mean: " + mean + "\n"); in testShotToShotLatency()
128 output.write("Shot to shot latency - standard deviation: " + standardDeviation + "\n"); in testShotToShotLatency()
134 if (output != null) { in testShotToShotLatency()
135 output.close(); in testShotToShotLatency()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushProtocol.java150 DataOutputStream output = new DataOutputStream(buffer); in toByteArray() local
153 output.writeByte(VERSION); in toByteArray()
154 output.writeInt(mNumMessages); in toByteArray()
156 output.writeByte(mActions[i]); in toByteArray()
158 output.writeInt(bytes.length); in toByteArray()
159 output.write(bytes); in toByteArray()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapUtils.java485 byte[] output = new byte[text.length()]; // We allocate for the worst case memory need in quotedPrintableToUtf8()
525 output[out++] = (byte)(b1<<4 | b2); // valid hex char, append in quotedPrintableToUtf8()
526 if(V)Log.v(TAG, "Resulting value: " + String.format("0x%2x", output[out-1])); in quotedPrintableToUtf8()
533 output[out++] = b0; in quotedPrintableToUtf8()
537 output[out++] = b0; in quotedPrintableToUtf8()
545 output[out++] = input[in++]; in quotedPrintableToUtf8()
565 result = new String(output, 0, out, charset); in quotedPrintableToUtf8()
569 result = new String(output, 0, out, "UTF-8"); in quotedPrintableToUtf8()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtils.java136 try (final OutputStream output = new BufferedOutputStream(new FileOutputStream(dst))) { in process() argument
137 copy(input, output); in process()
138 output.flush(); in process()
139 output.close(); in process()
209 public static void copy(final InputStream input, final OutputStream output) throws IOException { in copy() argument
212 output.write(buffer, 0, readBytes); in copy()
/packages/apps/Camera2/src/com/android/camera/async/
DObservableCombiner.java46 Supplier<T> output) { in ObservableCombiner() argument
48 mOutput = output; in ObservableCombiner()
77 final Supplier<O> output) {
78 return new ObservableCombiner<>(inputs, output);

1234