Searched defs:rule (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/tools/split-select/
H A DRule_test.cpp33 Rule rule(AndRule()
71 std::string result(rule.toJson().string());
78 sp<Rule> rule = new Rule(AndRule() local
82 EXPECT_RULES_EQ(Rule::simplify(rule), EqRule(Rule::SDK_VERSION, 7));
86 sp<Rule> rule = new Rule(AndRule() local
93 EXPECT_RULES_EQ(Rule::simplify(rule),
H A DRule.cpp177 sp<Rule> Rule::simplify(sp<Rule> rule) { argument
178 if (rule->op != AND_SUBRULES && rule->op != OR_SUBRULES) {
179 return rule;
183 newSubrules.setCapacity(rule->subrules.size());
184 const size_t subruleCount = rule->subrules.size();
186 sp<Rule> simplifiedRule = simplify(rule->subrules.editItemAt(i));
188 if (simplifiedRule->op == rule->op) {
202 rule->subrules = newSubrules;
203 return rule;
[all...]
H A DSplitSelector_test.cpp59 sp<Rule> rule = rules[idx]; local
60 ASSERT_TRUE(rule != NULL);
69 EXPECT_RULES_EQ(rule, expectedRule);
H A DTestRules.cpp28 Rule rule; local
29 rule.op = Rule::EQUALS;
30 rule.key = key;
31 rule.longArgs.add(value);
32 return rule;
36 Rule rule; local
37 rule.op = Rule::GREATER_THAN;
38 rule.key = key;
39 rule.longArgs.add(value);
40 return rule;
44 Rule rule; local
52 Rule rule; local
60 Rule rule; local
69 Rule rule; local
[all...]
H A DSplitSelector.cpp76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); local
77 if (rule != NULL) {
78 rules.add(splits[j], rule);
/frameworks/av/media/libmedia/
H A DAudioPolicy.cpp29 uint32_t rule)
30 : mRule(rule)
27 AttributeMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule) argument
/frameworks/base/tools/aapt2/data/lib/
H A DMakefile49 define make-collect-rule
55 $(foreach d,$(PRIVATE_RESOURCE_TYPES),$(eval $(call make-collect-rule,$d)))
/frameworks/base/tools/aapt2/data/
H A DMakefile18 LOCAL_PROGUARD := out/proguard.rule
51 define make-collect-rule
57 $(foreach d,$(PRIVATE_RESOURCE_TYPES),$(eval $(call make-collect-rule,$d)))
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioMixingRule.java31 * Here's an example of creating a mixing rule for all media playback:
50 * A rule requiring the usage information of the {@link AudioAttributes} to match.
55 * A rule requiring the capture preset information of the {@link AudioAttributes} to match.
63 * A rule requiring the usage information of the {@link AudioAttributes} to differ.
69 * A rule requiring the capture preset information of the {@link AudioAttributes} to differ.
79 AttributeMatchCriterion(AudioAttributes attributes, int rule) { argument
81 mRule = rule;
94 // capture preset rule
110 private static boolean isValidSystemApiRule(int rule) { argument
111 switch(rule) {
120 isValidIntRule(int rule) argument
132 isPlayerRule(int rule) argument
163 addRule(AudioAttributes attrToMatch, int rule) argument
191 excludeRule(AudioAttributes attrToMatch, int rule) argument
210 addRuleInt(AudioAttributes attrToMatch, int rule) argument
[all...]
H A DAudioMix.java45 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags) { argument
46 mRule = rule;
50 mMixType = rule.getTargetMixType();
184 * @param rule a non-null {@link AudioMixingRule} instance.
188 public Builder(AudioMixingRule rule) argument
190 if (rule == null) {
193 mRule = rule;
199 * @param rule
203 public Builder setMixingRule(AudioMixingRule rule) argument
205 if (rule
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DZenModeController.java46 public void onManualRuleChanged(ZenRule rule) {} argument
H A DZenModeControllerImpl.java198 private void fireManualRuleChanged(ZenRule rule) { argument
200 cb.onManualRuleChanged(rule);
/frameworks/base/services/core/java/com/android/server/notification/
H A DZenModeConditions.java70 if (DEBUG) Log.d(TAG, "evaluateConfig: clearing manual rule");
127 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) { argument
128 if (rule == null || rule.conditionId == null) return;
129 final Uri id = rule.conditionId;
134 rule.component = sp.getComponent();
139 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component);
140 if (DEBUG) Log.d(TAG, "Ensure external rule exists: " + (cp != null) + " for " + id);
142 mConditionProviders.ensureRecordExists(rule.component, id, cp);
145 if (rule
179 updateSnoozing(ZenRule rule) argument
188 updateCondition(Uri id, Condition condition, ZenRule rule) argument
[all...]
/frameworks/base/core/java/android/animation/
H A DAnimatorSet.java577 new DependencyListener(this, node, dependency.rule));
695 dependency.rule);
730 // The Dependency rule (WITH or AFTER) that the listener should wait for on
734 public DependencyListener(AnimatorSet animatorSet, Node node, int rule) { argument
737 this.mRule = rule;
787 if (dependency.rule == mRule &&
789 // rule fired - remove the dependency and listener and check to
1001 public int rule; field in class:AnimatorSet.Dependency
1003 public Dependency(Node node, int rule) { argument
1005 this.rule
[all...]
/frameworks/base/services/core/java/com/android/server/firewall/
H A DIntentFirewall.java161 // rule against the intent
163 Rule rule = candidateRules.get(i);
164 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType,
166 block |= rule.getBlock();
167 log |= rule.getLog();
336 Rule rule = new Rule();
340 // if we get an error while parsing a particular rule, we'll just ignore
341 // that rule and continue on with the next rule
343 rule
487 private final Rule rule; field in class:IntentFirewall.FirewallIntentFilter
489 FirewallIntentFilter(Rule rule) argument
529 addComponentFilter(ComponentName componentName, Rule rule) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccCarrierPrivilegeRules.java126 // Describes a single rule.
447 * Check if all rule bytes have been read from UICC.
487 Rlog.e(LOG_TAG, "Skip unrecognized rule." + refArDo.value);
494 * Parses a single rule.
496 private static AccessRule parseRefArdo(String rule) { argument
497 log("Got rule: " + rule);
504 while (!rule.isEmpty()) {
505 if (rule.startsWith(TAG_REF_DO)) {
507 rule
[all...]
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java229 final String rule = allRules.valueAt(i);
230 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null;
231 final ZenRule toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null;
232 ZenRule.appendDiff(d, "automaticRule[" + rule + "]", fromRule, toRule);
266 private static boolean isValidManualRule(ZenRule rule) { argument
267 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule);
270 private static boolean isValidAutomaticRule(ZenRule rule) { argument
271 return rule !
275 sameCondition(ZenRule rule) argument
477 writeRuleXml(ZenRule rule, XmlSerializer out) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DZenModePanel.java351 private void handleUpdateManualRule(ZenRule rule) { argument
352 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF;
354 final Condition c = rule != null ? rule.condition : null;
805 public void onManualRuleChanged(ZenRule rule) {
806 mHandler.obtainMessage(H.MANUAL_RULE_CHANGED, rule).sendToTarget();
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java1990 final String rule = allow ? "allow" : "deny";
1992 mConnector.execute("firewall", "set_interface_rule", iface, rule);
2002 final String rule = allow ? "allow" : "deny";
2004 mConnector.execute("firewall", "set_egress_source_rule", addr, rule);
2014 final String rule = allow ? "allow" : "deny";
2016 mConnector.execute("firewall", "set_egress_dest_rule", addr, port, rule);
2073 int rule = rules[index];
2074 setFirewallUidRule(chain, uid, rule);
2075 newRules.put(uid, rule);
2094 public void setFirewallUidRule(int chain, int uid, int rule) { argument
2099 setFirewallUidRuleInternal(int chain, int uid, int rule) argument
2134 getFirewallRuleName(int chain, int rule) argument
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java1227 Slog.w(TAG, "shared quota unsupported; generating rule for each iface");
1993 final int rule = mUidRules.get(uid, RULE_UNKNOWN);
1994 fout.print(" rule=");
1995 fout.print(DebugUtils.valueToString(NetworkPolicyManager.class, "RULE_", rule));
2311 // dispatch changed rule to existing listeners
2494 private void setUidFirewallRule(int chain, int uid, int rule) { argument
2496 mUidFirewallDozableRules.put(uid, rule);
2498 mUidFirewallStandbyRules.put(uid, rule);
2502 mNetworkManager.setFirewallUidRule(chain, uid, rule);
/frameworks/base/tools/aapt/
H A DResource.cpp2766 // { rule --> { file locations } }
2769 void add(const String8& rule, const String8& where);
2772 void ProguardKeepSet::add(const String8& rule, const String8& where) argument
2774 ssize_t index = rules.indexOfKey(rule);
2776 index = rules.add(rule, SortedVector<String8>());
2802 String8 rule("-keep class ");
2803 rule += className;
2804 rule += " { <init>(...); }";
2812 keep->add(rule, location);
2819 String8 rule("
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 5471 milliseconds