Home
last modified time | relevance | path

Searched refs:mInputStream (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/media/java/android/media/
DResampleInputStream.java36 private InputStream mInputStream; field in ResampleInputStream
65 mInputStream = inputStream; in ResampleInputStream()
83 if (mInputStream == null) throw new IllegalStateException("not open"); in read()
103 int n = mInputStream.read(mBuf, mBufCount, mBuf.length - mBufCount); in read()
130 if (mInputStream != null) mInputStream.close(); in close()
132 mInputStream = null; in close()
138 if (mInputStream != null) { in finalize()
DAmrInputStream.java44 private InputStream mInputStream; field in AmrInputStream
60 mInputStream = inputStream; in AmrInputStream()
128 int n = mInputStream.read(mBuf, numRead, SAMPLES_PER_FRAME * 2 - numRead); in read()
180 if (mInputStream != null) { in close()
181 mInputStream.close(); in close()
184 mInputStream = null; in close()
DMediaHTTPConnection.java74 private InputStream mInputStream = null; field in MediaHTTPConnection
187 if (mInputStream != null) { in teardownConnection()
189 mInputStream.close(); in teardownConnection()
192 mInputStream = null; in teardownConnection()
374 mInputStream = in seekTo()
404 int n = mInputStream.read(data, 0, size); in readAt()
/frameworks/base/core/tests/utiltests/src/android/util/
DMetadataReaderTest.java39 private InputStream mInputStream; field in MetadataReaderTest
44 mInputStream = getClass().getClassLoader().getResourceAsStream("res/drawable/image.jpg"); in setUp()
50 IoUtils.closeQuietly(mInputStream); in tearDown()
55 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", null); in testGetMetadata()
73 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", tags); in testGetMetadata_JpegOneTag()
82 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", tags); in testGetMetadata_JpegNoResults()
99 MetadataReader.getMetadata(mData, mInputStream, "no/metadata", null); in testGetMetadata_UnsupportedMimeType()
105 MetadataReader.getMetadata(mData, mInputStream, "image/jpg", new String[0]); in testGetMetadata_NoTags()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DInputStreamBuffer.java62 private InputStream mInputStream; field in InputStreamBuffer
99 mInputStream = inputStream; in InputStreamBuffer()
199 } else if (mInputStream != null) { in advanceTo()
206 final long burned = mInputStream.skip(burn); in advanceTo()
224 mInputStream = null; in advanceTo()
271 if (mInputStream == null) { in fill()
295 read = mInputStream.read(mBuffer, mFilled, mBuffer.length - mFilled); in fill()
303 mInputStream = null; in fill()
354 if (mInputStream != null) { in toDebugString()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DInputStreamBuffer.java62 private InputStream mInputStream; field in InputStreamBuffer
99 mInputStream = inputStream; in InputStreamBuffer()
199 } else if (mInputStream != null) { in advanceTo()
206 final long burned = mInputStream.skip(burn); in advanceTo()
224 mInputStream = null; in advanceTo()
271 if (mInputStream == null) { in fill()
295 read = mInputStream.read(mBuffer, mFilled, mBuffer.length - mFilled); in fill()
303 mInputStream = null; in fill()
354 if (mInputStream != null) { in toDebugString()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DUsbAccessoryStreamTransport.java34 private FileInputStream mInputStream; field in UsbAccessoryStreamTransport
40 mInputStream = new FileInputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport()
51 mInputStream = null; in ioClose()
57 if (mInputStream == null) { in ioRead()
60 return mInputStream.read(buffer, offset, count); in ioRead()
/frameworks/base/media/java/android/media/midi/
DMidiOutputPort.java44 private final FileInputStream mInputStream; field in MidiOutputPort
60 int count = mInputStream.read(buffer);
96 IoUtils.closeQuietly(mInputStream);
106 mInputStream = new ParcelFileDescriptor.AutoCloseInputStream(new ParcelFileDescriptor(fd)); in MidiOutputPort()
140 mInputStream.close(); in close()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java83 private InputStream mInputStream; field in VCardVerifier
100 mInputStream = null; in VCardVerifier()
148 } else if (mInputStream != null) { in setInputStream()
151 mInputStream = inputStream; in setInputStream()
158 if (mInputStream != null) { in addInputEntry()
294 if (mInputStream != null) { in verify()
313 verifyWithInputStream(mInputStream); in verifyForImportTest()
317 if (mInputStream != null) { in verifyForImportTest()
319 mInputStream.close(); in verifyForImportTest()
/frameworks/base/core/java/android/webkit/
DWebResourceResponse.java41 private InputStream mInputStream; field in WebResourceResponse
218 mInputStream = data; in setData()
227 return mInputStream; in getData()
243 mInputStream = data; in WebResourceResponse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DTestConferenceEventPackageParser.java68 private InputStream mInputStream; field in TestConferenceEventPackageParser
76 mInputStream = inputStream; in TestConferenceEventPackageParser()
92 parser.setInput(mInputStream, null); in parse()
109 mInputStream.close(); in parse()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp141 if (mInputStream[idx].is_open()) mInputStream[idx].close(); in ~WriterTest()
187 ifstream mInputStream[kMaxTrackCount]{}; member in WriterTest
216 mInputStream[idx].open(inputFileName.c_str(), std::ifstream::binary); in getInputBufferInfo()
217 ASSERT_EQ(mInputStream[idx].is_open(), true); in getInputBufferInfo()
266 if (mInputStream[idx].is_open()) { in addWriterSource()
276 int32_t status = writeHeaderBuffers(mInputStream[idx], mBufferInfo[idx], in addWriterSource()
377 status = sendBuffersToWriter(mInputStream[idx], mBufferInfo[idx], mInputFrameId[idx], in TEST_P()
423 status = sendBuffersToWriter(mInputStream[0], mBufferInfo[0], mInputFrameId[0], in TEST_P()
435 status = sendBuffersToWriter(mInputStream[0], mBufferInfo[0], mInputFrameId[0], in TEST_P()
443 status = sendBuffersToWriter(mInputStream[0], mBufferInfo[0], mInputFrameId[0], in TEST_P()
[all …]
/frameworks/base/core/java/android/os/
DShellCommand.java58 private InputStream mInputStream; field in ShellCommand
77 mInputStream = null; in init()
226 if (mInputStream == null) { in getBufferedInputStream()
227 mInputStream = new BufferedInputStream(getRawInputStream()); in getBufferedInputStream()
229 return mInputStream; in getBufferedInputStream()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java311 decoder.mInputStream = stream; in createFromFile()
332 decoder.mInputStream = is; in createFromStream()
376 mInputStream = is; in InputStreamSource()
381 InputStream mInputStream; field in ImageDecoder.InputStreamSource
394 if (mInputStream == null) { in createImageDecoder()
397 InputStream is = mInputStream; in createImageDecoder()
398 mInputStream = null; in createImageDecoder()
503 decoder.mInputStream = ais; in createFromAsset()
801 private InputStream mInputStream; field in ImageDecoder
833 mInputStream = null; in finalize()
[all …]
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/
DUsbAoapDeviceTestActivity.java124 private final FileInputStream mInputStream; field in UsbAoapDeviceTestActivity.ReaderThread
130 mInputStream = new FileInputStream(fd.getFileDescriptor()); in ReaderThread()
146 int read = mInputStream.read(mBuffer); in run()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DInputStreamSource.java43 private InputStream mInputStream; field in InputStreamSource
71 while ((bytesRead = mInputStream.read(buffer)) > 0) { in process()
/frameworks/ex/framesequence/jni/
DStream.h78 mInputStream(inputStream), in JavaInputStream()
87 const jobject mInputStream; variable
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java54 private FileInputStream mInputStream; field in AccessoryChat
144 mInputStream = new FileInputStream(fd); in openAccessory()
173 ret = mInputStream.read(buffer); in run()
/frameworks/base/services/core/java/com/android/server/recoverysystem/
DRecoverySystemService.java351 private DataInputStream mInputStream; field in RecoverySystemService.UncryptSocket
389 mInputStream = new DataInputStream(mLocalSocket.getInputStream()); in connectService()
417 return mInputStream.readInt(); in getPercentageUncrypted()
432 IoUtils.closeQuietly(mInputStream); in close()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DEncoder.java56 private FileInputStream mInputStream; field in Encoder
75 this.mInputStream = fileInputStream; in setupEncoder()
118 mInputBufferSize = mInputStream.getChannel().size(); in encode()
303 mInputStream.read(inputArray, 0, bytesToRead); in onInputAvailable()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Device.cpp381 streams.reserve(mOutputStreams.size() + (mInputStream != nullptr ? 1 : 0)); in disconnectImpl()
385 if (mInputStream != nullptr) { in disconnectImpl()
386 streams.push_back(mInputStream); in disconnectImpl()
425 mInputStream.clear(); in disconnectImpl()
718 if (mInputStream != NULL) { in dump()
720 mInputStream->dump(fd, args); in dump()
1420 if (mInputStream->getId() != result.inputBuffer.streamId) { in processOneCaptureResultLocked()
1425 inputBuffer.stream = mInputStream->asHalStream(); in processOneCaptureResultLocked()
1638 if (mInputStream != 0) { in createInputStream()
1647 mInputStream = newStream; in createInputStream()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java84 private final InputStream mInputStream; field in TarBackupReader
94 mInputStream = inputStream; in TarBackupReader()
287 if (readExactly(mInputStream, buffer, 0, (int) info.size) == info.size) { in readAppManifestAndReturnSignatures()
549 if (readExactly(mInputStream, buffer, 0, needed) == needed) { in skipTarPadding()
567 if (readExactly(mInputStream, buffer, 0, (int) info.size) == info.size) { in readMetadata()
674 final int got = readExactly(mInputStream, block, 0, 512); in readTarHeader()
697 if (readExactly(mInputStream, data, 0, data.length) < data.length) { in readPaxExtendedHeader()
/frameworks/base/rs/java/android/renderscript/
DFileA3D.java172 InputStream mInputStream; field in FileA3D
176 mInputStream = stream; in FileA3D()
/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder.java127 mInputStream = is; in InputStreamSource()
132 InputStream mInputStream; field in ImageDecoder.InputStreamSource
685 ((InputStreamSource) src).mInputStream, decoder.mOutPaddingRect, null); in decodeBitmap()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp89 mInputStream(), in CameraDeviceClient()
217 if (!mInputStream.configured) { in submitRequestList()
374 &mInputStream.id, 1); in submitRequestList()
473 __FUNCTION__, mInputStream.configured ? 1 : 0, in endConfigure()
810 if (mInputStream.configured && mInputStream.id == streamId) { in deleteStream()
853 mInputStream.configured = false; in deleteStream()
1120 if (mInputStream.configured) { in createInputStream()
1122 "configured (ID %d)", mCameraIdStr.string(), mInputStream.id); in createInputStream()
1130 mInputStream.configured = true; in createInputStream()
1131 mInputStream.width = width; in createInputStream()
[all …]

12