Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 351) sorted by relevance

12345678910>>...15

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierRestrictionRulesTest.java63 CarrierRestrictionRules rules = CarrierRestrictionRules.newBuilder() in testBuilderAllowedAndExcludedCarriers() local
68 assertEquals(false, rules.isAllCarriersAllowed()); in testBuilderAllowedAndExcludedCarriers()
69 assertTrue(rules.getAllowedCarriers().equals(allowedCarriers)); in testBuilderAllowedAndExcludedCarriers()
70 assertTrue(rules.getExcludedCarriers().equals(excludedCarriers)); in testBuilderAllowedAndExcludedCarriers()
72 rules.getDefaultCarrierRestriction()); in testBuilderAllowedAndExcludedCarriers()
79 CarrierRestrictionRules rules = CarrierRestrictionRules.newBuilder().build(); in testBuilderEmptyLists() local
81 assertEquals(false, rules.isAllCarriersAllowed()); in testBuilderEmptyLists()
82 assertTrue(rules.getAllowedCarriers().equals(emptyCarriers)); in testBuilderEmptyLists()
83 assertTrue(rules.getExcludedCarriers().equals(emptyCarriers)); in testBuilderEmptyLists()
85 rules.getDefaultCarrierRestriction()); in testBuilderEmptyLists()
[all …]
/frameworks/base/core/java/android/widget/
DRelativeLayout.java478 int[] rules = params.getRules(layoutDirection); in onMeasure() local
480 applyHorizontalSizeRules(params, myWidth, rules); in onMeasure()
574 final int[] rules = params.getRules(layoutDirection); in onMeasure() local
575 if (rules[CENTER_IN_PARENT] != 0 || rules[CENTER_HORIZONTAL] != 0) { in onMeasure()
577 } else if (rules[ALIGN_PARENT_RIGHT] != 0) { in onMeasure()
604 final int[] rules = params.getRules(layoutDirection); in onMeasure() local
605 if (rules[CENTER_IN_PARENT] != 0 || rules[CENTER_VERTICAL] != 0) { in onMeasure()
607 } else if (rules[ALIGN_PARENT_BOTTOM] != 0) { in onMeasure()
842 int[] rules = params.getRules(layoutDirection); in positionChildHorizontal() local
852 if (rules[CENTER_IN_PARENT] != 0 || rules[CENTER_HORIZONTAL] != 0) { in positionChildHorizontal()
[all …]
/frameworks/opt/telephony/tests/telephonytests/
DAndroid.bp27 "androidx.test.rules",
40 jarjar_rules: ":jarjar-rules-telephony-tests",
48 name: "jarjar-rules-telephony-tests",
50 // Order matters: test rules override the base ones
51 "jarjar-rules-tests.txt",
52 ":jarjar-rules-shared",
54 out: ["jarjar-rules-telephony-tests-combined.txt"],
/frameworks/base/core/java/android/content/integrity/
DRuleSet.java37 private RuleSet(String version, List<Rule> rules) { in RuleSet() argument
39 mRules = Collections.unmodifiableList(rules); in RuleSet()
75 public Builder addRules(@NonNull List<Rule> rules) { in addRules() argument
76 mRules.addAll(rules); in addRules()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleBinaryParserTest.java132 List<Rule> rules = in testBinaryStream_validCompoundFormula_noIndexing() local
135 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryStream_validCompoundFormula_noIndexing()
171 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_notConnector_noIndexing() local
173 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
219 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_andConnector_noIndexing() local
221 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validCompoundFormula_andConnector_noIndexing()
268 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_orConnector_noIndexing() local
270 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validCompoundFormula_orConnector_noIndexing()
300 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validAtomicFormula_stringValue_noIndexing() local
302 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validAtomicFormula_stringValue_noIndexing()
[all …]
/frameworks/av/services/mediatranscoding/tests/TranscodingUidPolicyTestApp/
DAndroid.bp15 static_libs: ["androidx.test.rules"],
23 static_libs: ["androidx.test.rules"],
31 static_libs: ["androidx.test.rules"],
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DIntegrityFileManagerTest.java137 List<Rule> rules = in testGetRules() local
139 mIntegrityFileManager.writeRules(VERSION, RULE_PROVIDER, rules); in testGetRules()
164 List<Rule> rules = new ArrayList<>(); in testGetRules_indexedForManyRules() local
168 rules.add(getPackageNameIndexedRule(String.format("%s%04d", packageName, i))); in testGetRules_indexedForManyRules()
169 rules.add(getAppCertificateIndexedRule(String.format("%s%04d", appCertificate, i))); in testGetRules_indexedForManyRules()
173 rules.add(getInstallerCertificateRule(String.format("%s%04d", installerName, i))); in testGetRules_indexedForManyRules()
177 mIntegrityFileManager.writeRules(VERSION, RULE_PROVIDER, rules); in testGetRules_indexedForManyRules()
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java341 List<Rule> rules = rulesByType.get(ruleType); in readRules() local
352 rules.add(rule); in readRules()
372 List<Rule> rules = rulesByType.get(ruleType); in readRules() local
375 for (int ruleIndex=0; ruleIndex<rules.size(); ruleIndex++) { in readRules()
376 Rule rule = rules.get(ruleIndex); in readRules()
531 Rule[] rules = mRulesByComponent.get(componentName); in queryByComponent() local
532 if (rules != null) { in queryByComponent()
533 candidateRules.addAll(Arrays.asList(rules)); in queryByComponent()
538 Rule[] rules = mRulesByComponent.get(componentName); in addComponentFilter() local
539 rules = ArrayUtils.appendElement(Rule.class, rules, rule); in addComponentFilter()
[all …]
/frameworks/base/tools/split-select/
DSplitSelector.cpp69 KeyedVector<SplitDescription, sp<Rule> > rules; in getRules() local
78 rules.add(splits[j], rule); in getRules()
82 return rules; in getRules()
DSplitSelector_test.cpp56 KeyedVector<SplitDescription, sp<Rule> > rules = selector.getRules(); in TEST() local
57 ssize_t idx = rules.indexOfKey(expected); in TEST()
59 sp<Rule> rule = rules[idx]; in TEST()
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DFactoryPackageTest.kt12 import org.junit.rules.RuleChain
13 import org.junit.rules.TemporaryFolder
36 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant
DInvalidNewSystemAppTest.kt28 import org.junit.rules.RuleChain
29 import org.junit.rules.TemporaryFolder
52 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant
DOriginalPackageMigrationTest.kt28 import org.junit.rules.RuleChain
29 import org.junit.rules.TemporaryFolder
52 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant
/frameworks/base/services/core/java/com/android/server/integrity/serializer/
DRuleSerializer.java30 List<Rule> rules, in serialize() argument
37 byte[] serialize(List<Rule> rules, Optional<Integer> formatVersion) in serialize() argument
DRuleBinarySerializer.java67 public byte[] serialize(List<Rule> rules, Optional<Integer> formatVersion) in serialize() argument
71 serialize(rules, formatVersion, rulesOutputStream, new ByteArrayOutputStream()); in serialize()
81 List<Rule> rules, in serialize() argument
87 if (rules == null) { in serialize()
91 if (rules.size() > TOTAL_RULE_SIZE_LIMIT) { in serialize()
92 throw new IllegalArgumentException("Too many rules provided: " + rules.size()); in serialize()
97 RuleIndexingDetailsIdentifier.splitRulesIntoIndexBuckets(rules); in serialize()
DRuleIndexingDetailsIdentifier.java44 List<Rule> rules) { in splitRulesIntoIndexBuckets() argument
45 if (rules == null) { in splitRulesIntoIndexBuckets()
57 for (Rule rule : rules) { in splitRulesIntoIndexBuckets()
/frameworks/opt/setupwizard/library/
Dstandalone-rules.gradle8 * project(':setup-wizard-lib').buildFileName = 'standalone-rules.gradle'
23 // And then in rules.gradle you can reference the dependency by
35 apply from: 'rules.gradle'
Dbuild.gradle5 * use standalone-rules.gradle instead.
28 // And then in rules.gradle you can reference the dependency by
40 apply from: 'rules.gradle'
/frameworks/libs/net/common/
DAndroid.bp16 // boot classpath. It uses jarjar rules so that anything outside the framework can use this
23 // rules file. Otherwise, it will end up on the boot classpath and other modules will not be able
102 jarjar_rules: "jarjar-rules-shared.txt",
156 // Any class here *must* have a corresponding jarjar rule in the telephony build rules.
169 // rules on the wifi side.
170 // Any class here *must* have a corresponding jarjar rule in the wifi build rules.
183 // rules on the wifi side.
184 // Any class here *must* have a corresponding jarjar rule in the wifi build rules.
/frameworks/base/apct-tests/perftests/packagemanager/
DAndroid.bp16 "platform-compat-test-rules",
18 "androidx.test.rules",
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/
DAndroid.mk21 LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex-instrumentation androidx.test.rules
47 LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex-instrumentation androidx.test.rules
/frameworks/libs/net/common/tests/unit/
DAndroid.bp16 "androidx.test.rules",
44 jarjar_rules: "jarjar-rules.txt",
/frameworks/base/services/core/java/com/android/server/integrity/engine/
DRuleEvaluator.java50 List<Rule> rules, AppInstallMetadata appInstallMetadata) { in evaluateRules() argument
54 rules.stream() in evaluateRules()
DRuleEvaluationEngine.java68 List<Rule> rules = loadRules(appInstallMetadata); in evaluate() local
69 return RuleEvaluator.evaluateRules(rules, appInstallMetadata); in evaluate()
/frameworks/base/services/core/java/com/android/server/integrity/
DIntegrityFileManager.java124 public void writeRules(String version, String ruleProvider, List<Rule> rules) in writeRules() argument
138 rules, Optional.empty(), ruleFileOutputStream, indexingFileOutputStream); in writeRules()
169 List<Rule> rules = in readRules() local
171 return rules; in readRules()

12345678910>>...15