/frameworks/base/core/tests/coretests/src/android/app/ |
D | AutomaticZenRuleTest.java | 93 AutomaticZenRule rule = new AutomaticZenRule( in testLongFields_inSetters() local 117 AutomaticZenRule rule = new AutomaticZenRule( in testLongInputsFromParcel() local 179 AutomaticZenRule rule = new AutomaticZenRule("name", new ComponentName("pkg", "cps"), null, in constructor_defaultTypeUnknown() local 188 AutomaticZenRule rule = new AutomaticZenRule.Builder("name", in builder_defaultsAreSensible() local 199 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")) in validate_builderWithValidType_succeeds() local 207 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in validate_builderWithoutType_succeeds() local 213 AutomaticZenRule rule = new AutomaticZenRule("rule", new ComponentName("pkg", "cps"), in validate_constructorWithoutType_succeeds() local 221 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in validate_invalidType_throws() local 233 AutomaticZenRule rule = new AutomaticZenRule.Builder("rule", Uri.parse("uri")).build(); in setType_invalidType_throws() local
|
/frameworks/base/tools/split-select/ |
D | TestRules.cpp | 28 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
|
D | Rule_test.cpp | 33 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/ |
D | AudioMixingRule.java | 146 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 …]
|
D | AudioMix.java | 80 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/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 488 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_nullPolicyAndDeviceEffects() local 500 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_policyModified() local 511 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testCanBeUpdatedByApp_deviceEffectsModified() local 542 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testBackupRestore() local 618 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testWriteToParcel() local 687 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_classic() local 722 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml() local 807 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_weirdEffects() local 829 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_pkg_component() local 843 ZenModeConfig.ZenRule rule = new ZenModeConfig.ZenRule(); in testRuleXml_pkg_configActivity() local [all …]
|
D | ZenModeHelperTest.java | 442 ZenModeConfig.ZenRule rule = createCustomAutomaticRule(zenMode, CUSTOM_RULE_ID); in getCustomAutomaticRules() local 1235 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleCustomPolicy_classic() local 1273 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleCustomPolicy() local 1311 ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, CUSTOM_RULE_ID); in testProtoWithAutoRuleWithModifiedFields() local 1345 ZenModeConfig.ZenRule rule = createCustomAutomaticRule(ZEN_MODE_IMPORTANT_INTERRUPTIONS, in ruleUidsCached() local 2050 ZenRule rule = rules.get("customRule"); in testReadXml_onModesApi_noUpgrade() local 2088 ZenRule rule = rules.get("customRule"); in testReadXml_upgradeToModesApi_makesCustomPolicies() local 2144 ZenRule rule = rules.get("customRule"); in testReadXml_upgradeToModesApi_fillsInCustomPolicies() local 2207 ZenRule rule = rules.get(defaultId); in testReadXml_upgradeToModesApi_existingDefaultRulesGetCustomPolicy() local 2408 ZenRule rule = rules.get(defaultId); in testDefaultRulesFromConfig_getPolicies() local [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | KeyCombinationManager.java | 135 public void addRule(TwoKeysCombinationRule rule) { in addRule() 142 public 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
|
D | SingleKeyGestureDetector.java | 210 void addRule(SingleKeyRule rule) { in addRule() 217 void removeRule(SingleKeyRule rule) { in removeRule() 269 final SingleKeyRule rule = mRules.get(index); in interceptKeyDown() local 461 final SingleKeyRule rule = object.activeRule; in handleMessage() local
|
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodRunnerState.java | 96 public void enterRavenwoodRule(RavenwoodRule rule) { in enterRavenwoodRule() 100 public void exitRavenwoodRule(RavenwoodRule rule) { in exitRavenwoodRule() 133 private static void pushTestProperties(RavenwoodRule rule) { in pushTestProperties() 138 private static void popTestProperties(RavenwoodRule rule) { in popTestProperties()
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | ExtendedMockitoRuleTest.java | 172 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMocksStatic() local 201 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class) in testMocksStatic_multipleClasses() local 230 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMockStatic_ruleAndAnnotation() local 256 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class).build(); in testMockStatic_fromEverywhere() local 271 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class).build(); in testSpyStatic() local 300 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class) in testSpyStatic_multipleClasses() local 329 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class).build(); in testSpyStatic_ruleAndAnnotation() local 354 ExtendedMockitoRule rule = mBuilder.spyStatic(StaticClass.class).build(); in testSpyStatic_fromEverywhere() local 368 ExtendedMockitoRule rule = mBuilder.mockStatic(StaticClass.class) in testMockAndSpyStatic() local
|
/frameworks/av/media/libaudioclient/ |
D | AudioPolicy.cpp | 29 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
|
D | PolicyAidlConversion.cpp | 134 uint32_t* rule) { in aidl2legacy_AudioMixMatchCriterionValue() 173 uint32_t rule) { in legacy2aidl_AudioMixMatchCriterionValue() 218 uint32_t rule = legacy.mRule; in legacy2aidl_AudioMixMatchCriterion() local
|
/frameworks/base/core/java/android/service/notification/ |
D | SystemZenRules.java | 66 public static boolean isSystemOwnedRule(ZenRule rule) { in isSystemOwnedRule() 70 private static void upgradeSystemProviderRule(Context context, ZenRule rule) { in upgradeSystemProviderRule() 92 public static boolean updateTriggerDescription(Context context, ZenRule rule) { in updateTriggerDescription() 107 private static boolean updateTriggerDescription(ZenRule rule, String triggerDescription) { in updateTriggerDescription()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputTracingTest.cpp | 236 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/ |
D | RuleTest.java | 70 Rule rule = new Rule(compoundFormula, Rule.DENY); in testToString() local 93 Rule rule = in testParcelUnparcel() local
|
/frameworks/base/ravenwood/junit-stub-src/android/platform/test/ravenwood/ |
D | RavenwoodAwareTestRunner.java | 63 static void onRavenwoodRuleEnter(Description description, RavenwoodRule rule) { in onRavenwoodRuleEnter() 66 static void onRavenwoodRuleExit(Description description, RavenwoodRule rule) { in onRavenwoodRuleExit()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | IntentFirewall.java | 181 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/ |
D | UserManagerServiceDemoModeTest.kt | 41 val rule = MockSystemRule() constant
|
/frameworks/base/tools/apilint/ |
D | deprecated_at_birth.py | 227 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
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | DataRetryManagerTest.java | 190 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 776 DataHandoverRetryRule rule = new DataHandoverRetryRule(ruleString); in testDataHandoverRetryRulesParsingFromString() local
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 421 ZenRule rule; in getAutomaticZenRule() local 471 ZenRule rule = new ZenRule(); in addAutomaticZenRule() local 534 AutomaticZenRule rule) { in maybeReplaceDefaultRule() 612 ZenRule rule = newConfig.automaticRules.get(implicitRuleId(callingPkg)); in applyGlobalZenModeAsImplicitZenRule() local 678 ZenRule rule = newConfig.automaticRules.get(implicitRuleId(callingPkg)); in applyGlobalPolicyAsImplicitZenRule() local 751 ZenRule rule = new ZenRule(); in newImplicitZenRule() local 770 private void updateImplicitZenRuleNameAndDescription(ZenRule rule) { in updateImplicitZenRuleNameAndDescription() 845 ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i)); in removeAutomaticZenRules() local 856 ZenRule rule = newConfig.deletedRules.get(newConfig.deletedRules.keyAt(i)); in removeAutomaticZenRules() local 895 ZenRule rule = config.automaticRules.get(id); in getAutomaticZenRuleState() local [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | AnnotationProcessor.cpp | 76 for (const AnnotationRule& rule : sAnnotationRules) { in AppendCommentLine() local 147 for (const AnnotationRule& rule : sAnnotationRules) { in Print() local
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | TaskFragmentAnimationControllerTest.java | 48 public MockitoRule rule = MockitoJUnit.rule(); field in TaskFragmentAnimationControllerTest
|
/frameworks/native/services/inputflinger/dispatcher/trace/ |
D | InputTracingPerfettoBackend.cpp | 119 for (const auto& rule : mConfig.rules) { in initializeUidMap() local 146 for (const auto& rule : mConfig.rules) { in resolveTraceLevel() local 155 bool PerfettoBackend::InputEventDataSource::ruleMatches(const TraceRule& rule, in ruleMatches()
|