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

/frameworks/base/tools/split-select/
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 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.cpp76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); local
77 if (rule != NULL) {
78 rules.add(splits[j], rule);
H A DSplitSelector_test.cpp59 sp<Rule> rule = rules[idx]; local
60 ASSERT_TRUE(rule != NULL);
69 EXPECT_RULES_EQ(rule, expectedRule);
H A DRule.h69 static android::sp<Rule> simplify(android::sp<Rule> rule);
/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.java43 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags) { argument
44 mRule = rule;
48 mMixType = rule.getTargetMixType();
137 * @param rule a non-null {@link AudioMixingRule} instance.
141 public Builder(AudioMixingRule rule) argument
143 if (rule == null) {
146 mRule = rule;
152 * @param rule
156 public Builder setMixingRule(AudioMixingRule rule) argument
158 if (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/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/av/include/media/
H A DAudioPolicy.h50 AttributeMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccCarrierPrivilegeRules.java120 // Describes a single rule.
263 Rlog.d(LOG_TAG, "No matching rule found. Returning false.");
421 * Check if all rule bytes have been read from UICC.
461 Rlog.e(LOG_TAG, "Skip unrecognized rule." + refArDo.value);
468 * Parses a single rule.
470 private static AccessRule parseRefArdo(String rule) { argument
471 Rlog.d(LOG_TAG, "Got rule: " + rule);
478 while (!rule.isEmpty()) {
479 if (rule
[all...]
H A DSIMRecords.java1617 * If the SPN is not found on the SIM or is empty, the rule is
1622 int rule;
1627 rule = SPN_RULE_SHOW_PLMN;
1630 rule = SPN_RULE_SHOW_PLMN;
1632 rule = SPN_RULE_SHOW_SPN;
1635 rule |= SPN_RULE_SHOW_PLMN;
1638 rule = SPN_RULE_SHOW_PLMN;
1641 rule |= SPN_RULE_SHOW_SPN;
1644 return rule;
/frameworks/base/core/java/android/animation/
H A DAnimatorSet.java576 new DependencyListener(this, node, dependency.rule));
694 dependency.rule);
729 // The Dependency rule (WITH or AFTER) that the listener should wait for on
733 public DependencyListener(AnimatorSet animatorSet, Node node, int rule) { argument
736 this.mRule = rule;
786 if (dependency.rule == mRule &&
788 // rule fired - remove the dependency and listener and check to
988 public int rule; field in class:AnimatorSet.Dependency
990 public Dependency(Node node, int rule) { argument
992 this.rule
[all...]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DEventRecurrenceTest.java871 for (String rule : GOOD_RRULES) {
873 recur.parse(rule);
876 for (String rule : BAD_RRULES) {
881 recur.parse(rule);
886 assertTrue("Expected throw on " + rule, didThrow);
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java1809 final String rule = allow ? "allow" : "deny";
1811 mConnector.execute("firewall", "set_interface_rule", iface, rule);
1821 final String rule = allow ? "allow" : "deny";
1823 mConnector.execute("firewall", "set_egress_source_rule", addr, rule);
1833 final String rule = allow ? "allow" : "deny";
1835 mConnector.execute("firewall", "set_egress_dest_rule", addr, port, rule);
1845 final String rule = allow ? "allow" : "deny";
1847 mConnector.execute("firewall", "set_uid_rule", uid, rule);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarHeaderView.java352 int rule = mExpanded
355 if (rule != lp.getRules()[RelativeLayout.START_OF]) {
356 lp.addRule(RelativeLayout.START_OF, rule);
/frameworks/base/tools/aapt/
H A DResource.cpp2735 // { rule --> { file locations } }
2738 void add(const String8& rule, const String8& where);
2741 void ProguardKeepSet::add(const String8& rule, const String8& where) argument
2743 ssize_t index = rules.indexOfKey(rule);
2745 index = rules.add(rule, SortedVector<String8>());
2771 String8 rule("-keep class ");
2772 rule += className;
2773 rule += " { <init>(...); }";
2781 keep->add(rule, location);
2788 String8 rule("
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSMSDispatcher.java1002 int rule = mPremiumSmsRule.get();
1004 if (rule == PREMIUM_RULE_USE_SIM || rule == PREMIUM_RULE_USE_BOTH) {
1013 if (rule == PREMIUM_RULE_USE_NETWORK || rule == PREMIUM_RULE_USE_BOTH) {
/frameworks/base/core/java/android/widget/
H A DRelativeLayout.java1380 * Adds a layout rule to be interpreted by the RelativeLayout. This
1398 * Adds a layout rule to be interpreted by the RelativeLayout. Use this for
1418 * Removes a layout rule to be interpreted by the RelativeLayout.
1443 // if no "left"/"right" rule has been defined and "start"/"end" rules are defined then we
1447 // rules. If no "start"/"end" rule is defined then we use "left"/"right" rules.
1461 // "left" rule is not defined but "start" rule is: use the "start" rule as
1462 // the "left" rule
1470 // "right" rule i
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmServiceStateTracker.java588 // EXTRA_SHOW_PLMN = depending on IccRecords rule
598 int rule = (iccRecords != null) ? iccRecords.getDisplayRule(mSS.getOperatorNumeric()) : 0;
617 ((rule & SIMRecords.SPN_RULE_SHOW_PLMN)
629 // EXTRA_SHOW_SPN = depending on IccRecords rule
633 && ((rule & SIMRecords.SPN_RULE_SHOW_SPN)
650 " sending intent rule=" + rule +
850 * There are exceptions for the above rule.
/frameworks/base/core/java/android/content/res/
H A DResources.java324 NativePluralRules rule = getPluralRule();
326 attrForQuantityCode(rule.quantityForInt(quantity)));
336 + " item=" + stringForQuantityCode(rule.quantityForInt(quantity)));

Completed in 4501 milliseconds