/frameworks/base/media/java/android/media/midi/ |
D | MidiInputPort.java | 42 private FileOutputStream mOutputStream; field in MidiInputPort 58 mOutputStream = new FileOutputStream(fd); in MidiInputPort() 85 if (mOutputStream == null) { in onSend() 89 mOutputStream.write(mBuffer, 0, length); in onSend() 96 if (mOutputStream == null) { in onFlush() 100 mOutputStream.write(mBuffer, 0, length); in onFlush() 111 IoUtils.closeQuietly(mOutputStream); in claimFileDescriptor() 113 mOutputStream = null; in claimFileDescriptor() 143 if (mOutputStream != null) { in close() 144 mOutputStream.close(); in close() [all …]
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/ |
D | SingleStreamDiffScriptWriter.java | 36 private final OutputStream mOutputStream; field in SingleStreamDiffScriptWriter 45 mOutputStream = outputStream; in SingleStreamDiffScriptWriter() 87 mOutputStream.flush(); in flush() 91 mOutputStream.write(Integer.toString(mBufferSize).getBytes(UTF_8)); in writeByteBuffer() 92 mOutputStream.write(LINE_SEPARATOR); in writeByteBuffer() 93 mOutputStream.write(mByteBuffer, 0, mBufferSize); in writeByteBuffer() 94 mOutputStream.write(LINE_SEPARATOR); in writeByteBuffer() 100 mOutputStream.write( in writeReusableChunk() 107 mOutputStream.write(LINE_SEPARATOR); in writeReusableChunk()
|
D | RawBackupWriter.java | 24 private final OutputStream mOutputStream; field in RawBackupWriter 29 this.mOutputStream = outputStream; in RawBackupWriter() 34 mOutputStream.write(bytes); in writeBytes() 50 mOutputStream.flush(); in flush()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | UsbAccessoryStreamTransport.java | 35 private FileOutputStream mOutputStream; field in UsbAccessoryStreamTransport 41 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport() 52 mOutputStream = null; in ioClose() 65 if (mOutputStream == null) { in ioWrite() 68 mOutputStream.write(buffer, offset, count); in ioWrite()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ByteTransferPipe.java | 29 private ByteArrayOutputStream mOutputStream; field in ByteTransferPipe 41 mOutputStream = new ByteArrayOutputStream(); in getNewOutputStream() 42 return mOutputStream; in getNewOutputStream() 47 return mOutputStream.toByteArray(); in get()
|
/frameworks/base/services/core/java/com/android/server/integrity/model/ |
D | ByteTrackedOutputStream.java | 31 private final OutputStream mOutputStream; field in ByteTrackedOutputStream 35 mOutputStream = outputStream; in ByteTrackedOutputStream() 41 mOutputStream.write(b); in write() 56 mOutputStream.write(b, off, len); in write()
|
D | BitOutputStream.java | 32 private final OutputStream mOutputStream; field in BitOutputStream 38 mOutputStream = outputStream; in BitOutputStream() 69 mOutputStream.write(mBuffer); in setNext() 96 mOutputStream.write(mBuffer, 0, endByte); in flush()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
D | SingleStreamDiffScriptWriterTest.java | 46 private ByteArrayOutputStream mOutputStream; field in SingleStreamDiffScriptWriterTest 52 mOutputStream = new ByteArrayOutputStream(); in setUp() 54 new SingleStreamDiffScriptWriter(mOutputStream, MAX_CHUNK_SIZE_IN_BYTES); in setUp() 86 assertThat(mOutputStream.toString("UTF-8")).isEqualTo( in writeChunk_withExistingBytesInBuffer_writesBufferFirst() 97 assertThat(mOutputStream.toString("UTF-8")).isEqualTo(String.format("3-11\n")); in writeChunk_overlappingPreviousChunk_combinesChunks() 107 assertThat(mOutputStream.toString("UTF-8")).isEqualTo("0-12344\n"); in writeChunk_formatsByteIndexesUsingArabicNumbers()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FastPrintWriter.java | 59 final private OutputStream mOutputStream; field in FastPrintWriter 129 mOutputStream = out; in FastPrintWriter() 198 mOutputStream = null; in FastPrintWriter() 241 mOutputStream = null; in FastPrintWriter() 354 mOutputStream.write(mBytes.array(), 0, position); in flushBytesLocked() 363 if (mOutputStream != null) { in flushLocked() 378 mOutputStream.flush(); in flushLocked() 414 if (mOutputStream != null) { 415 mOutputStream.flush(); 432 if (mOutputStream != null) { [all …]
|
D | FastXmlSerializer.java | 64 private OutputStream mOutputStream; field in FastXmlSerializer 253 mOutputStream.write(mBytes.array(), 0, position); in flushBytes() 261 if (mOutputStream != null) { in flush() 275 mOutputStream.flush(); in flush() 344 mOutputStream = os; in setOutput()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessor.java | 58 @Nullable private PipedOutputStream mOutputStream; field in EncryptedFullBackupDataProcessor 83 mOutputStream = new PipedOutputStream(); in initiate() 92 new PipedInputStream(mOutputStream)); in initiate() 106 mBackupTaskFuture != null && mInputStream != null && mOutputStream != null, in pushData() 125 StreamUtils.copyStream(mInputStream, mOutputStream, numBytes); in pushData() 170 StreamUtils.closeQuietly(mOutputStream); in closeStreams()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
D | OutputStreamTarget.java | 35 private OutputStream mOutputStream; field in OutputStreamTarget 58 mOutputStream.write(data.array(), 0, data.limit()); in process() 59 mOutputStream.flush(); in process()
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | AccessoryChat.java | 55 private FileOutputStream mOutputStream; field in AccessoryChat 145 mOutputStream = new FileOutputStream(fd); in openAccessory() 155 if (actionId == EditorInfo.IME_ACTION_DONE && mOutputStream != null) { in onEditorAction() 157 mOutputStream.write(v.getText().toString().getBytes()); in onEditorAction()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | ImageEncoder.java | 37 private OutputStream mOutputStream; field in ImageEncoder 56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream); in process()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | KeyValueEncrypter.java | 87 private final OutputStream mOutputStream; field in KeyValueEncrypter.FileBackupServer 90 mOutputStream = outputStream; in FileBackupServer() 106 mOutputStream.write(data); in uploadNonIncrementalBackup()
|
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
D | Device.java | 55 private final OutputStream mOutputStream; field in Device 79 mOutputStream = System.out; in Device() 218 mOutputStream.write(json.toString().getBytes()); in onDeviceVibrating() 219 mOutputStream.flush(); in onDeviceVibrating()
|
/frameworks/libs/service_entitlement/tests/utils/com/android/libraries/entitlement/testing/ |
D | FakeURLStreamHandler.java | 84 private final ByteArrayOutputStream mOutputStream = new ByteArrayOutputStream(); field in FakeURLStreamHandler.FakeHttpsURLConnection 98 return mOutputStream; in getOutputStream() 102 return mOutputStream.toByteArray(); in getBytesWrittenToOutputStream()
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Device.java | 57 private final OutputStream mOutputStream; field in Device 80 mOutputStream = System.out; in Device() 218 mOutputStream.write(json.toString().getBytes()); in sendReportOutput() 219 mOutputStream.flush(); in sendReportOutput()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 61 private OutputStream mOutputStream; field in NativeDaemonConnector 204 mOutputStream = socket.getOutputStream(); in listenToSocket() 285 if (mOutputStream != null) { in listenToSocket() 288 mOutputStream.close(); in listenToSocket() 292 mOutputStream = null; in listenToSocket() 485 if (mOutputStream == null) { in executeForList() 489 mOutputStream.write(rawCmd.getBytes(StandardCharsets.UTF_8)); in executeForList()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Decoder.java | 49 private FileOutputStream mOutputStream; field in Decoder 60 mOutputStream = outputStream; in setupDecoder() 295 if (mOutputStream != null) { in onOutputAvailable() 300 mOutputStream.write(bytesOutput); in onOutputAvailable()
|
D | Encoder.java | 57 private FileOutputStream mOutputStream; field in Encoder 76 this.mOutputStream = encoderOutputStream; in setupEncoder() 251 if (mOutputStream != null) { in onOutputAvailable() 256 mOutputStream.write(bytesOutput); in onOutputAvailable()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/ |
D | UsbAoapDeviceTestActivity.java | 125 private final FileOutputStream mOutputStream; field in UsbAoapDeviceTestActivity.ReaderThread 131 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in ReaderThread()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothSocket.java | 131 private final BluetoothOutputStream mOutputStream; field in BluetoothSocket 237 mOutputStream = new BluetoothOutputStream(this); in BluetoothSocket() 248 mOutputStream = new BluetoothOutputStream(this); in BluetoothSocket() 358 return mOutputStream; in getOutputStream()
|
/frameworks/base/services/core/java/com/android/server/recoverysystem/ |
D | RecoverySystemService.java | 1102 private DataOutputStream mOutputStream; field in RecoverySystemService.UncryptSocket 1140 mOutputStream = new DataOutputStream(mLocalSocket.getOutputStream()); in connectService() 1157 mOutputStream.writeInt(cmdUtf8.length); in sendCommand() 1158 mOutputStream.write(cmdUtf8, 0, cmdUtf8.length); in sendCommand() 1175 mOutputStream.writeInt(0); in sendAck() 1183 IoUtils.closeQuietly(mOutputStream); in close()
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 3666 ((ByteArrayOutputStream) exifDataOutputStream.mOutputStream).toByteArray(); in savePngAttributes() 5116 final OutputStream mOutputStream; field in ExifInterface.ByteOrderedDataOutputStream 5121 mOutputStream = out; in ByteOrderedDataOutputStream() 5130 mOutputStream.write(bytes); in write() 5134 mOutputStream.write(bytes, offset, length); in write() 5138 mOutputStream.write(val); in writeByte() 5143 mOutputStream.write((val >>> 0) & 0xFF); in writeShort() 5144 mOutputStream.write((val >>> 8) & 0xFF); in writeShort() 5146 mOutputStream.write((val >>> 8) & 0xFF); in writeShort() 5147 mOutputStream.write((val >>> 0) & 0xFF); in writeShort() [all …]
|