Lines Matching refs:criterion
257 "Route Criterion %s already added", name.c_str());
262 ISelectionCriterionInterface *criterion =
265 mPolicyCriteria[name] = criterion;
271 criterion->setCriterionState(numericalValue);
280 "Criterion %s already added", criterionName);
337 ISelectionCriterionInterface *criterion =
339 if (criterion == NULL) {
340 ALOGE("%s: no criterion found for %s", __FUNCTION__, gPhoneStateCriterionTag.c_str());
343 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) {
346 criterion->setCriterionState((int)(mode));
353 const ISelectionCriterionInterface *criterion =
355 if (criterion == NULL) {
356 ALOGE("%s: no criterion found for %s", __FUNCTION__, gPhoneStateCriterionTag.c_str());
359 return static_cast<audio_mode_t>(criterion->getCriterionState());
370 ISelectionCriterionInterface *criterion =
372 if (criterion == NULL) {
373 ALOGE("%s: no criterion found for %s", __FUNCTION__, gForceUseCriterionTag[usage].c_str());
376 if (!isValueValidForCriterion(criterion, static_cast<int>(config))) {
379 criterion->setCriterionState((int)config);
390 const ISelectionCriterionInterface *criterion =
392 if (criterion == NULL) {
393 ALOGE("%s: no criterion found for %s", __FUNCTION__, gForceUseCriterionTag[usage].c_str());
396 return static_cast<audio_policy_forced_cfg_t>(criterion->getCriterionState());
399 bool ParameterManagerWrapper::isValueValidForCriterion(ISelectionCriterionInterface *criterion,
402 const ISelectionCriterionTypeInterface *interface = criterion->getCriterionType();
409 ISelectionCriterionInterface *criterion =
411 if (criterion == NULL) {
412 ALOGE("%s: no criterion found for %s", __FUNCTION__, gInputDeviceCriterionTag.c_str());
415 criterion->setCriterionState(inputDevices & ~AUDIO_DEVICE_BIT_IN);
422 ISelectionCriterionInterface *criterion =
424 if (criterion == NULL) {
425 ALOGE("%s: no criterion found for %s", __FUNCTION__, gOutputDeviceCriterionTag.c_str());
428 criterion->setCriterionState(outputDevices);