/external/icing/icing/file/ |
D | file-backed-proto.h | 102 const std::string file_path_; variable 113 : filesystem_(&filesystem), file_path_(file_path) {} in FileBackedProto() 118 ICING_VLOG(1) << "Reading proto from file: " << file_path_; in Read() 124 ICING_VLOG(1) << "Reusing cached proto for file: " << file_path_; in Read() 128 int64_t file_size = filesystem_->GetFileSize(file_path_.c_str()); in Read() 131 absl_ports::StrCat("Missing file: ", file_path_)); in Read() 136 "File larger than expected, couldn't read: ", file_path_)); in Read() 139 ScopedFd fd(filesystem_->OpenForRead(file_path_.c_str())); in Read() 142 absl_ports::StrCat("Unable to open file for read: ", file_path_)); in Read() 145 ICING_VLOG(1) << "Loading proto from file: " << file_path_ in Read() [all …]
|
D | portable-file-backed-proto-log_test.cc | 67 file_path_ = GetTestTempDir() + "/proto_log"; in SetUp() 68 filesystem_.DeleteFile(file_path_.c_str()); in SetUp() 71 void TearDown() override { filesystem_.DeleteFile(file_path_.c_str()); } in TearDown() 74 std::string file_path_; member in icing::lib::__anon36b39ae90111::PortableFileBackedProtoLogTest 83 &filesystem_, file_path_, in TEST_F() 91 &filesystem_, file_path_, in TEST_F() 100 &filesystem_, file_path_, in TEST_F() 110 &filesystem_, file_path_, in TEST_F() 116 ASSERT_EQ(filesystem_.GetFileSize(file_path_.c_str()), in TEST_F() 125 &filesystem_, file_path_, in TEST_F() [all …]
|
D | file-backed-vector_test.cc | 46 file_path_ = GetTestTempDir() + "/test.array"; in SetUp() 47 fd_ = filesystem_.OpenForWrite(file_path_.c_str()); in SetUp() 54 filesystem_.DeleteFile(file_path_.c_str()); in TearDown() 78 std::string file_path_; member in icing::lib::__anond1ecd7130111::FileBackedVectorTest 87 filesystem_, file_path_, in TEST_F() 95 filesystem_, file_path_, in TEST_F() 105 filesystem_, file_path_, in TEST_F() 129 filesystem_.PWrite(file_path_.data(), in TEST_F() 134 filesystem_, file_path_, in TEST_F() 139 filesystem_.PWrite(file_path_.data(), in TEST_F() [all …]
|
D | file-backed-proto-log_test.cc | 52 file_path_ = GetTestTempDir() + "/proto_log"; in SetUp() 53 filesystem_.DeleteFile(file_path_.c_str()); in SetUp() 56 void TearDown() override { filesystem_.DeleteFile(file_path_.c_str()); } in TearDown() 59 std::string file_path_; member in icing::lib::__anon5a8081830111::FileBackedProtoLogTest 68 &filesystem_, file_path_, in TEST_F() 76 &filesystem_, file_path_, in TEST_F() 84 &filesystem_, file_path_, in TEST_F() 95 &filesystem_, file_path_, in TEST_F() 112 &filesystem_, file_path_, in TEST_F() 129 int fd = filesystem_.OpenForWrite(file_path_.c_str()); in TEST_F() [all …]
|
D | file-backed-bitmap.cc | 67 file_path_(file_path), in FileBackedBitmap() 82 << file_path_; in ~FileBackedBitmap() 97 ICING_VLOG(1) << "Initialize bitmap file: " << file_path_; in Initialize() 99 const bool is_new_bitmap = !filesystem_->FileExists(file_path_.c_str()); in Initialize() 104 if (!filesystem_->Grow(file_path_.c_str(), file_size)) { in Initialize() 108 file_path_.c_str(), static_cast<long long>(file_size))); in Initialize() 111 ICING_VLOG(1) << "Creating new bitmap in file: " << file_path_ in Initialize() 114 file_size = filesystem_->GetFileSize(file_path_.c_str()); in Initialize() 117 "File corrupted; filename: %s; size: %lld.", file_path_.c_str(), in Initialize() 121 ICING_VLOG(1) << "Loading bitmap from file: " << file_path_ in Initialize() [all …]
|
D | memory-mapped-file.cc | 37 file_path_(file_path), in MemoryMappedFile() 94 fd.reset(filesystem_->OpenForRead(file_path_.c_str())); in Remap() 100 fd.reset(filesystem_->OpenForWrite(file_path_.c_str())); in Remap() 108 fd.reset(filesystem_->OpenForWrite(file_path_.c_str())); in Remap() 118 "Unable to open file meant to be mmapped: ", file_path_)); in Remap() 140 "Attempting to PersistToDisk on a read-only file: ", file_path_)); in PersistToDisk() 151 absl_ports::StrCat("Unable to sync file using msync(): ", file_path_)); in PersistToDisk() 159 !filesystem_->PWrite(file_path_.c_str(), 0, region(), region_size())) { in PersistToDisk() 161 absl_ports::StrCat("Unable to sync file using PWrite(): ", file_path_)); in PersistToDisk() 182 "Unable to madvise file ", file_path_, "; Error: ", strerror(errno))); in OptimizeFor() [all …]
|
D | file-backed-bitmap_test.cc | 36 void SetUp() override { file_path_ = GetTestTempDir() + "/bitmap"; } in SetUp() 38 void TearDown() override { filesystem_.DeleteFile(file_path_.c_str()); } in TearDown() 40 std::string file_path_; member in icing::lib::__anone777e95d0111::FileBackedBitmapTest 55 filesystem_.Write(file_path_.c_str(), bad_data.data(), bad_data.size()); in TEST_F() 57 ASSERT_THAT(FileBackedBitmap::Create(&filesystem_, file_path_, mmap_strategy_) in TEST_F() 66 FileBackedBitmap::Create(&filesystem_, file_path_, mmap_strategy_)); in TEST_F() 76 FileBackedBitmap::Create(&filesystem_, file_path_, mmap_strategy_)); in TEST_F() 102 FileBackedBitmap::Create(&filesystem_, file_path_, mmap_strategy_)); in TEST_F() 124 FileBackedBitmap::Create(&filesystem_, file_path_, mmap_strategy_)); in TEST_F() 152 FileBackedBitmap::Create(&filesystem_, file_path_, mmap_strategy_)); in TEST_F() [all …]
|
D | file-backed-proto-log.h | 436 const std::string file_path_; variable 448 file_path_(file_path), in FileBackedProtoLog() 458 << file_path_; in ~FileBackedProtoLog() 751 absl_ports::StrCat("Failed to write proto metadata to: ", file_path_)); in WriteProto() 757 absl_ports::StrCat("Failed to write proto to: ", file_path_)); in WriteProto() 767 MemoryMappedFile mmapped_file(*filesystem_, file_path_, in ReadProto() 823 *filesystem_, file_path_, in EraseProto() 856 absl_ports::StrCat("Failed to update header to: ", file_path_)); in EraseProto() 867 int64_t size = filesystem_->GetDiskUsage(file_path_.c_str()); in GetDiskUsage() 877 int64_t total_file_size = filesystem_->GetFileSize(file_path_.c_str()); in GetElementsFileSize() [all …]
|
D | portable-file-backed-proto-log.h | 566 const std::string file_path_; variable 578 file_path_(file_path), in PortableFileBackedProtoLog() 588 << file_path_; in ~PortableFileBackedProtoLog() 926 absl_ports::StrCat("Failed to write proto to: ", file_path_)); in WriteProto() 936 MemoryMappedFile mmapped_file(*filesystem_, file_path_, in ReadProto() 993 *filesystem_, file_path_, in EraseProto() 1015 "Failed to update dirty bit of header to: ", file_path_)); in EraseProto() 1046 absl_ports::StrCat("Failed to update header to: ", file_path_)); in EraseProto() 1056 int64_t size = filesystem_->GetDiskUsage(file_path_.c_str()); in GetDiskUsage() 1066 int64_t total_file_size = filesystem_->GetFileSize(file_path_.c_str()); in GetElementsFileSize() [all …]
|
D | file-backed-vector.h | 302 const std::string file_path_; variable 485 file_path_(file_path), in FileBackedVector() 497 << file_path_; in ~FileBackedVector() 589 int64_t current_file_size = filesystem_->GetFileSize(file_path_.c_str()); in GrowIfNecessary() 611 ScopedFd sfd(filesystem_->OpenForWrite(file_path_.c_str())); in GrowIfNecessary() 616 absl_ports::StrCat("Couldn't grow file ", file_path_)); in GrowIfNecessary() 761 if (!filesystem_->PWrite(file_path_.c_str(), /*offset=*/0, header_.get(), in PersistToDisk() 780 int64_t size = filesystem_->GetDiskUsage(file_path_.c_str()); in GetDiskUsage() 791 int64_t total_file_size = filesystem_->GetFileSize(file_path_.c_str()); in GetElementsFileSize()
|
D | memory-mapped-file.h | 145 std::string file_path_; variable
|
D | file-backed-bitmap.h | 212 const std::string file_path_; variable
|
/external/libbrillo/brillo/ |
D | file_utils_test.cc | 47 file_path_ = temp_dir_.GetPath().Append("test.temp"); in FileUtilsTest() 51 base::FilePath file_path_; member in brillo::FileUtilsTest 58 base::WriteFile(file_path_, contents.c_str(), contents.length())); in WriteFile() 63 EXPECT_TRUE(base::PathExists(file_path_)); in ExpectFileContains() 65 EXPECT_TRUE(base::ReadFileToString(file_path_, &new_contents)); in ExpectFileContains() 72 EXPECT_TRUE(base::GetPosixFilePermissions(file_path_, &actual_permissions)); in ExpectFilePermissions() 83 EXPECT_TRUE(TouchFile(file_path_)); in TEST_F() 90 EXPECT_TRUE(TouchFile(file_path_)); in TEST_F() 97 file_path_ = temp_dir_.GetPath().Append("foo/bar/baz/test.temp"); in TEST_F() 98 EXPECT_TRUE(TouchFile(file_path_)); in TEST_F() [all …]
|
/external/libbrillo/brillo/files/ |
D | safe_fd_test.cc | 66 SafeFD::SafeFDResult file = root_.MakeFile(file_path_); in TEST_F() 75 ExpectPermissions(file_path_, SafeFD::kDefaultFilePermissions); in TEST_F() 92 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() 111 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() 126 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() 147 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() 169 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() 182 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() 190 SafeFD::SafeFDResult file = SafeFD().OpenExistingFile(file_path_); in TEST_F() 196 SafeFD::SafeFDResult file = root_.OpenExistingFile(file_path_); in TEST_F() [all …]
|
D | file_util_test.cc | 57 file_path_ = sub_dir_path_.Append(kFileName); in FileTest() 88 if (!base::CreateSymbolicLink(file_path_, symlink_file_path_)) { in SetupSymlinks() 106 base::WriteFile(file_path_, contents.c_str(), contents.length())) { in WriteFile() 110 if (chmod(file_path_.value().c_str(), SafeFD::kDefaultFilePermissions) != 0) { in WriteFile() 118 EXPECT_TRUE(base::PathExists(file_path_)); in ExpectFileContains() 120 EXPECT_TRUE(base::ReadFileToString(file_path_, &new_contents)); in ExpectFileContains() 243 ASSERT_TRUE(base::CreateDirectory(file_path_)); in TEST_F()
|
D | file_util_test.h | 43 base::FilePath file_path_; variable
|
/external/tensorflow/tensorflow/core/kernels/ |
D | logging_ops.cc | 127 if (!file_path_.empty()) return; in PrintV2Op() 154 if (!file_path_.empty()) { in Compute() 157 AppendStringToFile(file_path_, ended_msg, ctx->env())); in Compute() 193 string file_path_; member in tensorflow::PrintV2Op 199 file_path_ = output_stream_.substr(strlen(kOutputStreamEscapeStr)); in SetFilePathIfAny() 202 file_path_ = ""; in SetFilePathIfAny()
|
/external/deqp-deps/amber/src/ |
D | shader.h | 36 void SetFilePath(const std::string& path) { file_path_ = path; } in SetFilePath() 37 const std::string& GetFilePath() const { return file_path_; } in GetFilePath() 55 std::string file_path_; variable
|
/external/google-breakpad/src/client/mac/handler/ |
D | dynamic_images.h | 60 uint32_t file_path_; // char* member 66 uint64_t file_path_; // char* member 125 file_path_(file_path), in DynamicImage() 136 string GetFilePath() {return file_path_;} in GetFilePath() 193 string file_path_; // path dyld used to load the image variable
|
/external/tensorflow/tensorflow/core/util/ |
D | debug_events_writer.cc | 37 file_path_(file_path), in SingleDebugEventFileWriter() 53 env_->NewWritableFile(file_path_, &writable_file_), in Init() 54 "Creating writable file ", file_path_); in Init() 58 file_path_); in Init() 61 VLOG(1) << "Successfully opened debug events file: " << file_path_; in Init() 86 return errors::Unknown("Unexpected NULL file for path: ", file_path_); in Flush() 93 file_path_); in Flush() 98 file_path_); in Flush() 117 const string SingleDebugEventFileWriter::FileName() { return file_path_; } in FileName()
|
/external/libchrome/base/files/ |
D | file_proxy.cc | 122 if (!CreateTemporaryFile(&file_path_)) { in RunWork() 132 file_.Initialize(file_path_, file_flags); in RunWork() 137 DeleteFile(file_path_, false); in RunWork() 138 file_path_.clear(); in RunWork() 145 std::move(callback).Run(error_, file_path_); in Reply() 149 FilePath file_path_; member in base::__anona2b9dffd0211::CreateTemporaryHelper
|
/external/angle/third_party/zlib/google/ |
D | zip_reader.h | 84 const base::FilePath& file_path() const { return file_path_; } in file_path() 114 const base::FilePath file_path_;
|
D | zip_reader.cc | 90 : file_path_(base::FilePath::FromUTF8Unsafe(file_name_in_zip)), in EntryInfo() 101 is_unsafe_ = file_path_.ReferencesParent(); in EntryInfo() 112 if (file_path_.IsAbsolute() || in EntryInfo()
|
/external/zlib/google/ |
D | zip_reader.h | 84 const base::FilePath& file_path() const { return file_path_; } in file_path() 114 const base::FilePath file_path_;
|
D | zip_reader.cc | 90 : file_path_(base::FilePath::FromUTF8Unsafe(file_name_in_zip)), in EntryInfo() 101 is_unsafe_ = file_path_.ReferencesParent(); in EntryInfo() 112 if (file_path_.IsAbsolute() || in EntryInfo()
|