Home
last modified time | relevance | path

Searched refs:ScopedFd (Results 1 – 22 of 22) sorted by relevance

/external/icing/icing/file/
Dfilesystem.h34 class ScopedFd {
36 explicit ScopedFd(int fd = -1) : fd_(fd) {} in fd_()
37 ScopedFd(const ScopedFd&) = delete;
38 ScopedFd(ScopedFd&& other) : ScopedFd() { *this = std::move(other); } in ScopedFd() function
40 ScopedFd& operator=(const ScopedFd&) = delete;
41 ScopedFd& operator=(ScopedFd&& other) {
45 ~ScopedFd();
Dfilesystem_test.cc223 ScopedFd file(filesystem.OpenForWrite((foo_dir + "/" + files[i]).c_str())); in TEST_F()
262 ScopedFd fd(filesystem.OpenForWrite(filename.c_str())); in TEST_F()
306 ScopedFd f1(filesystem.OpenForWrite(reg1.c_str())); in TEST_F()
307 ScopedFd f2(filesystem.OpenForWrite(reg2.c_str())); in TEST_F()
334 ScopedFd f1(filesystem.OpenForWrite(sparse1.c_str())); in TEST_F()
335 ScopedFd f2(filesystem.OpenForWrite(sparse2.c_str())); in TEST_F()
Dfile-backed-vector.h286 ScopedFd fd, MemoryMappedFile::Strategy mmap_strategy);
291 const std::string& file_path, ScopedFd fd,
349 ScopedFd fd(filesystem.OpenForWrite(file_path.c_str())); in Create()
373 const Filesystem& filesystem, const std::string& file_path, ScopedFd fd, in InitializeNewFile()
405 const ScopedFd fd, MemoryMappedFile::Strategy mmap_strategy) { in InitializeExistingFile()
611 ScopedFd sfd(filesystem_->OpenForWrite(file_path_.c_str())); in GrowIfNecessary()
Dfilesystem.cc166 ScopedFd::~ScopedFd() { in ~ScopedFd()
172 void ScopedFd::reset(int fd) { in reset()
468 ScopedFd src_fd(OpenForRead(src)); in CopyFile()
474 ScopedFd dst_fd(OpenForWrite(dst)); in CopyFile()
Dfile-backed-proto.h139 ScopedFd fd(filesystem_->OpenForRead(file_path_.c_str())); in Read()
209 ScopedFd fd(filesystem_->OpenForWrite(file_path_.c_str())); in Write()
Ddestructible-file_test.cc33 ScopedFd sfd(filesystem.OpenForWrite(filepath1.c_str())); in TEST()
Dmemory-mapped-file.cc89 ScopedFd fd; in Remap()
Dfile-backed-proto-log.h434 ScopedFd fd_;
Dportable-file-backed-proto-log.h564 ScopedFd fd_;
/external/openscreen/platform/impl/
Dnetwork_interface_linux.cc48 ScopedFd s(socket(AF_INET6, SOCK_DGRAM, 0)); in GetInterfaceType()
50 s = ScopedFd(socket(AF_INET, SOCK_DGRAM, 0)); in GetInterfaceType()
148 ScopedFd fd(socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)); in GetLinkInfo()
248 ScopedFd fd(socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)); in PopulateSubnetsOrClearList()
Dscoped_pipe.h67 using ScopedFd = ScopedPipe<IntFdTraits>; variable
Dnetwork_interface_mac.cc69 const ScopedFd ioctl_socket(socket(AF_INET6, SOCK_DGRAM, 0)); in ProcessInterfacesList()
/external/icing/icing/helpers/icu/
Dicu-data-file-helper.cc47 ScopedFd fd(filesystem.OpenForRead(icu_data_file_absolute_path.c_str())); in SetUpICUDataFile()
/external/icing/icing/testing/
Drecorder-test-utils.cc37 ScopedFd sfd(filesystem.OpenForRead(filename.c_str())); in ReadProfileFromFile()
/external/icing/icing/index/main/
Dflash-index-storage.h251 ScopedFd block_fd_;
Dflash-index-storage_test.cc79 ScopedFd sfd(filesystem_.OpenForWrite(file_name_.c_str())); in TEST_F()
92 ScopedFd sfd(filesystem_.OpenForWrite(file_name_.c_str())); in TEST_F()
Dflash-index-storage.cc84 block_fd_ = ScopedFd(filesystem_->OpenForWrite(index_filename_.c_str())); in Init()
/external/icing/icing/index/lite/
Dlite-index.h280 ScopedFd hit_buffer_fd_;
/external/icing/icing/schema/
Dschema-store.cc256 ScopedFd scoped_fd( in UpdateHeader()
/external/icing/icing/store/
Ddocument-store.cc752 ScopedFd sfd( in UpdateHeader()
/external/icing/icing/
Dicing-search-engine_test.cc2533 ScopedFd fd(filesystem()->OpenForWrite(tmp_file.c_str())); in TEST_F()
3964 ScopedFd sfd(filesystem()->OpenForWrite(marker_filepath.c_str())); in TEST_F()
4152 ScopedFd fd(filesystem()->OpenForWrite(index_hit_buffer_file.c_str())); in TEST_F()
6610 ScopedFd sfd(filesystem()->OpenForWrite(marker_filepath.c_str())); in TEST_F()
/external/icing/icing/index/
Dindex_test.cc837 ScopedFd sfd(icing_filesystem_.OpenForWrite(hit_buffer_filename.c_str())); in TEST_F()