Searched refs:ScopedFd (Results 1 – 22 of 22) sorted by relevance
/external/icing/icing/file/ |
D | filesystem.h | 34 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();
|
D | filesystem_test.cc | 223 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()
|
D | file-backed-vector.h | 286 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()
|
D | filesystem.cc | 166 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()
|
D | file-backed-proto.h | 139 ScopedFd fd(filesystem_->OpenForRead(file_path_.c_str())); in Read() 209 ScopedFd fd(filesystem_->OpenForWrite(file_path_.c_str())); in Write()
|
D | destructible-file_test.cc | 33 ScopedFd sfd(filesystem.OpenForWrite(filepath1.c_str())); in TEST()
|
D | memory-mapped-file.cc | 89 ScopedFd fd; in Remap()
|
D | file-backed-proto-log.h | 434 ScopedFd fd_;
|
D | portable-file-backed-proto-log.h | 564 ScopedFd fd_;
|
/external/openscreen/platform/impl/ |
D | network_interface_linux.cc | 48 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()
|
D | scoped_pipe.h | 67 using ScopedFd = ScopedPipe<IntFdTraits>; variable
|
D | network_interface_mac.cc | 69 const ScopedFd ioctl_socket(socket(AF_INET6, SOCK_DGRAM, 0)); in ProcessInterfacesList()
|
/external/icing/icing/helpers/icu/ |
D | icu-data-file-helper.cc | 47 ScopedFd fd(filesystem.OpenForRead(icu_data_file_absolute_path.c_str())); in SetUpICUDataFile()
|
/external/icing/icing/testing/ |
D | recorder-test-utils.cc | 37 ScopedFd sfd(filesystem.OpenForRead(filename.c_str())); in ReadProfileFromFile()
|
/external/icing/icing/index/main/ |
D | flash-index-storage.h | 251 ScopedFd block_fd_;
|
D | flash-index-storage_test.cc | 79 ScopedFd sfd(filesystem_.OpenForWrite(file_name_.c_str())); in TEST_F() 92 ScopedFd sfd(filesystem_.OpenForWrite(file_name_.c_str())); in TEST_F()
|
D | flash-index-storage.cc | 84 block_fd_ = ScopedFd(filesystem_->OpenForWrite(index_filename_.c_str())); in Init()
|
/external/icing/icing/index/lite/ |
D | lite-index.h | 280 ScopedFd hit_buffer_fd_;
|
/external/icing/icing/schema/ |
D | schema-store.cc | 256 ScopedFd scoped_fd( in UpdateHeader()
|
/external/icing/icing/store/ |
D | document-store.cc | 752 ScopedFd sfd( in UpdateHeader()
|
/external/icing/icing/ |
D | icing-search-engine_test.cc | 2533 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/ |
D | index_test.cc | 837 ScopedFd sfd(icing_filesystem_.OpenForWrite(hit_buffer_filename.c_str())); in TEST_F()
|