/frameworks/base/media/libstagefright/ |
D | AACWriter.cpp | 35 : mFd(-1), in AACWriter() 45 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR); in AACWriter() 46 if (mFd >= 0) { in AACWriter() 52 : mFd(dup(fd)), in AACWriter() 53 mInitCheck(mFd < 0? NO_INIT: OK), in AACWriter() 66 if (mFd != -1) { in ~AACWriter() 67 close(mFd); in ~AACWriter() 68 mFd = -1; in ~AACWriter() 246 write(mFd, &data, 1); in writeAdtsHeader() 255 write(mFd, &data, 1); in writeAdtsHeader() [all …]
|
D | FileSource.cpp | 28 : mFd(-1), in FileSource() 37 mFd = open(filename, O_LARGEFILE | O_RDONLY); in FileSource() 41 : mFd(fd), in FileSource() 54 if (mFd >= 0) { in ~FileSource() 55 close(mFd); in ~FileSource() 56 mFd = -1; in ~FileSource() 78 return mFd >= 0 ? OK : NO_INIT; in initCheck() 82 if (mFd < 0) { in readAt() 102 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET); in readAt() 108 return ::read(mFd, data, size); in readAt() [all …]
|
D | AMRWriter.cpp | 33 : mFd(-1), in AMRWriter() 39 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR); 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 …]
|
D | MPEG4Writer.cpp | 242 : mFd(-1), in MPEG4Writer() 259 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR); in MPEG4Writer() 260 if (mFd >= 0) { in MPEG4Writer() 266 : mFd(dup(fd)), in MPEG4Writer() 267 mInitCheck(mFd < 0? NO_INIT: OK), in MPEG4Writer() 494 lseek64(mFd, mFreeBoxOffset, SEEK_SET); in start() 500 lseek64(mFd, mMdatOffset, SEEK_SET); in start() 613 close(mFd); in release() 614 mFd = -1; in release() 667 lseek64(mFd, mMdatOffset, SEEK_SET); in stop() [all …]
|
D | AwesomePlayer.cpp | 296 mStats.mFd = -1; in setDataSource_l() 321 mStats.mFd = fd; in setDataSource() 566 mStats.mFd = -1; in reset_l() 2330 if (mStats.mFd < 0) { in dump() 2333 fprintf(out, " fd(%d)", mStats.mFd); in dump()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetFileDescriptor.java | 41 private final ParcelFileDescriptor mFd; field in AssetFileDescriptor 59 mFd = fd; in AssetFileDescriptor() 70 return mFd; in getParcelFileDescriptor() 78 return mFd.getFileDescriptor(); in getFileDescriptor() 103 long len = mFd.getStatSize(); in getLength() 123 mFd.close(); in close() 136 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream() 151 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd); in createOutputStream() 158 return "{AssetFileDescriptor: " + mFd in toString() 309 return mFd.describeContents(); in describeContents() [all …]
|
/frameworks/base/core/java/android/os/ |
D | ParcelFileDescriptor.java | 329 private final ParcelFileDescriptor mFd; field in ParcelFileDescriptor.AutoCloseInputStream 333 mFd = fd; in AutoCloseInputStream() 339 mFd.close(); in close() 352 private final ParcelFileDescriptor mFd; field in ParcelFileDescriptor.AutoCloseOutputStream 356 mFd = fd; in AutoCloseOutputStream() 362 mFd.close(); in close()
|
/frameworks/base/libs/utils/ |
D | ZipFileRO.cpp | 109 if (mFd >= 0) in ~ZipFileRO() 110 TEMP_FAILURE_RETRY(close(mFd)); in ~ZipFileRO() 160 mFd = fd; in open() 205 if (lseek64(mFd, 0, SEEK_SET) != 0) { in mapCentralDirectory() 211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t))); in mapCentralDirectory() 245 if (lseek64(mFd, searchStart, SEEK_SET) != searchStart) { in mapCentralDirectory() 250 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); in mapCentralDirectory() 311 if (!mDirectoryMap->create(mFileName, mFd, dirOffset, dirSize, true)) { in mapCentralDirectory() 544 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset)); in getEntryInfo() 569 if (lseek64(mFd, localHdrOffset, SEEK_SET) != localHdrOffset) { in getEntryInfo() [all …]
|
D | Asset.cpp | 680 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 …]
|
D | StreamingZipInflater.cpp | 36 mFd = fd; in StreamingZipInflater() 55 mFd = -1; in StreamingZipInflater() 96 ::lseek(mFd, mInFileStart, SEEK_SET); in initInflateState() 194 ssize_t didRead = ::read(mFd, mInBuf, toRead); in readNextChunk()
|
/frameworks/base/cmds/stagefright/ |
D | stream.cpp | 55 int mFd; member 66 : mFd(fd), in MyStreamSource() 76 close(mFd); in ~MyStreamSource() 77 mFd = -1; in ~MyStreamSource() 98 lseek(mFd, offset, SEEK_SET); in onBufferAvailable() 112 ssize_t n = read(mFd, mem->pointer(), mem->size()); in onBufferAvailable()
|
/frameworks/base/media/java/android/media/ |
D | MediaRecorder.java | 89 private FileDescriptor mFd; field in MediaRecorder 595 mFd = fd; in setOutputFile() 608 mFd = null; in setOutputFile() 635 } else if (mFd != null) { in prepare() 636 _setOutputFile(mFd, 0, 0); in prepare()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 465 mFd = dup(fd); in Sample() 468 LOGV("create sampleID=%d, fd=%d, offset=%lld, length=%lld", mSampleID, mFd, mLength, mOffset); in Sample() 478 mFd = -1; in init() 486 LOGV("Sample::destructor sampleID=%d, fd=%d", mSampleID, mFd); in ~Sample() 487 if (mFd > 0) { in ~Sample() 488 LOGV("close(%d)", mFd); in ~Sample() 489 ::close(mFd); in ~Sample() 505 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format); in doLoad() 506 LOGV("close(%d)", mFd); in doLoad() 507 ::close(mFd); in doLoad() [all …]
|
D | SoundPool.h | 81 int mFd; variable
|
/frameworks/base/include/utils/ |
D | ZipFileRO.h | 74 : mFd(-1), mFileName(NULL), mFileLength(-1), in ZipFileRO() 232 int mFd; variable
|
D | StreamingZipInflater.h | 55 int mFd; variable
|
D | Asset.h | 311 int mFd; // for file input variable
|
/frameworks/base/include/media/stagefright/ |
D | AMRWriter.h | 47 int mFd;
|
D | AACWriter.h | 49 int mFd; member
|
D | FileSource.h | 49 int mFd;
|
D | MPEG4Writer.h | 68 int mFd; variable
|
/frameworks/base/media/libstagefright/rtsp/ |
D | ARTPWriter.h | 68 int mFd; member
|
D | ARTPWriter.cpp | 49 mFd(dup(fd)), in ARTPWriter() 103 close(mFd); in ~ARTPWriter() 104 mFd = -1; in ~ARTPWriter()
|
/frameworks/base/media/libstagefright/include/ |
D | AwesomePlayer.h | 320 int mFd; member
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 57 jfieldID mFd; member 1748 gAssetFileDescriptorOffsets.mFd in register_android_content_AssetManager() 1750 LOG_FATAL_IF(gAssetFileDescriptorOffsets.mFd == NULL, "Unable to find AssetFileDescriptor.mFd"); in register_android_content_AssetManager()
|