Searched defs:rule (Results 1 - 21 of 21) 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 AudioMixMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule) argument
/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.java66 if (DEBUG) Log.d(TAG, "evaluateConfig: clearing manual rule");
120 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) { argument
121 if (rule == null || rule.conditionId == null) return;
122 final Uri id = rule.conditionId;
127 rule.component = sp.getComponent();
132 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component);
133 if (DEBUG) Log.d(TAG, "Ensure external rule exists: " + (cp != null) + " for " + id);
135 mConditionProviders.ensureRecordExists(rule.component, id, cp);
138 if (rule
172 updateSnoozing(ZenRule rule) argument
181 updateCondition(Uri id, Condition condition, ZenRule rule) argument
[all...]
H A DZenModeHelper.java255 for (ZenRule rule : mConfig.automaticRules.values()) {
256 if (canManageAutomaticZenRule(rule)) {
257 rules.add(rule);
265 ZenRule rule;
268 rule = mConfig.automaticRules.get(id);
270 if (rule == null) return null;
271 if (canManageAutomaticZenRule(rule)) {
272 return createAutomaticZenRule(rule);
298 throw new AndroidRuntimeException("Could not create rule");
301 Log.d(TAG, "addAutomaticZenRule rule
387 canManageAutomaticZenRule(ZenRule rule) argument
408 isSystemRule(AutomaticZenRule rule) argument
431 populateZenRule(AutomaticZenRule automaticZenRule, ZenRule rule, boolean isNew) argument
449 createAutomaticZenRule(ZenRule rule) argument
[all...]
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioMix.java52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, argument
54 mRule = rule;
57 mMixType = rule.getTargetMixType();
198 * @param rule a non-null {@link AudioMixingRule} instance.
202 public Builder(AudioMixingRule rule) argument
204 if (rule == null) {
207 mRule = rule;
213 * @param rule
217 Builder setMixingRule(AudioMixingRule rule) argument
219 if (rule
[all...]
H A DAudioMixingRule.java32 * Here's an example of creating a mixing rule for all media playback:
51 * A rule requiring the usage information of the {@link AudioAttributes} to match.
52 * This mixing rule can be added with {@link Builder#addRule(AudioAttributes, int)} or
59 * A rule requiring the capture preset information of the {@link AudioAttributes} to match.
60 * This mixing rule can be added with {@link Builder#addRule(AudioAttributes, int)} or
67 * A rule requiring the UID of the audio stream to match that specified.
68 * This mixing rule can be added with {@link Builder#addMixRule(int, Object)} where the Object
77 * A rule requiring the usage information of the {@link AudioAttributes} to differ.
83 * A rule requiring the capture preset information of the {@link AudioAttributes} to differ.
89 * A rule requirin
100 AudioMixMatchCriterion(AudioAttributes attributes, int rule) argument
106 AudioMixMatchCriterion(Integer intProp, int rule) argument
148 isValidSystemApiRule(int rule) argument
159 isValidAttributesSystemApiRule(int rule) argument
170 isValidRule(int rule) argument
182 isPlayerRule(int rule) argument
230 addRule(AudioAttributes attrToMatch, int rule) argument
259 excludeRule(AudioAttributes attrToMatch, int rule) argument
281 addMixRule(int rule, Object property) argument
311 excludeMixRule(int rule, Object property) argument
326 checkAddRuleObjInternal(int rule, Object property) argument
365 addRuleInternal(AudioAttributes attrToMatch, Integer intProp, int rule) argument
[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.java121 // Describes a single rule.
510 * Check if all rule bytes have been read from UICC.
550 Rlog.e(LOG_TAG, "Skip unrecognized rule." + refArDo.value);
557 * Parses a single rule.
559 private static AccessRule parseRefArdo(String rule) { argument
560 log("Got rule: " + rule);
567 while (!rule.isEmpty()) {
568 if (rule.startsWith(TAG_REF_DO)) {
570 rule
[all...]
/frameworks/base/core/java/android/service/notification/
H A DZenModeConfig.java249 final String rule = allRules.valueAt(i);
250 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null;
251 final ZenRule toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null;
252 ZenRule.appendDiff(d, "automaticRule[" + rule + "]", fromRule, toRule);
286 private static boolean isValidManualRule(ZenRule rule) { argument
287 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule);
290 private static boolean isValidAutomaticRule(ZenRule rule) { argument
291 return rule !
295 sameCondition(ZenRule rule) argument
509 writeRuleXml(ZenRule rule, XmlSerializer out) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DRelativeLayout.java1389 * Adds a layout rule to be interpreted by the RelativeLayout.
1396 * If the rule is relative to the layout direction (ex.
1399 * {@link #getRule(int)} an absolute rule (ex.
1412 * Adds a layout rule to be interpreted by the RelativeLayout.
1418 * If the rule is relative to the layout direction (ex.
1421 * {@link #getRule(int)} with an absolute rule (ex. {@link #LEFT_OF}.
1432 // If we're removing a relative rule, we'll need to force layout
1445 * Removes a layout rule to be interpreted by the RelativeLayout.
1447 * If the rule is relative to the layout direction (ex.
1451 * {@link #getRule(int)} with an absolute rule (e
1486 isRelativeRule(int rule) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DZenModePanel.java367 private void handleUpdateManualRule(ZenRule rule) { argument
368 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF;
370 final Condition c = rule != null ? rule.condition : null;
818 public void onManualRuleChanged(ZenRule rule) {
819 mHandler.obtainMessage(H.MANUAL_RULE_CHANGED, rule).sendToTarget();
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java2101 final String rule = allow ? "allow" : "deny";
2103 mConnector.execute("firewall", "set_interface_rule", iface, rule);
2113 final String rule = allow ? "allow" : "deny";
2115 mConnector.execute("firewall", "set_egress_source_rule", addr, rule);
2125 final String rule = allow ? "allow" : "deny";
2127 mConnector.execute("firewall", "set_egress_dest_rule", addr, port, rule);
2159 // a UID rule to the firewall, and then disable the firewall - the chains can contain
2160 // the wrong type of rule. In this case, don't close connections that we shouldn't.
2162 // TODO: tighten up this code by ensuring we never set the wrong type of rule, and
2168 // Close sockets for every UID that has a deny rule
2297 setFirewallUidRule(int chain, int uid, int rule) argument
2304 setFirewallUidRuleLocked(int chain, int uid, int rule) argument
2316 updateFirewallUidRuleLocked(int chain, int uid, int rule) argument
2341 getFirewallRuleName(int chain, int rule) argument
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java1302 Slog.w(TAG, "shared quota unsupported; generating rule for each iface");
2836 * permission, since there is no need to change the {@code iptables} rule if the app does not
2865 // First step: define the new rule based on user restrictions and foreground state.
2952 // Dispatch changed rule to existing listeners.
2991 // First step: define the new rule based on user restrictions and foreground state.
3337 private void setUidFirewallRule(int chain, int uid, int rule) { argument
3339 mUidFirewallDozableRules.put(uid, rule);
3341 mUidFirewallStandbyRules.put(uid, rule);
3343 mUidFirewallPowerSaveRules.put(uid, rule);
3347 mNetworkManager.setFirewallUidRule(chain, uid, rule);
[all...]
/frameworks/base/tools/aapt/
H A DResource.cpp2771 // { rule --> { file locations } }
2774 void add(const String8& rule, const String8& where);
2777 void ProguardKeepSet::add(const String8& rule, const String8& where) argument
2779 ssize_t index = rules.indexOfKey(rule);
2781 index = rules.add(rule, SortedVector<String8>());
2807 String8 rule("-keep class ");
2808 rule += className;
2809 rule += " { <init>(...); }";
2817 keep->add(rule, location);
2824 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 476 milliseconds