Lines Matching refs:criterion
182 const PfwCriterion &criterion = criteriaArray[criterionIndex]; in createCriteria() local
183 if (criterion.name == nullptr) { in createCriteria()
186 if (criterion.values == nullptr) { in createCriteria()
190 if (criteria.find(criterion.name) != criteria.end()) { in createCriteria()
191 return status.failure("Criterion \"" + string(criterion.name) + "\" already exist"); in createCriteria()
196 pfw->createSelectionCriterionType(criterion.inclusive); in createCriteria()
199 for (size_t valueIndex = 0; criterion.values[valueIndex] != nullptr; ++valueIndex) { in createCriteria()
201 if (criterion.inclusive) { in createCriteria()
205 string(criterion.name)); in createCriteria()
211 const char *valueName = criterion.values[valueIndex]; in createCriteria()
215 " to criterion " + criterion.name + ": " + error); in createCriteria()
219 criteria[criterion.name] = pfw->createSelectionCriterion(criterion.name, type); in createCriteria()
263 pfw::Criterion *criterion = getCriterion(handle->criteria, name); in pfwSetCriterion() local
264 if (criterion == nullptr) { in pfwSetCriterion()
267 criterion->setCriterionState(value); in pfwSetCriterion()
277 pfw::Criterion *criterion = getCriterion(handle->criteria, name); in pfwGetCriterion() local
278 if (criterion == nullptr) { in pfwGetCriterion()
281 *value = criterion->getCriterionState(); in pfwGetCriterion()