Home
last modified time | relevance | path

Searched refs:OpenForWrite (Results 1 – 25 of 33) sorted by relevance

12

/external/icing/icing/file/
Dfilesystem_test.cc55 int fd = filesystem.OpenForWrite(one_file_path.c_str()); in CreateTestFiles()
180 int fd = filesystem.OpenForWrite(foo_file.c_str()); in TEST_F()
190 int fd = filesystem.OpenForWrite(filename); in TEST_F()
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()
417 int fd = filesystem.OpenForWrite(foo_file.c_str()); in TEST_F()
Dmemory-mapped-file.cc100 fd.reset(filesystem_->OpenForWrite(file_path_.c_str())); in Remap()
108 fd.reset(filesystem_->OpenForWrite(file_path_.c_str())); in Remap()
Dmock-filesystem.h100 ON_CALL(*this, OpenForWrite).WillByDefault([this](const char* file_name) { in MockFilesystem()
101 return real_filesystem_.OpenForWrite(file_name); in MockFilesystem()
267 MOCK_METHOD(int, OpenForWrite, (const char* file_name), (const));
Ddestructible-file.h35 fd_ = filesystem_->OpenForWrite(filepath_.c_str()); in DestructibleFile()
Dfilesystem.cc341 int Filesystem::OpenForWrite(const char* file_name) const { in OpenForWrite() function in icing::lib::Filesystem
457 int fd = OpenForWrite(filename); in Write()
474 ScopedFd dst_fd(OpenForWrite(dst)); in CopyFile()
551 int fd = OpenForWrite(filename); in PWrite()
Ddestructible-file_test.cc33 ScopedFd sfd(filesystem.OpenForWrite(filepath1.c_str())); in TEST()
Dfilesystem.h141 virtual int OpenForWrite(const char* file_name) const;
Dfile-backed-proto.h209 ScopedFd fd(filesystem_->OpenForWrite(file_path_.c_str())); in Write()
Dfile-backed-vector.h349 ScopedFd fd(filesystem.OpenForWrite(file_path.c_str())); in Create()
611 ScopedFd sfd(filesystem_->OpenForWrite(file_path_.c_str())); in GrowIfNecessary()
/external/gptfdisk/
Ddiskio.cc78 int DiskIO::OpenForWrite(const string & filename) { in OpenForWrite() function in DiskIO
86 retval = OpenForWrite(); in OpenForWrite()
Ddiskio.h75 int OpenForWrite(const string & filename);
76 int OpenForWrite(void);
Ddiskio-windows.cc83 int DiskIO::OpenForWrite(void) { in OpenForWrite() function in DiskIO
176 OpenForWrite(); in DiskSync()
273 OpenForWrite(); in Write()
Ddiskio-heap.cc37 int DiskIO::OpenForWrite(void) { in OpenForWrite() function in DiskIO
Ddiskio-unix.cc112 int DiskIO::OpenForWrite(void) { in OpenForWrite() function in DiskIO
382 OpenForWrite(); in Write()
Dbasicmbr.cc363 if (myDisk->OpenForWrite() != 0) { in WriteMBRData()
464 allOK = theDisk->OpenForWrite(); in WriteMBRData()
613 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
620 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
628 if ((myDisk != NULL) && (myDisk->OpenForWrite())) { in BlankGPTData()
Dgpt.cc837 err = myDisk.OpenForWrite(deviceFilename); in LoadPartitions()
1237 if (myDisk.OpenForWrite()) { in SaveGPTData()
1299 if (backupFile.OpenForWrite(filename)) { in SaveGPTBackup()
1311 backupFile.OpenForWrite(); in SaveGPTBackup()
1457 if (myDisk.OpenForWrite()) { in DestroyGPT()
1517 allOK = myDisk.OpenForWrite() && myDisk.Seek(0) && (myDisk.Write(blankSector, 512) == 512); in DestroyMBR()
/external/icing/icing/legacy/index/
Dicing-mock-filesystem.h83 ON_CALL(*this, OpenForWrite).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
84 return real_icing_filesystem_.OpenForWrite(file_name); in IcingMockFilesystem()
196 MOCK_METHOD(int, OpenForWrite, (const char *file_name), (const, override));
Dicing-flash-bitmap.cc120 IcingScopedFd fd(filesystem_->OpenForWrite(filename_.c_str())); in Init()
266 IcingScopedFd fd(filesystem_->OpenForWrite(filename_.c_str())); in Grow()
Dicing-filesystem.h138 virtual int OpenForWrite(const char *file_name) const;
Dicing-filesystem.cc342 int IcingFilesystem::OpenForWrite(const char *file_name) const { in OpenForWrite() function in icing::lib::IcingFilesystem
550 if ((dst_fd = OpenForWrite(dst)) < 0) { in CopyFile()
/external/icing/icing/index/main/
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.cc120 hit_buffer_fd_.reset(filesystem_->OpenForWrite( in Initialize()
/external/icing/icing/schema/
Dschema-store.cc257 filesystem_.OpenForWrite(MakeHeaderFilename(base_dir_).c_str())); in UpdateHeader()
/external/icing/icing/index/
Dindex-processor_test.cc836 return this->filesystem_.OpenForWrite(filename); in TEST_F()
838 ON_CALL(*mock_icing_filesystem_, OpenForWrite) in TEST_F()

12