HomeSort by relevance Sort by last modified time
    Searched refs:fd_ (Results 1 - 25 of 98) sorted by null

1 2 3 4

  /external/qemu/android/base/files/
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/
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
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
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_ = -1
    [all...]
crazy_linker_line_reader.h 48 FileDescriptor fd_; member in class:crazy::LineReader
  /ndk/sources/android/crazy_linker/src/
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
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
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_ = -1
    [all...]
  /external/chromium_org/sandbox/linux/tests/
scoped_temporary_file.h 19 int fd() const { return fd_; }
23 int fd_; member in class:sandbox::ScopedTemporaryFile
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/ui/ozone/platform/dri/
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_, KDSKBMODE, K_OFF) && ioctl(fd_, KDSKBMODE, K_RAW)
    [all...]
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_ >= 0)
    [all...]
virtual_terminal_manager.h 21 int fd_; member in class:ui::VirtualTerminalManager
  /external/chromium_org/base/
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:__anon7061::URandomFd
  /external/chromium_org/net/tools/quic/
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
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_, storage.addr, &storage.addr_len) != 0 |
    [all...]
quic_default_packet_writer.cc 13 : fd_(fd),
25 fd_, buffer, buf_len, self_address, peer_address);
  /external/chromium_org/android_webview/native/
aw_media_url_interceptor_unittest.cc 24 : fd_(UNSET_VALUE), offset_(UNSET_VALUE), size_(UNSET_VALUE),
28 int fd_; member in class:android_webview::__anon6445::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/
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/
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/ui/events/ozone/evdev/
event_converter_evdev.cc 14 : fd_(fd), path_(path) {
23 fd_, true, base::MessagePumpLibevent::WATCH_READ, &controller_, this);
  /art/runtime/base/unix_file/
fd_file.cc 28 FdFile::FdFile() : guard_state_(GuardState::kClosed), fd_(-1), auto_close_(true) {
33 fd_(fd), auto_close_(true) {
38 fd_(fd), file_path_(path), auto_close_(true) {
52 if (auto_close_ && fd_ != -1) {
91 CHECK_EQ(fd_, -1) << path;
92 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
93 if (fd_ == -1) {
110 int result = TEMP_FAILURE_RETRY(close(fd_));
122 fd_ = -1;
130 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_));
    [all...]
  /external/chromium_org/sandbox/linux/services/
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::__anon15206::ScopedProcSelfTask
  /external/chromium_org/content/common/
font_config_ipc_linux.h 40 const int fd_; member in class:content::FontConfigIPC
  /external/chromium_org/net/tools/quic/test_tools/
quic_server_peer.cc 18 server->fd_, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) != -1;

Completed in 1803 milliseconds

1 2 3 4