Home
last modified time | relevance | path

Searched defs:rule (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleBinaryParserTest.java116 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing() local
155 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing() local
200 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing() local
248 ByteBuffer rule = in testBinaryString_validCompoundFormula_orConnector_noIndexing() local
287 ByteBuffer rule = in testBinaryString_validAtomicFormula_stringValue_noIndexing() local
319 ByteBuffer rule = in testBinaryString_validAtomicFormula_hashedValue_noIndexing() local
351 ByteBuffer rule = in testBinaryString_validAtomicFormula_integerValue_noIndexing() local
379 ByteBuffer rule = in testBinaryString_validAtomicFormula_booleanValue_noIndexing() local
406 ByteBuffer rule = in testBinaryString_invalidAtomicFormula_noIndexing() local
420 ByteBuffer rule = ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length); in testBinaryString_withNoRuleList_noIndexing() local
[all …]
DRuleIndexingControllerTest.java146 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in verifyIndexRangeSearchIsCorrect_noIndexesAvailable() local
176 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in verifyIndexingFileIsCorrupt() local
199 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in obtainDefaultIndexingMapForTest() local
/frameworks/base/tools/split-select/
DTestRules.cpp28 Rule rule; in EqRule() local
36 Rule rule; in GtRule() local
44 Rule rule; in LtRule() local
52 Rule rule; in ContainsAnyRule() local
60 Rule rule; in ContainsAnyRule() local
69 Rule rule; in AlwaysTrue() local
DRule_test.cpp33 Rule rule(AndRule() in TEST() local
78 sp<Rule> rule = new Rule(AndRule() in TEST() local
86 sp<Rule> rule = new Rule(AndRule() in TEST() local
DSplitSelector_test.cpp59 sp<Rule> rule = rules[idx]; in TEST() local
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMixingRule.java121 AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion()
127 AudioMixMatchCriterion(Integer intProp, int rule) { in AudioMixMatchCriterion()
254 private static boolean isValidSystemApiRule(int rule) { in isValidSystemApiRule()
266 private static boolean isValidAttributesSystemApiRule(int rule) { in isValidAttributesSystemApiRule()
277 private static boolean isValidRule(int rule) { in isValidRule()
290 private static boolean isPlayerRule(int rule) { in isPlayerRule()
301 private static boolean isRecorderRule(int rule) { in isRecorderRule()
348 public Builder addRule(AudioAttributes attrToMatch, int rule) in addRule()
376 public Builder excludeRule(AudioAttributes attrToMatch, int rule) in excludeRule()
398 public Builder addMixRule(int rule, Object property) throws IllegalArgumentException { in addMixRule()
[all …]
DAudioMix.java61 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix()
291 public Builder(AudioMixingRule rule) in Builder()
306 Builder setMixingRule(AudioMixingRule rule) in setMixingRule()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java66 Rule rule = in testEvaluateRules_noMatchedRules_allow() local
136 Rule rule = new Rule( in testEvaluateRules_ruleWithNot_deny() local
155 Rule rule = in testEvaluateRules_ruleWithIntegerOperators_deny() local
170 Rule rule = new Rule( in testEvaluateRules_validForm_deny() local
193 Rule rule = new Rule( in testEvaluateRules_orRules() local
230 Rule rule = new Rule(compoundFormula, Rule.DENY); in testEvaluateRules_compoundFormulaWithNot_deny() local
/frameworks/base/services/core/java/com/android/server/policy/
DKeyCombinationManager.java102 void addRule(TwoKeysCombinationRule rule) { in addRule()
152 forAllActiveRules((rule) -> { in interceptKey() argument
170 final TwoKeysCombinationRule rule = mActiveRules.get(index); in interceptKey() local
218 final TwoKeysCombinationRule rule = rules.get(index); in forAllRules() local
229 final TwoKeysCombinationRule rule = mActiveRules.get(index); in forAllActiveRules() local
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DStaticMockFixtureRuleTest.java121 StaticMockFixtureRule rule = new StaticMockFixtureRule(mA1, mB1) { in testRuleWorksWithExplicitFixtures() local
159 StaticMockFixtureRule rule = new StaticMockFixtureRule(mSupplyA, mSupplyB) { in testRuleWorksWithFixtureSuppliers() local
201 StaticMockFixtureRule rule = new StaticMockFixtureRule(mA1, mB1) { in testTearDownOnSkippedTests() local
232 StaticMockFixtureRule rule = new StaticMockFixtureRule(mA1, mB1) { in testTearDownOnFailedTests() local
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
DRuleBinarySerializerTest.java156 Rule rule = in testBinaryStream_serializeValidCompoundFormula() local
221 Rule rule = in testBinaryString_serializeValidCompoundFormula_notConnector() local
261 Rule rule = in testBinaryString_serializeValidCompoundFormula_andConnector() local
311 Rule rule = in testBinaryString_serializeValidCompoundFormula_orConnector() local
360 Rule rule = in testBinaryString_serializeValidAtomicFormula_stringValue() local
393 Rule rule = in testBinaryString_serializeValidAtomicFormula_hashedValue() local
427 Rule rule = in testBinaryString_serializeValidAtomicFormula_integerValue() local
456 Rule rule = in testBinaryString_serializeValidAtomicFormula_booleanValue() local
484 Rule rule = new Rule(invalidFormula, Rule.DENY); in testBinaryString_serializeInvalidFormulaType() local
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DRuleTest.java70 Rule rule = new Rule(compoundFormula, Rule.DENY); in testToString() local
93 Rule rule = in testParcelUnparcel() local
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java191 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml() local
239 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_pkg_component() local
264 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_pkg_configActivity() local
288 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_getPkg_nullPkg() local
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp29 uint32_t rule) in AudioMixMatchCriterion()
153 const uint32_t rule = match ? RULE_MATCH_UID : RULE_EXCLUDE_UID; in hasUidRule() local
187 const uint32_t rule = match ? RULE_MATCH_USERID : RULE_EXCLUDE_USERID; in hasUserIdRule() local
DPolicyAidlConversion.cpp143 uint32_t* rule) { in aidl2legacy_AudioMixMatchCriterionValue()
177 uint32_t rule) { in legacy2aidl_AudioMixMatchCriterionValue()
219 uint32_t rule = legacy.mRule; in legacy2aidl_AudioMixMatchCriterion() local
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java166 Rule rule = candidateRules.get(i); in checkIntent() local
339 Rule rule = new Rule(); in readRules() local
376 Rule rule = rules.get(ruleIndex); in readRules() local
381 resolver.addComponentFilter(rule.getComponentFilter(i), rule); in readRules() local
490 private final Rule rule; field in IntentFirewall.FirewallIntentFilter
492 public FirewallIntentFilter(Rule rule) { in FirewallIntentFilter()
537 public void addComponentFilter(ComponentName componentName, Rule rule) { in addComponentFilter()
/frameworks/base/tools/apilint/
Ddeprecated_at_birth.py226 def __init__(self, sig, clazz, detail, error, rule, msg): argument
259 def _fail(clazz, detail, error, rule, msg): argument
269 def warn(clazz, detail, rule, msg): argument
272 def error(clazz, detail, rule, msg): argument
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp72 for (const AnnotationRule& rule : sAnnotationRules) { in AppendCommentLine() local
143 for (const AnnotationRule& rule : sAnnotationRules) { in Print() local
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeConditions.java123 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, ComponentName trigger, in evaluateRule()
175 private boolean updateSnoozing(ZenRule rule) { in updateSnoozing()
DZenModeHelper.java298 ZenRule rule; in getAutomaticZenRule() local
343 ZenRule rule = new ZenRule(); in addAutomaticZenRule() local
364 ZenModeConfig.ZenRule rule; in updateAutomaticZenRule() local
420 ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i)); in removeAutomaticZenRules() local
478 private boolean ruleMatches(Uri id, Condition condition, ZenRule rule) { in ruleMatches()
485 private boolean updateSnoozing(ZenRule rule) { in updateSnoozing()
509 public boolean canManageAutomaticZenRule(ZenRule rule) { in canManageAutomaticZenRule()
550 private boolean isSystemRule(AutomaticZenRule rule) { in isSystemRule()
590 private void populateZenRule(String pkg, AutomaticZenRule automaticZenRule, ZenRule rule, in populateZenRule()
614 protected AutomaticZenRule createAutomaticZenRule(ZenRule rule) { in createAutomaticZenRule()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java204 Rule rule = in updateRuleSet_notAuthorized() local
223 Rule rule = in updateRuleSet_notSystemApp() local
242 Rule rule = in updateRuleSet_authorized() local
485 Rule rule = new Rule(IntegrityFormula.Application.packageNameEquals("package"), Rule.DENY); in getCurrentRules() local
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/
DServiceEntitlementTest.java44 public final MockitoRule rule = MockitoJUnit.rule(); field in ServiceEntitlementTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DSidefpsControllerTest.kt60 var rule = MockitoJUnit.rule() variable
/frameworks/opt/car/services/tests/src/com/android/internal/car/
DCarDevicePolicySafetyCheckerTest.java45 public final MockitoRule rule = MockitoJUnit.rule(); field in CarDevicePolicySafetyCheckerTest
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageManagerServiceHibernationTests.kt54 val rule = MockSystemRule() constant

123