/external/qemu/android/base/files/ |
H A D | ScopedFd.h | 29 ScopedFd() : fd_(-1) {} 32 explicit ScopedFd(int fd) : fd_(fd) {} 38 int get() const { return fd_; } 42 int fd = fd_; 43 fd_ = -1; 48 bool valid() const { return fd_ >= 0; } 52 if (fd_ != -1) { 54 ::close(fd_); 55 fd_ = -1; 62 int fd = fd_; 70 int fd_; member in class:android::base::ScopedFd [all...] |
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
H A D | crazy_linker_ashmem.h | 15 AshmemRegion() : fd_(-1) {} 19 int fd() const { return fd_; } 22 int ret = fd_; 23 fd_ = -1; 28 if (fd_ != -1) { 29 ::close(fd_); 31 fd_ = fd; 59 int fd_; member in class:crazy::AshmemRegion
|
H A D | crazy_linker_system.h | 43 FileDescriptor() : fd_(kEmptyFD) {} 45 FileDescriptor(const char* path) : fd_(kEmptyFD) { OpenReadOnly(path); } 49 bool IsOk() const { return fd_ != kEmptyFD; } 50 HandleType Get() const { return fd_; } 63 HandleType fd_; member in class:crazy::FileDescriptor
|
H A D | crazy_linker_system.cpp | 23 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDONLY)); 24 return (fd_ != -1); 29 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDWR)); 30 return (fd_ != -1); 34 return TEMP_FAILURE_RETRY(::read(fd_, buffer, buffer_size)); 38 return ::lseek(fd_, offset, SEEK_SET); 46 return ::mmap(address, length, prot, flags, fd_, offset); 50 if (fd_ != -1) { 52 TEMP_FAILURE_RETRY(close(fd_)); 54 fd_ [all...] |
H A D | crazy_linker_line_reader.h | 48 FileDescriptor fd_; member in class:crazy::LineReader
|
/external/chromium_org/ui/ozone/platform/dri/ |
H A D | virtual_terminal_manager.cc | 28 fd_ = open(kTTYDevice, O_RDWR | O_CLOEXEC, 0); 29 if (fd_ < 0) 32 if (ioctl(fd_, VT_ACTIVATE, kVT) || ioctl(fd_, VT_WAITACTIVE, kVT)) 36 if (ioctl(fd_, KDGETMODE, &vt_mode_)) 39 if (ioctl(fd_, KDSETMODE, KD_GRAPHICS)) 42 if (tcgetattr(fd_, &terminal_attributes_)) 49 if (tcsetattr(fd_, TCSANOW, &raw_attributes)) 52 if (ioctl(fd_, KDGKBMODE, &previous_keyboard_mode_)) 55 if (ioctl(fd_, KDSKBMOD [all...] |
H A D | dri_wrapper.cc | 65 : fd_(-1), device_path_(device_path) { 69 if (fd_ >= 0) 70 close(fd_); 74 fd_ = open(device_path_, O_RDWR | O_CLOEXEC); 75 if (fd_ < 0) 80 DCHECK(fd_ >= 0); 81 return ScopedDrmCrtcPtr(drmModeGetCrtc(fd_, crtc_id)); 88 DCHECK(fd_ >= 0); 98 return !drmModeSetCrtc(fd_, 108 DCHECK(fd_ > [all...] |
H A D | virtual_terminal_manager.h | 21 int fd_; member in class:ui::VirtualTerminalManager
|
/external/chromium_org/sandbox/linux/tests/ |
H A D | scoped_temporary_file.h | 19 int fd() const { return fd_; } 23 int fd_; member in class:sandbox::ScopedTemporaryFile
|
H A D | scoped_temporary_file.cc | 17 ScopedTemporaryFile::ScopedTemporaryFile() : fd_(-1) { 26 fd_ = mkstemp(full_file_name_); 27 CHECK_LE(0, fd_); 32 CHECK_EQ(0, IGNORE_EINTR(close(fd_)));
|
/external/chromium_org/base/ |
H A D | rand_util_posix.cc | 23 URandomFd() : fd_(open("/dev/urandom", O_RDONLY)) { 24 DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno; 27 ~URandomFd() { close(fd_); } 29 int fd() const { return fd_; } 32 const int fd_; member in class:__anon2436::URandomFd
|
/external/chromium_org/android_webview/native/ |
H A D | aw_media_url_interceptor_unittest.cc | 24 : fd_(UNSET_VALUE), offset_(UNSET_VALUE), size_(UNSET_VALUE), 28 int fd_; member in class:android_webview::__anon1820::AwMediaUrlInterceptorTest 43 valid_asset_url, &fd_, &offset_, &size_)); 44 EXPECT_NE(UNSET_VALUE, fd_); 56 invalid_asset_url, &fd_, &offset_, &size_)); 57 EXPECT_EQ(UNSET_VALUE, fd_); 67 non_asset_url, &fd_, &offset_, &size_)); 68 EXPECT_EQ(UNSET_VALUE, fd_);
|
/external/chromium_org/chrome/common/ |
H A D | multi_process_lock_linux.cc | 19 : name_(name), fd_(-1) { } 22 if (fd_ != -1) { 34 if (fd_ != -1) { 75 fd_ = socket_fd; 89 if (fd_ == -1) { 93 if (IGNORE_EINTR(close(fd_)) < 0) { 96 fd_ = -1; 101 int fd_; member in class:MultiProcessLockLinux
|
/external/chromium_org/base/files/ |
H A D | dir_reader_linux.h | 32 : fd_(open(directory_path, O_RDONLY | O_DIRECTORY)), 39 if (fd_ >= 0) { 40 if (IGNORE_EINTR(close(fd_))) 46 return fd_ >= 0; 59 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_)); 81 return fd_; 89 const int fd_; member in class:base::DirReaderLinux
|
/external/chromium_org/net/tools/quic/ |
H A D | quic_default_packet_writer.h | 33 void set_fd(int fd) { fd_ = fd; } 39 int fd() { return fd_; } 42 int fd_; member in class:net::tools::QuicDefaultPacketWriter
|
H A D | quic_server.cc | 45 fd_(-1), 59 fd_(-1), 94 fd_ = socket(address_family, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); 95 if (fd_ < 0) { 102 int rc = QuicSocketUtils::SetGetAddressInfo(fd_, address_family); 111 fd_, SOL_SOCKET, SO_RXQ_OVFL, &get_overflow, sizeof(get_overflow)); 122 if (!QuicSocketUtils::SetReceiveBufferSize(fd_, 127 if (!QuicSocketUtils::SetSendBufferSize(fd_, 136 rc = bind(fd_, 148 if (getsockname(fd_, storag [all...] |
H A D | quic_default_packet_writer.cc | 13 : fd_(fd), 25 fd_, buffer, buf_len, self_address, peer_address);
|
H A D | quic_client.cc | 45 fd_(-1), 66 fd_(-1), 80 if (fd_ > 0) { 81 epoll_server_->UnregisterFD(fd_); 95 epoll_server_->RegisterFD(fd_, this, kEpollFlags); 114 fd_ = socket(address_family, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); 115 if (fd_ < 0) { 121 int rc = setsockopt(fd_, SOL_SOCKET, SO_RXQ_OVFL, &get_overflow, 129 if (!QuicSocketUtils::SetReceiveBufferSize(fd_, 134 if (!QuicSocketUtils::SetSendBufferSize(fd_, [all...] |
/external/chromium_org/ui/events/ozone/evdev/ |
H A D | event_converter_evdev.cc | 14 : fd_(fd), path_(path) { 23 fd_, true, base::MessagePumpLibevent::WATCH_READ, &controller_, this);
|
/external/chromium_org/content/browser/renderer_host/pepper/ |
H A D | pepper_truetype_font_linux.cc | 36 base::ScopedFD fd_; member in class:content::__anon7357::PepperTrueTypeFontLinux 71 fd_.reset( 79 return fd_.is_valid() ? PP_OK : PP_ERROR_FAILED; 83 if (!fd_.is_valid()) 88 if (!GetFontTable(fd_.get(), 104 if (!GetFontTable(fd_.get(), 129 if (!fd_.is_valid()) 135 if (!GetFontTable(fd_.get(), table_tag, offset, NULL, &table_size)) 140 if (!GetFontTable(fd_.get(),
|
/external/chromium_org/sandbox/linux/services/ |
H A D | thread_helpers_unittests.cc | 40 ScopedProcSelfTask() : fd_(-1) { 41 fd_ = open("/proc/self/task/", O_RDONLY | O_DIRECTORY); 42 CHECK_LE(0, fd_); 45 ~ScopedProcSelfTask() { PCHECK(0 == IGNORE_EINTR(close(fd_))); } 47 int fd() { return fd_; } 50 int fd_; member in class:sandbox::__anon10581::ScopedProcSelfTask
|
/external/chromium_org/net/tools/quic/test_tools/ |
H A D | quic_server_peer.cc | 18 server->fd_, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) != -1;
|
/external/chromium_org/net/tools/flip_server/ |
H A D | sm_connection.cc | 39 fd_(-1), 69 epoll_server_->SetFDReady(fd_, EPOLLIN | EPOLLOUT); 105 &fd_, server_ip, server_port, true, acceptor_->disable_nagle_); 111 DCHECK_NE(-1, fd_); 124 if (epoll_server_ && registered_in_epoll_server_ && fd_ != -1) { 125 epoll_server_->UnregisterFD(fd_); 127 if (fd_ != -1) { 130 close(fd_); 131 fd_ = -1; 134 fd_ [all...] |
/external/chromium_org/tools/relocation_packer/src/ |
H A D | elf_file.h | 73 : fd_(fd), is_padding_relocations_(false), elf_(NULL), 116 int fd_; member in class:relocation_packer::ElfFile
|
/external/chromium_org/content/common/ |
H A D | font_config_ipc_linux.h | 40 const int fd_; member in class:content::FontConfigIPC
|