Home
last modified time | relevance | path

Searched refs:mFd (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/av/media/libstagefright/
DFileSource.cpp32 : mFd(-1), in FileSource()
41 mFd = open(filename, O_LARGEFILE | O_RDONLY); in FileSource()
43 if (mFd >= 0) { in FileSource()
44 mLength = lseek64(mFd, 0, SEEK_END); in FileSource()
51 : mFd(fd), in FileSource()
64 if (mFd >= 0) { in ~FileSource()
65 close(mFd); in ~FileSource()
66 mFd = -1; in ~FileSource()
88 return mFd >= 0 ? OK : NO_INIT; in initCheck()
92 if (mFd < 0) { in readAt()
[all …]
DAACWriter.cpp40 : mFd(dup(fd)), in AACWriter()
41 mInitCheck(mFd < 0? NO_INIT: OK), in AACWriter()
59 if (mFd != -1) { in ~AACWriter()
60 close(mFd); in ~AACWriter()
61 mFd = -1; in ~AACWriter()
240 write(mFd, &data, 1); in writeAdtsHeader()
249 write(mFd, &data, 1); in writeAdtsHeader()
260 write(mFd, &data, 1); in writeAdtsHeader()
268 write(mFd, &data, 1); in writeAdtsHeader()
271 write(mFd, &data, 1); in writeAdtsHeader()
[all …]
DAMRWriter.cpp35 : mFd(dup(fd)), in AMRWriter()
36 mInitCheck(mFd < 0? NO_INIT: OK), in AMRWriter()
47 if (mFd != -1) { in ~AMRWriter()
48 close(mFd); in ~AMRWriter()
49 mFd = -1; in ~AMRWriter()
90 if (write(mFd, kHeader, n) != n) { in addSource()
239 ssize_t n = write(mFd, in threadFunc()
266 close(mFd); in threadFunc()
267 mFd = -1; in threadFunc()
DMPEG4Writer.cpp363 : mFd(dup(fd)), in MPEG4Writer()
364 mInitCheck(mFd < 0? NO_INIT: OK), in MPEG4Writer()
392 off64_t off = lseek64(mFd, 0, SEEK_SET); in MPEG4Writer()
761 lseek64(mFd, mFreeBoxOffset, SEEK_SET); in start()
770 lseek64(mFd, mMdatOffset, SEEK_SET); in start()
883 close(mFd); in release()
884 mFd = -1; in release()
939 lseek64(mFd, mMdatOffset, SEEK_SET); in reset()
941 ::write(mFd, &size, 4); in reset()
943 lseek64(mFd, mMdatOffset + 8, SEEK_SET); in reset()
[all …]
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp38 mFd = open(path, O_RDONLY | O_LARGEFILE); in MidiIoWrapper()
40 mLength = lseek(mFd, 0, SEEK_END); in MidiIoWrapper()
45 mFd = dup(fd); in MidiIoWrapper()
52 mFd = -1; in MidiIoWrapper()
64 close(mFd); in ~MidiIoWrapper()
73 lseek(mFd, mBase + offset, SEEK_SET); in readAt()
77 return read(mFd, buffer, size); in readAt()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java43 private final ParcelFileDescriptor mFd; field in AssetFileDescriptor
82 mFd = fd; in AssetFileDescriptor()
94 return mFd; in getParcelFileDescriptor()
102 return mFd.getFileDescriptor(); in getFileDescriptor()
135 long len = mFd.getStatSize(); in getLength()
156 mFd.close(); in close()
169 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream()
184 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd); in createOutputStream()
191 return "{AssetFileDescriptor: " + mFd in toString()
342 return mFd.describeContents(); in describeContents()
[all …]
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp56 : mFd(dup(fd)), in WebmWriter()
57 mInitCheck(mFd < 0 ? NO_INIT : OK), in WebmWriter()
76 mFd, in WebmWriter()
226 close(mFd); in release()
227 mFd = -1; in release()
282 mCuesOffset = ::lseek(mFd, 0, SEEK_CUR); in reset()
283 cues->write(mFd, cuesSize); in reset()
286 ::lseek(mFd, mCuesOffset, SEEK_SET); in reset()
287 cues->write(mFd, cuesSize); in reset()
289 space->write(mFd, spaceSize); in reset()
[all …]
DWebmFrameThread.cpp70 : mFd(fd), in WebmFrameSinkThread()
84 : mFd(fd), in WebmFrameSinkThread()
125 cluster->write(mFd, size); in writeCluster()
143 off_t fpos = ::lseek(mFd, 0, SEEK_CUR); in flushFrames()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DUsbAccessoryStreamTransport.java33 private ParcelFileDescriptor mFd; field in UsbAccessoryStreamTransport
39 mFd = fd; in UsbAccessoryStreamTransport()
47 mFd.close(); in ioClose()
50 mFd = null; in ioClose()
/frameworks/base/drm/java/android/drm/
DDrmOutputStream.java49 private final FileDescriptor mFd; field in DrmOutputStream
60 mFd = pfd.getFileDescriptor(); in DrmOutputStream()
72 Os.lseek(mFd, status.offset, SEEK_SET); in finish()
76 IoBridge.write(mFd, status.convertedData, 0, status.convertedData.length); in finish()
106 IoBridge.write(mFd, status.convertedData, 0, status.convertedData.length); in write()
/frameworks/base/cmds/hid/jni/
Dcom_android_commands_hid_Device.cpp127 mId(id), mFd(fd), mDeviceCallback(std::move(callback)), mLooper(looper) { in Device()
132 mLooper->removeFd(mFd); in ~Device()
136 TEMP_FAILURE_RETRY(::write(mFd, &ev, sizeof(ev))); in ~Device()
137 ::close(mFd); in ~Device()
138 mFd = -1; in ~Device()
147 ssize_t ret = TEMP_FAILURE_RETRY(::write(mFd, &ev, sizeof(ev))); in sendReport()
160 ssize_t ret = TEMP_FAILURE_RETRY(::read(mFd, &ev, sizeof(ev))); in handleEvents()
Dcom_android_commands_hid_Device.h54 int mFd; variable
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java58 private final FileDescriptor mFd; field in ParcelFileDescriptor
163 mFd = null; in ParcelFileDescriptor()
179 mFd = fd; in ParcelFileDescriptor()
544 return mFd; in getFileDescriptor()
557 final StructStat st = Os.fstat(mFd); in getStatSize()
580 return Os.lseek(mFd, pos, SEEK_SET); in seekTo()
599 return mFd.getInt$(); in getFd()
622 Parcel.clearFileDescriptor(mFd); in detachFd()
679 IoUtils.closeQuietly(mFd); in closeWithStatus()
884 return "{ParcelFileDescriptor: " + mFd + "}"; in toString()
[all …]
/frameworks/base/libs/androidfw/
DAsset.cpp686 mMap(NULL), mFd(-1), mZipInflater(NULL), mBuf(NULL) in _CompressedAsset()
707 assert(mFd < 0); // no re-open in openChunk()
722 mFd = fd; in openChunk()
726 mZipInflater = new StreamingZipInflater(mFd, offset, uncompressedLen, compressedLen); in openChunk()
739 assert(mFd < 0); // no re-open in openChunk()
834 if (mFd > 0) { in close()
835 ::close(mFd); in close()
836 mFd = -1; in close()
867 assert(mFd >= 0); in getBuffer()
872 if (lseek(mFd, mStart, SEEK_SET) != mStart) in getBuffer()
[all …]
DStreamingZipInflater.cpp55 mFd = fd; in StreamingZipInflater()
74 mFd = -1; in StreamingZipInflater()
115 ::lseek(mFd, mInFileStart, SEEK_SET); in initInflateState()
213 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
DZipUtils.cpp174 mFd(fd), mReadBuf(new unsigned char[kReadBufSize]) in FdReader()
184 return TEMP_FAILURE_RETRY(::read(mFd, mReadBuf, readSize)); in read()
187 int mFd; member in FdReader
/frameworks/av/cmds/stagefright/
Dstream.cpp59 int mFd; member
70 : mFd(fd), in MyStreamSource()
80 close(mFd); in ~MyStreamSource()
81 mFd = -1; in ~MyStreamSource()
102 lseek(mFd, offset, SEEK_SET); in onBufferAvailable()
116 ssize_t n = read(mFd, mem->pointer(), mem->size()); in onBufferAvailable()
/frameworks/base/media/java/android/media/
DMediaRecorder.java92 private FileDescriptor mFd; field in MediaRecorder
731 mFd = fd; in setOutputFile()
744 mFd = null; in setOutputFile()
771 } else if (mFd != null) { in prepare()
772 _setOutputFile(mFd, 0, 0); in prepare()
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp463 mFd = dup(fd); in Sample()
467 mSampleID, mFd, mLength, mOffset); in Sample()
476 mFd = -1; in init()
483 ALOGV("Sample::destructor sampleID=%d, fd=%d", mSampleID, mFd); in ~Sample()
484 if (mFd > 0) { in ~Sample()
485 ALOGV("close(%d)", mFd); in ~Sample()
486 ::close(mFd); in ~Sample()
624 status = decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format, in doLoad()
626 ALOGV("close(%d)", mFd); in doLoad()
627 ::close(mFd); in doLoad()
[all …]
/frameworks/ex/framesequence/jni/
DStream.h65 FileStream(FILE* fd) : mFd(fd) {} in FileStream()
71 FILE* mFd;
/frameworks/av/include/media/
DMidiIoWrapper.h40 int mFd;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
DMediaEncoderFilter.java60 private FileDescriptor mFd = null; field in MediaEncoderFilter
253 if (mFd != null) { in updateMediaRecorderParams()
254 mMediaRecorder.setOutputFile(mFd); in updateMediaRecorderParams()
/frameworks/base/include/androidfw/
DStreamingZipInflater.h55 int mFd; variable
/frameworks/av/include/media/stagefright/
DAMRWriter.h46 int mFd;
DFileSource.h50 int mFd;

12