Searched refs:mFd (Results 1 - 25 of 73) sorted by relevance

123

/frameworks/av/include/media/stagefright/foundation/
H A DFileDescriptor.h51 : mFd(fd) {
57 ::close(mFd);
58 mFd = kInvalidFileDescriptor;
67 int managedFd = mFd;
68 mFd = kInvalidFileDescriptor;
76 return mFd >= 0;
89 return mFd;
93 int mFd; member in struct:android::FileDescriptor::Autoclose
/frameworks/av/media/libstagefright/foundation/include/foundation/
H A DFileDescriptor.h51 : mFd(fd) {
57 ::close(mFd);
58 mFd = kInvalidFileDescriptor;
67 int managedFd = mFd;
68 mFd = kInvalidFileDescriptor;
76 return mFd >= 0;
89 return mFd;
93 int mFd; member in struct:android::FileDescriptor::Autoclose
/frameworks/av/media/libstagefright/include/foundation/
H A DFileDescriptor.h51 : mFd(fd) {
57 ::close(mFd);
58 mFd = kInvalidFileDescriptor;
67 int managedFd = mFd;
68 mFd = kInvalidFileDescriptor;
76 return mFd >= 0;
89 return mFd;
93 int mFd; member in struct:android::FileDescriptor::Autoclose
/frameworks/av/media/libaaudio/src/binding/
H A DSharedMemoryParcelable.cpp43 mFd = fd;
52 status = parcel->writeDupFileDescriptor(mFd);
65 // Keep the original FD until you are done with the mFd.
66 // If you close it in here then it will prevent mFd from working.
69 mFd = fcntl(mOriginalFd, F_DUPFD_CLOEXEC, 0);
70 ALOGV("SharedMemoryParcelable::readFromParcel() LEAK? mFd = %d\n", mFd);
71 if (mFd == -1) {
88 if (mFd != -1) {
89 ALOGV("SharedMemoryParcelable::close() LEAK? mFd
[all...]
H A DSharedMemoryParcelable.h70 int mFd = -1; member in class:aaudio::SharedMemoryParcelable
/frameworks/av/media/mtp/
H A DMtpDevHandle.cpp40 android::base::unique_fd mFd; member in class:MtpDevHandle
59 : mFd(-1) {};
64 return ::read(mFd, data, len);
68 return ::write(mFd, data, len);
72 return ioctl(mFd, MTP_RECEIVE_FILE, reinterpret_cast<unsigned long>(&mfr));
76 return ioctl(mFd, MTP_SEND_FILE_WITH_HEADER, reinterpret_cast<unsigned long>(&mfr));
80 return ioctl(mFd, MTP_SEND_EVENT, reinterpret_cast<unsigned long>(&me));
84 mFd = android::base::unique_fd(TEMP_FAILURE_RETRY(open(mtp_dev_path, O_RDWR)));
85 if (mFd == -1) return -1;
90 mFd
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
H A DPriorityDumpTest.java52 private final FileDescriptor mFd = FileDescriptor.err; field in class:PriorityDumpTest
61 dump(mDumper, mFd, mPw, null);
62 verify(mDumper).dump(same(mFd), same(mPw), eq(null));
67 dump(mDumper, mFd, mPw, EMPTY_ARGS);
68 verify(mDumper).dump(same(mFd), same(mPw), same(EMPTY_ARGS));
76 dump(mDumper, mFd, mPw, args);
77 verify(mDumper).dump(same(mFd), same(mPw), same(args));
85 dump(mDumper, mFd, mPw, args);
86 verify(mDumper).dump(same(mFd), same(mPw), same(args));
94 dump(mDumper, mFd, mP
[all...]
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp38 mFd = open(path, O_RDONLY | O_LARGEFILE);
40 mLength = lseek(mFd, 0, SEEK_END);
45 mFd = fd < 0 ? -1 : dup(fd);
52 mFd = -1;
64 if (mFd >= 0) {
65 close(mFd);
75 if (mFd < 0) {
79 lseek(mFd, mBase + offset, SEEK_SET);
83 return read(mFd, buffer, size);
/frameworks/base/core/java/android/util/
H A DMemoryIntArray.java59 private int mFd = -1; field in class:MemoryIntArray
74 mFd = nativeCreate(name, size);
75 mMemoryAddr = nativeOpen(mFd, mIsOwner);
85 mFd = pfd.detachFd();
86 mMemoryAddr = nativeOpen(mFd, mIsOwner);
108 return nativeGet(mFd, mMemoryAddr, index);
124 nativeSet(mFd, mMemoryAddr, index, value);
134 return nativeSize(mFd);
145 nativeClose(mFd, mMemoryAddr, mIsOwner);
146 mFd
[all...]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DUsbAccessoryStreamTransport.java33 private ParcelFileDescriptor mFd; field in class:UsbAccessoryStreamTransport
39 mFd = fd;
47 mFd.close();
50 mFd = null;
/frameworks/av/media/libstagefright/
H A DAACWriter.cpp40 : mFd(dup(fd)),
41 mInitCheck(mFd < 0? NO_INIT: OK),
59 if (mFd != -1) {
60 close(mFd);
61 mFd = -1;
240 write(mFd, &data, 1);
249 write(mFd, &data, 1);
260 write(mFd, &data, 1);
268 write(mFd, &data, 1);
271 write(mFd,
[all...]
H A DFileSource.cpp34 : mFd(-1),
48 mFd = open(filename, O_LARGEFILE | O_RDONLY);
50 if (mFd >= 0) {
51 mLength = lseek64(mFd, 0, SEEK_END);
58 : mFd(fd),
104 if (mFd >= 0) {
105 ::close(mFd);
106 mFd = -1;
128 return mFd >= 0 ? OK : NO_INIT;
132 if (mFd <
[all...]
H A DAMRWriter.cpp35 : mFd(dup(fd)),
36 mInitCheck(mFd < 0? NO_INIT: OK),
47 if (mFd != -1) {
48 close(mFd);
49 mFd = -1;
90 if (write(mFd, kHeader, n) != n) {
239 ssize_t n = write(mFd,
266 close(mFd);
267 mFd = -1;
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java43 private final ParcelFileDescriptor mFd; field in class:AssetFileDescriptor
82 mFd = fd;
94 return mFd;
102 return mFd.getFileDescriptor();
135 long len = mFd.getStatSize();
156 mFd.close();
169 return new ParcelFileDescriptor.AutoCloseInputStream(mFd);
184 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd);
191 return "{AssetFileDescriptor: " + mFd
342 return mFd
[all...]
/frameworks/native/cmds/lshal/
H A DPipeRelay.cpp31 int mFd; member in struct:android::lshal::PipeRelay::RelayThread
40 : mFd(fd),
46 ssize_t n = read(mFd, buffer, sizeof(buffer));
/frameworks/base/drm/java/android/drm/
H A DDrmOutputStream.java49 private final FileDescriptor mFd; field in class:DrmOutputStream
60 mFd = pfd.getFileDescriptor();
72 Os.lseek(mFd, status.offset, SEEK_SET);
76 IoBridge.write(mFd, status.convertedData, 0, status.convertedData.length);
106 IoBridge.write(mFd, status.convertedData, 0, status.convertedData.length);
/frameworks/base/libs/services/src/os/
H A DDropBoxManager.cpp39 mFd()
49 mFd()
58 mFd(fd)
81 if (mFd.get() != -1) {
86 ALOGD("writing fd %d\n", mFd.get());
87 err = out->writeParcelFileDescriptor(mFd);
140 mFd.reset(fd);
/frameworks/av/include/media/
H A DMidiIoWrapper.h40 int mFd; member in class:android::MidiIoWrapper
/frameworks/av/media/libmedia/include/media/
H A DMidiIoWrapper.h40 int mFd; member in class:android::MidiIoWrapper
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp56 : mFd(dup(fd)),
57 mInitCheck(mFd < 0 ? NO_INIT : OK),
76 mFd,
251 close(mFd);
252 mFd = -1;
314 mCuesOffset = ::lseek(mFd, 0, SEEK_CUR);
315 cues->write(mFd, cuesSize);
318 ::lseek(mFd, mCuesOffset, SEEK_SET);
319 cues->write(mFd, cuesSize);
321 space->write(mFd, spaceSiz
[all...]
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/
H A DUsbAoapDeviceTestActivity.java45 private ParcelFileDescriptor mFd; field in class:UsbAoapDeviceTestActivity
81 IoUtils.closeQuietly(mFd);
106 mFd = mUsbManager.openAccessory(accessory);
107 if (mFd == null) {
113 mReaderThread = new ReaderThread(mFd);
/frameworks/av/include/media/stagefright/
H A DAMRWriter.h46 int mFd; member in struct:android::AMRWriter
/frameworks/av/media/libstagefright/foundation/include/
H A DAMRWriter.h46 int mFd; member in struct:android::AMRWriter
/frameworks/av/media/libstagefright/include/
H A DAMRWriter.h46 int mFd; member in struct:android::AMRWriter
/frameworks/base/libs/androidfw/
H A DStreamingZipInflater.cpp55 mFd = fd;
74 mFd = -1;
115 ::lseek(mFd, mInFileStart, SEEK_SET);
213 ssize_t didRead = TEMP_FAILURE_RETRY(::read(mFd, mInBuf, toRead));

Completed in 517 milliseconds

123