/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | IOUtils.java | 38 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 …]
|
D | CopyUtils.java | 137 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 …]
|
D | EndianUtils.java | 284 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/ |
D | DemuxOutputStream.java | 17 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/ |
D | StreamUtils.java | 31 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/ |
D | ExpectedKey.java | 65 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 …]
|
D | ExpectedKeyOutput.java | 49 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()
|
D | ActualKeyboardBuilder.java | 115 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()
|
D | ExpectedKeyVisual.java | 47 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/Calendar/tests/src/com/android/calendar/ |
D | FormatDateRangeTest.java | 40 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()
|
D | WeekNumberTest.java | 213 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/ |
D | SnepMessage.java | 130 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/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
D | BitmapUtils.java | 91 Bitmap output = Bitmap.createBitmap(size, in squareCropBitmap() local 93 Canvas canvas = new Canvas(output); in squareCropBitmap() 98 Rect dstRect = new Rect(0, 0, output.getWidth(), output.getHeight()); in squareCropBitmap() 101 return output; in squareCropBitmap() 106 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), 108 Canvas canvas = new Canvas(output); 120 return output;
|
/packages/apps/LegacyCamera/jni/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 44 # 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/ |
D | dbreg_API_doxyfile | 44 # 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/Camera2/tests/src/com/android/camera/stress/ |
D | ShotToShotLatency.java | 124 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/ |
D | NdefPushProtocol.java | 150 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/Test/connectivity/sl4n/rapidjson/doc/ |
D | Doxyfile.in | 52 # to the output directory. 64 # directories (in 2 levels) under the output directory of each output format and 83 # information to generate all constant output in the proper language. 250 # only. Doxygen will then generate output that is more tailored for C. For 258 # Python sources only. Doxygen will then generate output that is more tailored 266 # sources. Doxygen will then generate output that is tailored for Fortran. 272 # sources. Doxygen will then generate output that is tailored for VHDL. 299 # The output of markdown processing is further processed by doxygen, so you can 669 # by doxygen. Whatever the program writes to standard output is used as the file 676 # output files in an output format independent way. To create the layout file [all …]
|
D | sax.md | 53 … explanation. Let's see the `simplereader` example which produces exactly the same output as above: 231 1. `Writer` must output a well-formed JSON. If there is incorrect event sequence (e.g. `Int()` just… 233 3. `Writer` handles number output consistently. 256 The `OutputStream` template parameter is the type of output stream. It cannot be deduced and must b… 260 The `TargetEncoding` template parameter specifies the encoding in the output stream. 268 While the output of `Writer` is the most condensed JSON without white-spaces, suitable for network … 270 Therefore, RapidJSON provides a `PrettyWriter`, which adds indentation and line feeds in the output. 276 …output a single JSON, which can be any JSON type at the root. Once the singular event for root (e.… 278 …output will be invalid (i.e. having more than one root). To reuse the `Writer` object, user can ca… 426 …return out_.String(&buffer_.front(), length, true); // true = output handler need to copy the stri… [all …]
|
D | stream.md | 41 `StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. … 50 const char* output = buffer.GetString(); 97 `FileWriteStream` is buffered output stream. Its usage is very similar to `FileReadStream`. 109 FILE* fp = fopen("output.json", "wb"); // non-Windows use "w" 120 It can also directs the output to `stdout`. 161 …ool putBOM` parameter in the constructor, controlling whether to write BOM into output byte stream. 218 Similarly, to choose encoding for output during runtime, we can use `AutoUTFOutputStream`. This cla… 275 For output stream, they must implement `Put()` and `Flush()`.
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapUtils.java | 485 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/ |
D | BinaryDictOffdeviceUtils.java | 136 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/ |
D | ObservableCombiner.java | 46 Supplier<T> output) { in ObservableCombiner() argument 48 mOutput = output; in ObservableCombiner() 77 final Supplier<O> output) { 78 return new ObservableCombiner<>(inputs, output);
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberBackupAgent.java | 130 private void addToBackup(BackupDataOutput output, BackedUpBlockedNumber blockedNumber) in addToBackup() argument 139 output.writeEntityHeader(Integer.toString(blockedNumber.id), outputStream.size()); in addToBackup() 140 output.writeEntityData(outputStream.toByteArray(), outputStream.size()); in addToBackup() 163 private void removeFromBackup(BackupDataOutput output, int id) throws IOException { in removeFromBackup() argument 164 output.writeEntityHeader(Integer.toString(id), -1); in removeFromBackup()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | LevenshteinFormatterTest.java | 43 private void verifyTokenizeResult(String input, String... output) { in verifyTokenizeResult() argument 45 assertEquals(output.length, tokens.length); in verifyTokenizeResult() 46 for (int i=0; i<output.length; ++i) { in verifyTokenizeResult() 47 assertEquals(output[i], tokens[i].toString()); in verifyTokenizeResult()
|