/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierRestrictionRulesTest.java | 63 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/ |
D | RelativeLayout.java | 478 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/ |
D | Android.bp | 27 "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/ |
D | RuleSet.java | 37 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/ |
D | RuleBinaryParserTest.java | 132 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/ |
D | Android.bp | 15 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/ |
D | IntegrityFileManagerTest.java | 137 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/ |
D | IntentFirewall.java | 341 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/ |
D | SplitSelector.cpp | 69 KeyedVector<SplitDescription, sp<Rule> > rules; in getRules() local 78 rules.add(splits[j], rule); in getRules() 82 return rules; in getRules()
|
D | SplitSelector_test.cpp | 56 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/ |
D | FactoryPackageTest.kt | 12 import org.junit.rules.RuleChain 13 import org.junit.rules.TemporaryFolder 36 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant
|
D | InvalidNewSystemAppTest.kt | 28 import org.junit.rules.RuleChain 29 import org.junit.rules.TemporaryFolder 52 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant
|
D | OriginalPackageMigrationTest.kt | 28 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/ |
D | RuleSerializer.java | 30 List<Rule> rules, in serialize() argument 37 byte[] serialize(List<Rule> rules, Optional<Integer> formatVersion) in serialize() argument
|
D | RuleBinarySerializer.java | 67 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()
|
D | RuleIndexingDetailsIdentifier.java | 44 List<Rule> rules) { in splitRulesIntoIndexBuckets() argument 45 if (rules == null) { in splitRulesIntoIndexBuckets() 57 for (Rule rule : rules) { in splitRulesIntoIndexBuckets()
|
/frameworks/opt/setupwizard/library/ |
D | standalone-rules.gradle | 8 * 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'
|
D | build.gradle | 5 * 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/ |
D | Android.bp | 16 // 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/ |
D | Android.bp | 16 "platform-compat-test-rules", 18 "androidx.test.rules",
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/ |
D | Android.mk | 21 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/ |
D | Android.bp | 16 "androidx.test.rules", 44 jarjar_rules: "jarjar-rules.txt",
|
/frameworks/base/services/core/java/com/android/server/integrity/engine/ |
D | RuleEvaluator.java | 50 List<Rule> rules, AppInstallMetadata appInstallMetadata) { in evaluateRules() argument 54 rules.stream() in evaluateRules()
|
D | RuleEvaluationEngine.java | 68 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/ |
D | IntegrityFileManager.java | 124 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()
|