Lines Matching refs:criterion
149 auto criterion = mPfwConnector->createSelectionCriterion(name, criterionType); in addCriterion() local
150 mPolicyCriteria[name] = criterion; in addCriterion()
158 criterion->setCriterionState(numericalValue); in addCriterion()
210 ISelectionCriterionInterface *criterion = in setPhoneState() local
212 if (criterion == NULL) { in setPhoneState()
216 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) { in setPhoneState()
219 criterion->setCriterionState((int)(mode)); in setPhoneState()
226 const ISelectionCriterionInterface *criterion = in getPhoneState() local
228 if (criterion == NULL) { in getPhoneState()
232 return static_cast<audio_mode_t>(criterion->getCriterionState()); in getPhoneState()
243 ISelectionCriterionInterface *criterion = in setForceUse() local
245 if (criterion == NULL) { in setForceUse()
249 if (!isValueValidForCriterion(criterion, static_cast<int>(config))) { in setForceUse()
252 criterion->setCriterionState((int)config); in setForceUse()
263 const ISelectionCriterionInterface *criterion = in getForceUse() local
265 if (criterion == NULL) { in getForceUse()
269 return static_cast<audio_policy_forced_cfg_t>(criterion->getCriterionState()); in getForceUse()
272 bool ParameterManagerWrapper::isValueValidForCriterion(ISelectionCriterionInterface *criterion, in isValueValidForCriterion() argument
275 const ISelectionCriterionTypeInterface *interface = criterion->getCriterionType(); in isValueValidForCriterion()
288 ISelectionCriterionInterface *criterion = in setDeviceConnectionState() local
291 if (criterion == NULL) { in setDeviceConnectionState()
296 auto criterionType = criterion->getCriterionType(); in setDeviceConnectionState()
303 int currentValueMask = criterion->getCriterionState(); in setDeviceConnectionState()
310 criterion->setCriterionState(currentValueMask); in setDeviceConnectionState()
316 ISelectionCriterionInterface *criterion = in setAvailableInputDevices() local
318 if (criterion == NULL) { in setAvailableInputDevices()
322 criterion->setCriterionState(convertDeviceTypesToCriterionValue(types)); in setAvailableInputDevices()
329 ISelectionCriterionInterface *criterion = in setAvailableOutputDevices() local
331 if (criterion == NULL) { in setAvailableOutputDevices()
335 criterion->setCriterionState(convertDeviceTypesToCriterionValue(types)); in setAvailableOutputDevices()