/frameworks/base/tools/split-select/ |
D | TestRules.cpp | 28 Rule rule; in EqRule() local 29 rule.op = Rule::EQUALS; in EqRule() 30 rule.key = key; in EqRule() 31 rule.longArgs.add(value); in EqRule() 32 return rule; in EqRule() 36 Rule rule; in GtRule() local 37 rule.op = Rule::GREATER_THAN; in GtRule() 38 rule.key = key; in GtRule() 39 rule.longArgs.add(value); in GtRule() 40 return rule; in GtRule() [all …]
|
D | Rule.cpp | 177 sp<Rule> Rule::simplify(sp<Rule> rule) { in simplify() argument 178 if (rule->op != AND_SUBRULES && rule->op != OR_SUBRULES) { in simplify() 179 return rule; in simplify() 183 newSubrules.setCapacity(rule->subrules.size()); in simplify() 184 const size_t subruleCount = rule->subrules.size(); in simplify() 186 sp<Rule> simplifiedRule = simplify(rule->subrules.editItemAt(i)); in simplify() 188 if (simplifiedRule->op == rule->op) { in simplify() 202 rule->subrules = newSubrules; in simplify() 203 return rule; in simplify()
|
D | Rule_test.cpp | 33 Rule rule(AndRule() in TEST() local 71 std::string result(rule.toJson().string()); in TEST() 78 sp<Rule> rule = new Rule(AndRule() in TEST() local 82 EXPECT_RULES_EQ(Rule::simplify(rule), EqRule(Rule::SDK_VERSION, 7)); in TEST() 86 sp<Rule> rule = new Rule(AndRule() in TEST() local 93 EXPECT_RULES_EQ(Rule::simplify(rule), in TEST()
|
D | SplitSelector.cpp | 76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); in getRules() local 77 if (rule != NULL) { in getRules() 78 rules.add(splits[j], rule); in getRules()
|
D | SplitSelector_test.cpp | 59 sp<Rule> rule = rules[idx]; in TEST() local 60 ASSERT_TRUE(rule != NULL); in TEST() 69 EXPECT_RULES_EQ(rule, expectedRule); in TEST()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMixingRule.java | 100 AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion() argument 103 mRule = rule; in AudioMixMatchCriterion() 106 AudioMixMatchCriterion(Integer intProp, int rule) { in AudioMixMatchCriterion() argument 109 mRule = rule; in AudioMixMatchCriterion() 148 private static boolean isValidSystemApiRule(int rule) { in isValidSystemApiRule() argument 150 switch (rule) { in isValidSystemApiRule() 159 private static boolean isValidAttributesSystemApiRule(int rule) { in isValidAttributesSystemApiRule() argument 161 switch (rule) { in isValidAttributesSystemApiRule() 170 private static boolean isValidRule(int rule) { in isValidRule() argument 171 final int match_rule = rule & ~RULE_EXCLUSION_MASK; in isValidRule() [all …]
|
D | AudioMix.java | 52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() argument 54 mRule = rule; in AudioMix() 57 mMixType = rule.getTargetMixType(); in AudioMix() 202 public Builder(AudioMixingRule rule) in Builder() argument 204 if (rule == null) { in Builder() 207 mRule = rule; in Builder() 217 Builder setMixingRule(AudioMixingRule rule) in setMixingRule() argument 219 if (rule == null) { in setMixingRule() 222 mRule = rule; in setMixingRule()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeConditions.java | 120 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) { in evaluateRule() argument 121 if (rule == null || rule.conditionId == null) return; in evaluateRule() 122 final Uri id = rule.conditionId; in evaluateRule() 127 rule.component = sp.getComponent(); in evaluateRule() 132 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component); in evaluateRule() 135 mConditionProviders.ensureRecordExists(rule.component, id, cp); in evaluateRule() 138 if (rule.component == null) { in evaluateRule() 139 Log.w(TAG, "No component found for automatic rule: " + rule.conditionId); in evaluateRule() 140 rule.enabled = false; in evaluateRule() 147 if (mConditionProviders.subscribeIfNecessary(rule.component, rule.conditionId)) { in evaluateRule() [all …]
|
D | ZenModeHelper.java | 255 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules() 256 if (canManageAutomaticZenRule(rule)) { in getZenRules() 257 rules.add(rule); in getZenRules() 265 ZenRule rule; in getAutomaticZenRule() local 268 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule() 270 if (rule == null) return null; in getAutomaticZenRule() 271 if (canManageAutomaticZenRule(rule)) { in getAutomaticZenRule() 272 return createAutomaticZenRule(rule); in getAutomaticZenRule() 304 ZenRule rule = new ZenRule(); in addAutomaticZenRule() local 305 populateZenRule(automaticZenRule, rule, true); in addAutomaticZenRule() [all …]
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | IntentFirewall.java | 163 Rule rule = candidateRules.get(i); in checkIntent() local 164 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType, in checkIntent() 166 block |= rule.getBlock(); in checkIntent() 167 log |= rule.getLog(); in checkIntent() 336 Rule rule = new Rule(); in readRules() local 343 rule.readFromXml(parser); in readRules() 349 rules.add(rule); in readRules() 373 Rule rule = rules.get(ruleIndex); in readRules() local 374 for (int i=0; i<rule.getIntentFilterCount(); i++) { in readRules() 375 resolver.addFilter(rule.getIntentFilter(i)); in readRules() [all …]
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 249 final String rule = allRules.valueAt(i); in diff() local 250 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null; in diff() 251 final ZenRule toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null; in diff() 252 ZenRule.appendDiff(d, "automaticRule[" + rule + "]", fromRule, toRule); in diff() 286 private static boolean isValidManualRule(ZenRule rule) { in isValidManualRule() argument 287 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule); in isValidManualRule() 290 private static boolean isValidAutomaticRule(ZenRule rule) { in isValidAutomaticRule() argument 291 return rule != null && !TextUtils.isEmpty(rule.name) && Global.isValidZenMode(rule.zenMode) in isValidAutomaticRule() 292 && rule.conditionId != null && sameCondition(rule); in isValidAutomaticRule() 295 private static boolean sameCondition(ZenRule rule) { in sameCondition() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRules.java | 559 private static AccessRule parseRefArdo(String rule) { in parseRefArdo() argument 560 log("Got rule: " + rule); in parseRefArdo() 567 while (!rule.isEmpty()) { in parseRefArdo() 568 if (rule.startsWith(TAG_REF_DO)) { in parseRefArdo() 570 rule = refDo.parse(rule, false); in parseRefArdo() 591 } else if (rule.startsWith(TAG_AR_DO)) { in parseRefArdo() 593 rule = arDo.parse(rule, false); in parseRefArdo()
|
/frameworks/data-binding/ |
D | build.gradle | 240 // rule to repackage antlr to new package 241 rule pattern: 'org.antlr.**', result: 'com.google.repacked.antlr.@1' 242 … rule pattern: 'com.tunnelvisionlabs.**', result: 'com.google.repacked.tunnelvision.@1' 243 rule pattern: 'org.abego.treelayout.**', result: 'com.google.repacked.treelayout.@1' 244 // rule to repackage commons 245 rule pattern: 'org.apache.**', result: 'com.google.repacked.apache.@1' 246 rule pattern: 'kotlin.**', result: 'com.google.repacked.kotlin.@1'
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 476 for (ZenModeConfig.ZenRule rule : rules) { in getAutomaticZenRules() 477 ruleMap.put(rule.id, new AutomaticZenRule(rule.name, rule.component, in getAutomaticZenRules() 478 rule.conditionId, zenModeToInterruptionFilter(rule.zenMode), rule.enabled, in getAutomaticZenRules() 479 rule.creationTime)); in getAutomaticZenRules()
|
/frameworks/base/tools/apilint/ |
D | apilint.py | 209 def __init__(self, sig, clazz, detail, error, rule, msg): argument 212 self.rule = rule 216 self.head = "Error %s" % (rule) if rule else "Error" 219 self.head = "Warning %s" % (rule) if rule else "Warning" 242 def _fail(clazz, detail, error, rule, msg): argument 249 failures[sig] = Failure(sig, clazz, detail, error, rule, msg) 252 def warn(clazz, detail, rule, msg): argument 253 _fail(clazz, detail, False, rule, msg) 255 def error(clazz, detail, rule, msg): argument 256 _fail(clazz, detail, True, rule, msg)
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 2101 final String rule = allow ? "allow" : "deny"; in setFirewallInterfaceRule() local 2103 mConnector.execute("firewall", "set_interface_rule", iface, rule); in setFirewallInterfaceRule() 2113 final String rule = allow ? "allow" : "deny"; in setFirewallEgressSourceRule() local 2115 mConnector.execute("firewall", "set_egress_source_rule", addr, rule); in setFirewallEgressSourceRule() 2125 final String rule = allow ? "allow" : "deny"; in setFirewallEgressDestRule() local 2127 mConnector.execute("firewall", "set_egress_dest_rule", addr, port, rule); in setFirewallEgressDestRule() 2258 int rule = rules[index]; in setFirewallUidRules() local 2259 updateFirewallUidRuleLocked(chain, uid, rule); in setFirewallUidRules() 2260 newRules.put(uid, rule); in setFirewallUidRules() 2297 public void setFirewallUidRule(int chain, int uid, int rule) { in setFirewallUidRule() argument [all …]
|
/frameworks/base/docs/html/training/testing/integration-testing/ |
D | service-testing.jd | 56 <a href="{@docRoot}reference/android/support/test/rule/ServiceTestRule.html">ServiceTestRule</a> 57 class is a JUnit 4 rule that starts your service before your unit test methods 58 run, and shuts down the service after tests complete. By using this test rule, you ensure that the 66 <a href="{@docRoot}reference/android/support/test/rule/ServiceTestRule.html">ServiceTestRule</a> 93 <a href="{@docRoot}reference/android/support/test/rule/ServiceTestRule.html">ServiceTestRule</a>
|
/frameworks/av/media/libmedia/ |
D | AudioPolicy.cpp | 29 uint32_t rule) in AudioMixMatchCriterion() argument 30 : mRule(rule) in AudioMixMatchCriterion()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagLayouts.inc | 21 "Illegal section mapping rule: %0 -> %1. (conflict with %2 -> %3)", 22 "Illegal section mapping rule: %0 -> %1. (conflict with %2 -> %3)")
|
/frameworks/base/core/java/ |
D | jarjar-rules.txt | 1 rule org.apache.commons com.android.internal.apache.commons
|
/frameworks/base/proto/ |
D | jarjar-rules.txt | 1 rule com.google.protobuf.nano.** com.android.framework.protobuf.nano.@1
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | EventRecurrenceTest.java | 871 for (String rule : GOOD_RRULES) { in testBasicParse() 873 recur.parse(rule); in testBasicParse() 876 for (String rule : BAD_RRULES) { in testBasicParse() 881 recur.parse(rule); in testBasicParse() 886 assertTrue("Expected throw on " + rule, didThrow); in testBasicParse()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | Layout.java | 170 int rule = mBuilder.isNavBarVertical() ? START_OF : ABOVE; in createContentFrame() local 172 params.addRule(rule, getId(ID_NAV_BAR)); in createContentFrame() 245 int rule = mBuilder.isNavBarVertical() ? START_OF : ABOVE; in createActionBar() local 247 layoutParams.addRule(rule, getId(ID_NAV_BAR)); in createActionBar()
|
/frameworks/support/v4/tests/java/android/support/v4/ |
D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.ActivityTestRule;
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.ActivityTestRule;
|