Home
last modified time | relevance | path

Searched refs:config_t (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_config.h75 std::function<bool(const config_t& config, const std::string& section,
77 body{[this](const config_t& /* config */,
81 bool operator()(const config_t& config, const std::string& section, in operator()
93 std::function<int(const config_t& config, const std::string& section,
95 body{[this](const config_t& /* config */,
99 int operator()(const config_t& config, const std::string& section, in operator()
112 const config_t& config, const std::string& section,
114 body{[this](const config_t& /* config */,
118 const std::string* operator()(const config_t& config, in operator()
132 std::function<uint64_t(const config_t& config, const std::string& section,
[all …]
Dmock_osi_config.cc75 bool config_get_bool(const config_t& config, const std::string& section, in config_get_bool()
81 int config_get_int(const config_t& config, const std::string& section, in config_get_int()
87 const std::string* config_get_string(const config_t& config, in config_get_string()
95 uint64_t config_get_uint64(const config_t& config, const std::string& section, in config_get_uint64()
101 bool config_has_key(const config_t& config, const std::string& section, in config_has_key()
106 bool config_has_section(const config_t& config, const std::string& section) { in config_has_section()
110 std::unique_ptr<config_t> config_new(const char* filename) { in config_new()
114 std::unique_ptr<config_t> config_new_clone(const config_t& src) { in config_new_clone()
118 std::unique_ptr<config_t> config_new_empty(void) { in config_new_empty()
122 bool config_remove_key(config_t* config, const std::string& section, in config_remove_key()
[all …]
/packages/modules/Bluetooth/system/osi/include/
Dconfig.h41 struct config_t { struct
49 std::unique_ptr<config_t> config_new_empty(void); argument
55 std::unique_ptr<config_t> config_new(const char* filename);
65 std::unique_ptr<config_t> config_new_clone(const config_t& src);
69 bool config_has_section(const config_t& config, const std::string& section);
73 bool config_has_key(const config_t& config, const std::string& section,
79 int config_get_int(const config_t& config, const std::string& section,
85 uint64_t config_get_uint64(const config_t& config, const std::string& section,
91 bool config_get_bool(const config_t& config, const std::string& section,
98 const std::string* config_get_string(const config_t& config,
[all …]
/packages/modules/Bluetooth/system/osi/test/
Dconfig_test.cc87 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
97 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
113 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
134 std::unique_ptr<config_t> config = config_new_empty(); in TEST_F()
139 std::unique_ptr<config_t> config = config_new("/meow"); in TEST_F()
144 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
149 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
150 std::unique_ptr<config_t> clone = config_new_clone(*config); in TEST_F()
164 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
169 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/osi/src/
Dconfig.cc59 std::list<section_t>::iterator config_t::Find(const std::string& section) { in Find()
65 bool config_t::Has(const std::string& key) { in Has()
69 static bool config_parse(FILE* fp, config_t* config);
73 config_t, typename std::remove_const<T>::type>::value>>
80 static const entry_t* entry_find(const config_t& config, in entry_find()
93 std::unique_ptr<config_t> config_new_empty(void) { in config_new_empty()
94 return std::make_unique<config_t>(); in config_new_empty()
97 std::unique_ptr<config_t> config_new(const char* filename) { in config_new()
100 std::unique_ptr<config_t> config = config_new_empty(); in config_new()
129 std::unique_ptr<config_t> config_new_clone(const config_t& src) { in config_new_clone()
[all …]
/packages/modules/Bluetooth/system/device/test/
Ddevice_iot_config_test.cc88 [&]() -> std::unique_ptr<config_t> { in SetUp()
89 return std::make_unique<config_t>(); in SetUp()
93 [&](const char* filename) -> std::unique_ptr<config_t> { in SetUp()
94 return std::make_unique<config_t>(); in SetUp()
98 [&](const config_t& config, const std::string& section, in SetUp()
102 [&](config_t* config, const std::string& section, in SetUp()
106 [&](const config_t& config, const std::string& section, in SetUp()
111 [&](config_t* config, const std::string& section, in SetUp()
141 config_t* config_new_return_value = NULL; in TEST_F_WITH_FLAGS()
142 config_t* config_new_empty_return_value = NULL; in TEST_F_WITH_FLAGS()
[all …]
/packages/modules/Bluetooth/system/test/stub/
Dosi.cc75 std::list<section_t>::iterator config_t::Find(const std::string& section) { in Find()
86 bool config_get_bool(const config_t& config, const std::string& section, in config_get_bool()
91 bool config_has_key(const config_t& config, const std::string& section, in config_has_key()
96 bool config_has_section(const config_t& config, const std::string& section) { in config_has_section()
100 bool config_remove_key(config_t* config, const std::string& section, in config_remove_key()
105 bool config_remove_section(config_t* config, const std::string& section) { in config_remove_section()
109 bool config_save(const config_t& config, const std::string& filename) { in config_save()
113 bool config_t::Has(const std::string& key) { in Has()
121 const std::string* config_get_string(const config_t& config, in config_get_string()
128 int config_get_int(const config_t& config, const std::string& section, in config_get_int()
[all …]
/packages/modules/Bluetooth/system/device/src/
Ddevice_iot_config_int.h64 struct config_t;
77 void device_iot_config_sections_sort_by_entry_key(config_t& config,
83 int device_iot_config_get_device_num(const config_t& config);
84 void device_iot_config_restrict_device_num(config_t& config);
Ddevice_iot_config_int.cc48 extern std::unique_ptr<config_t> config;
209 void device_iot_config_sections_sort_by_entry_key(config_t& config, in device_iot_config_sections_sort_by_entry_key()
240 int device_iot_config_get_device_num(const config_t& conf) { in device_iot_config_get_device_num()
253 void device_iot_config_restrict_device_num(config_t& config) { in device_iot_config_restrict_device_num()
Ddevice_iot_config.cc47 std::unique_ptr<config_t> config;
Dinterop.cc99 static std::unique_ptr<const config_t> config_static;
100 static std::unique_ptr<config_t> config_dynamic;
/packages/modules/Bluetooth/system/test/common/
Dstack_config.cc51 struct config_t;
52 config_t* get_all(void) { return nullptr; } in get_all()
/packages/modules/Bluetooth/system/main/
Dstack_config.cc57 static std::unique_ptr<config_t> config;
207 static config_t* get_all(void) { return config.get(); } in get_all()
Dbte_conf.cc40 std::unique_ptr<config_t> config = config_new(p_path); in bte_load_did_conf()
/packages/modules/Bluetooth/system/internal_include/
Dstack_config.h50 config_t* (*get_all)(void);
/packages/modules/Bluetooth/system/stack/test/
Dstack_smp_test.cc68 config_t* get_all(void) { return nullptr; } in get_all()
/packages/modules/Bluetooth/system/bta/le_audio/
Dcodec_manager_test.cc81 config_t* get_all(void) { return nullptr; } in get_all()
Dstate_machine_test.cc86 config_t* get_all(void) { return nullptr; } in get_all()
Dle_audio_client_test.cc205 config_t* get_all(void) { return nullptr; } in get_all()