Searched refs:fd_ (Results 1 - 25 of 38) sorted by relevance

12

/external/drm_hwcomposer/
H A Dautofd.h27 UniqueFd(int fd) : fd_(fd) {
30 fd_ = rhs.fd_;
31 rhs.fd_ = -1;
40 if (fd_ >= 0)
41 close(fd_);
45 int old_fd = fd_;
46 fd_ = -1;
51 if (fd_ >= 0)
52 close(fd_);
68 int fd_ = -1; member in class:android::UniqueFd
102 int *fd_ = NULL; member in struct:android::OutputFd
[all...]
H A Ddrmresources.h39 return fd_.get();
77 UniqueFd fd_; member in class:android::DrmResources
H A Dhwcomposer.cpp91 : fd_(fd), description_(description), timeline_(timeline) {
95 std::swap(fd_, rhs.fd_);
101 if (fd_ == NULL)
104 if (*fd_ >= 0)
107 *fd_ = timeline_.CreateDummyFence().Release();
109 if (*fd_ < 0)
111 description_.c_str(), fd_, *fd_);
115 int *fd_ member in struct:android::CheckedOutputFd
[all...]
/external/google-breakpad/src/common/linux/tests/
H A Dauto_testfile.h61 if (fd_ >= 0)
67 if (fd_ >= 0)
73 if (fd_ >= 0) {
74 close(fd_);
75 fd_ = -1;
82 return fd_ >= 0;
88 return fd_;
93 fd_ = -1;
101 fd_ = mkstemp(path_templ);
102 if (fd_ <
119 int fd_; member in class:google_breakpad::AutoTestFile
[all...]
/external/bsdiff/
H A Dfile.cc39 if (fd_ < 0) {
43 ssize_t rc = TEMP_FAILURE_RETRY(read(fd_, buf, count));
51 if (fd_ < 0) {
55 ssize_t rc = TEMP_FAILURE_RETRY(write(fd_, buf, count));
63 if (fd_ < 0) {
72 off_t newpos = lseek(fd_, pos, SEEK_SET);
83 if (fd_ < 0) {
87 bool success = close(fd_) == 0;
90 fd_ = -1;
96 if (fstat(fd_,
[all...]
H A Dfile.h34 int fd_; member in class:bsdiff::File
/external/libchrome/base/
H A Drand_util_posix.cc25 URandomFd() : fd_(open("/dev/urandom", O_RDONLY)) {
26 DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
29 ~URandomFd() { close(fd_); }
31 int fd() const { return fd_; }
34 const int fd_; member in class:__anon9075::URandomFd
/external/libweave/third_party/chromium/base/
H A Drand_util_posix.cc20 URandomFd() : fd_(open("/dev/urandom", O_RDONLY)) {
21 DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno;
24 ~URandomFd() { close(fd_); }
26 int fd() const { return fd_; }
29 const int fd_; member in class:__anon11289::URandomFd
/external/libchrome/base/files/
H A Ddir_reader_linux.h34 : fd_(open(directory_path, O_RDONLY | O_DIRECTORY)),
41 if (fd_ >= 0) {
42 if (IGNORE_EINTR(close(fd_)))
48 return fd_ >= 0;
61 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_));
83 return fd_;
91 const int fd_; member in class:base::DirReaderLinux
/external/google-breakpad/src/client/linux/handler/
H A Dminidump_descriptor.cc44 fd_(descriptor.fd_),
59 fd_ = descriptor.fd_;
H A Dminidump_descriptor.h53 fd_(-1),
58 fd_(-1),
67 fd_(fd),
75 fd_(-1),
85 int fd() const { return fd_; }
114 int fd_; member in class:google_breakpad::MinidumpDescriptor
/external/google-breakpad/src/client/linux/minidump_writer/
H A Ddirectory_reader.h50 : fd_(fd),
67 const int n = sys_getdents(fd_, dent, sizeof(buf_));
98 const int fd_; member in class:google_breakpad::DirectoryReader
H A Dline_reader.h47 : fd_(fd),
98 const ssize_t n = sys_read(fd_, buf_ + buf_used_,
122 const int fd_; member in class:google_breakpad::LineReader
H A Dlinux_ptrace_dumper_unittest.cc154 : fd_(-1), mapping_(NULL), size_(0) {}
158 if (fd_ >= 0)
159 close(fd_);
162 fd_ = fd;
171 int fd_; member in class:StackHelper
/external/libchrome/sandbox/linux/services/
H A Dthread_helpers_unittests.cc43 ScopedProc() : fd_(-1) {
44 fd_ = open("/proc/", O_RDONLY | O_DIRECTORY);
45 CHECK_LE(0, fd_);
48 ~ScopedProc() { PCHECK(0 == IGNORE_EINTR(close(fd_))); }
50 int fd() { return fd_; }
53 int fd_; member in class:sandbox::__anon9265::ScopedProc
/external/libbrillo/brillo/streams/
H A Dfile_stream.cc31 FileDescriptor(int fd, bool own) : fd_{fd}, own_{own} {}
39 bool IsOpen() const override { return fd_ >= 0; }
42 return HANDLE_EINTR(read(fd_, buf, nbyte));
46 return HANDLE_EINTR(write(fd_, buf, nbyte));
50 return lseek64(fd_, offset, whence);
55 if (fstat(fd_, &file_stat) < 0)
62 if (fstat(fd_, &file_stat) < 0)
68 return HANDLE_EINTR(ftruncate(fd_, length));
73 // The stream may or may not own the file descriptor stored in |fd_|.
74 // Despite that, we will need to set |fd_| t
189 int fd_; member in class:brillo::FileDescriptor
[all...]
/external/google-breakpad/src/common/solaris/
H A Dfile_id.cc137 AutoCloser(int fd) : fd_(fd) {}
138 ~AutoCloser() { if (fd_) close(fd_); }
140 int fd_; member in class:google_breakpad::AutoCloser
H A Ddump_symbols.cc582 fd_(fd) {
585 if (fd_ != -1)
586 close(fd_);
589 return fd_;
592 int fd = fd_;
593 fd_ = -1;
597 int fd_; member in class:__anon6123::FDWrapper
/external/autotest/client/site_tests/camera_V4L2/src/
H A Dmedia_v4l2_device.cc23 fd_(-1),
51 fd_ = open(dev_name_, O_RDWR | O_NONBLOCK, 0);
52 if (-1 == fd_) {
87 if (fd_ != -1)
88 close(fd_);
89 fd_ = -1;
265 FD_SET(fd_, &fds);
270 int32_t r = select(fd_ + 1, &fds, NULL, NULL, &tv);
302 r = ioctl(fd_, request, arg);
316 if (-1 == read(fd_, v4l2_buffers
[all...]
H A Dmedia_v4l2_device.h99 int32_t fd_; member in class:V4L2Device
/external/google-breakpad/src/client/solaris/handler/
H A Dsolaris_lwp.cc154 AutoCloser(int fd) : fd_(fd) {}
155 ~AutoCloser() { if (fd_) close(fd_); }
157 int fd_; member in class:__anon6077::AutoCloser
/external/libbrillo/brillo/message_loops/
H A Dbase_message_loop.cc307 fd_(fd), base_mode_(base_mode), persistent_(persistent), closure_(task) {}
311 fd_, persistent_, base_mode_, &fd_watcher_, this);
355 << " file descriptor " << fd_ << ", scheduled from this location.";
383 << " file descriptor " << fd_ << ", scheduled from this location.";
H A Dbase_message_loop.h128 int fd_; member in class:brillo::BaseMessageLoop::IOTask
/external/llvm/utils/unittest/googletest/src/
H A Dgtest-port.cc491 CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) {
521 dup2(captured_fd, fd_);
533 dup2(uncaptured_fd_, fd_);
551 const int fd_; // A stream to capture.
/external/mesa3d/src/gtest/src/
H A Dgtest-port.cc491 CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) {
517 dup2(captured_fd, fd_);
529 dup2(uncaptured_fd_, fd_);
547 const int fd_; // A stream to capture.

Completed in 1756 milliseconds

12