/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierRestrictionRulesTest.java | 68 CarrierRestrictionRules rules = CarrierRestrictionRules.newBuilder() in testBuilderAllowedAndExcludedCarriers() local 73 assertEquals(false, rules.isAllCarriersAllowed()); in testBuilderAllowedAndExcludedCarriers() 74 assertTrue(rules.getAllowedCarriers().equals(allowedCarriers)); in testBuilderAllowedAndExcludedCarriers() 75 assertTrue(rules.getExcludedCarriers().equals(excludedCarriers)); in testBuilderAllowedAndExcludedCarriers() 77 rules.getDefaultCarrierRestriction()); in testBuilderAllowedAndExcludedCarriers() 84 CarrierRestrictionRules rules = CarrierRestrictionRules.newBuilder().build(); in testBuilderEmptyLists() local 86 assertEquals(false, rules.isAllCarriersAllowed()); in testBuilderEmptyLists() 87 assertTrue(rules.getAllowedCarriers().equals(emptyCarriers)); in testBuilderEmptyLists() 88 assertTrue(rules.getExcludedCarriers().equals(emptyCarriers)); in testBuilderEmptyLists() 90 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 | 33 "androidx.test.rules", 44 "platform-compat-test-rules", 49 jarjar_rules: ":jarjar-rules-telephony-tests", 58 name: "jarjar-rules-telephony-tests", 60 // Order matters: test rules override the base ones 61 "jarjar-rules-tests.txt", 62 ":jarjar-rules-shared", 64 out: ["jarjar-rules-telephony-tests-combined.txt"],
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/common/ |
D | Utils.kt | 26 import android.tools.flicker.rules.ArtifactSaverRule 27 import android.tools.flicker.rules.ChangeDisplayOrientationRule 28 import android.tools.flicker.rules.LaunchAppRule 29 import android.tools.flicker.rules.RemoveAllTasksButHomeRule 31 import org.junit.rules.RuleChain
|
/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/tests/FlickerTests/FlickerService/src/com/android/server/wm/flicker/service/ |
D | Utils.kt | 27 import android.tools.flicker.rules.ChangeDisplayOrientationRule 28 import android.tools.flicker.rules.LaunchAppRule 29 import android.tools.flicker.rules.RemoveAllTasksButHomeRule 31 import org.junit.rules.RuleChain
|
/frameworks/ex/common/ |
D | BUILD | 2 load("@rules_android//rules:rules.bzl", "android_library") 3 load("//build/bazel/rules/java:event_log_tags.bzl", "event_log_tags")
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/ |
D | RuleBinaryParserTest.java | 134 List<Rule> rules = in testBinaryStream_validCompoundFormula_noIndexing() local 137 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryStream_validCompoundFormula_noIndexing() 173 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_notConnector_noIndexing() local 175 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validCompoundFormula_notConnector_noIndexing() 221 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_andConnector_noIndexing() local 223 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validCompoundFormula_andConnector_noIndexing() 270 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validCompoundFormula_orConnector_noIndexing() local 272 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validCompoundFormula_orConnector_noIndexing() 302 List<Rule> rules = binaryParser.parse(rule.array()); in testBinaryString_validAtomicFormula_stringValue_noIndexing() local 304 assertThat(rules).isEqualTo(Collections.singletonList(expectedRule)); in testBinaryString_validAtomicFormula_stringValue_noIndexing() [all …]
|
/frameworks/av/media/module/service.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/libs/systemui/weathereffects/graphics/ |
D | build.gradle | 14 consumerProguardFiles "consumer-rules.pro" 32 … proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 38 … proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 65 androidTestImplementation "androidx.test:rules:1.5.0"
|
/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() 165 List<Rule> rules = new ArrayList<>(); in testGetRules_indexedForManyRules() local 169 rules.add(getPackageNameIndexedRule(String.format("%s%04d", packageName, i))); in testGetRules_indexedForManyRules() 170 rules.add(getAppCertificateIndexedRule(String.format("%s%04d", appCertificate, i))); in testGetRules_indexedForManyRules() 174 rules.add(getInstallerCertificateRule(String.format("%s%04d", installerName, i))); in testGetRules_indexedForManyRules() 178 mIntegrityFileManager.writeRules(VERSION, RULE_PROVIDER, rules); in testGetRules_indexedForManyRules()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/ |
D | Android.bp | 31 "mainDexClasses.rules", 39 // --main-dex-rules. 57 "mainDexClasses.rules", 65 // --main-dex-rules.
|
/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 | OverlayPathsUninstallSystemUpdatesTest.kt | 28 import org.junit.rules.RuleChain 29 import org.junit.rules.TemporaryFolder 50 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant
|
D | FactoryPackageTest.kt | 12 import org.junit.rules.RuleChain 13 import org.junit.rules.TemporaryFolder 36 val rules = RuleChain.outerRule(tempFolder).around(preparer)!! constant in com.android.server.pm.test.FactoryPackageTest
|
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()
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | IntentFirewall.java | 356 List<Rule> rules = rulesByType.get(ruleType); in readRules() local 367 rules.add(rule); in readRules() 387 List<Rule> rules = rulesByType.get(ruleType); in readRules() local 390 for (int ruleIndex=0; ruleIndex<rules.size(); ruleIndex++) { in readRules() 391 Rule rule = rules.get(ruleIndex); in readRules() 547 Rule[] rules = mRulesByComponent.get(componentName); in queryByComponent() local 548 if (rules != null) { in queryByComponent() 549 candidateRules.addAll(Arrays.asList(rules)); in queryByComponent() 554 Rule[] rules = mRulesByComponent.get(componentName); in addComponentFilter() local 555 rules = ArrayUtils.appendElement(Rule.class, rules, rule); in addComponentFilter() [all …]
|
/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/base/services/tests/uiservicestests/ |
D | Android.bp | 31 "androidx.test.rules", 34 "platform-compat-test-rules", 49 "platform-test-rules",
|
/frameworks/base/ravenwood/coretest/test/com/android/ravenwoodtest/coretest/ |
D | RavenwoodTestRunnerValidationTest.java | 25 import org.junit.rules.ExpectedException; 26 import org.junit.rules.RuleChain;
|