Searched refs:owned_fd_ (Results 1 – 7 of 7) sorted by relevance
138 : fd_(fd), owned_fd_(-1) { in LoopDevice()140 owned_fd_.reset(fd.get()); in LoopDevice()146 : fd_(-1), owned_fd_(-1) { in LoopDevice()147 owned_fd_.reset(open(path.c_str(), O_RDWR | O_CLOEXEC)); in LoopDevice()148 if (owned_fd_ == -1) { in LoopDevice()152 fd_ = owned_fd_; in LoopDevice()
119 ~CowReader() { owned_fd_ = {}; } in ~CowReader()153 void CloseCowFd() { owned_fd_ = {}; } in CloseCowFd()159 android::base::unique_fd owned_fd_; variable
136 android::base::unique_fd owned_fd_;
123 owned_fd_.reset(open("/dev/null", O_RDWR | O_CLOEXEC)); in SetFd()124 if (owned_fd_ < 0) { in SetFd()128 fd_ = owned_fd_; in SetFd()144 owned_fd_ = std::move(fd); in Initialize()145 return Initialize(borrowed_fd{owned_fd_}); in Initialize()157 owned_fd_ = std::move(fd); in InitializeAppend()158 return InitializeAppend(android::base::borrowed_fd{owned_fd_}, label); in InitializeAppend()
46 owned_fd_ = std::move(fd); in InitForMerge()47 fd_ = owned_fd_.get(); in InitForMerge()69 owned_fd_ = std::move(fd); in Parse()70 return Parse(android::base::borrowed_fd{owned_fd_}, label); in Parse()
86 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()