Lines Matching refs:node
142 cnode *node; in loadCriterionType() local
143 for (node = root->first_child; node != NULL; node = node->next) { in loadCriterionType()
145 ALOG_ASSERT(node != NULL, "error in parsing file"); in loadCriterionType()
146 const char *typeName = node->name; in loadCriterionType()
147 char *valueNames = strndup(node->value, strlen(node->value)); in loadCriterionType()
187 cnode *node = config_find(root, gInclusiveCriterionTypeTag.c_str()); in loadInclusiveCriterionType() local
188 if (node == NULL) { in loadInclusiveCriterionType()
191 loadCriterionType(node, true); in loadInclusiveCriterionType()
197 cnode *node = config_find(root, gExclusiveCriterionTypeTag.c_str()); in loadExclusiveCriterionType() local
198 if (node == NULL) { in loadExclusiveCriterionType()
201 loadCriterionType(node, false); in loadExclusiveCriterionType()
207 cnode *node; in parseChildren() local
208 for (node = root->first_child; node != NULL; node = node->next) { in parseChildren()
209 ALOG_ASSERT(node != NULL, "error in parsing file"); in parseChildren()
211 if (string(node->name) == gDefaultTag) { in parseChildren()
212 defaultValue = node->value; in parseChildren()
213 } else if (string(node->name) == gTypeTag) { in parseChildren()
214 type = node->value; in parseChildren()
216 ALOGE("%s: Unrecognized %s %s node", __FUNCTION__, node->name, node->value); in parseChildren()
242 cnode *node = config_find(root, gCriterionTag.c_str()); in loadCriteria() local
244 if (node == NULL) { in loadCriteria()
248 for (node = node->first_child; node != NULL; node = node->next) { in loadCriteria()
249 loadCriterion(node); in loadCriteria()
295 cnode *node = config_find(root, gPolicyConfTag.c_str()); in loadConfig() local
296 if (node == NULL) { in loadConfig()
301 loadInclusiveCriterionType(node); in loadConfig()
302 loadExclusiveCriterionType(node); in loadConfig()
303 loadCriteria(node); in loadConfig()