Home
last modified time | relevance | path

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

12345678910>>...45

/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayout_LayoutParamsTest.java98 int rules[]; in testConstructor() local
110 rules = layoutParams.getRules(); in testConstructor()
111 assertEquals(RelativeLayout.TRUE, rules[RelativeLayout.CENTER_IN_PARENT]); in testConstructor()
119 rules = layoutParams.getRules(); in testConstructor()
120 assertEquals(R.id.relative_view1, rules[RelativeLayout.BELOW]); in testConstructor()
121 assertEquals(R.id.relative_view1, rules[RelativeLayout.ALIGN_LEFT]); in testConstructor()
131 rules = layoutParams.getRules(); in testConstructor()
132 assertEquals(R.id.relative_view1, rules[RelativeLayout.ALIGN_TOP]); in testConstructor()
133 assertEquals(R.id.relative_view2, rules[RelativeLayout.ALIGN_BOTTOM]); in testConstructor()
134 assertEquals(R.id.relative_view1, rules[RelativeLayout.RIGHT_OF]); in testConstructor()
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DSELinuxNeverallowRulesParserTest.java36 List<SELinuxNeverallowRule> rules = SELinuxNeverallowRule.parsePolicy(policy); in testParsingEmpty() local
37 assertTrue(rules.isEmpty()); in testParsingEmpty()
45 List<SELinuxNeverallowRule> rules = SELinuxNeverallowRule.parsePolicy(policy); in testParsingWithoutConditions() local
46 assertEquals(2, rules.size()); in testParsingWithoutConditions()
47 assertEquals("neverallow d1 d2:c1 p;", rules.get(0).mText); in testParsingWithoutConditions()
48 assertEquals(false, rules.get(0).fullTrebleOnly); in testParsingWithoutConditions()
49 assertEquals(false, rules.get(0).launchingWithROnly); in testParsingWithoutConditions()
50 assertEquals(false, rules.get(0).launchingWithSOnly); in testParsingWithoutConditions()
51 assertEquals(false, rules.get(0).compatiblePropertyOnly); in testParsingWithoutConditions()
52 assertEquals("neverallow d2 d3:c2 p2;", rules.get(1).mText); in testParsingWithoutConditions()
[all …]
DSELinuxNeverallowRulesTestVendor.java81 List<Object[]> rules = new ArrayList<>(); in generateRules() local
99 rules.add(new Object[]{ver, idx, parsedRules.get(idx)}); in generateRules()
108 assertTrue("No test generated from the CTS-embedded policy", !rules.isEmpty()); in generateRules()
109 return rules; in generateRules()
DSELinuxNeverallowRulesTest.java79 List<SELinuxNeverallowRule> rules = SELinuxNeverallowRule.parsePolicy(policy); in generateRules() local
81 assertTrue("No test generated from the CTS-embedded policy", !rules.isEmpty()); in generateRules()
82 return rules; in generateRules()
/cts/tests/tests/simphonebookprovider/
DAndroid.bp7 name: "cts-simphonebook-rules-sources",
16 name: "cts-simphonebook-rules",
31 ":cts-simphonebook-rules-sources",
53 "androidx.test.rules",
55 "cts-simphonebook-rules",
67 ":cts-simphonebook-rules-sources",
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumpOnFailureRule.java21 import org.junit.rules.ExternalResource;
22 import org.junit.rules.RuleChain;
23 import org.junit.rules.TestWatcher;
/cts/hostsidetests/packagemanager/extractnativelibs/apps/
DAndroid.bp48 static_libs: ["androidx.test.rules"],
68 static_libs: ["androidx.test.rules"],
87 static_libs: ["androidx.test.rules"],
107 static_libs: ["androidx.test.rules"],
127 static_libs: ["androidx.test.rules"],
146 static_libs: ["androidx.test.rules"],
/cts/hostsidetests/appsecurity/test-apps/StorageApp/
DAndroid.bp22 "androidx.test.rules",
39 "androidx.test.rules",
56 "androidx.test.rules",
/cts/hostsidetests/appsecurity/test-apps/ReadSettingsFieldsApp/
DAndroid.bp24 "androidx.test.rules",
46 "androidx.test.rules",
68 "androidx.test.rules",
90 "androidx.test.rules",
112 "androidx.test.rules",
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBroadcastsTestRunner.java21 import org.junit.rules.RunRules;
22 import org.junit.rules.TestRule;
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DResourceReleaser.java20 import org.junit.rules.ExternalResource;
21 import org.junit.rules.TestRule;
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreTestRunner.java20 import org.junit.rules.RunRules;
21 import org.junit.rules.TestRule;
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTestRunner.java21 import org.junit.rules.RunRules;
22 import org.junit.rules.TestRule;
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/
DAndroid.bp28 "androidx.test.rules",
47 "androidx.test.rules",
67 "androidx.test.rules",
87 "androidx.test.rules",
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/
DAndroid.bp30 "androidx.test.rules",
59 "androidx.test.rules",
88 "androidx.test.rules",
117 "androidx.test.rules",
145 "androidx.test.rules",
173 "androidx.test.rules",
/cts/hostsidetests/appsecurity/test-apps/keysets/uA/
DAndroid.bp25 static_libs: ["androidx.test.rules"],
42 static_libs: ["androidx.test.rules"],
59 static_libs: ["androidx.test.rules"],
76 static_libs: ["androidx.test.rules"],
/cts/tests/app/
DAndroid.bp36 "androidx.test.rules",
95 "androidx.test.rules",
118 "androidx.test.rules",
154 "androidx.test.rules",
188 "androidx.test.rules",
227 "androidx.test.rules",
242 jarjar_rules: "AppExitTest/jarjar-rules.txt",
269 "androidx.test.rules",
/cts/tests/tests/packageinstaller/test-apps/contentprovider/
DAndroid.bp27 static_libs: ["androidx.test.rules"],
44 static_libs: ["androidx.test.rules"],
61 static_libs: ["androidx.test.rules"],
/cts/tests/core/runner-axt/
DAndroid.bp32 "androidx.test.rules",
33 "core-test-rules",
53 static_libs: ["androidx.test.rules"],
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DTheftDetectionTest.java34 import org.junit.rules.RuleChain;
35 import org.junit.rules.TestRule;
/cts/hostsidetests/appsecurity/test-apps/keysets/uB/
DAndroid.bp25 static_libs: ["androidx.test.rules"],
42 static_libs: ["androidx.test.rules"],
59 static_libs: ["androidx.test.rules"],
/cts/tests/suspendapps/tests/
DAndroid.bp32 "androidx.test.rules",
34 "platform-test-rules",
/cts/tests/appsearch/
DAndroid.bp25 "androidx.test.rules",
57 "androidx.test.rules",
84 "androidx.test.rules",
/cts/tests/tests/keystore/
DAndroid.bp25 "androidx.test.rules",
43 "androidx.test.rules",
71 "androidx.test.rules",
114 "androidx.test.rules",
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityStackApisTests.java147 final Set<EmbeddingRule> rules = new ArraySet<>(); in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand() local
148 rules.add(splitPairRuleAB); in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand()
149 rules.add(splitPairRuleAC); in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand()
150 mActivityEmbeddingComponent.setEmbeddingRules(rules); in testFinishActivityStacks_finishAllSecondaryStacks_primaryStackExpand()

12345678910>>...45