Home
last modified time | relevance | path

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

12345678910>>...13

/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.bp15 "androidx.test.rules",
29 jarjar_rules: ":jarjar-rules-telephony-tests",
37 name: "jarjar-rules-telephony-tests",
39 // Order matters: test rules override the base ones
40 "jarjar-rules-tests.txt",
41 ":jarjar-rules-shared",
43 out: ["jarjar-rules-telephony-tests-combined.txt"],
/frameworks/base/core/java/android/content/integrity/
DRuleSet.java39 private RuleSet(String version, List<Rule> rules) { in RuleSet() argument
41 mRules = Collections.unmodifiableList(rules); in RuleSet()
77 public Builder addRules(@NonNull List<Rule> rules) { in addRules() argument
78 mRules.addAll(rules); in addRules()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java255 LinkedHashMap<Inet6Address, Ipv6ForwardingRule> rules = mIpv6ForwardingRules.get(ipServer); in tetherOffloadRuleAdd() local
272 rules.put(rule.address, rule); in tetherOffloadRuleAdd()
292 LinkedHashMap<Inet6Address, Ipv6ForwardingRule> rules = mIpv6ForwardingRules.get(ipServer); in tetherOffloadRuleRemove() local
293 if (rules == null) return; in tetherOffloadRuleRemove()
299 if (rules.remove(rule.address) == null) return; in tetherOffloadRuleRemove()
302 if (rules.isEmpty()) { in tetherOffloadRuleRemove()
329 final LinkedHashMap<Inet6Address, Ipv6ForwardingRule> rules = mIpv6ForwardingRules.get( in tetherOffloadRuleClear()
331 if (rules == null) return; in tetherOffloadRuleClear()
334 for (final Ipv6ForwardingRule rule : new ArrayList<Ipv6ForwardingRule>(rules.values())) { in tetherOffloadRuleClear()
346 final LinkedHashMap<Inet6Address, Ipv6ForwardingRule> rules = mIpv6ForwardingRules.get( in tetherOffloadRuleUpdate()
[all …]
/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/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/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
46 jarjar_rules: "jarjar-rules-shared.txt",
80 // Any class here *must* have a corresponding jarjar rule in the telephony build rules.
90 // rules on the wifi side.
91 // Any class here *must* have a corresponding jarjar rule in the wifi build rules.
106 // rules on the wifi side.
107 // Any class here *must* have a corresponding jarjar rule in the wifi build rules.
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java527 LinkedHashMap<Inet6Address, Ipv6ForwardingRule> rules = in testTetheringConfigDisable() local
529 assertNull(rules); in testTetheringConfigDisable()
534 rules = new LinkedHashMap<Inet6Address, Ipv6ForwardingRule>(); in testTetheringConfigDisable()
535 rules.put(rule.address, rule); in testTetheringConfigDisable()
536 coordinator.getForwardingRulesForTesting().put(mIpServer, rules); in testTetheringConfigDisable()
539 rules = coordinator.getForwardingRulesForTesting().get(mIpServer); in testTetheringConfigDisable()
540 assertNotNull(rules); in testTetheringConfigDisable()
541 assertEquals(1, rules.size()); in testTetheringConfigDisable()
546 rules = coordinator.getForwardingRulesForTesting().get(mIpServer); in testTetheringConfigDisable()
547 assertNotNull(rules); in testTetheringConfigDisable()
[all …]
/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_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()
DSplitSelector.cpp69 KeyedVector<SplitDescription, sp<Rule> > rules; in getRules() local
78 rules.add(splits[j], rule); in getRules()
82 return rules; in getRules()
/frameworks/base/apct-tests/perftests/packagemanager/
DAndroid.bp7 "platform-compat-test-rules",
9 "androidx.test.rules",
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DInvalidNewSystemAppTest.kt28 import org.junit.rules.RuleChain
29 import org.junit.rules.TemporaryFolder
51 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant in com.android.server.pm.test.InvalidNewSystemAppTest
DOriginalPackageMigrationTest.kt28 import org.junit.rules.RuleChain
29 import org.junit.rules.TemporaryFolder
51 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant in com.android.server.pm.test.OriginalPackageMigrationTest
/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()
/frameworks/base/location/tests/locationtests/
DAndroid.bp11 "androidx.test.rules",
12 "core-test-rules",
/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/tests/unit/
DAndroid.bp9 jarjar_rules: "jarjar-rules.txt",
12 "androidx.test.rules",
Djarjar-rules.txt3 # These rules must match the jarjar rules used to build the library.
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/
DAndroid.mk21 LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex-instrumentation androidx.test.rules
44 LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex-instrumentation androidx.test.rules
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataEnabledSettingsTest.java70 String rules = (String) invocation.getArguments()[1]; in setUp()
71 boolean changed = !Objects.equals(mRules, rules); in setUp()
72 mRules = rules; in setUp()
/frameworks/base/core/tests/coretests/
DAndroid.bp29 "core-test-rules", // for libcore.dalvik.system.CloseGuardSupport
38 "androidx.test.rules",
42 "platform-compat-test-rules",

12345678910>>...13