Home
last modified time | relevance | path

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

12345678910

/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.java477 int[] rules = params.getRules(layoutDirection); in onMeasure() local
479 applyHorizontalSizeRules(params, myWidth, rules); in onMeasure()
573 final int[] rules = params.getRules(layoutDirection); in onMeasure() local
574 if (rules[CENTER_IN_PARENT] != 0 || rules[CENTER_HORIZONTAL] != 0) { in onMeasure()
576 } else if (rules[ALIGN_PARENT_RIGHT] != 0) { in onMeasure()
603 final int[] rules = params.getRules(layoutDirection); in onMeasure() local
604 if (rules[CENTER_IN_PARENT] != 0 || rules[CENTER_VERTICAL] != 0) { in onMeasure()
606 } else if (rules[ALIGN_PARENT_BOTTOM] != 0) { in onMeasure()
841 int[] rules = params.getRules(layoutDirection); in positionChildHorizontal() local
851 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",
38 name: "jarjar-rules-telephony-tests",
40 // Order matters: test rules override the base ones
41 "jarjar-rules-tests.txt",
42 ":jarjar-rules-shared",
44 out: ["jarjar-rules-telephony-tests-combined.txt"],
/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/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.java338 List<Rule> rules = rulesByType.get(ruleType); in readRules() local
349 rules.add(rule); in readRules()
369 List<Rule> rules = rulesByType.get(ruleType); in readRules() local
372 for (int ruleIndex=0; ruleIndex<rules.size(); ruleIndex++) { in readRules()
373 Rule rule = rules.get(ruleIndex); in readRules()
523 Rule[] rules = mRulesByComponent.get(componentName); in queryByComponent() local
524 if (rules != null) { in queryByComponent()
525 candidateRules.addAll(Arrays.asList(rules)); in queryByComponent()
530 Rule[] rules = mRulesByComponent.get(componentName); in addComponentFilter() local
531 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/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
122 jarjar_rules: "jarjar-rules-shared.txt",
151 // Any class here *must* have a corresponding jarjar rule in the telephony build rules.
161 // rules on the wifi side.
162 // Any class here *must* have a corresponding jarjar rule in the wifi build rules.
177 // rules on the wifi side.
178 // Any class here *must* have a corresponding jarjar rule in the wifi build 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/base/location/tests/locationtests/
DAndroid.bp11 "androidx.test.rules",
12 "core-test-rules",
/frameworks/libs/net/common/tests/unit/
DAndroid.bp9 jarjar_rules: "jarjar-rules.txt",
12 "androidx.test.rules",
/frameworks/base/wifi/tests/
DAndroid.mk48 androidx.test.rules \
49 core-test-rules \
/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.bp27 "core-test-rules", // for libcore.dalvik.system.CloseGuardSupport
36 "androidx.test.rules",
40 "platform-compat-test-rules",
/frameworks/base/tests/PlatformCompatGating/test-rules/
DAndroid.bp18 name: "platform-compat-test-rules",
24 "core-compat-test-rules"
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DInstanceTargets.java49 int rules[] = params.getRules(); in sendMessage() local
50 if (rules[ALIGN_PARENT_RIGHT] != 0) { in sendMessage()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceSetTest.java197 final EventRecurrence[] rules = new EventRecurrence[ruleStrs.length]; in convertToEventRecurrences() local
199 rules[i] = new EventRecurrence(); in convertToEventRecurrences()
200 rules[i].parse(ruleStrs[i]); in convertToEventRecurrences()
202 return rules; in convertToEventRecurrences()
/frameworks/base/packages/Tethering/tests/unit/
DAndroid.bp25 "androidx.test.rules",
46 "androidx.test.rules",
69 jarjar_rules: "jarjar-rules.txt",
/frameworks/opt/telephony/
DAndroid.bp40 name: "jarjar-rules-shared",
41 srcs: ["jarjar-rules-shared.txt"],
68 jarjar_rules: ":jarjar-rules-shared",
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java490 SparseIntArray rules; in syncFirewallChainLocked() local
498 rules = uidFirewallRules.clone(); in syncFirewallChainLocked()
501 if (rules.size() > 0) { in syncFirewallChainLocked()
505 if (DBG) Slog.d(TAG, "Pushing " + rules.size() + " active firewall " in syncFirewallChainLocked()
507 for (int i = 0; i < rules.size(); i++) { in syncFirewallChainLocked()
508 setFirewallUidRuleLocked(chain, rules.keyAt(i), rules.valueAt(i)); in syncFirewallChainLocked()
1620 final SparseIntArray rules = getUidFirewallRulesLR(chain); in closeSocketsForFirewallChainLocked() local
1621 exemptUids = new int[rules.size()]; in closeSocketsForFirewallChainLocked()
1623 if (rules.valueAt(i) == FIREWALL_RULE_ALLOW) { in closeSocketsForFirewallChainLocked()
1624 exemptUids[numUids] = rules.keyAt(i); in closeSocketsForFirewallChainLocked()
[all …]
/frameworks/base/tests/TelephonyCommonTests/
DAndroid.bp25 "androidx.test.rules",
37 jarjar_rules: "jarjar-rules.txt",
/frameworks/base/packages/Tethering/common/TetheringLib/
Djarjar-rules.txt1 # jarjar rules for the bootclasspath tethering framework library here

12345678910