Home
last modified time | relevance | path

Searched refs:mFD (Results 1 – 13 of 13) sorted by relevance

/frameworks/compile/libbcc/lib/
DFileBase.cpp45 : mFD(-1), in FileBase()
82 mFD = ::open(mName.c_str(), mOpenFlags, 0644); in open()
83 if (mFD > 0) { in open()
104 if (::fstat(mFD, &fd_stat) == 0) { in checkFileIntegrity()
139 if ((mFD < 0) || hasError()) { in lock()
163 if (::flock(mFD, lock_operation) == 0) { in lock()
207 if (mFD < 0) { in unlock()
212 if (::flock(mFD, LOCK_UN) == 0) { in unlock()
227 if (mFD > 0) { in close()
228 ::close(mFD); in close()
[all …]
DFileBase.h66 int mFD;
/frameworks/native/libs/binder/
DMemoryHeapBase.cpp38 : mFD(-1), mSize(0), mBase(MAP_FAILED), in MemoryHeapBase()
44 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase()
61 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase()
80 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase()
90 if (mFD != -1) { in init()
93 mFD = fd; in init()
127 mFD = fd; in mapfd()
140 int fd = android_atomic_or(-1, &mFD); in dispose()
153 return mFD; in getHeapID()
DStatic.cpp51 explicit FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } in FdTextOutput()
57 writev(mFD, &vec, N); in writeLines()
62 int mFD; member in android::FdTextOutput
/frameworks/base/core/java/android/os/
DMemoryFile.java57 private FileDescriptor mFD; // ashmem file descriptor field in MemoryFile
72 mFD = native_open(name, length); in MemoryFile()
78 mAddress = native_mmap(mFD, length, PROT_READ | PROT_WRITE); in MemoryFile()
91 native_close(mFD); in close()
124 return !mFD.valid(); in isClosed()
163 native_pin(mFD, !allowPurging); in allowPurging()
209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in readBytes()
233 native_write(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in writeBytes()
246 return mFD; in getFileDescriptor()
/frameworks/av/media/mtp/
DMtpServer.h92 int mFD; variable
96 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { in ObjectEdit()
100 close(mFD); in ~ObjectEdit()
DMtpServer.cpp1249 ret = pwrite(edit->mFD, mData.getData(), initialData, offset); in doSendPartialObject()
1259 mfr.fd = edit->mFD; in doSendPartialObject()
1303 if (ftruncate(edit->mFD, offset) != 0) { in doTruncateObject()
/frameworks/wilhelm/src/
Ddata.cpp220 pDataLocator->mFD = *(SLDataLocator_AndroidFD *)pLocator; in checkDataLocator()
221 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd, in checkDataLocator()
222 pDataLocator->mFD.offset, pDataLocator->mFD.length); in checkDataLocator()
224 if (0 > pDataLocator->mFD.fd) { in checkDataLocator()
225 SL_LOGE("%s: fd=%d\n", name, pDataLocator->mFD.fd); in checkDataLocator()
Ddata.h32 SLDataLocator_AndroidFD mFD; member
/frameworks/native/libs/binder/include/binder/
DMemoryHeapBase.h91 int mFD; variable
/frameworks/base/media/java/android/media/
DFaceDetector.java194 private long mFD; field in FaceDetector
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp434 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; in android_Player_realize()
436 (int)mp->mDataSource.mLocator.mFD.fd, in android_Player_realize()
439 (int64_t)mp->mDataSource.mLocator.mFD.length); in android_Player_realize()
DAudioPlayer_to_android.cpp1786 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; in android_audioPlayer_realize()
1788 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd, in android_audioPlayer_realize()
1791 (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.length); in android_audioPlayer_realize()
1836 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; in android_audioPlayer_realize()
1838 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd, in android_audioPlayer_realize()
1841 (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.length); in android_audioPlayer_realize()