Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/tests/coretests/src/android/app/
DAutomaticZenRuleTest.java94 AutomaticZenRule rule = new AutomaticZenRule( in testLongFields_inSetters() local
119 AutomaticZenRule rule = new AutomaticZenRule( in testLongInputsFromParcel() local
183 AutomaticZenRule rule = new AutomaticZenRule("name", new ComponentName("pkg", "cps"), null, in constructor_defaultTypeUnknown() local
193 AutomaticZenRule rule = new AutomaticZenRule.Builder("name", in builder_defaultsAreSensible() local
205 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")) in validate_builderWithValidType_succeeds() local
214 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in validate_builderWithoutType_succeeds() local
221 AutomaticZenRule rule = new AutomaticZenRule("rule", new ComponentName("pkg", "cps"), in validate_constructorWithoutType_succeeds() local
230 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in validate_invalidType_throws() local
243 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in setType_invalidType_throws() local
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleBinaryParserTest.java118 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing() local
157 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing() local
202 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing() local
250 ByteBuffer rule = in testBinaryString_validCompoundFormula_orConnector_noIndexing() local
289 ByteBuffer rule = in testBinaryString_validAtomicFormula_stringValue_noIndexing() local
321 ByteBuffer rule = in testBinaryString_validAtomicFormula_hashedValue_noIndexing() local
355 ByteBuffer rule = in testBinaryString_validAtomicFormulaWithCertificateLineage() local
387 ByteBuffer rule = in testBinaryString_validAtomicFormula_integerValue_noIndexing() local
415 ByteBuffer rule = in testBinaryString_validAtomicFormula_booleanValue_noIndexing() local
442 ByteBuffer rule = in testBinaryString_invalidAtomicFormula_noIndexing() local
[all …]
DRuleIndexingControllerTest.java150 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in verifyIndexRangeSearchIsCorrect_noIndexesAvailable() local
181 ByteBuffer rule = ByteBuffer.allocate(stringBytes.length); in verifyIndexingFileIsCorrupt() local
204 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
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMixingRule.java146 public AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion()
153 public AudioMixMatchCriterion(Integer intProp, int rule) { in AudioMixMatchCriterion()
377 private static boolean isValidSystemApiRule(int rule) { in isValidSystemApiRule()
390 private static boolean isValidAttributesSystemApiRule(int rule) { in isValidAttributesSystemApiRule()
401 private static boolean isValidRule(int rule) { in isValidRule()
415 private static boolean isPlayerRule(int rule) { in isPlayerRule()
426 private static boolean isRecorderRule(int rule) { in isRecorderRule()
473 public Builder addRule(AudioAttributes attrToMatch, int rule) in addRule()
501 public Builder excludeRule(AudioAttributes attrToMatch, int rule) in excludeRule()
524 public Builder addMixRule(int rule, Object property) throws IllegalArgumentException { in addMixRule()
[all …]
DAudioMix.java80 private AudioMix(@NonNull AudioMixingRule rule, @NonNull AudioFormat format, in AudioMix()
208 public void setAudioMixingRule(@NonNull AudioMixingRule rule) { in setAudioMixingRule()
398 public Builder(@NonNull AudioMixingRule rule) in Builder()
413 Builder setMixingRule(@NonNull AudioMixingRule rule) in setMixingRule()
611 private int getLoopbackDeviceSystemTypeForAudioMixingRule(AudioMixingRule rule) { in getLoopbackDeviceSystemTypeForAudioMixingRule()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java67 Rule rule = in testEvaluateRules_noMatchedRules_allow() local
137 Rule rule = new Rule( in testEvaluateRules_ruleWithNot_deny() local
156 Rule rule = in testEvaluateRules_ruleWithIntegerOperators_deny() local
171 Rule rule = new Rule( in testEvaluateRules_validForm_deny() local
194 Rule rule = new Rule( in testEvaluateRules_orRules() local
231 Rule rule = new Rule(compoundFormula, Rule.DENY); in testEvaluateRules_compoundFormulaWithNot_deny() local
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java457 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_nullPolicyAndDeviceEffects() local
469 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_policyModified() local
480 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_deviceEffectsModified() local
491 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testWriteToParcel() local
550 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_classic() local
587 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml() local
660 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_weirdEffects() local
682 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_pkg_component() local
696 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_pkg_configActivity() local
709 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_getPkg_nullPkg() local
[all …]
DZenModeHelperTest.java434 ZenModeConfig.ZenRule rule = createCustomAutomaticRule(zenMode, CUSTOM_RULE_ID); in getCustomAutomaticRules() local
1213 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleCustomPolicy_classic() local
1252 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleCustomPolicy() local
1291 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleWithModifiedFields() local
1325 ZenModeConfig.ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, in ruleUidsCached() local
1959 ZenRule rule = rules.get("customRule"); in testReadXml_onModesApi_noUpgrade() local
1998 ZenRule rule = rules.get("customRule"); in testReadXml_upgradeToModesApi_makesCustomPolicies() local
2055 ZenRule rule = rules.get("customRule"); in testReadXml_upgradeToModesApi_fillsInCustomPolicies() local
2119 ZenRule rule = rules.get(defaultId); in testReadXml_upgradeToModesApi_existingDefaultRulesGetCustomPolicy() local
2249 ZenRule rule = rules.get(defaultId); in testDefaultRulesFromConfig_modesApi_getPolicies() local
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DKeyCombinationManager.java135 void addRule(TwoKeysCombinationRule rule) { in addRule()
142 void removeRule(TwoKeysCombinationRule rule) { in removeRule()
198 forAllActiveRules((rule) -> { in interceptKeyLocked() argument
216 final TwoKeysCombinationRule rule = mActiveRules.get(index); in interceptKeyLocked() local
278 final TwoKeysCombinationRule rule = rules.get(index); in forAllRules() local
289 final TwoKeysCombinationRule rule = mActiveRules.get(index); in forAllActiveRules() local
DSingleKeyGestureDetector.java202 void addRule(SingleKeyRule rule) { in addRule()
209 void removeRule(SingleKeyRule rule) { in removeRule()
261 final SingleKeyRule rule = mRules.get(index); in interceptKeyDown() local
440 final SingleKeyRule rule = object.activeRule; in handleMessage() local
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp29 uint32_t rule) in AudioMixMatchCriterion()
162 const uint32_t rule = match ? RULE_MATCH_UID : RULE_EXCLUDE_UID; in hasUidRule() local
196 const uint32_t rule = match ? RULE_MATCH_USERID : RULE_EXCLUDE_USERID; in hasUserIdRule() local
207 const uint32_t rule = match ? RULE_MATCH_USERID : RULE_EXCLUDE_USERID; in hasUserIdRule() local
DPolicyAidlConversion.cpp134 uint32_t* rule) { in aidl2legacy_AudioMixMatchCriterionValue()
173 uint32_t rule) { in legacy2aidl_AudioMixMatchCriterionValue()
218 uint32_t rule = legacy.mRule; in legacy2aidl_AudioMixMatchCriterion() local
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/
DExtendedMockitoRuleTest.java171 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMocksStatic() local
200 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class) in testMocksStatic_multipleClasses() local
229 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMockStatic_ruleAndAnnotation() local
255 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMockStatic_fromEverywhere() local
270 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class).build(); in testSpyStatic() local
299 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class) in testSpyStatic_multipleClasses() local
328 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class).build(); in testSpyStatic_ruleAndAnnotation() local
353 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class).build(); in testSpyStatic_fromEverywhere() local
367 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class) in testMockAndSpyStatic() local
/frameworks/base/core/java/android/service/notification/
DSystemZenRules.java67 public static boolean isSystemOwnedRule(ZenRule rule) { in isSystemOwnedRule()
72 private static void upgradeSystemProviderRule(Context context, ZenRule rule) { in upgradeSystemProviderRule()
94 public static boolean updateTriggerDescription(Context context, ZenRule rule) { in updateTriggerDescription()
109 private static boolean updateTriggerDescription(ZenRule rule, String triggerDescription) { in updateTriggerDescription()
/frameworks/base/ravenwood/junit-stub-src/android/platform/test/ravenwood/
DRavenwoodRuleImpl.java23 public static void init(RavenwoodRule rule) { in init()
27 public static void reset(RavenwoodRule rule) { in reset()
/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/native/services/inputflinger/tests/
DInputTracingTest.cpp236 auto rule = config->add_rules(); in TEST_F() local
257 auto rule = config->add_rules(); in TEST_F() local
278 auto rule = config->add_rules(); in TEST_F() local
322 auto rule = config->add_rules(); in TEST_F() local
352 auto rule = config->add_rules(); in TEST_F() local
412 auto rule = config->add_rules(); in TEST_F() local
466 auto rule = config->add_rules(); in TEST_F() local
667 auto rule = config->add_rules(); in TEST_F() local
677 auto rule = config->add_rules(); in TEST_F() 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/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodSystemServer.java64 public static void init(RavenwoodRule rule) { in init()
84 public static void reset(RavenwoodRule rule) { in reset()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataRetryManagerTest.java190 DataSetupRetryRule rule = new DataSetupRetryRule(ruleString); in testDataSetupRetryRulesParsingFromString() local
260 DataSetupRetryRule rule = new DataSetupRetryRule(ruleString); in testDataSetupRetryRuleMatchingByFailCause() local
270 DataSetupRetryRule rule = new DataSetupRetryRule(ruleString); in testDataSetupRetryRuleMatchingByNetworkCapabilities() local
283 DataSetupRetryRule rule = new DataSetupRetryRule(ruleString); in testDataSetupRetryRuleMatchingByBothFailCauseAndNetworkCapabilities() local
777 DataHandoverRetryRule rule = new DataHandoverRetryRule(ruleString); in testDataHandoverRetryRulesParsingFromString() local
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java181 Rule rule = candidateRules.get(i); in checkIntent() local
354 Rule rule = new Rule(); in readRules() local
391 Rule rule = rules.get(ruleIndex); in readRules() local
396 resolver.addComponentFilter(rule.getComponentFilter(i), rule); in readRules() local
505 private final Rule rule; field in IntentFirewall.FirewallIntentFilter
507 public FirewallIntentFilter(Rule rule) { in FirewallIntentFilter()
553 public void addComponentFilter(ComponentName componentName, Rule rule) { in addComponentFilter()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceDemoModeTest.kt41 val rule = MockSystemRule() constant in com.android.server.pm.UserManagerServiceDemoModeTest
/frameworks/base/tools/apilint/
Ddeprecated_at_birth.py227 def __init__(self, sig, clazz, detail, error, rule, msg): argument
260 def _fail(clazz, detail, error, rule, msg): argument
270 def warn(clazz, detail, rule, msg): argument
273 def error(clazz, detail, rule, msg): argument

1234567