Home
last modified time | relevance | path

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

/frameworks/compile/libbcc/lib/Support/
DFileBase.cpp48 : mFD(-1), in FileBase()
85 mFD = ::open(mName.c_str(), mOpenFlags, 0644); in open()
86 if (mFD > 0) { in open()
107 if (::fstat(mFD, &fd_stat) == 0) { in checkFileIntegrity()
142 if ((mFD < 0) || hasError()) { in lock()
166 if (::flock(mFD, lock_operation) == 0) { in lock()
210 if (mFD < 0) { in unlock()
215 if (::flock(mFD, LOCK_UN) == 0) { in unlock()
227 if (mFD < 0 || hasError()) { in createMap()
237 if (!map->create(NULL, mFD, pOffset, pLength, pIsReadOnly)) { in createMap()
[all …]
DOutputFile.cpp31 if ((mFD < 0) || hasError()) { in write()
42 ssize_t write_size = ::write(mFD, pBuf, count); in write()
60 if (mFD < 0) { in truncate()
65 if (::ftruncate(mFD, 0) == 0) { in truncate()
78 newfd = ::dup(mFD); in dup()
DInputFile.cpp27 if ((mFD < 0) || hasError()) { in read()
38 ssize_t read_size = ::read(mFD, pBuf, count); in read()
/frameworks/native/libs/binder/
DMemoryHeapBase.cpp44 : mFD(-1), mSize(0), mBase(MAP_FAILED), in MemoryHeapBase()
50 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase()
67 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase()
86 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase()
96 if (mFD != -1) { in init()
99 mFD = fd; in init()
142 mFD = fd; in mapfd()
155 int fd = android_atomic_or(-1, &mFD); in dispose()
168 return mFD; in getHeapID()
DStatic.cpp51 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
71 mFD = native_open(name, length); in MemoryFile()
73 mAddress = native_mmap(mFD, length, PROT_READ | PROT_WRITE); in MemoryFile()
86 native_close(mFD); in close()
119 return !mFD.valid(); in isClosed()
158 native_pin(mFD, !allowPurging); in allowPurging()
204 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in readBytes()
228 native_write(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in writeBytes()
241 return mFD; in getFileDescriptor()
/frameworks/av/media/mtp/
DMtpServer.h38 int mFD;
79 int mFD; variable
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { in ObjectEdit()
87 close(mFD); in ~ObjectEdit()
DMtpServer.cpp100 : mFD(fd), in MtpServer()
154 int fd = mFD; in run()
241 mFD = -1; in run()
269 int ret = mEvent.write(mFD); in sendEvent()
739 int ret = ioctl(mFD, MTP_SEND_FILE_WITH_HEADER, (unsigned long)&mfr); in doGetObject()
759 mData.writeData(mFD, thumb, thumbSize); in doGetThumb()
805 int ret = ioctl(mFD, MTP_SEND_FILE_WITH_HEADER, (unsigned long)&mfr); in doGetPartialObject()
927 ret = mData.read(mFD); in doSendObject()
960 ret = ioctl(mFD, MTP_RECEIVE_FILE, (unsigned long)&mfr); in doSendObject()
1116 int ret = mData.read(mFD); in doSendPartialObject()
[all …]
/frameworks/wilhelm/src/
Ddata.c215 pDataLocator->mFD = *(SLDataLocator_AndroidFD *)pLocator; in checkDataLocator()
216 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd, in checkDataLocator()
217 pDataLocator->mFD.offset, pDataLocator->mFD.length); in checkDataLocator()
219 if (0 > pDataLocator->mFD.fd) { in checkDataLocator()
220 SL_LOGE("%s: fd=%d\n", name, pDataLocator->mFD.fd); in checkDataLocator()
Ddata.h29 SLDataLocator_AndroidFD mFD; member
/frameworks/native/include/binder/
DMemoryHeapBase.h91 int mFD; variable
/frameworks/compile/libbcc/include/bcc/Support/
DFileBase.h67 int mFD;
/frameworks/base/media/java/android/media/
DFaceDetector.java194 private int mFD; field in FaceDetector
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp436 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; in android_Player_realize()
438 (int)mp->mDataSource.mLocator.mFD.fd, in android_Player_realize()
441 (int64_t)mp->mDataSource.mLocator.mFD.length); in android_Player_realize()
DAudioPlayer_to_android.cpp1510 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; in android_audioPlayer_realize()
1512 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd, in android_audioPlayer_realize()
1515 (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.length); in android_audioPlayer_realize()
1552 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; in android_audioPlayer_realize()
1554 (int)pAudioPlayer->mDataSource.mLocator.mFD.fd, in android_audioPlayer_realize()
1557 (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.length); in android_audioPlayer_realize()
/frameworks/base/docs/html/tools/adk/
Dadk2.jd596 ParcelFileDescriptor mFD = mUSBManager.openAccessory(acc);
597 if (mFD != null) {
598 FileDescripter fd = mFD.getFileDescriptor();