/system/netd/libnetdutils/include/netdutils/ |
D | UniqueFd.h | 36 class UniqueFd { 38 UniqueFd() = default; 40 UniqueFd(Fd fd) : mFd(fd) {} in UniqueFd() function 42 ~UniqueFd() { reset(); } in ~UniqueFd() 45 UniqueFd(const UniqueFd&) = delete; 46 UniqueFd& operator=(const UniqueFd&) = delete; 49 UniqueFd(UniqueFd&& other) { std::swap(mFd, other.mFd); } in UniqueFd() function 50 UniqueFd& operator=(UniqueFd&& other) { 66 std::ostream& operator<<(std::ostream& os, const UniqueFd& fd);
|
D | MockSyscalls.h | 37 StatusOr<UniqueFd>(const std::string& pathname, int flags, mode_t mode)); 38 MOCK_CONST_METHOD3(socket, StatusOr<UniqueFd>(int domain, int type, int protocol)); 50 MOCK_CONST_METHOD2(eventfd, StatusOr<UniqueFd>(unsigned int initval, int flags));
|
D | Syscalls.h | 45 virtual StatusOr<UniqueFd> open(const std::string& pathname, int flags, 48 virtual StatusOr<UniqueFd> socket(int domain, int type, int protocol) const = 0; 64 virtual StatusOr<UniqueFd> eventfd(unsigned int initval, int flags) const = 0;
|
/system/netd/libnetdutils/ |
D | FdTest.cpp | 34 inline Fd toFd(const UniqueFd& fd) { in toFd() 74 UniqueFd u(97); in TEST_F() 84 UniqueFd u(98); in TEST_F() 92 UniqueFd u(99); in TEST_F() 102 UniqueFd u1(kFd); in TEST_F() 104 UniqueFd u2(std::move(u1)); in TEST_F() 116 UniqueFd u1(kFd); in TEST_F() 118 UniqueFd u2 = std::move(u1); in TEST_F() 122 UniqueFd u3; in TEST_F() 135 const UniqueFd u(kFd); in TEST_F() [all …]
|
D | UniqueFd.cpp | 25 void UniqueFd::reset(Fd fd) { in reset() 33 std::ostream& operator<<(std::ostream& os, const UniqueFd& fd) { in operator <<()
|
D | Syscalls.cpp | 44 StatusOr<UniqueFd> open(const std::string& pathname, int flags, mode_t mode) const override { in open() 45 UniqueFd fd(::open(pathname.c_str(), flags, mode)); in open() 52 StatusOr<UniqueFd> socket(int domain, int type, int protocol) const override { in socket() 53 UniqueFd sock(::socket(domain, type, protocol)); in socket() 110 StatusOr<UniqueFd> eventfd(unsigned int initval, int flags) const override { in eventfd() 111 UniqueFd fd(::eventfd(initval, flags)); in eventfd()
|
D | Android.bp | 15 "UniqueFd.cpp",
|
D | SyscallsTest.cpp | 62 EXPECT_CALL(mSyscalls, open(kPath, kFlags, kMode)).WillOnce(Return(ByMove(UniqueFd(kFd)))); in TEST_F()
|
/system/netd/server/ |
D | NetlinkListener.h | 78 NetlinkListener(netdutils::UniqueFd event, netdutils::UniqueFd sock, const std::string& name); 93 const netdutils::UniqueFd mEvent; 94 const netdutils::UniqueFd mSock;
|
D | NetlinkListener.cpp | 36 using netdutils::UniqueFd; 60 NetlinkListener::NetlinkListener(UniqueFd event, UniqueFd sock, const std::string& name) in NetlinkListener()
|
D | Process.cpp | 47 using netdutils::UniqueFd; 101 const UniqueFd autoClosePidFile(pidFd); in writePidFile()
|
D | InterfaceControllerTest.cpp | 43 using netdutils::UniqueFd; 70 EXPECT_CALL(mSyscalls, open(path, _, _)).WillOnce(Return(ByMove(UniqueFd(fd)))); in expectOpenFile()
|
/system/incremental_delivery/incfs/include/ |
D | incfs.h | 59 class UniqueFd { 61 explicit UniqueFd(int fd) : fd_(fd) {} in UniqueFd() function 62 UniqueFd() : UniqueFd(-1) {} in UniqueFd() function 63 ~UniqueFd() { close(); } in ~UniqueFd() 64 UniqueFd(UniqueFd&& other) noexcept : fd_(other.release()) {} in UniqueFd() function 65 UniqueFd& operator=(UniqueFd&& other) noexcept { 103 using Fds = std::array<UniqueFd, IncFsFdType::FDS_COUNT>; 230 UniqueFd openForSpecialOps(const Control& control, FileId fileId); 231 UniqueFd openForSpecialOps(const Control& control, std::string_view path);
|
D | incfs_inline.h | 120 result[i] = UniqueFd(fds[i]); in releaseFds() 267 inline UniqueFd openForSpecialOps(const Control& control, FileId fileId) { in openForSpecialOps() 268 return UniqueFd(IncFs_OpenForSpecialOpsById(control, fileId)); in openForSpecialOps() 270 inline UniqueFd openForSpecialOps(const Control& control, std::string_view path) { in openForSpecialOps() 271 return UniqueFd(IncFs_OpenForSpecialOpsByPath(control, details::c_str(path))); in openForSpecialOps()
|
/system/incremental_delivery/libdataloader/include/ |
D | dataloader_inline.h | 117 inline android::incfs::UniqueFd FilesystemConnector::openForSpecialOps(FileId fid) { in openForSpecialOps() 118 return android::incfs::UniqueFd(DataLoader_FilesystemConnector_openForSpecialOps(this, fid)); in openForSpecialOps()
|
D | dataloader.h | 110 android::incfs::UniqueFd openForSpecialOps(FileId fid);
|
/system/incremental_delivery/libdataloader/ |
D | DataLoaderConnector.cpp | 415 android::incfs::UniqueFd openForSpecialOps(FileId fid) const { in openForSpecialOps()
|