/system/core/libziparchive/ |
zip_writer_test.cc | 28 int fd_; member in struct:zipwriter 33 fd_ = temp_file_->fd; 34 file_ = fdopen(fd_, "w"); 55 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 58 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); 92 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 95 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); 134 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 137 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); 179 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)) [all...] |
/system/update_engine/payload_consumer/ |
bzip_extent_writer_unittest.cc | 44 fd_.reset(new EintrSafeFileDescriptor); 45 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); 48 fd_->Close(); 53 FileDescriptorPtr fd_; member in class:chromeos_update_engine::BzipExtentWriterTest 75 EXPECT_TRUE(bzip_writer.Init(fd_, extents, kBlockSize)); 113 EXPECT_TRUE(bzip_writer.Init(fd_, extents, kBlockSize));
|
extent_writer_unittest.cc | 49 fd_.reset(new EintrSafeFileDescriptor); 50 ASSERT_TRUE(fd_->Open(temp_file_.path().c_str(), O_RDWR, 0600)); 53 fd_->Close(); 63 FileDescriptorPtr fd_; member in class:chromeos_update_engine::ExtentWriterTest 77 EXPECT_TRUE(direct_writer.Init(fd_, extents, kBlockSize)); 101 EXPECT_TRUE(direct_writer.Init(fd_, extents, kBlockSize)); 136 EXPECT_TRUE(direct_writer.Init(fd_, extents, kBlockSize)); 190 EXPECT_TRUE(zero_pad_writer.Init(fd_, extents, kBlockSize)); 194 fd_->Seek(kBlockSize - missing_bytes, SEEK_SET); 195 EXPECT_EQ(3, fd_->Write("xxx", 3)) [all...] |
/art/runtime/base/unix_file/ |
fd_file.h | 126 int fd_; member in class:unix_file::FdFile
|
/bionic/tools/relocation_packer/src/ |
elf_file.h | 37 : fd_(fd), is_padding_relocations_(false), elf_(NULL), 99 int fd_; member in class:relocation_packer::ElfFile
|
/system/core/adb/ |
shell_service.h | 115 int fd_; member in class:ShellProtocol
|
/system/extras/simpleperf/ |
utils.h | 65 fd_ = other.fd_; 66 other.fd_ = -1; 72 return fd_ != -1; 76 return fd_; 80 FileHelper(int fd) : fd_(fd) {} 81 int fd_; member in class:FileHelper
|
/bionic/libc/bionic/ |
dirent.cpp | 51 int fd_; member in struct:DIR 64 d->fd_ = fd; 73 return dirp->fd_; 96 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); 152 int fd = d->fd_; 160 lseek(d->fd_, 0, SEEK_SET); 167 off_t ret = lseek(d->fd_, offset, SEEK_SET);
|
libc_logging.cpp | 110 FdOutputStream(int fd) : total(0), fd_(fd) { 121 int rc = TEMP_FAILURE_RETRY(write(fd_, data, len)); 133 int fd_; member in struct:FdOutputStream
|
/external/autotest/client/site_tests/camera_V4L2/src/ |
media_v4l2_device.h | 99 int32_t fd_; member in class:V4L2Device
|
/external/google-breakpad/src/client/linux/handler/ |
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/common/solaris/ |
file_id.cc | 137 AutoCloser(int fd) : fd_(fd) {} 138 ~AutoCloser() { if (fd_) close(fd_); } 140 int fd_; member in class:google_breakpad::AutoCloser
|
/external/libbrillo/brillo/message_loops/ |
base_message_loop.h | 128 int fd_; member in class:brillo::BaseMessageLoop::IOTask
|
/external/libchrome/base/files/ |
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
|
/system/core/libmemunreachable/ |
LeakPipe.h | 78 LeakPipeBase() : fd_(-1) {} 85 fd_ = fd; 89 close(fd_); 90 fd_ = -1; 94 int fd_; member in class:LeakPipe::LeakPipeBase 106 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, &value, sizeof(T))); 125 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, vector.data(), size)); 144 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, reinterpret_cast<void*>(value), sizeof(T))); 167 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, ptr, size));
|
/system/update_engine/payload_generator/ |
full_update_generator.cc | 57 fd_(fd), 78 int fd_; member in class:chromeos_update_engine::__anon74762::ChunkProcessor 98 TEST_AND_RETURN_FALSE(utils::PReadAll(fd_,
|
/art/compiler/utils/ |
swap_space.h | 86 int fd_; member in class:art::SwapSpace
|
/bionic/linker/ |
linker_phdr.h | 73 int fd_; member in class:ElfReader
|
/system/update_engine/common/ |
utils.h | 377 explicit ScopedFdCloser(int* fd) : fd_(fd) {} 379 if (should_close_ && fd_ && (*fd_ >= 0) && !IGNORE_EINTR(close(*fd_))) 380 *fd_ = -1; 384 int* fd_; member in class:chromeos_update_engine::ScopedFdCloser
|
/device/google/dragon/crash_collector/ |
coredump_writer.cc | 62 explicit FdReader(int fd) : fd_(fd), bytes_read_(0) {} 66 if (!android::base::ReadFully(fd_, buf, num_bytes)) 78 read(fd_, buf, std::min(kBufSize, num_bytes))); 99 int fd_; member in class:CoredumpWriter::FdReader
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
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/libbrillo/brillo/streams/ |
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_| to -1 when Close() finished 189 int fd_; member in class:brillo::FileDescriptor [all...] |
/system/extras/memtrack/ |
memtrack.h | 42 int fd_; member in class:FileData
|
/external/google-breakpad/src/client/solaris/handler/ |
solaris_lwp.cc | 154 AutoCloser(int fd) : fd_(fd) {} 155 ~AutoCloser() { if (fd_) close(fd_); } 157 int fd_; member in class:__anon11338::AutoCloser
|
/external/drm_hwcomposer/ |
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_ = NULL member in struct:android::CheckedOutputFd [all...] |