Home | History | Annotate | Download | only in src

Lines Matching refs:section

210     LOG_ERROR(LOG_TAG, "Config is missing adapter section");
241 bool btif_config_has_section(const char* section) {
243 CHECK(section != NULL);
246 return config_has_section(config, section);
249 bool btif_config_exist(const char* section, const char* key) {
251 CHECK(section != NULL);
255 return config_has_key(config, section, key);
258 bool btif_config_get_int(const char* section, const char* key, int* value) {
260 CHECK(section != NULL);
265 bool ret = config_has_key(config, section, key);
266 if (ret) *value = config_get_int(config, section, key, *value);
271 bool btif_config_set_int(const char* section, const char* key, int value) {
273 CHECK(section != NULL);
277 config_set_int(config, section, key, value);
282 bool btif_config_get_str(const char* section, const char* key, char* value,
285 CHECK(section != NULL);
292 const char* stored_value = config_get_string(config, section, key, NULL);
301 bool btif_config_set_str(const char* section, const char* key,
304 CHECK(section != NULL);
309 config_set_string(config, section, key, value);
313 bool btif_config_get_bin(const char* section, const char* key, uint8_t* value,
316 CHECK(section != NULL);
322 const char* value_str = config_get_string(config, section, key, NULL);
338 size_t btif_config_get_bin_length(const char* section, const char* key) {
340 CHECK(section != NULL);
344 const char* value_str = config_get_string(config, section, key, NULL);
351 bool btif_config_set_bin(const char* section, const char* key,
356 CHECK(section != NULL);
370 config_set_string(config, section, key, str);
388 const btif_config_section_iter_t* section) {
390 CHECK(section != NULL);
392 (const config_section_node_t*)section);
396 const btif_config_section_iter_t* section) {
398 CHECK(section != NULL);
399 return config_section_name((const config_section_node_t*)section);
402 bool btif_config_remove(const char* section, const char* key) {
404 CHECK(section != NULL);
408 return config_remove_key(config, section, key);
472 const char* section = config_section_name(snode);
473 if (RawAddress::IsValidAddress(section)) {
474 if (!config_has_key(conf, section, "LinkKey") &&
475 !config_has_key(conf, section, "LE_KEY_PENC") &&
476 !config_has_key(conf, section, "LE_KEY_PID") &&
477 !config_has_key(conf, section, "LE_KEY_PCSRK") &&
478 !config_has_key(conf, section, "LE_KEY_LENC") &&
479 !config_has_key(conf, section, "LE_KEY_LCSRK")) {
481 config_remove_section(conf, section);
530 const char* section = config_section_name(snode);
531 if (RawAddress::IsValidAddress(section) &&
532 config_has_key(config, section, "Restricted")) {
533 BTIF_TRACE_DEBUG("%s: Removing restricted device %s", __func__, section);
534 config_remove_section(config, section);