Searched refs:owned_fd_ (Results 1 – 7 of 7) sorted by relevance
148 : fd_(fd), owned_fd_(-1) { in LoopDevice()150 owned_fd_.reset(fd.get()); in LoopDevice()156 : fd_(-1), owned_fd_(-1) { in LoopDevice()157 owned_fd_.reset(open(path.c_str(), O_RDWR | O_CLOEXEC)); in LoopDevice()158 if (owned_fd_ == -1) { in LoopDevice()162 fd_ = owned_fd_; in LoopDevice()
119 ~CowReader() { owned_fd_ = {}; } in ~CowReader()154 void CloseCowFd() { owned_fd_ = {}; } in CloseCowFd()166 android::base::unique_fd owned_fd_; variable
211 android::base::unique_fd owned_fd_;
218 owned_fd_.reset(open("/dev/null", O_RDWR | O_CLOEXEC)); in SetFd()219 if (owned_fd_ < 0) { in SetFd()223 fd_ = owned_fd_; in SetFd()292 owned_fd_ = std::move(fd); in Initialize()293 return Initialize(borrowed_fd{owned_fd_}); in Initialize()310 owned_fd_ = std::move(fd); in InitializeAppend()311 return InitializeAppend(android::base::borrowed_fd{owned_fd_}, label); in InitializeAppend()
56 cow->owned_fd_.reset(); in CloneCowReader()73 owned_fd_ = std::move(fd); in InitForMerge()74 fd_ = owned_fd_.get(); in InitForMerge()96 owned_fd_ = std::move(fd); in Parse()97 return Parse(android::base::borrowed_fd{owned_fd_}, label); in Parse()
89 android::base::unique_fd owned_fd_; variable
178 android::base::unique_fd owned_fd_; member181 owned_fd_ = std::move(read_fd); in Transform()182 return owned_fd_; in Transform()