Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/
DFileSource.cpp28 : mFd(-1), in FileSource()
37 mFd = open(filename, O_LARGEFILE | O_RDONLY); in FileSource()
39 if (mFd >= 0) { in FileSource()
40 mLength = lseek64(mFd, 0, SEEK_END); in FileSource()
47 : mFd(fd), in FileSource()
60 if (mFd >= 0) { in ~FileSource()
61 close(mFd); in ~FileSource()
62 mFd = -1; in ~FileSource()
84 return mFd >= 0 ? OK : NO_INIT; in initCheck()
88 if (mFd < 0) { in readAt()
[all …]
DAACWriter.cpp38 : mFd(-1), in AACWriter()
49 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in AACWriter()
50 if (mFd >= 0) { in AACWriter()
56 : mFd(dup(fd)), in AACWriter()
57 mInitCheck(mFd < 0? NO_INIT: OK), in AACWriter()
70 if (mFd != -1) { in ~AACWriter()
71 close(mFd); in ~AACWriter()
72 mFd = -1; in ~AACWriter()
255 write(mFd, &data, 1); in writeAdtsHeader()
264 write(mFd, &data, 1); in writeAdtsHeader()
[all …]
DAMRWriter.cpp33 : mFd(-1), in AMRWriter()
39 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in AMRWriter()
40 if (mFd >= 0) { in AMRWriter()
46 : mFd(dup(fd)), in AMRWriter()
47 mInitCheck(mFd < 0? NO_INIT: OK), in AMRWriter()
58 if (mFd != -1) { in ~AMRWriter()
59 close(mFd); in ~AMRWriter()
60 mFd = -1; in ~AMRWriter()
101 if (write(mFd, kHeader, n) != n) { in addSource()
250 ssize_t n = write(mFd, in threadFunc()
[all …]
DMPEG4Writer.cpp335 : mFd(-1), in MPEG4Writer()
353 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in MPEG4Writer()
354 if (mFd >= 0) { in MPEG4Writer()
360 : mFd(dup(fd)), in MPEG4Writer()
361 mInitCheck(mFd < 0? NO_INIT: OK), in MPEG4Writer()
686 lseek64(mFd, mFreeBoxOffset, SEEK_SET); in start()
695 lseek64(mFd, mMdatOffset, SEEK_SET); in start()
808 close(mFd); in release()
809 mFd = -1; in release()
862 lseek64(mFd, mMdatOffset, SEEK_SET); in reset()
[all …]
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java41 private final ParcelFileDescriptor mFd; field in AssetFileDescriptor
62 mFd = fd; in AssetFileDescriptor()
73 return mFd; in getParcelFileDescriptor()
81 return mFd.getFileDescriptor(); in getFileDescriptor()
106 long len = mFd.getStatSize(); in getLength()
126 mFd.close(); in close()
139 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream()
154 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd); in createOutputStream()
161 return "{AssetFileDescriptor: " + mFd in toString()
312 return mFd.describeContents(); in describeContents()
[all …]
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java333 private final ParcelFileDescriptor mFd; field in ParcelFileDescriptor.AutoCloseInputStream
337 mFd = fd; in AutoCloseInputStream()
343 mFd.close(); in close()
356 private final ParcelFileDescriptor mFd; field in ParcelFileDescriptor.AutoCloseOutputStream
360 mFd = fd; in AutoCloseOutputStream()
366 mFd.close(); in close()
/frameworks/native/libs/utils/
DZipFileRO.cpp87 if (mFd >= 0) in ~ZipFileRO()
88 TEMP_FAILURE_RETRY(close(mFd)); in ~ZipFileRO()
138 mFd = fd; in open()
183 if (lseek64(mFd, 0, SEEK_SET) != 0) { in mapCentralDirectory()
189 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); in mapCentralDirectory()
223 if (lseek64(mFd, searchStart, SEEK_SET) != searchStart) { in mapCentralDirectory()
228 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); in mapCentralDirectory()
289 if (!mDirectoryMap->create(mFileName, mFd, dirOffset, dirSize, true)) { in mapCentralDirectory()
541 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset)); in getEntryInfo()
566 if (lseek64(mFd, localHdrOffset, SEEK_SET) != localHdrOffset) { in getEntryInfo()
[all …]
/frameworks/base/libs/androidfw/
DAsset.cpp680 mMap(NULL), mFd(-1), mZipInflater(NULL), mBuf(NULL) in _CompressedAsset()
701 assert(mFd < 0); // no re-open in openChunk()
716 mFd = fd; in openChunk()
720 mZipInflater = new StreamingZipInflater(mFd, offset, uncompressedLen, compressedLen); in openChunk()
734 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.cpp53 mFd = fd; in StreamingZipInflater()
72 mFd = -1; in StreamingZipInflater()
113 ::lseek(mFd, mInFileStart, SEEK_SET); in initInflateState()
211 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead)); in readNextChunk()
DInputTransport.cpp98 mName(name), mFd(fd) { in InputChannel()
104 int result = fcntl(mFd, F_SETFL, O_NONBLOCK); in InputChannel()
112 mName.string(), mFd); in ~InputChannel()
115 ::close(mFd); in ~InputChannel()
150 nWrite = ::send(mFd, msg, msgLength, MSG_DONTWAIT | MSG_NOSIGNAL); in sendMessage()
185 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage()
/frameworks/av/cmds/stagefright/
Dstream.cpp58 int mFd; member
69 : mFd(fd), in MyStreamSource()
79 close(mFd); in ~MyStreamSource()
80 mFd = -1; in ~MyStreamSource()
101 lseek(mFd, offset, SEEK_SET); in onBufferAvailable()
115 ssize_t n = read(mFd, mem->pointer(), mem->size()); in onBufferAvailable()
/frameworks/base/media/java/android/media/
DMediaRecorder.java90 private FileDescriptor mFd; field in MediaRecorder
623 mFd = fd; in setOutputFile()
636 mFd = null; in setOutputFile()
663 } else if (mFd != null) { in prepare()
664 _setOutputFile(mFd, 0, 0); in prepare()
/frameworks/av/media/libmedia/
DSoundPool.cpp465 mFd = dup(fd); in Sample()
468 ALOGV("create sampleID=%d, fd=%d, offset=%lld, length=%lld", mSampleID, mFd, mLength, mOffset); in Sample()
478 mFd = -1; in init()
486 ALOGV("Sample::destructor sampleID=%d, fd=%d", mSampleID, mFd); in ~Sample()
487 if (mFd > 0) { in ~Sample()
488 ALOGV("close(%d)", mFd); in ~Sample()
489 ::close(mFd); in ~Sample()
505 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format); in doLoad()
506 ALOGV("close(%d)", mFd); in doLoad()
507 ::close(mFd); in doLoad()
[all …]
/frameworks/native/include/utils/
DZipFileRO.h74 : mFd(-1), mFileName(NULL), mFileLength(-1), in ZipFileRO()
232 int mFd; variable
/frameworks/base/include/androidfw/
DStreamingZipInflater.h55 int mFd; variable
DInputTransport.h144 inline int getFd() const { return mFd; } in getFd()
176 int mFd; variable
DAsset.h311 int mFd; // for file input variable
/frameworks/av/include/media/stagefright/
DAMRWriter.h47 int mFd;
DFileSource.h49 int mFd;
DAACWriter.h49 int mFd; member
DMPEG4Writer.h75 int mFd; variable
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
DMediaEncoderFilter.java69 private FileDescriptor mFd = null; field in MediaEncoderFilter
262 if (mFd != null) { in updateMediaRecorderParams()
263 mMediaRecorder.setOutputFile(mFd); in updateMediaRecorderParams()
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.h68 int mFd; member
DARTPWriter.cpp49 mFd(dup(fd)), in ARTPWriter()
103 close(mFd); in ~ARTPWriter()
104 mFd = -1; in ~ARTPWriter()
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java118 private int mFd; field in BluetoothSocket
164 mFd = fd; in BluetoothSocket()

12