/external/federated-compute/fcp/client/opstats/ |
D | pds_backed_opstats_db.cc | 52 absl::StatusOr<int> AcquireFileLock(const std::string& db_path, in AcquireFileLock() argument 58 if (!files_in_use->insert(db_path).second) { in AcquireFileLock() 65 int fd = open(db_path.c_str(), O_CREAT | O_RDWR, in AcquireFileLock() 68 files_in_use->erase(db_path); in AcquireFileLock() 70 return absl::InternalError(absl::StrCat("Failed to open file: ", db_path)); in AcquireFileLock() 78 files_in_use->erase(db_path); in AcquireFileLock() 87 void ReleaseFileLock(const std::string& db_path, int fd) { in ReleaseFileLock() argument 89 GetFilesInUseSet()->erase(db_path); in ReleaseFileLock() 229 std::string db_path = path.generic_string(); in Create() local 230 FCP_ASSIGN_OR_RETURN(int fd, AcquireFileLock(db_path, log_manager)); in Create() [all …]
|
D | opstats_logger_impl_test.cc | 226 std::filesystem::path db_path(base_dir_); in TEST_F() local 227 db_path /= PdsBackedOpStatsDb::kParentDir; in TEST_F() 228 db_path /= PdsBackedOpStatsDb::kDbFileName; in TEST_F() 231 file_storage.OpenForWrite(db_path).value(); in TEST_F()
|
D | pds_backed_opstats_db_test.cc | 433 std::filesystem::path db_path(base_dir_); in TEST_F() local 434 db_path /= PdsBackedOpStatsDb::kParentDir; in TEST_F() 435 db_path /= PdsBackedOpStatsDb::kDbFileName; in TEST_F() 438 file_storage.OpenForWrite(db_path).value(); in TEST_F()
|
/external/grpc-grpc/examples/cpp/route_guide/ |
D | helper.cc | 35 std::string db_path; in GetDbFileContent() local 43 db_path = argv_1.substr(start_position + 1); in GetDbFileContent() 48 db_path = "cpp/route_guide/route_guide_db.json"; in GetDbFileContent() 50 db_path = "route_guide_db.json"; in GetDbFileContent() 53 std::ifstream db_file(db_path); in GetDbFileContent() 55 std::cout << "Failed to open " << db_path << std::endl; in GetDbFileContent()
|
D | route_guide_server.cc | 172 void RunServer(const std::string& db_path) { in RunServer() argument 174 RouteGuideImpl service(db_path); in RunServer()
|
D | route_guide_callback_server.cc | 258 void RunServer(const std::string& db_path) { in RunServer() argument 260 RouteGuideImpl service(db_path); in RunServer()
|
/external/tensorflow/tensorflow/python/kernel_tests/io_ops/ |
D | reader_ops_test.py | 758 self.db_path = os.path.join(self.get_temp_dir(), "data.mdb") 759 shutil.copy(path, self.db_path) 767 self.evaluate(queue.enqueue([self.db_path])) 785 [self.db_path], num_epochs=None) 805 self.evaluate(queue.enqueue([self.db_path])) 822 [self.db_path], num_epochs=None)
|
/external/elfutils/debuginfod/ |
D | debuginfod.cxx | 462 static string db_path; variable 564 db_path = "file::memory:?cache=shared"; in parse_opt() 566 db_path = string(arg); in parse_opt() 3860 (void) statfs_free_enough_p(db_path, "database"); // report sqlite filesystem size in scan() 4225 (void) statfs_free_enough_p(db_path, "database"); // report sqlite filesystem size in groom() 4432 db_path = string(getenv("HOME") ?: "/") + string("/.debuginfod.sqlite"); /* XDG? */ in main() 4472 rc = sqlite3_open_v2 (db_path.c_str(), &db, (SQLITE_OPEN_READWRITE in main() 4480 (void) unlink (db_path.c_str()); in main() 4482 "cannot open %s, deleted database: %s", db_path.c_str(), sqlite3_errmsg(db)); in main() 4487 … "cannot open %s, consider deleting database: %s", db_path.c_str(), sqlite3_errmsg(db)); in main() [all …]
|
D | ChangeLog | 421 "file::memory:?cache=shared" for the db_path.
|
/external/cronet/tot/net/device_bound_sessions/ |
D | session_store_impl_unittest.cc | 146 void CreateStore(base::FilePath db_path) { in CreateStore() argument 148 std::make_unique<SessionStoreImpl>(db_path, unexportable_key_service_); in CreateStore()
|
/external/cronet/stable/net/device_bound_sessions/ |
D | session_store_impl_unittest.cc | 146 void CreateStore(base::FilePath db_path) { in CreateStore() argument 148 std::make_unique<SessionStoreImpl>(db_path, unexportable_key_service_); in CreateStore()
|
/external/rust/android-crates-io/crates/rusqlite/src/ |
D | lib.rs | 1426 let db_path = path.join(OsStr::from_bytes(&[0xFF])); in test_invalid_unicode_file_names() localVariable 1428 let db = Connection::open(&db_path)?; in test_invalid_unicode_file_names() 1436 let db = Connection::open(&db_path)?; in test_invalid_unicode_file_names()
|