/frameworks/base/media/libstagefright/ |
D | MmapSource.cpp | 33 : mFd(open(filename, O_RDONLY)), in MmapSource() 37 CHECK(mFd >= 0); in MmapSource() 39 off_t size = lseek(mFd, 0, SEEK_END); in MmapSource() 42 mBase = mmap(0, mSize, PROT_READ, MAP_FILE | MAP_SHARED, mFd, 0); in MmapSource() 47 close(mFd); in MmapSource() 48 mFd = -1; in MmapSource() 53 : mFd(fd), in MmapSource() 59 mBase = mmap(0, mSize, PROT_READ, MAP_FILE | MAP_SHARED, mFd, offset); in MmapSource() 64 close(mFd); in MmapSource() 65 mFd = -1; in MmapSource() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | AssetFileDescriptor.java | 44 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() 133 return MemoryFile.isMemoryFile(mFd.getFileDescriptor()); in isMemoryFile() 149 return new AutoCloseMemoryFileInputStream(mFd, (int)mLength); in createInputStream() 152 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream() 167 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd); in createOutputStream() [all …]
|
/frameworks/base/libs/audioflinger/ |
D | AudioHardwareGeneric.cpp | 44 : mOutput(0), mInput(0), mFd(-1), mMicMute(false) in AudioHardwareGeneric() 46 mFd = ::open(kAudioDeviceName, O_RDWR); in AudioHardwareGeneric() 51 if (mFd >= 0) ::close(mFd); in ~AudioHardwareGeneric() 58 if (mFd >= 0) { in initCheck() 80 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream() 120 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream() 170 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals() 222 mFd = fd; in set() 234 return ssize_t(::write(mFd, buffer, bytes)); in write() 262 snprintf(buffer, SIZE, "\tmFd: %d\n", mFd); in dump() [all …]
|
D | AudioHardwareGeneric.h | 36 AudioStreamOutGeneric() : mAudioHardware(0), mFd(-1) {} in AudioStreamOutGeneric() 41 int mFd, 62 int mFd; variable 68 AudioStreamInGeneric() : mAudioHardware(0), mFd(-1) {} in AudioStreamInGeneric() 73 int mFd, 94 int mFd; variable 141 int mFd; variable
|
D | A2dpAudioInterface.h | 107 int mFd;
|
D | A2dpAudioInterface.cpp | 219 mFd(-1), mStandby(true), mStartCount(0), mRetryCount(0), mData(NULL), in A2dpAudioStreamOut()
|
/frameworks/base/core/java/android/os/ |
D | ParcelFileDescriptor.java | 182 private final ParcelFileDescriptor mFd; field in ParcelFileDescriptor.AutoCloseInputStream 186 mFd = fd; in AutoCloseInputStream() 191 mFd.close(); in close() 201 private final ParcelFileDescriptor mFd; field in ParcelFileDescriptor.AutoCloseOutputStream 205 mFd = fd; in AutoCloseOutputStream() 210 mFd.close(); in close()
|
/frameworks/base/include/utils/ |
D | ZipFileRO.h | 61 : mFd(-1), mFileMap(NULL), mHashTableSize(-1), mHashTable(NULL) in ZipFileRO() 67 if (mFd >= 0) in ~ZipFileRO() 68 close(mFd); in ~ZipFileRO() 204 int mFd; variable
|
D | Asset.h | 318 int mFd; // for file input variable
|
/frameworks/base/media/java/android/media/ |
D | MediaRecorder.java | 72 private FileDescriptor mFd; field in MediaRecorder 426 mFd = fd; in setOutputFile() 439 mFd = null; in setOutputFile() 466 } else if (mFd != null) { in prepare() 467 _setOutputFile(mFd, 0, 0); in prepare()
|
/frameworks/base/libs/utils/ |
D | Asset.cpp | 662 mMap(NULL), mFd(-1), mBuf(NULL) in _CompressedAsset() 683 assert(mFd < 0); // no re-open in openChunk() 698 mFd = fd; in openChunk() 712 assert(mFd < 0); // no re-open in openChunk() 801 if (mFd > 0) { in close() 802 ::close(mFd); in close() 803 mFd = -1; in close() 840 assert(mFd >= 0); in getBuffer() 845 if (lseek(mFd, mStart, SEEK_SET) != mStart) in getBuffer() 851 if (!ZipUtils::inflateToBuffer(mFd, buf, mUncompressedLen, in getBuffer()
|
D | ZipFileRO.cpp | 123 mFd = fd; in open() 467 if (!newMap->create(mFileMap->getFileName(), mFd, offset, compLen, true)) { in createEntryFileMap()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 396 mFd = dup(fd); in Sample() 399 LOGV("create sampleID=%d, fd=%d, offset=%lld, length=%lld", mSampleID, mFd, mLength, mOffset); in Sample() 409 mFd = -1; in init() 417 LOGV("Sample::destructor sampleID=%d, fd=%d", mSampleID, mFd); in ~Sample() 418 if (mFd > 0) { in ~Sample() 419 LOGV("close(%d)", mFd); in ~Sample() 420 ::close(mFd); in ~Sample() 436 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format); in doLoad() 437 LOGV("close(%d)", mFd); in doLoad() 438 ::close(mFd); in doLoad() [all …]
|
D | SoundPool.h | 83 int mFd; variable
|
/frameworks/base/include/media/stagefright/ |
D | MmapSource.h | 41 int mFd;
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 52 jfieldID mFd; member 1698 gAssetFileDescriptorOffsets.mFd in register_android_content_AssetManager() 1700 LOG_FATAL_IF(gAssetFileDescriptorOffsets.mFd == NULL, "Unable to find AssetFileDescriptor.mFd"); in register_android_content_AssetManager()
|