Lines Matching refs:criterion
134 auto criterion = mPfwConnector->createSelectionCriterion(name, criterionType); in addCriterion() local
135 mPolicyCriteria[name] = criterion; in addCriterion()
143 criterion->setCriterionState(numericalValue); in addCriterion()
195 ISelectionCriterionInterface *criterion = in setPhoneState() local
197 if (criterion == NULL) { in setPhoneState()
201 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) { in setPhoneState()
204 criterion->setCriterionState((int)(mode)); in setPhoneState()
211 const ISelectionCriterionInterface *criterion = in getPhoneState() local
213 if (criterion == NULL) { in getPhoneState()
217 return static_cast<audio_mode_t>(criterion->getCriterionState()); in getPhoneState()
228 ISelectionCriterionInterface *criterion = in setForceUse() local
230 if (criterion == NULL) { in setForceUse()
234 if (!isValueValidForCriterion(criterion, static_cast<int>(config))) { in setForceUse()
237 criterion->setCriterionState((int)config); in setForceUse()
248 const ISelectionCriterionInterface *criterion = in getForceUse() local
250 if (criterion == NULL) { in getForceUse()
254 return static_cast<audio_policy_forced_cfg_t>(criterion->getCriterionState()); in getForceUse()
257 bool ParameterManagerWrapper::isValueValidForCriterion(ISelectionCriterionInterface *criterion, in isValueValidForCriterion() argument
260 const ISelectionCriterionTypeInterface *interface = criterion->getCriterionType(); in isValueValidForCriterion()
273 ISelectionCriterionInterface *criterion = in setDeviceConnectionState() local
276 if (criterion == NULL) { in setDeviceConnectionState()
281 auto criterionType = criterion->getCriterionType(); in setDeviceConnectionState()
288 int currentValueMask = criterion->getCriterionState(); in setDeviceConnectionState()
295 criterion->setCriterionState(currentValueMask); in setDeviceConnectionState()
301 ISelectionCriterionInterface *criterion = in setAvailableInputDevices() local
303 if (criterion == NULL) { in setAvailableInputDevices()
307 criterion->setCriterionState(inputDevices & ~AUDIO_DEVICE_BIT_IN); in setAvailableInputDevices()
314 ISelectionCriterionInterface *criterion = in setAvailableOutputDevices() local
316 if (criterion == NULL) { in setAvailableOutputDevices()
320 criterion->setCriterionState(outputDevices); in setAvailableOutputDevices()