Lines Matching refs:root
140 void ParameterManagerWrapper::loadCriterionType(cnode *root, bool isInclusive) in loadCriterionType() argument
142 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadCriterionType()
144 for (node = root->first_child; node != NULL; node = node->next) { in loadCriterionType()
185 void ParameterManagerWrapper::loadInclusiveCriterionType(cnode *root) in loadInclusiveCriterionType() argument
187 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadInclusiveCriterionType()
188 cnode *node = config_find(root, gInclusiveCriterionTypeTag.c_str()); in loadInclusiveCriterionType()
195 void ParameterManagerWrapper::loadExclusiveCriterionType(cnode *root) in loadExclusiveCriterionType() argument
197 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadExclusiveCriterionType()
198 cnode *node = config_find(root, gExclusiveCriterionTypeTag.c_str()); in loadExclusiveCriterionType()
205 void ParameterManagerWrapper::parseChildren(cnode *root, string &defaultValue, string &type) in parseChildren() argument
207 ALOG_ASSERT(root != NULL, "error in parsing file"); in parseChildren()
209 for (node = root->first_child; node != NULL; node = node->next) { in parseChildren()
240 void ParameterManagerWrapper::loadCriteria(cnode *root) in loadCriteria() argument
242 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadCriteria()
243 cnode *node = config_find(root, gCriterionTag.c_str()); in loadCriteria()
275 void ParameterManagerWrapper::loadCriterion(cnode *root) in loadCriterion() argument
277 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadCriterion()
278 const char *criterionName = root->name; in loadCriterion()
288 parseChildren(root, defaultValue, typeName); in loadCriterion()
293 void ParameterManagerWrapper::loadConfig(cnode *root) in loadConfig() argument
295 ALOG_ASSERT(root != NULL, "error in parsing file"); in loadConfig()
296 cnode *node = config_find(root, gPolicyConfTag.c_str()); in loadConfig()
311 cnode *root; in loadAudioPolicyCriteriaConfig() local
318 root = config_node("", ""); in loadAudioPolicyCriteriaConfig()
319 ALOG_ASSERT(root != NULL, "Unable to allocate a configuration node"); in loadAudioPolicyCriteriaConfig()
320 config_load(root, data); in loadAudioPolicyCriteriaConfig()
322 loadConfig(root); in loadAudioPolicyCriteriaConfig()
324 config_free(root); in loadAudioPolicyCriteriaConfig()
325 free(root); in loadAudioPolicyCriteriaConfig()