/external/drm_hwcomposer/ |
H A D | autofd.h | 27 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 D | drmresources.h | 39 return fd_.get(); 77 UniqueFd fd_; member in class:android::DrmResources
|
H A D | hwcomposer.cpp | 91 : 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 D | auto_testfile.h | 61 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 D | file.cc | 39 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 D | file.h | 34 int fd_; member in class:bsdiff::File
|
/external/libchrome/base/ |
H A D | rand_util_posix.cc | 25 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 D | rand_util_posix.cc | 20 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 D | dir_reader_linux.h | 34 : 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 D | minidump_descriptor.cc | 44 fd_(descriptor.fd_), 59 fd_ = descriptor.fd_;
|
H A D | minidump_descriptor.h | 53 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 D | directory_reader.h | 50 : fd_(fd), 67 const int n = sys_getdents(fd_, dent, sizeof(buf_)); 98 const int fd_; member in class:google_breakpad::DirectoryReader
|
H A D | line_reader.h | 47 : 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 D | linux_ptrace_dumper_unittest.cc | 154 : 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 D | thread_helpers_unittests.cc | 43 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 D | file_stream.cc | 31 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 D | file_id.cc | 137 AutoCloser(int fd) : fd_(fd) {} 138 ~AutoCloser() { if (fd_) close(fd_); } 140 int fd_; member in class:google_breakpad::AutoCloser
|
H A D | dump_symbols.cc | 582 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 D | media_v4l2_device.cc | 23 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 D | media_v4l2_device.h | 99 int32_t fd_; member in class:V4L2Device
|
/external/google-breakpad/src/client/solaris/handler/ |
H A D | solaris_lwp.cc | 154 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 D | base_message_loop.cc | 307 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 D | base_message_loop.h | 128 int fd_; member in class:brillo::BaseMessageLoop::IOTask
|
/external/llvm/utils/unittest/googletest/src/ |
H A D | gtest-port.cc | 491 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 D | gtest-port.cc | 491 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.
|