/frameworks/base/tools/split-select/ |
H A D | TestRules.cpp | 28 Rule rule; local 29 rule.op = Rule::EQUALS; 30 rule.key = key; 31 rule.longArgs.add(value); 32 return rule; 36 Rule rule; local 37 rule.op = Rule::GREATER_THAN; 38 rule.key = key; 39 rule.longArgs.add(value); 40 return rule; 44 Rule rule; local 52 Rule rule; local 60 Rule rule; local 69 Rule rule; local [all...] |
H A D | Rule_test.cpp | 33 Rule rule(AndRule() 71 std::string result(rule.toJson().string()); 78 sp<Rule> rule = new Rule(AndRule() local 82 EXPECT_RULES_EQ(Rule::simplify(rule), EqRule(Rule::SDK_VERSION, 7)); 86 sp<Rule> rule = new Rule(AndRule() local 93 EXPECT_RULES_EQ(Rule::simplify(rule),
|
H A D | Rule.cpp | 177 sp<Rule> Rule::simplify(sp<Rule> rule) { argument 178 if (rule->op != AND_SUBRULES && rule->op != OR_SUBRULES) { 179 return rule; 183 newSubrules.setCapacity(rule->subrules.size()); 184 const size_t subruleCount = rule->subrules.size(); 186 sp<Rule> simplifiedRule = simplify(rule->subrules.editItemAt(i)); 188 if (simplifiedRule->op == rule->op) { 202 rule->subrules = newSubrules; 203 return rule; [all...] |
H A D | SplitSelector.cpp | 76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); local 77 if (rule != NULL) { 78 rules.add(splits[j], rule);
|
H A D | SplitSelector_test.cpp | 59 sp<Rule> rule = rules[idx]; local 60 ASSERT_TRUE(rule != NULL); 69 EXPECT_RULES_EQ(rule, expectedRule);
|
H A D | Rule.h | 69 static android::sp<Rule> simplify(android::sp<Rule> rule);
|
/frameworks/base/media/java/android/media/audiopolicy/ |
H A D | AudioMixingRule.java | 32 * Here's an example of creating a mixing rule for all media playback: 51 * A rule requiring the usage information of the {@link AudioAttributes} to match. 52 * This mixing rule can be added with {@link Builder#addRule(AudioAttributes, int)} or 59 * A rule requiring the capture preset information of the {@link AudioAttributes} to match. 60 * This mixing rule can be added with {@link Builder#addRule(AudioAttributes, int)} or 67 * A rule requiring the UID of the audio stream to match that specified. 68 * This mixing rule can be added with {@link Builder#addMixRule(int, Object)} where the Object 77 * A rule requiring the usage information of the {@link AudioAttributes} to differ. 83 * A rule requiring the capture preset information of the {@link AudioAttributes} to differ. 89 * A rule requirin 100 AudioMixMatchCriterion(AudioAttributes attributes, int rule) argument 106 AudioMixMatchCriterion(Integer intProp, int rule) argument 148 isValidSystemApiRule(int rule) argument 159 isValidAttributesSystemApiRule(int rule) argument 170 isValidRule(int rule) argument 182 isPlayerRule(int rule) argument 230 addRule(AudioAttributes attrToMatch, int rule) argument 259 excludeRule(AudioAttributes attrToMatch, int rule) argument 281 addMixRule(int rule, Object property) argument 311 excludeMixRule(int rule, Object property) argument 326 checkAddRuleObjInternal(int rule, Object property) argument 365 addRuleInternal(AudioAttributes attrToMatch, Integer intProp, int rule) argument [all...] |
H A D | AudioMix.java | 52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, argument 54 mRule = rule; 57 mMixType = rule.getTargetMixType(); 198 * @param rule a non-null {@link AudioMixingRule} instance. 202 public Builder(AudioMixingRule rule) argument 204 if (rule == null) { 207 mRule = rule; 213 * @param rule 217 Builder setMixingRule(AudioMixingRule rule) argument 219 if (rule [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ZenModeConditions.java | 66 if (DEBUG) Log.d(TAG, "evaluateConfig: clearing manual rule"); 120 private void evaluateRule(ZenRule rule, ArraySet<Uri> current, boolean processSubscriptions) { argument 121 if (rule == null || rule.conditionId == null) return; 122 final Uri id = rule.conditionId; 127 rule.component = sp.getComponent(); 132 final IConditionProvider cp = mConditionProviders.findConditionProvider(rule.component); 133 if (DEBUG) Log.d(TAG, "Ensure external rule exists: " + (cp != null) + " for " + id); 135 mConditionProviders.ensureRecordExists(rule.component, id, cp); 138 if (rule 172 updateSnoozing(ZenRule rule) argument 181 updateCondition(Uri id, Condition condition, ZenRule rule) argument [all...] |
H A D | ZenModeHelper.java | 255 for (ZenRule rule : mConfig.automaticRules.values()) { 256 if (canManageAutomaticZenRule(rule)) { 257 rules.add(rule); 265 ZenRule rule; 268 rule = mConfig.automaticRules.get(id); 270 if (rule == null) return null; 271 if (canManageAutomaticZenRule(rule)) { 272 return createAutomaticZenRule(rule); 298 throw new AndroidRuntimeException("Could not create rule"); 301 Log.d(TAG, "addAutomaticZenRule rule 387 canManageAutomaticZenRule(ZenRule rule) argument 408 isSystemRule(AutomaticZenRule rule) argument 431 populateZenRule(AutomaticZenRule automaticZenRule, ZenRule rule, boolean isNew) argument 449 createAutomaticZenRule(ZenRule rule) argument [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.ActivityTestRule;
|
H A D | BottomSheetBehaviorInitialStateTest.java | 25 import android.support.test.rule.ActivityTestRule;
|
/frameworks/support/v4/tests/java/android/support/v4/ |
H A D | BaseInstrumentationTestCase.java | 20 import android.support.test.rule.ActivityTestRule;
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | IntentFirewall.java | 161 // rule against the intent 163 Rule rule = candidateRules.get(i); 164 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType, 166 block |= rule.getBlock(); 167 log |= rule.getLog(); 336 Rule rule = new Rule(); 340 // if we get an error while parsing a particular rule, we'll just ignore 341 // that rule and continue on with the next rule 343 rule 487 private final Rule rule; field in class:IntentFirewall.FirewallIntentFilter 489 FirewallIntentFilter(Rule rule) argument 529 addComponentFilter(ComponentName componentName, Rule rule) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | ZenModeController.java | 46 public void onManualRuleChanged(ZenRule rule) {} argument
|
/frameworks/support/percent/tests/java/android/support/percent/ |
H A D | BaseInstrumentationTestCase.java | 22 import android.support.test.rule.ActivityTestRule;
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | BaseInstrumentationTestCase.java | 25 import android.support.test.rule.ActivityTestRule;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/recyclerview/test/ |
H A D | SameActivityTestRule.java | 18 import android.support.test.rule.ActivityTestRule;
|
/frameworks/base/core/java/android/service/notification/ |
H A D | ZenModeConfig.java | 249 final String rule = allRules.valueAt(i); 250 final ZenRule fromRule = automaticRules != null ? automaticRules.get(rule) : null; 251 final ZenRule toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null; 252 ZenRule.appendDiff(d, "automaticRule[" + rule + "]", fromRule, toRule); 286 private static boolean isValidManualRule(ZenRule rule) { argument 287 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule); 290 private static boolean isValidAutomaticRule(ZenRule rule) { argument 291 return rule ! 295 sameCondition(ZenRule rule) argument 509 writeRuleXml(ZenRule rule, XmlSerializer out) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioPolicy.cpp | 29 uint32_t rule) 30 : mRule(rule) 27 AudioMixMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule) argument
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | BaseThreadedTest.java | 26 import android.support.test.rule.ActivityTestRule;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | UiccCarrierPrivilegeRules.java | 121 // Describes a single rule. 510 * Check if all rule bytes have been read from UICC. 550 Rlog.e(LOG_TAG, "Skip unrecognized rule." + refArDo.value); 557 * Parses a single rule. 559 private static AccessRule parseRefArdo(String rule) { argument 560 log("Got rule: " + rule); 567 while (!rule.isEmpty()) { 568 if (rule.startsWith(TAG_REF_DO)) { 570 rule [all...] |
/frameworks/base/core/java/android/app/ |
H A D | NotificationManager.java | 476 for (ZenModeConfig.ZenRule rule : rules) { 477 ruleMap.put(rule.id, new AutomaticZenRule(rule.name, rule.component, 478 rule.conditionId, zenModeToInterruptionFilter(rule.zenMode), rule.enabled, 479 rule.creationTime)); 496 * doesn't own the matching rule. See {@link AutomaticZenRule#getOwner}. 508 * Creates the given zen rule [all...] |
/frameworks/av/include/media/ |
H A D | AudioPolicy.h | 62 AudioMixMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule);
|
/frameworks/base/tools/apilint/ |
H A D | apilint.py | 209 def __init__(self, sig, clazz, detail, error, rule, msg): 212 self.rule = rule 216 self.head = "Error %s" % (rule) if rule else "Error" 219 self.head = "Warning %s" % (rule) if rule else "Warning" 242 def _fail(clazz, detail, error, rule, msg): 249 failures[sig] = Failure(sig, clazz, detail, error, rule, msg) 252 def warn(clazz, detail, rule, ms [all...] |