Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 176) sorted by relevance

12345678

/frameworks/base/wifi/
Djarjar-rules.txt4 rule android.net.DataStallReportParcelable* com.android.wifi.x.@0
5 rule android.net.DhcpResultsParcelable* com.android.wifi.x.@0
6 rule android.net.IIpMemoryStore* com.android.wifi.x.@0
7 rule android.net.IIpMemoryStoreCallbacks* com.android.wifi.x.@0
8 rule android.net.INetd* com.android.wifi.x.@0
9 rule android.net.INetdUnsolicitedEventListener* com.android.wifi.x.@0
10 rule android.net.INetworkStackConnector* com.android.wifi.x.@0
11 rule android.net.InformationElementParcelable* com.android.wifi.x.@0
12 rule android.net.InitialConfigurationParcelable* com.android.wifi.x.@0
13 rule android.net.InterfaceConfigurationParcel* com.android.wifi.x.@0
[all …]
/frameworks/base/tools/split-select/
DTestRules.cpp28 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 …]
DRule.cpp177 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()
DRule_test.cpp33 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()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMixingRule.java122 AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion() argument
125 mRule = rule; in AudioMixMatchCriterion()
128 AudioMixMatchCriterion(Integer intProp, int rule) { in AudioMixMatchCriterion() argument
131 mRule = rule; in AudioMixMatchCriterion()
251 private static boolean isValidSystemApiRule(int rule) { in isValidSystemApiRule() argument
253 switch (rule) { in isValidSystemApiRule()
263 private static boolean isValidAttributesSystemApiRule(int rule) { in isValidAttributesSystemApiRule() argument
265 switch (rule) { in isValidAttributesSystemApiRule()
274 private static boolean isValidRule(int rule) { in isValidRule() argument
275 final int match_rule = rule & ~RULE_EXCLUSION_MASK; in isValidRule()
[all …]
DAudioMix.java62 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() argument
64 mRule = rule; in AudioMix()
67 mMixType = rule.getTargetMixType(); in AudioMix()
292 public Builder(AudioMixingRule rule) in Builder() argument
294 if (rule == null) { in Builder()
297 mRule = rule; in Builder()
307 Builder setMixingRule(AudioMixingRule rule) in setMixingRule() argument
309 if (rule == null) { in setMixingRule()
312 mRule = rule; in setMixingRule()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java123 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 …]
DZenModeHelper.java283 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules()
284 if (canManageAutomaticZenRule(rule)) { in getZenRules()
285 rules.add(rule); in getZenRules()
293 ZenRule rule; in getAutomaticZenRule() local
296 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule()
298 if (rule == null) return null; in getAutomaticZenRule()
299 if (canManageAutomaticZenRule(rule)) { in getAutomaticZenRule()
300 return createAutomaticZenRule(rule); in getAutomaticZenRule()
337 ZenRule rule = new ZenRule(); in addAutomaticZenRule() local
338 populateZenRule(automaticZenRule, rule, true); in addAutomaticZenRule()
[all …]
/frameworks/opt/telephony/
Djarjar-rules-shared.txt1 rule android.net.NetworkFactory* com.android.internal.telephony.NetworkFactory@1
2 rule android.os.BasicShellCommandHandler* com.android.internal.telephony.BasicShellCommandHandler@1
3 rule android.os.RegistrantList* com.android.internal.telephony.RegistrantList@1
4 rule android.os.Registrant* com.android.internal.telephony.Registrant@1
5 rule android.hidl.** android.internal.hidl.@1
6 rule android.sysprop.** android.internal.telephony.sysprop.@1
7 rule android.util.LocalLog* com.android.internal.telephony.LocalLog@1
8 rule android.util.TimeUtils* com.android.internal.telephony.TimeUtils@1
9 rule com.android.internal.os.SomeArgs* com.android.internal.telephony.SomeArgs@1
10 rule com.android.internal.util.AsyncChannel* com.android.internal.telephony.AsyncChannel@1
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleBinaryParserTest.java116 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing() local
118 rule.put(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryStream_validCompoundFormula_noIndexing()
119 rule.put(ruleBytes); in testBinaryStream_validCompoundFormula_noIndexing()
133 binaryParser.parse(RandomAccessObject.ofBytes(rule.array()), NO_INDEXING); in testBinaryStream_validCompoundFormula_noIndexing()
155 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing() local
157 rule.put(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
158 rule.put(ruleBytes); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
171 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
200 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing() local
202 rule.put(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_validCompoundFormula_andConnector_noIndexing()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java189 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml() local
190 rule.configurationActivity = new ComponentName("a", "a"); in testRuleXml()
191 rule.component = new ComponentName("a", "b"); in testRuleXml()
192 rule.conditionId = new Uri.Builder().scheme("hello").build(); in testRuleXml()
193 rule.condition = new Condition(rule.conditionId, "", Condition.STATE_TRUE); in testRuleXml()
194 rule.enabled = true; in testRuleXml()
195 rule.creationTime = 123; in testRuleXml()
196 rule.id = "id"; in testRuleXml()
197 rule.zenMode = Settings.Global.ZEN_MODE_ALARMS; in testRuleXml()
198 rule.modified = true; in testRuleXml()
[all …]
/frameworks/base/packages/Tethering/tests/unit/
Djarjar-rules.txt3 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/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java66 Rule rule = in testEvaluateRules_noMatchedRules_allow() local
75 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_noMatchedRules_allow()
136 Rule rule = new Rule( in testEvaluateRules_ruleWithNot_deny() local
147 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_ruleWithNot_deny()
150 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_ruleWithNot_deny()
155 Rule rule = in testEvaluateRules_ruleWithIntegerOperators_deny() local
162 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_ruleWithIntegerOperators_deny()
165 assertThat(result.getMatchedRules()).containsExactly(rule); in testEvaluateRules_ruleWithIntegerOperators_deny()
170 Rule rule = new Rule( in testEvaluateRules_validForm_deny() local
185 RuleEvaluator.evaluateRules(Collections.singletonList(rule), APP_INSTALL_METADATA); in testEvaluateRules_validForm_deny()
[all …]
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp72 for (const AnnotationRule& rule : sAnnotationRules) { in AppendCommentLine() local
73 std::string::size_type idx = comment.find(rule.doc_str.data()); in AppendCommentLine()
77 std::regex re(rule.doc_str.to_string() + "\\s*\\((.+)\\)"); in AppendCommentLine()
81 if (is_match && rule.bit_mask == AnnotationRule::kSystemApi) { in AppendCommentLine()
82 annotation_parameter_map_[rule.bit_mask] = match_result[1].str(); in AppendCommentLine()
86 annotation_parameter_map_[rule.bit_mask] = ""; in AppendCommentLine()
87 comment.erase(comment.begin() + idx, comment.begin() + idx + rule.doc_str.size()); in AppendCommentLine()
140 for (const AnnotationRule& rule : sAnnotationRules) { in Print() local
141 const auto& it = annotation_parameter_map_.find(rule.bit_mask); in Print()
143 printer->Print(rule.annotation); in Print()
/frameworks/base/services/core/java/com/android/server/integrity/engine/
DRuleEvaluator.java55 .filter(rule -> rule.getFormula().matches(appInstallMetadata)) in evaluateRules()
61 .filter(rule -> rule.getEffect() == FORCE_ALLOW) in evaluateRules()
71 .filter(rule -> rule.getEffect() == DENY) in evaluateRules()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java240 @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/opt/net/ims/
Djarjar-rules-shared.txt1 rule android.os.RegistrantList* com.android.ims.RegistrantList@1
2 rule android.os.Registrant* com.android.ims.Registrant@1
3 rule com.android.internal.os.SomeArgs* com.android.ims.SomeArgs@1
4 rule com.android.internal.util.Preconditions* com.android.ims.Preconditions@1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierResolver.java393 public void setTestOverrideCarrierPriviledgeRule(String rule) { in setTestOverrideCarrierPriviledgeRule() argument
394 logd("[setTestOverrideCarrierPriviledgeRule]: " + rule); in setTestOverrideCarrierPriviledgeRule()
395 mTestOverrideCarrierPriviledgeRule = rule; in setTestOverrideCarrierPriviledgeRule()
559 private CarrierMatchingRule(CarrierMatchingRule rule) { in CarrierMatchingRule() argument
560 mccMnc = rule.mccMnc; in CarrierMatchingRule()
561 imsiPrefixPattern = rule.imsiPrefixPattern; in CarrierMatchingRule()
562 iccidPrefix = rule.iccidPrefix; in CarrierMatchingRule()
563 gid1 = rule.gid1; in CarrierMatchingRule()
564 gid2 = rule.gid2; in CarrierMatchingRule()
565 plmn = rule.plmn; in CarrierMatchingRule()
[all …]
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java166 Rule rule = candidateRules.get(i); in checkIntent() local
167 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType, in checkIntent()
169 block |= rule.getBlock(); in checkIntent()
170 log |= rule.getLog(); in checkIntent()
339 Rule rule = new Rule(); in readRules() local
346 rule.readFromXml(parser); in readRules()
352 rules.add(rule); in readRules()
376 Rule rule = rules.get(ruleIndex); in readRules() local
377 for (int i=0; i<rule.getIntentFilterCount(); i++) { in readRules()
378 resolver.addFilter(rule.getIntentFilter(i)); in readRules()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledOverride.java90 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-base/
Djarjar-rules.txt1 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-runner/
Djarjar-rules.txt1 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/libs/net/common/
Djarjar-rules-shared.txt1 rule android.net.util.** com.android.net.module.util.@1
2 rule android.annotation.** com.android.net.module.annotation.@1
3 rule com.android.internal.annotations.** com.android.net.module.annotation.@1
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DRuleTest.java70 Rule rule = new Rule(compoundFormula, Rule.DENY); in testToString() local
72 assertThat(rule.toString()) in testToString()
93 Rule rule = in testParcelUnparcel() local
104 rule.writeToParcel(p, 0); in testParcelUnparcel()
107 assertThat(Rule.CREATOR.createFromParcel(p)).isEqualTo(rule); in testParcelUnparcel()
/frameworks/base/tests/TelephonyCommonTests/
Djarjar-rules.txt1 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…

12345678