/frameworks/base/tools/split-select/ |
D | TestRules.h | 27 struct AndRule : public Rule { 29 op = Rule::AND_SUBRULES; in AndRule() 32 AndRule& add(const Rule& rhs) { in add() 33 subrules.add(new Rule(rhs)); in add() 38 struct OrRule : public Rule { 40 op = Rule::OR_SUBRULES; in OrRule() 43 OrRule& add(const Rule& rhs) { in add() 44 subrules.add(new Rule(rhs)); in add() 49 const Rule EqRule(Rule::Key key, long value); 50 const Rule LtRule(Rule::Key key, long value); [all …]
|
D | TestRules.cpp | 27 const Rule EqRule(Rule::Key key, long value) { in EqRule() 28 Rule rule; in EqRule() 29 rule.op = Rule::EQUALS; in EqRule() 35 const Rule GtRule(Rule::Key key, long value) { in GtRule() 36 Rule rule; in GtRule() 37 rule.op = Rule::GREATER_THAN; in GtRule() 43 const Rule LtRule(Rule::Key key, long value) { in LtRule() 44 Rule rule; in LtRule() 45 rule.op = Rule::LESS_THAN; in LtRule() 51 const Rule ContainsAnyRule(Rule::Key key, const char* str1) { in ContainsAnyRule() [all …]
|
D | RuleGenerator.cpp | 35 sp<Rule> RuleGenerator::generateDensity(const Vector<int>& allDensities, size_t index) { in generateDensity() 37 sp<Rule> densityRule = new Rule(); in generateDensity() 38 densityRule->op = Rule::AND_SUBRULES; in generateDensity() 44 sp<Rule> version = new Rule(); in generateDensity() 45 version->op = Rule::LESS_THAN; in generateDensity() 46 version->key = Rule::SDK_VERSION; in generateDensity() 52 sp<Rule> gt = new Rule(); in generateDensity() 53 gt->op = Rule::GREATER_THAN; in generateDensity() 54 gt->key = Rule::SCREEN_DENSITY; in generateDensity() 60 sp<Rule> lt = new Rule(); in generateDensity() [all …]
|
D | Rule_test.cpp | 33 Rule rule(AndRule() in TEST() 34 .add(EqRule(Rule::SDK_VERSION, 7)) in TEST() 36 .add(GtRule(Rule::SCREEN_DENSITY, 10)) in TEST() 37 .add(LtRule(Rule::SCREEN_DENSITY, 5)) in TEST() 78 sp<Rule> rule = new Rule(AndRule() in TEST() 79 .add(EqRule(Rule::SDK_VERSION, 7)) in TEST() 82 EXPECT_RULES_EQ(Rule::simplify(rule), EqRule(Rule::SDK_VERSION, 7)); in TEST() 86 sp<Rule> rule = new Rule(AndRule() in TEST() 88 .add(EqRule(Rule::SDK_VERSION, 7)) in TEST() 90 .add(EqRule(Rule::SDK_VERSION, 8)) in TEST() [all …]
|
D | RuleGenerator_test.cpp | 37 ContainsAnyRule(Rule::NATIVE_PLATFORM, "armeabi") in TEST() 41 ContainsAnyRule(Rule::NATIVE_PLATFORM, "armeabi-v7a", "arm64-v8a") in TEST() 45 ContainsAnyRule(Rule::NATIVE_PLATFORM, "x86", "x86_64") in TEST() 64 .add(LtRule(Rule::SCREEN_DENSITY, 263)) in TEST() 69 .add(GtRule(Rule::SCREEN_DENSITY, 262)) in TEST() 70 .add(LtRule(Rule::SCREEN_DENSITY, 363)) in TEST() 75 .add(GtRule(Rule::SCREEN_DENSITY, 362)) in TEST() 88 .add(LtRule(Rule::SDK_VERSION, SDK_LOLLIPOP)) in TEST() 89 .add(LtRule(Rule::SCREEN_DENSITY, 263)) in TEST() 94 .add(LtRule(Rule::SDK_VERSION, SDK_LOLLIPOP)) in TEST() [all …]
|
D | Rule.h | 29 struct Rule : public virtual android::RefBase { struct 30 inline Rule(); 31 Rule(const Rule& rhs); 65 android::Vector<android::sp<Rule> > subrules; argument 69 static android::sp<Rule> simplify(android::sp<Rule> rule); 72 Rule::Rule() in Rule() function
|
D | Rule.cpp | 32 Rule::Rule(const Rule& rhs) in Rule() function in split::Rule 42 String8 Rule::toJson(int indent) const { in toJson() 177 sp<Rule> Rule::simplify(sp<Rule> rule) { in simplify() 182 Vector<sp<Rule> > newSubrules; in simplify() 186 sp<Rule> simplifiedRule = simplify(rule->subrules.editItemAt(i)); in simplify()
|
D | SplitSelector_test.cpp | 56 KeyedVector<SplitDescription, sp<Rule> > rules = selector.getRules(); in TEST() 59 sp<Rule> rule = rules[idx]; in TEST() 65 Rule expectedRule(test::AndRule() in TEST() 66 .add(test::GtRule(Rule::SDK_VERSION, 3)) in TEST() 67 .add(test::GtRule(Rule::SCREEN_DENSITY, 180)) in TEST() 68 .add(test::LtRule(Rule::SCREEN_DENSITY, 263))); in TEST()
|
D | RuleGenerator.h | 31 …static android::sp<Rule> generate(const android::SortedVector<SplitDescription>& group, size_t ind… 33 …static android::sp<Rule> generateAbi(const android::Vector<abi::Variant>& allVariants, size_t inde… 34 … static android::sp<Rule> generateDensity(const android::Vector<int>& allDensities, size_t index);
|
D | SplitSelector.cpp | 68 KeyedVector<SplitDescription, sp<Rule> > SplitSelector::getRules() const { in getRules() 69 KeyedVector<SplitDescription, sp<Rule> > rules; in getRules() 76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); in getRules()
|
D | Main.cpp | 78 KeyedVector<SplitDescription, sp<Rule> > rules(selector.getRules()); in generate() 93 sp<Rule> masterRule = new Rule(); in generate() 94 masterRule->op = Rule::OR_SUBRULES; in generate() 100 masterRule = Rule::simplify(masterRule); in generate()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | IntentFirewall.java | 153 List<Rule> candidateRules; in checkIntent() 156 candidateRules = new ArrayList<Rule>(); in checkIntent() 163 Rule rule = candidateRules.get(i); in checkIntent() 302 List<List<Rule>> rulesByType = new ArrayList<List<Rule>>(3); in readRules() 304 rulesByType.add(new ArrayList<Rule>()); in readRules() 336 Rule rule = new Rule(); in readRules() 338 List<Rule> rules = rulesByType.get(ruleType); in readRules() 369 List<Rule> rules = rulesByType.get(ruleType); in readRules() 373 Rule rule = rules.get(ruleIndex); in readRules() 413 private static class Rule extends AndFilter { class in IntentFirewall [all …]
|
/frameworks/support/transition/tests/src/android/support/transition/ |
D | BaseTest.java | 22 import org.junit.Rule; 29 @Rule
|
/frameworks/support/core-ui/tests/java/android/support/v4/ |
D | BaseInstrumentationTestCase.java | 22 import org.junit.Rule; 27 @Rule
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | BaseInstrumentationTestCase.java | 22 import org.junit.Rule; 27 @Rule
|
D | BottomSheetBehaviorInitialStateTest.java | 29 import org.junit.Rule; 37 @Rule
|
/frameworks/support/fragment/tests/java/android/support/v4/ |
D | BaseInstrumentationTestCase.java | 22 import org.junit.Rule; 27 @Rule
|
/frameworks/support/compat/tests/java/android/support/v4/ |
D | BaseInstrumentationTestCase.java | 22 import org.junit.Rule; 27 @Rule
|
/frameworks/support/percent/tests/java/android/support/percent/ |
D | BaseInstrumentationTestCase.java | 27 import org.junit.Rule; 34 @Rule
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | BaseInstrumentationTestCase.java | 19 import org.junit.Rule; 31 @Rule
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | BaseThreadedTest.java | 21 import org.junit.Rule; 31 @Rule
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsLoggingServiceTest.java | 39 import org.junit.Rule; 53 @Rule public TemporaryFolder mTemporaryFolder; 54 @Rule public TemporaryFolder mDownloads; 55 @Rule public TemporaryFolder mRootDirectory;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/ |
D | TlvBufferUtilsTest.java | 24 import org.junit.Rule; 34 @Rule 37 @Rule
|
/frameworks/support/fragment/tests/java/android/support/v4/app/ |
D | NestedFragmentRestoreTest.java | 29 import org.junit.Rule; 43 @Rule
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewCaptureTest.java | 31 import org.junit.Rule; 48 @Rule
|