Home
last modified time | relevance | path

Searched refs:LegacyConfigFile (Results 1 – 5 of 5) sorted by relevance

/system/bt/gd/storage/
Dlegacy_config_file.h27 class LegacyConfigFile {
29 static LegacyConfigFile FromPath(std::string path) { in FromPath()
30 return LegacyConfigFile(std::move(path)); in FromPath()
32 explicit LegacyConfigFile(std::string path);
Dlegacy_config_file.cc31 LegacyConfigFile::LegacyConfigFile(std::string path) : path_(std::move(path)) { in LegacyConfigFile() function in bluetooth::storage::LegacyConfigFile
35 std::optional<ConfigCache> LegacyConfigFile::Read(size_t temp_devices_capacity) { in Read()
73 bool LegacyConfigFile::Write(const ConfigCache& cache) { in Write()
77 bool LegacyConfigFile::Delete() { in Delete()
Dlegacy_config_file_test.cc33 using bluetooth::storage::LegacyConfigFile;
47 EXPECT_TRUE(LegacyConfigFile::FromPath(temp_config.string()).Write(config)); in TEST()
48 auto config_read = LegacyConfigFile::FromPath(temp_config.string()).Read(100); in TEST()
86 auto config_read = LegacyConfigFile::FromPath(temp_config.string()).Read(100); in TEST()
120 EXPECT_TRUE(LegacyConfigFile::FromPath(temp_config.string()).Write(config)); in TEST()
176 auto config_read = LegacyConfigFile::FromPath(temp_config.string()).Read(100); in TEST()
Dstorage_module.cc134 ASSERT(LegacyConfigFile::FromPath(config_file_path_).Write(pimpl_->cache_)); in SaveImmediately()
136 ASSERT(LegacyConfigFile::FromPath(config_backup_path_).Write(pimpl_->cache_)); in SaveImmediately()
147 LegacyConfigFile::FromPath(config_file_path_).Delete(); in Start()
148 LegacyConfigFile::FromPath(config_backup_path_).Delete(); in Start()
150 auto config = LegacyConfigFile::FromPath(config_file_path_).Read(temp_devices_capacity_); in Start()
153 config = LegacyConfigFile::FromPath(config_backup_path_).Read(temp_devices_capacity_); in Start()
Dstorage_module_test.cc42 using bluetooth::storage::LegacyConfigFile;
147 auto config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F()
254 auto config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F()
261 config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F()
268 config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F()
275 config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F()