HomeSort by relevance Sort by last modified time
    Searched refs:mFD (Results 1 - 22 of 22) sorted by null

  /frameworks/compile/libbcc/lib/Support/
FileBase.cpp 36 : mFD(-1),
73 mFD = ::open(mName.c_str(), mOpenFlags, 0644);
74 if (mFD > 0) {
89 // Check the file integrity by examining whether the inode referring to the mFD
93 // Get the file status of file descriptor mFD.
95 if (::fstat(mFD, &fd_stat) == 0) {
130 if ((mFD < 0) || hasError()) {
154 if (::flock(mFD, lock_operation) == 0) {
156 // Here we got a lock but we need to check whether the mFD still
158 // check may failed when another process deleted the original file mFD
    [all...]
InputFile.cpp 27 if ((mFD < 0) || hasError()) {
38 ssize_t read_size = ::read(mFD, pBuf, count);
OutputFile.cpp 84 if ((mFD < 0) || hasError()) {
95 ssize_t write_size = ::write(mFD, pBuf, count);
113 if (mFD < 0) {
118 if (::ftruncate(mFD, 0) == 0) {
131 newfd = ::dup(mFD);
  /frameworks/native/libs/binder/
MemoryHeapBase.cpp 44 : mFD(-1), mSize(0), mBase(MAP_FAILED),
50 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags),
67 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags),
86 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags),
96 if (mFD != -1) {
99 mFD = fd;
142 mFD = fd;
155 int fd = android_atomic_or(-1, &mFD);
168 return mFD;
  /frameworks/native/libs/utils/
Static.cpp 69 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { }
75 writev(mFD, &vec, N);
80 int mFD;
  /frameworks/av/media/mtp/
MtpServer.h 38 int mFD;
79 int mFD;
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) {
87 close(mFD);
MtpServer.cpp 100 : mFD(fd),
154 int fd = mFD;
241 mFD = -1;
269 int ret = mEvent.write(mFD);
739 int ret = ioctl(mFD, MTP_SEND_FILE_WITH_HEADER, (unsigned long)&mfr);
759 mData.writeData(mFD, thumb, thumbSize);
805 int ret = ioctl(mFD, MTP_SEND_FILE_WITH_HEADER, (unsigned long)&mfr);
927 ret = mData.read(mFD);
960 ret = ioctl(mFD, MTP_RECEIVE_FILE, (unsigned long)&mfr);
    [all...]
  /frameworks/base/core/java/android/os/
MemoryFile.java 57 private FileDescriptor mFD; // ashmem file descriptor
71 mFD = native_open(name, length);
73 mAddress = native_mmap(mFD, length, PROT_READ | PROT_WRITE);
86 native_close(mFD);
119 return !mFD.valid();
158 native_pin(mFD, !allowPurging);
204 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
228 native_write(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
241 return mFD;
  /frameworks/compile/libbcc/include/bcc/Support/
FileBase.h 67 int mFD;
86 // Return true if mFD is the corresponded file descriptor to the file named
  /frameworks/native/include/binder/
MemoryHeapBase.h 91 int mFD;
  /hardware/qcom/display/liboverlay/
overlayUtils.h 784 int mFD;
799 inline OvFD::OvFD() : mFD (INVAL) {
809 mFD = ::open(dev, flags, 0);
810 if (mFD < 0) {
828 ret = ::close(mFD);
829 mFD = INVAL;
836 return (mFD != INVAL);
839 inline int OvFD::getFD() const { return mFD; }
842 mFD = fd;
848 mFD, mPath)
    [all...]
  /hardware/msm7k/libcopybit/
copybit.cpp 58 int mFD;
206 int err = ioctl(dev->mFD, MSMFB_BLIT,
430 close(ctx->mFD);
455 ctx->mFD = open("/dev/graphics/fb0", O_RDWR, 0);
457 if (ctx->mFD < 0) {
464 if (ioctl(ctx->mFD, FBIOGET_FSCREENINFO, &finfo) == 0) {
  /frameworks/base/media/java/android/media/
FaceDetector.java 194 private int mFD;
  /frameworks/wilhelm/src/
data.h 29 SLDataLocator_AndroidFD mFD;
data.c 215 pDataLocator->mFD = *(SLDataLocator_AndroidFD *)pLocator;
216 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd,
217 pDataLocator->mFD.offset, pDataLocator->mFD.length);
219 if (0 > pDataLocator->mFD.fd) {
220 SL_LOGE("%s: fd=%d\n", name, pDataLocator->mFD.fd);
    [all...]
  /hardware/qcom/display/libcopybit/
copybit.cpp 60 int mFD;
229 int err = ioctl(dev->mFD, MSMFB_BLIT,
521 close(ctx->mFD);
547 ctx->mFD = open("/dev/graphics/fb0", O_RDWR, 0);
548 if (ctx->mFD < 0) {
555 if (ioctl(ctx->mFD, FBIOGET_FSCREENINFO, &finfo) == 0) {
  /hardware/ti/omap4xxx/camera/inc/
ANativeWindowDisplayAdapter.h 161 int mFD;
  /hardware/ti/omap4xxx/camera/
ANativeWindowDisplayAdapter.cpp 184 mFD = -1;
793 if(mFD == -1)
798 mFD = dup(handle->fd[0]);
803 return mFD;
880 if( mFD != -1)
882 close(mFD); // close duped handle
883 mFD = -1;
    [all...]
  /frameworks/wilhelm/src/android/
MediaPlayer_to_android.cpp 436 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset;
438 (int)mp->mDataSource.mLocator.mFD.fd,
441 (int64_t)mp->mDataSource.mLocator.mFD.length);
AudioPlayer_to_android.cpp     [all...]
  /device/lge/mako/camera/
QualcommCameraHardware.h 250 int mFD;
267 int mFd;
283 int mFd;
QualcommCameraHardware.cpp     [all...]

Completed in 287 milliseconds