Home
last modified time | relevance | path

Searched refs:mOutputStream (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/media/java/android/media/midi/
DMidiInputPort.java42 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/services/backup/java/com/android/server/backup/encryption/chunking/
DSingleStreamDiffScriptWriter.java36 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()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DUsbAccessoryStreamTransport.java35 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/
DByteTransferPipe.java29 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/robotests/backup/src/com/android/server/backup/encryption/chunking/
DSingleStreamDiffScriptWriterTest.java46 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/
DFastPrintWriter.java59 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 …]
DFastXmlSerializer.java63 private OutputStream mOutputStream; field in FastXmlSerializer
252 mOutputStream.write(mBytes.array(), 0, position); in flushBytes()
260 if (mOutputStream != null) { in flush()
274 mOutputStream.flush(); in flush()
343 mOutputStream = os; in setOutput()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DOutputStreamTarget.java35 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/
DAccessoryChat.java55 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/
DImageEncoder.java37 private OutputStream mOutputStream; field in ImageEncoder
56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream); in process()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java60 private OutputStream mOutputStream; field in NativeDaemonConnector
203 mOutputStream = socket.getOutputStream(); in listenToSocket()
284 if (mOutputStream != null) { in listenToSocket()
287 mOutputStream.close(); in listenToSocket()
291 mOutputStream = null; in listenToSocket()
484 if (mOutputStream == null) { in executeForList()
488 mOutputStream.write(rawCmd.getBytes(StandardCharsets.UTF_8)); in executeForList()
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/
DUsbAoapDeviceTestActivity.java125 private final FileOutputStream mOutputStream; field in UsbAoapDeviceTestActivity.ReaderThread
131 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in ReaderThread()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java131 private OutputStream mOutputStream; field in AdbDebuggingManager.AdbDebuggingThread
173 mOutputStream = mSocket.getOutputStream(); in openSocketLocked()
231 if (mOutputStream != null) { in closeSocketLocked()
232 mOutputStream.close(); in closeSocketLocked()
233 mOutputStream = null; in closeSocketLocked()
259 if (!mStopped && mOutputStream != null) { in sendResponse()
261 mOutputStream.write(msg.getBytes()); in sendResponse()
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java129 private final BluetoothOutputStream mOutputStream; field in BluetoothSocket
232 mOutputStream = new BluetoothOutputStream(this); in BluetoothSocket()
243 mOutputStream = new BluetoothOutputStream(this); in BluetoothSocket()
350 return mOutputStream; in getOutputStream()
/frameworks/base/media/java/android/media/
DExifInterface.java4212 private final OutputStream mOutputStream; field in ExifInterface.ByteOrderedDataOutputStream
4217 mOutputStream = out; in ByteOrderedDataOutputStream()
4226 mOutputStream.write(bytes); in write()
4230 mOutputStream.write(bytes, offset, length); in write()
4234 mOutputStream.write(val); in writeByte()
4239 mOutputStream.write((val >>> 0) & 0xFF); in writeShort()
4240 mOutputStream.write((val >>> 8) & 0xFF); in writeShort()
4242 mOutputStream.write((val >>> 8) & 0xFF); in writeShort()
4243 mOutputStream.write((val >>> 0) & 0xFF); in writeShort()
4249 mOutputStream.write((val >>> 0) & 0xFF); in writeInt()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp327 jobject mOutputStream; member in JniOutputStream
332 JniOutputStream::JniOutputStream(JNIEnv* env, jobject outStream) : mOutputStream(outStream), in JniOutputStream()
359 mEnv->CallVoidMethod(mOutputStream, gOutputStreamClassInfo.mWriteMethod, mByteArray, in write()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt11551 Landroid/bluetooth/BluetoothSocket;->mOutputStream:Landroid/bluetooth/BluetoothOutputStream;
38413 Landroid/media/ExifInterface$ByteOrderedDataOutputStream;->mOutputStream:Ljava/io/OutputStream;
42130 Landroid/media/midi/MidiInputPort;->mOutputStream:Ljava/io/FileOutputStream;
106212 Lcom/android/internal/util/FastPrintWriter;->mOutputStream:Ljava/io/OutputStream;