/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 | 107 AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion() argument 110 mRule = rule; in AudioMixMatchCriterion() 113 AudioMixMatchCriterion(Integer intProp, int rule) { in AudioMixMatchCriterion() argument 116 mRule = rule; in AudioMixMatchCriterion() 200 private static boolean isValidSystemApiRule(int rule) { in isValidSystemApiRule() argument 202 switch (rule) { in isValidSystemApiRule() 211 private static boolean isValidAttributesSystemApiRule(int rule) { in isValidAttributesSystemApiRule() argument 213 switch (rule) { in isValidAttributesSystemApiRule() 222 private static boolean isValidRule(int rule) { in isValidRule() argument 223 final int match_rule = rule & ~RULE_EXCLUSION_MASK; in isValidRule() [all …]
|
D | AudioMix.java | 62 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() argument 64 mRule = rule; in AudioMix() 67 mMixType = rule.getTargetMixType(); in AudioMix() 282 public Builder(AudioMixingRule rule) in Builder() argument 284 if (rule == null) { in Builder() 287 mRule = rule; in Builder() 297 Builder setMixingRule(AudioMixingRule rule) in setMixingRule() argument 299 if (rule == null) { in setMixingRule() 302 mRule = rule; in setMixingRule()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeConditions.java | 123 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, ComponentName trigger, in evaluateRule() argument 125 if (rule == null || rule.conditionId == null) return; in evaluateRule() 126 if (rule.configurationActivity != null) return; in evaluateRule() 127 final Uri id = rule.conditionId; in evaluateRule() 132 rule.component = sp.getComponent(); in evaluateRule() 138 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component); in evaluateRule() 141 mConditionProviders.ensureRecordExists(rule.component, id, cp); in evaluateRule() 145 if (rule.component == null && rule.enabler == null) { in evaluateRule() 146 Log.w(TAG, "No component found for automatic rule: " + rule.conditionId); in evaluateRule() 147 rule.enabled = false; in evaluateRule() [all …]
|
D | ZenModeHelper.java | 269 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules() 270 if (canManageAutomaticZenRule(rule)) { in getZenRules() 271 rules.add(rule); in getZenRules() 279 ZenRule rule; in getAutomaticZenRule() local 282 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule() 284 if (rule == null) return null; in getAutomaticZenRule() 285 if (canManageAutomaticZenRule(rule)) { in getAutomaticZenRule() 286 return createAutomaticZenRule(rule); in getAutomaticZenRule() 323 ZenRule rule = new ZenRule(); in addAutomaticZenRule() local 324 populateZenRule(automaticZenRule, rule, true); in addAutomaticZenRule() [all …]
|
/frameworks/opt/telephony/ |
D | jarjar-rules-shared.txt | 1 rule android.net.NetworkFactory* com.android.internal.telephony.NetworkFactory@1 2 rule android.os.RegistrantList* com.android.internal.telephony.RegistrantList@1 3 rule android.os.Registrant* com.android.internal.telephony.Registrant@1 4 rule android.hidl.** android.internal.hidl.@1 5 rule android.sysprop.** android.internal.telephony.sysprop.@1 6 rule android.util.LocalLog* com.android.internal.telephony.LocalLog@1 7 rule android.util.TimeUtils* com.android.internal.telephony.TimeUtils@1 8 rule com.android.internal.os.SomeArgs* com.android.internal.telephony.SomeArgs@1 9 rule com.android.internal.util.AsyncChannel* com.android.internal.telephony.AsyncChannel@1 10 rule com.android.internal.util.AsyncService* com.android.internal.telephony.AsyncService@1 [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 159 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml() local 160 rule.configurationActivity = new ComponentName("a", "a"); in testRuleXml() 161 rule.component = new ComponentName("a", "b"); in testRuleXml() 162 rule.conditionId = new Uri.Builder().scheme("hello").build(); in testRuleXml() 163 rule.condition = new Condition(rule.conditionId, "", Condition.STATE_TRUE); in testRuleXml() 164 rule.enabled = true; in testRuleXml() 165 rule.creationTime = 123; in testRuleXml() 166 rule.id = "id"; in testRuleXml() 167 rule.zenMode = Settings.Global.ZEN_MODE_ALARMS; in testRuleXml() 168 rule.modified = true; in testRuleXml() [all …]
|
/frameworks/base/packages/Tethering/ |
D | jarjar-rules.txt | 7 rule com.android.internal.util.BitUtils* com.android.networkstack.tethering.util.BitUtils@1 8 rule com.android.internal.util.IndentingPrintWriter.java* com.android.networkstack.tethering.util.I… 9 rule com.android.internal.util.IState.java* com.android.networkstack.tethering.util.IState.java@1 10 rule com.android.internal.util.MessageUtils* com.android.networkstack.tethering.util.MessageUtils@1 11 rule com.android.internal.util.State* com.android.networkstack.tethering.util.State@1 12 rule com.android.internal.util.StateMachine* com.android.networkstack.tethering.util.StateMachine@1 13 rule com.android.internal.util.TrafficStatsConstants* com.android.networkstack.tethering.util.Traff… 15 rule android.util.LocalLog* com.android.networkstack.tethering.util.LocalLog@1 17 rule android.net.shared.Inet4AddressUtils* com.android.networkstack.tethering.shared.Inet4AddressUt… 20 rule com.android.net.module.util.** com.android.networkstack.tethering.util.@1
|
/frameworks/base/packages/Tethering/tests/unit/ |
D | jarjar-rules.txt | 3 rule com.android.internal.util.BitUtils* com.android.networkstack.tethering.util.BitUtils@1 4 rule com.android.internal.util.IndentingPrintWriter.java* com.android.networkstack.tethering.util.I… 5 rule com.android.internal.util.IState.java* com.android.networkstack.tethering.util.IState.java@1 6 rule com.android.internal.util.MessageUtils* com.android.networkstack.tethering.util.MessageUtils@1 7 rule com.android.internal.util.State* com.android.networkstack.tethering.util.State@1 8 rule com.android.internal.util.StateMachine* com.android.networkstack.tethering.util.StateMachine@1 9 rule com.android.internal.util.TrafficStatsConstants* com.android.networkstack.tethering.util.Traff… 11 rule android.util.LocalLog* com.android.networkstack.tethering.util.LocalLog@1
|
/frameworks/libs/net/common/ |
D | jarjar-rules-shared.txt | 2 rule android.net.util.IpRange* com.android.net.module.util.IpRange@1 3 rule android.net.util.MacAddressUtils* com.android.net.module.util.MacAddressUtils@1 4 rule android.net.util.LinkPropertiesUtils* com.android.net.module.util.LinkPropertiesUtils@1 5 rule android.net.util.NetUtils* com.android.net.module.util.NetUtils@1 6 rule android.net.util.nsd.** com.android.net.module.util.nsd.@1 7 rule android.annotation.** com.android.net.module.annotation.@1 8 rule com.android.internal.annotations.** com.android.net.module.annotation.@1
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 240 @NonNull final IpServer ipServer, @NonNull final Ipv6ForwardingRule rule) { in tetherOffloadRuleAdd() argument 245 mNetd.tetherOffloadRuleAdd(rule.toTetherOffloadRuleParcel()); in tetherOffloadRuleAdd() 258 final int upstreamIfindex = rule.upstreamIfindex; in tetherOffloadRuleAdd() 272 rules.put(rule.address, rule); in tetherOffloadRuleAdd() 281 @NonNull final IpServer ipServer, @NonNull final Ipv6ForwardingRule rule) { in tetherOffloadRuleRemove() argument 286 mNetd.tetherOffloadRuleRemove(rule.toTetherOffloadRuleParcel()); in tetherOffloadRuleRemove() 299 if (rules.remove(rule.address) == null) return; in tetherOffloadRuleRemove() 307 final int upstreamIfindex = rule.upstreamIfindex; in tetherOffloadRuleRemove() 334 for (final Ipv6ForwardingRule rule : new ArrayList<Ipv6ForwardingRule>(rules.values())) { in tetherOffloadRuleClear() 335 tetherOffloadRuleRemove(ipServer, rule); in tetherOffloadRuleClear() [all …]
|
/frameworks/libs/net/common/tests/unit/ |
D | jarjar-rules.txt | 2 rule android.net.util.IpRange* com.android.net.module.util.IpRange@1 3 rule android.net.util.MacAddressUtils* com.android.net.module.util.MacAddressUtils@1 4 rule android.net.util.LinkPropertiesUtils* com.android.net.module.util.LinkPropertiesUtils@1 5 rule android.net.util.NetUtils* com.android.net.module.util.NetUtils@1 6 rule android.net.util.nsd.** com.android.net.module.util.nsd.@1
|
/frameworks/base/tools/aapt2/java/ |
D | AnnotationProcessor.cpp | 71 for (const AnnotationRule& rule : sAnnotationRules) { in AppendCommentLine() local 72 std::string::size_type idx = comment.find(rule.doc_str.data()); in AppendCommentLine() 74 annotation_bit_mask_ |= rule.bit_mask; in AppendCommentLine() 75 comment.erase(comment.begin() + idx, comment.begin() + idx + rule.doc_str.size()); in AppendCommentLine() 129 for (const AnnotationRule& rule : sAnnotationRules) { in Print() local 130 if (annotation_bit_mask_ & rule.bit_mask) { in Print() 131 printer->Println(rule.annotation); in Print()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierResolver.java | 392 public void setTestOverrideCarrierPriviledgeRule(String rule) { in setTestOverrideCarrierPriviledgeRule() argument 393 logd("[setTestOverrideCarrierPriviledgeRule]: " + rule); in setTestOverrideCarrierPriviledgeRule() 394 mTestOverrideCarrierPriviledgeRule = rule; in setTestOverrideCarrierPriviledgeRule() 558 private CarrierMatchingRule(CarrierMatchingRule rule) { in CarrierMatchingRule() argument 559 mccMnc = rule.mccMnc; in CarrierMatchingRule() 560 imsiPrefixPattern = rule.imsiPrefixPattern; in CarrierMatchingRule() 561 iccidPrefix = rule.iccidPrefix; in CarrierMatchingRule() 562 gid1 = rule.gid1; in CarrierMatchingRule() 563 gid2 = rule.gid2; in CarrierMatchingRule() 564 plmn = rule.plmn; in CarrierMatchingRule() [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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataEnabledOverride.java | 90 OverrideRule(@NonNull String rule) { in OverrideRule() argument 91 String[] tokens = rule.trim().split("\\s*=\\s*"); in OverrideRule() 94 + rule); in OverrideRule() 103 throw new IllegalArgumentException("Invalid APN type. Rule=" + rule); in OverrideRule() 322 for (String rule : rulesString) { in updateRules() 323 if (!TextUtils.isEmpty(rule)) { in updateRules() 324 mRules.add(new OverrideRule(rule)); in updateRules() 370 for (OverrideRule rule : mRules) { in canSatisfyAnyRule() 371 if (rule.isSatisfiedByConditions(apnType, providedConditions)) { in canSatisfyAnyRule() 433 for (OverrideRule rule : mRules) { in getRules() [all …]
|
/frameworks/base/test-runner/ |
D | jarjar-rules.txt | 1 rule junit.** repackaged.junit.@1 2 rule android.test.** repackaged.android.test.@1 3 rule com.android.internal.util.** repackaged.com.android.internal.util.@1
|
/frameworks/base/test-base/ |
D | jarjar-rules.txt | 1 rule junit.** repackaged.junit.@1 2 rule android.test.** repackaged.android.test.@1 3 rule com.android.internal.util.** repackaged.com.android.internal.util.@1
|
/frameworks/base/tests/TelephonyCommonTests/ |
D | jarjar-rules.txt | 1 rule com.android.internal.telephony.SmsApplication* com.android.internal.telephony.tests.SmsApplica… 2 rule android.telephony.PackageChangeReceiver* com.android.internal.telephony.tests.PackageChangeRec… 3 rule com.android.internal.os.BackgroundThread* com.android.internal.telephony.tests.BackgroundThrea…
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 306 TetherOffloadRuleParcelMatcher(@NonNull Ipv6ForwardingRule rule) { in TetherOffloadRuleParcelMatcher() argument 307 upstreamIfindex = rule.upstreamIfindex; in TetherOffloadRuleParcelMatcher() 308 downstreamIfindex = rule.downstreamIfindex; in TetherOffloadRuleParcelMatcher() 309 address = rule.address; in TetherOffloadRuleParcelMatcher() 310 srcMac = rule.srcMac; in TetherOffloadRuleParcelMatcher() 311 dstMac = rule.dstMac; in TetherOffloadRuleParcelMatcher() 330 private TetherOffloadRuleParcel matches(@NonNull Ipv6ForwardingRule rule) { in matches() argument 331 return argThat(new TetherOffloadRuleParcelMatcher(rule)); in matches() 354 final Ipv6ForwardingRule rule = buildTestForwardingRule(mobileIfIndex, NEIGH_A, MAC_A); in testSetDataLimit() local 356 coordinator.tetherOffloadRuleAdd(mIpServer, rule); in testSetDataLimit() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | XmlCompatVersioner.cpp | 55 const ApiVersion& src_attr_version, const IDegradeRule* rule, in ProcessRule() argument 86 if (rule != nullptr) { in ProcessRule() 87 for (const DegradeResult& result : rule->Degrade(src_el, src_attr, out_string_pool)) { in ProcessRule() 121 auto rule = rules_->find(attr_resid); in ProcessDoc() local 122 ProcessRule(el, attr, attr_version, rule != rules_->end() ? rule->second.get() : nullptr, in ProcessDoc()
|