Searched refs:criterion (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiSelector.java530 * @return UiSelector with this added search criterion
553 * @return UiSelector with this added search criterion
641 String getString(int criterion) { argument
642 return (String) mSelectorAttributes.get(criterion, null);
645 boolean getBoolean(int criterion) { argument
646 return (Boolean) mSelectorAttributes.get(criterion, false);
649 int getInt(int criterion) { argument
650 return (Integer) mSelectorAttributes.get(criterion, 0);
653 Pattern getPattern(int criterion) { argument
654 return (Pattern) mSelectorAttributes.get(criterion, nul
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
H A DParameterManagerWrapper.cpp262 ISelectionCriterionInterface *criterion = local
265 mPolicyCriteria[name] = criterion;
271 criterion->setCriterionState(numericalValue);
337 ISelectionCriterionInterface *criterion = local
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 = local
355 if (criterion
370 ISelectionCriterionInterface *criterion = local
390 const ISelectionCriterionInterface *criterion = local
399 isValueValidForCriterion(ISelectionCriterionInterface *criterion, int valueToCheck) argument
409 ISelectionCriterionInterface *criterion = local
422 ISelectionCriterionInterface *criterion = local
[all...]
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioMixingRule.java139 for (AudioMixMatchCriterion criterion : mCriteria) {
140 if ((criterion.mRule & RULE_MATCH_ATTRIBUTE_USAGE) != 0
141 && criterion.mAttr != null
142 && criterion.mAttr.getUsage() == usage) {
154 //TODO iterate over rules to check they contain the same criterion
415 final AudioMixMatchCriterion criterion = crIterator.next();
419 if (criterion.mAttr.getUsage() == attrToMatch.getUsage()) {
420 if (criterion.mRule == rule) {
424 // criterion already exists with a another rule,
433 if (criterion
[all...]
H A DAudioPolicyConfig.java104 for (AudioMixMatchCriterion criterion : criteria) {
105 criterion.writeToParcel(dest);
169 for (AudioMixMatchCriterion criterion : criteria) {
170 switch(criterion.mRule) {
173 textDump += criterion.mAttr.usageToString();
177 textDump += criterion.mAttr.usageToString();
181 textDump += criterion.mAttr.getCapturePreset();
185 textDump += criterion.mAttr.getCapturePreset();
189 textDump += criterion.mIntProp;
193 textDump += criterion
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioPolicy.cpp78 AudioMixMatchCriterion criterion; local
79 if (criterion.readFromParcel(parcel) == NO_ERROR) {
80 mCriteria.add(criterion);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPolicyMix.cpp82 for (const auto &criterion : mMix.mCriteria) {
86 if (!UsageTypeConverter::toString(criterion.mValue.mUsage, usageLiteral)) {
87 ALOGE("%s: failed to convert usage %d", __FUNCTION__, criterion.mValue.mUsage);
94 if (!SourceTypeConverter::toString(criterion.mValue.mSource, sourceLiteral)) {
95 ALOGE("%s: failed to convert source %d", __FUNCTION__, criterion.mValue.mSource);
101 snprintf(buffer, SIZE, "%*s- Uid:%d\n", spaces + 4, "", criterion.mValue.mUid);
104 if (!RuleTypeConverter::toString(criterion.mRule, ruleLiteral)) {
105 ALOGE("%s: failed to convert source %d", __FUNCTION__,criterion.mRule);
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
H A DParameterManagerWrapper.h80 * It will set the telephony mode criterion accordingly and apply the configuration in order
81 * to select the right configuration on domains depending on this mode criterion.
85 * @return NO_ERROR if criterion set correctly, error code otherwise.
93 * It will set the corresponding policy parameter framework criterion.
98 * @return NO_ERROR if the criterion was set correctly, error code otherwise (e.g. config not
106 * Set the available input devices i.e. set the associated policy parameter framework criterion
110 * @return NO_ERROR if devices criterion updated correctly, error code otherwise.
115 * Set the available output devices i.e. set the associated policy parameter framework criterion
119 * @return NO_ERROR if devices criterion updated correctly, error code otherwise.
137 * Load the criterion configuratio
[all...]

Completed in 51 milliseconds