/frameworks/compile/libbcc/lib/Support/ |
FileBase.cpp | 48 : mFD(-1), 85 mFD = ::open(mName.c_str(), mOpenFlags, 0644); 86 if (mFD > 0) { 101 // Check the file integrity by examining whether the inode referring to the mFD 105 // Get the file status of file descriptor mFD. 107 if (::fstat(mFD, &fd_stat) == 0) { 142 if ((mFD < 0) || hasError()) { 166 if (::flock(mFD, lock_operation) == 0) { 168 // Here we got a lock but we need to check whether the mFD still 170 // 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 | 31 if ((mFD < 0) || hasError()) { 42 ssize_t write_size = ::write(mFD, pBuf, count); 60 if (mFD < 0) { 65 if (::ftruncate(mFD, 0) == 0) { 78 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;
|
Static.cpp | 51 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } 57 writev(mFD, &vec, N); 62 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/msm8960/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/qcom/display/msm8974/liboverlay/ |
overlayUtils.h | 762 int mFD; 777 inline OvFD::OvFD() : mFD (INVAL) { 787 mFD = ::open(dev, flags, 0); 788 if (mFD < 0) { 806 ret = ::close(mFD); 807 mFD = INVAL; 814 return (mFD != INVAL); 817 inline int OvFD::getFD() const { return mFD; } 820 mFD = fd; 826 mFD, mPath) [all...] |
/hardware/qcom/display/msm8x26/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...] |
/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/msm8960/libcopybit/ |
copybit.cpp | 60 int mFD; 229 int err = ioctl(dev->mFD, MSMFB_BLIT, 519 close(ctx->mFD); 545 ctx->mFD = open("/dev/graphics/fb0", O_RDWR, 0); 546 if (ctx->mFD < 0) { 553 if (ioctl(ctx->mFD, FBIOGET_FSCREENINFO, &finfo) == 0) {
|
/hardware/qcom/display/msm8x26/libcopybit/ |
copybit.cpp | 60 int mFD; 229 int err = ioctl(dev->mFD, MSMFB_BLIT, 519 close(ctx->mFD); 545 ctx->mFD = open("/dev/graphics/fb0", O_RDWR, 0); 546 if (ctx->mFD < 0) { 553 if (ioctl(ctx->mFD, FBIOGET_FSCREENINFO, &finfo) == 0) {
|
/hardware/ti/omap4xxx/camera/inc/ |
ANativeWindowDisplayAdapter.h | 161 int mFD;
|
/hardware/qcom/display/msm8974/libcopybit/ |
copybit.cpp | 58 int mFD; 232 int err = ioctl(dev->mFD, MSMFB_ASYNC_BLIT, 563 close(ctx->mFD); 616 ctx->mFD = open("/dev/graphics/fb0", O_RDWR, 0); 617 if (ctx->mFD < 0) {
|
/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...] |