Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DNativeHandle.java38 private FileDescriptor[] mFds; field in NativeHandle
88 mFds = fds.clone(); in NativeHandle()
102 return mFds.length == 1 && mInts.length == 0; in hasSingleFileDescriptor()
112 FileDescriptor[] fds = new FileDescriptor[mFds.length]; in dup()
114 for (int i = 0; i < mFds.length; i++) { in dup()
116 int fdint = Os.fcntlInt(mFds[i], F_DUPFD_CLOEXEC, 0); in dup()
127 if (mFds == null) { in checkOpen()
143 for (FileDescriptor fd : mFds) { in close()
153 mFds = null; in close()
173 return mFds[0]; in getFileDescriptor()
[all …]
/frameworks/av/media/codec2/vndk/internal/
DC2HandleIonInternal.h28 mFds{ bufferFd }, in C2HandleIon()
36 int bufferFd() const { return mFds.mBuffer; } in bufferFd()
45 } mFds; member
56 numFds = sizeof(mFds) / sizeof(int),
/frameworks/av/media/codec2/vndk/include/
DC2SurfaceSyncObj.h173 mFds{fd}, in HandleSyncMem()
180 int memFd() const {return mFds.mMem;} in memFd()
197 } mFds; member
206 numFds = sizeof(mFds) / sizeof(int),
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java49 final ParcelFileDescriptor[] mFds; field in TransferPipe
73 mFds = ParcelFileDescriptor.createPipe(); in TransferPipe()
78 return mFds[0]; in getReadFd()
82 return mFds[1]; in getWriteFd()
220 if (mFds[num] != null) { in closeFd()
221 if (DEBUG) Slog.i(TAG, "Closing: " + mFds[num]); in closeFd()
223 mFds[num].close(); in closeFd()
226 mFds[num] = null; in closeFd()
/frameworks/av/media/module/bufferpool/1.0/vts/
Dallocator.cpp37 mFds{ ashmemFd }, in HandleAshmem()
40 int ashmemFd() const { return mFds.mAshmem; } in ashmemFd()
51 } mFds; member
61 numFds = sizeof(mFds) / sizeof(int),
/frameworks/av/media/module/bufferpool/2.0/tests/
Dallocator.cpp37 mFds{ ashmemFd }, in HandleAshmem()
40 int ashmemFd() const { return mFds.mAshmem; } in ashmemFd()
51 } mFds; member
61 numFds = sizeof(mFds) / sizeof(int),
/frameworks/native/libs/binder/
DParcel.cpp636 if (otherRpcFields->mFds != nullptr) { in appendFrom()
637 if (rpcFields->mFds == nullptr) { in appendFrom()
638 rpcFields->mFds = std::make_unique<decltype(rpcFields->mFds)::element_type>(); in appendFrom()
640 rpcFields->mFds->reserve(otherRpcFields->mFds->size()); in appendFrom()
666 int oldFd = toRawFd(otherRpcFields->mFds->at(fdIndex)); in appendFrom()
673 rpcFields->mFds->emplace_back(unique_fd(newFd)); in appendFrom()
676 if (status_t status = writeInt32(rpcFields->mFds->size() - 1); status != OK) { in appendFrom()
735 return rpcFields->mFds != nullptr && !rpcFields->mFds->empty(); in hasFileDescriptors()
800 } else if (const auto* rpcFields = maybeRpcFields(); rpcFields && rpcFields->mFds) { in debugReadAllFileDescriptors()
801 for (const auto& fd : *rpcFields->mFds) { in debugReadAllFileDescriptors()
[all …]
DRpcState.cpp621 std::ref(altPoll), rpcFields->mFds.get()); in transactAddress()
1147 rpcFields->mFds.get()); in processTransactInternal()
1229 if (rpcFields->mFds && !rpcFields->mFds->empty()) { in validateParcel()
1237 if (rpcFields->mFds->size() > kMaxFdsPerMsg) { in validateParcel()
1240 << rpcFields->mFds->size() << " (max is " << kMaxFdsPerMsg << ")"; in validateParcel()
1251 if (rpcFields->mFds->size() > kMaxFdsPerMsg) { in validateParcel()
1254 << rpcFields->mFds->size() << " (max is " << kMaxFdsPerMsg << ")"; in validateParcel()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerHistoricalSession.java68 private final int mFds; field in PackageInstallerHistoricalSession
113 this.mFds = fds; in PackageInstallerHistoricalSession()
173 pw.printPair("mFds", mFds); in dump()
DPackageInstallerSession.java503 private final ArrayList<RevocableFileDescriptor> mFds = new ArrayList<>(); field in PackageInstallerSession
1266 mStageDirInUse, mDestroyed, mFds.size(), mBridges.size(), mFinalStatus, in createHistoricalSession()
1955 mFds.add(fd); in doWriteInternal()
2023 mFds.remove(fd); in doWriteInternal()
2121 for (RevocableFileDescriptor fd : mFds) { in assertNoWriteFileTransfersOpenLocked()
5352 for (RevocableFileDescriptor fd : mFds) {
5414 pw.printPair("mFds", mFds.size());
/frameworks/av/media/codec2/vndk/
DC2DmaBufAllocator.cpp58 mFds{bufferFd}, in C2HandleBuf()
63 int bufferFd() const { return mFds.mBuffer; } in bufferFd()
71 } mFds; member
82 numFds = sizeof(mFds) / sizeof(int),
/frameworks/native/libs/binder/include/binder/
DParcel.h1366 std::unique_ptr<std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>> mFds;
/frameworks/native/include/binder/
DParcel.h1366 std::unique_ptr<std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>> mFds;