Lines Matching refs:criterion
124 auto criterion = mPfwConnector->createSelectionCriterion(name, criterionType); in addCriterion() local
125 mPolicyCriteria[name] = criterion; in addCriterion()
133 criterion->setCriterionState(numericalValue); in addCriterion()
186 ISelectionCriterionInterface *criterion = in setPhoneState() local
188 if (criterion == NULL) { in setPhoneState()
192 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) { in setPhoneState()
195 criterion->setCriterionState((int)(mode)); in setPhoneState()
202 const ISelectionCriterionInterface *criterion = in getPhoneState() local
204 if (criterion == NULL) { in getPhoneState()
208 return static_cast<audio_mode_t>(criterion->getCriterionState()); in getPhoneState()
219 ISelectionCriterionInterface *criterion = in setForceUse() local
221 if (criterion == NULL) { in setForceUse()
225 if (!isValueValidForCriterion(criterion, static_cast<int>(config))) { in setForceUse()
228 criterion->setCriterionState((int)config); in setForceUse()
239 const ISelectionCriterionInterface *criterion = in getForceUse() local
241 if (criterion == NULL) { in getForceUse()
245 return static_cast<audio_policy_forced_cfg_t>(criterion->getCriterionState()); in getForceUse()
248 bool ParameterManagerWrapper::isValueValidForCriterion(ISelectionCriterionInterface *criterion, in isValueValidForCriterion() argument
251 const ISelectionCriterionTypeInterface *interface = criterion->getCriterionType(); in isValueValidForCriterion()
264 ISelectionCriterionInterface *criterion = in setDeviceConnectionState() local
267 if (criterion == NULL) { in setDeviceConnectionState()
272 auto criterionType = criterion->getCriterionType(); in setDeviceConnectionState()
278 int currentValueMask = criterion->getCriterionState(); in setDeviceConnectionState()
285 criterion->setCriterionState(currentValueMask); in setDeviceConnectionState()
291 ISelectionCriterionInterface *criterion = in setAvailableInputDevices() local
293 if (criterion == NULL) { in setAvailableInputDevices()
297 criterion->setCriterionState(inputDevices & ~AUDIO_DEVICE_BIT_IN); in setAvailableInputDevices()
304 ISelectionCriterionInterface *criterion = in setAvailableOutputDevices() local
306 if (criterion == NULL) { in setAvailableOutputDevices()
310 criterion->setCriterionState(outputDevices); in setAvailableOutputDevices()