/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_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()
|
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()
|
/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 | 257 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules() 258 if (canManageAutomaticZenRule(rule)) { in getZenRules() 259 rules.add(rule); in getZenRules() 267 ZenRule rule; in getAutomaticZenRule() local 270 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule() 272 if (rule == null) return null; in getAutomaticZenRule() 273 if (canManageAutomaticZenRule(rule)) { in getAutomaticZenRule() 274 return createAutomaticZenRule(rule); in getAutomaticZenRule() 306 ZenRule rule = new ZenRule(); in addAutomaticZenRule() local 307 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/support/transition/tests/src/android/support/transition/ |
D | SceneTest.java | 35 TransitionActivity activity = rule.getActivity(); in testGetSceneRoot() 44 TransitionActivity activity = rule.getActivity(); in testSceneWithViewGroup() 64 TransitionActivity activity = rule.getActivity(); in testSceneWithView() 83 TransitionActivity activity = rule.getActivity(); in testEnterAction() 94 TransitionActivity activity = rule.getActivity(); in testExitAction() 106 TransitionActivity activity = rule.getActivity(); in testExitAction_withoutEnter() 117 TransitionActivity activity = rule.getActivity(); in testGetSceneForLayout_cache()
|
D | BaseTest.java | 19 import android.support.test.rule.ActivityTestRule; 30 public final ActivityTestRule<TransitionActivity> rule; field in BaseTest 33 rule = new ActivityTestRule(TransitionActivity.class); in BaseTest()
|
D | FadeTest.java | 44 mRoot = rule.getActivity().getRoot(); in setUp() 45 mView = new View(rule.getActivity()); in setUp()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 253 final String rule = allRules.valueAt(i); in diff() local 254 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null; in diff() 255 final ZenRule toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null; in diff() 256 ZenRule.appendDiff(d, "automaticRule[" + rule + "]", fromRule, toRule); in diff() 290 private static boolean isValidManualRule(ZenRule rule) { in isValidManualRule() argument 291 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule); in isValidManualRule() 294 private static boolean isValidAutomaticRule(ZenRule rule) { in isValidAutomaticRule() argument 295 return rule != null && !TextUtils.isEmpty(rule.name) && Global.isValidZenMode(rule.zenMode) in isValidAutomaticRule() 296 && rule.conditionId != null && sameCondition(rule); in isValidAutomaticRule() 299 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 | 2113 final String rule = allow ? "allow" : "deny"; in setFirewallInterfaceRule() local 2115 mConnector.execute("firewall", "set_interface_rule", iface, rule); in setFirewallInterfaceRule() 2125 final String rule = allow ? "allow" : "deny"; in setFirewallEgressSourceRule() local 2127 mConnector.execute("firewall", "set_egress_source_rule", addr, rule); in setFirewallEgressSourceRule() 2137 final String rule = allow ? "allow" : "deny"; in setFirewallEgressDestRule() local 2139 mConnector.execute("firewall", "set_egress_dest_rule", addr, port, rule); in setFirewallEgressDestRule() 2270 int rule = rules[index]; in setFirewallUidRules() local 2271 updateFirewallUidRuleLocked(chain, uid, rule); in setFirewallUidRules() 2272 newRules.put(uid, rule); in setFirewallUidRules() 2309 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/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/av/media/libmedia/ |
D | AudioPolicy.cpp | 29 uint32_t rule) in AudioMixMatchCriterion() argument 30 : mRule(rule) in AudioMixMatchCriterion()
|
/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()
|