/cts/libs/helpers/core/tests/src/com/android/cts/helpers/ |
D | DeviceInteractionHelperRuleTest.java | 64 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testMissingProperty() local 67 rule.buildPackageList(null, mPackageManager); in testMissingProperty() 69 assertThat(rule.getPrefixes()).containsExactly("Prefix"); in testMissingProperty() 70 assertThat(rule.getPackageList()).containsExactly("com.android.cts.helpers.aosp"); in testMissingProperty() 71 assertThat(rule.getSourceDirs()).containsExactly("/tmp/a"); in testMissingProperty() 82 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testEmptyProperty() local 85 rule.buildPackageList("", mPackageManager); in testEmptyProperty() 87 assertThat(rule.getPrefixes()).containsExactly("Prefix"); in testEmptyProperty() 88 assertThat(rule.getPackageList()).containsExactly("com.android.cts.helpers.aosp"); in testEmptyProperty() 89 assertThat(rule.getSourceDirs()).containsExactly("/tmp/a"); in testEmptyProperty() [all …]
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTestUtil.java | 33 import androidx.test.rule.ActivityTestRule; 39 public static void waitForExecution(final ActivityTestRule<? extends Activity> rule) { in waitForExecution() argument 45 rule.runOnUiThread(() -> { in waitForExecution() 47 rule.runOnUiThread(() -> { in waitForExecution() 54 private static void runOnUiThreadRethrow(ActivityTestRule<? extends Activity> rule, in runOnUiThreadRethrow() argument 60 rule.runOnUiThread(r); in runOnUiThreadRethrow() 68 final ActivityTestRule<? extends Activity> rule) { in executePendingTransactions() argument 69 return executePendingTransactions(rule, rule.getActivity().getFragmentManager()); in executePendingTransactions() 73 final ActivityTestRule<? extends Activity> rule, final FragmentManager fm) { in executePendingTransactions() argument 75 runOnUiThreadRethrow(rule, new Runnable() { in executePendingTransactions() [all …]
|
D | RecreatedActivity.java | 23 import androidx.test.rule.ActivityTestRule; 70 public void waitForResume(ActivityTestRule<? extends Activity> rule) throws Throwable { in waitForResume() argument 77 rule.runOnUiThread(() -> { in waitForResume()
|
/cts/tests/app/src/android/app/cts/ |
D | AutomaticZenRuleTest.java | 48 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testDescribeContents() local 50 assertEquals(expected, rule.describeContents()); in testDescribeContents() 54 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testWriteToParcel() local 57 rule.writeToParcel(parcel, 0); in testWriteToParcel() 68 rule.setName(null); in testWriteToParcel() 70 rule.writeToParcel(parcel, 0); in testWriteToParcel() 82 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetConditionId() local 84 rule.setConditionId(newConditionId); in testSetConditionId() 85 assertEquals(newConditionId, rule.getConditionId()); in testSetConditionId() 89 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetEnabled() local [all …]
|
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | RetryRuleTest.java | 95 final RetryRule rule = new RetryRule(1); in testPassOnRetryableException() local 96 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException() 103 final RetryRule rule = new RetryRule(2, cleaner); in testDoCleanOnRetryableException() local 105 rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException, cleaner), in testDoCleanOnRetryableException() 114 final RetryRule rule = new RetryRule(2, cleaner); in testKeepLastStatusWhenFailOnRetryableException() local 117 () -> rule.apply( in testKeepLastStatusWhenFailOnRetryableException() 128 final RetryRule rule = new RetryRule(2, cleaner); in testNeverCleanWhenStatementPass() local 130 rule.apply(mMockStatement, mDescription).evaluate(); in testNeverCleanWhenStatementPass() 140 final RetryRule rule = new RetryRule(0, cleaner); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() local 144 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() [all …]
|
D | SafeCleanerRuleTest.java | 69 final SafeCleanerRule rule = new SafeCleanerRule(); in testEmptyRule_testPass() local 70 rule.apply(mGoodGuyStatement, mDescription).evaluate(); in testEmptyRule_testPass() 75 final SafeCleanerRule rule = new SafeCleanerRule(); in testEmptyRule_testFails() local 77 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails() 83 final SafeCleanerRule rule = new SafeCleanerRule().setDumper(mDumper); in testEmptyRule_testFails_withDumper() local 85 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails_withDumper() 92 final SafeCleanerRule rule = new SafeCleanerRule() in testOnlyTestFails() local 96 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails() 104 final SafeCleanerRule rule = new SafeCleanerRule() in testOnlyTestFails_withDumper() local 109 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails_withDumper() [all …]
|
D | StateChangerRuleTest.java | 58 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetAndRestoreOnSuccess() local 62 rule.apply(mStatement, mDescription).evaluate(); in testSetAndRestoreOnSuccess() 73 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetIfSameValueOnSuccess() local 77 rule.apply(mStatement, mDescription).evaluate(); in testDontSetIfSameValueOnSuccess() 85 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetButDontRestoreIfSameValueOnSuccess() local 89 rule.apply(mStatement, mDescription).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess() 99 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetButRestoreIfValueChangedOnSuccess() local 103 rule.apply(mStatement, mDescription).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess() 113 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetAndRestoreOnFailure() local 119 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetAndRestoreOnFailure() [all …]
|
D | StateKeeperRuleTest.java | 57 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testRestoreOnSuccess() local 60 rule.apply(mStatement, mDescription).evaluate(); in testRestoreOnSuccess() 70 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testRestoreOnFailure() local 75 () -> rule.apply(mStatement, mDescription).evaluate()); in testRestoreOnFailure() 85 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testDoNotRestoreWhenNotChanged() local 88 rule.apply(mStatement, mDescription).evaluate(); in testDoNotRestoreWhenNotChanged() 96 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testDoNotRestoreOnFailure() local 101 () -> rule.apply(mStatement, mDescription).evaluate()); in testDoNotRestoreOnFailure()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | BarTestUtils.java | 35 import androidx.test.rule.ActivityTestRule; 49 public static void assumeStatusBarContainsCutout(ActivityTestRule<?> rule) { in assumeStatusBarContainsCutout() argument 53 rule.getActivity().getWindowManager().getCurrentWindowMetrics(); in assumeStatusBarContainsCutout() 63 public static void assumeHasColoredStatusBar(ActivityTestRule<?> rule) { in assumeHasColoredStatusBar() argument 65 assumeHasStatusBar(rule); in assumeHasColoredStatusBar() 68 public static void assumeHasStatusBar(ActivityTestRule<?> rule) { in assumeHasStatusBar() argument 72 getInsets(rule).getStableInsetTop() > 0); in assumeHasStatusBar() 75 public static void assumeHasColoredNavigationBar(ActivityTestRule<?> rule) { in assumeHasColoredNavigationBar() argument 79 getInsets(rule).getStableInsetBottom() > 0); in assumeHasColoredNavigationBar() 115 private static WindowInsets getInsets(ActivityTestRule<?> rule) { in getInsets() argument [all …]
|
/cts/tools/selinux/ |
D | SELinuxNeverallowTestGen.py | 70 rule = NeverallowRule(line, depths) 71 rules.append(rule) 82 def neverallow_rule_to_test(rule, test_num): argument 83 squashed_neverallow = rule.statement.replace("\n", " ") 91 "true" if rule.depths[section] else "false") 109 for rule in neverallow_rules: 110 src_body += neverallow_rule_to_test(rule, i)
|
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/ |
D | MockSpellChecker.kt | 102 private fun suggestionsInfo(rule: SuggestionRule): SuggestionsInfo { in suggestionsInfo() 103 return suggestionsInfo(rule, 0, 0) in suggestionsInfo() 107 rule: SuggestionRule, in suggestionsInfo() 112 val attrs = rule.attributes and supportedAttributes in suggestionsInfo() 116 rule.suggestionsList.map { prefix + it }.toTypedArray() in suggestionsInfo() 118 rule.suggestionsList.toTypedArray() in suggestionsInfo()
|
/cts/common/device-side/util-axt/ |
D | protobuf-jarjar-rules.txt | 1 rule com.google.protobuf.** com.google.compatibility.device.util.com.google.protobuf.@1 2 rule android.**.nano.** com.google.compatibility.device.util.android.@1.nano.@2 3 rule **.android.**.nano.** com.google.compatibility.device.util.@1.android.@2.nano.@3
|
/cts/common/device-side/util/ |
D | protobuf-jarjar-rules.txt | 1 rule com.google.protobuf.** com.google.compatibility.device.util.com.google.protobuf.@1 2 rule android.**.nano.** com.google.compatibility.device.util.android.@1.nano.@2 3 rule **.android.**.nano.** com.google.compatibility.device.util.@1.android.@2.nano.@3
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 275 AutomaticZenRule rule = mNm.getAutomaticZenRule(id); in test() local 276 if (rule != null && ruleToCreate.getName().equals(rule.getName()) in test() 277 && ruleToCreate.getOwner().equals(rule.getOwner()) in test() 278 && ruleToCreate.getConditionId().equals(rule.getConditionId()) in test() 279 && ruleToCreate.isEnabled() == rule.isEnabled() in test() 280 && ruleToCreate.getInterruptionFilter() == rule.getInterruptionFilter() in test() 282 rule.getConfigurationActivity()) in test() 283 && Objects.equals(ruleToCreate.getZenPolicy(), rule.getZenPolicy())) { in test() 675 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local 679 mId = mNm.addAutomaticZenRule(rule); in setUp() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | EnsureBarContrastTest.java | 46 import androidx.test.rule.ActivityTestRule; 224 private <T extends TestActivity> T launchAndWait(ActivityTestRule<T> rule, boolean lightBars, 226 final T activity = rule.launchActivity(new Intent() 328 void checkAssumptions(ActivityTestRule<?> rule) throws AssumptionViolatedException { 329 assumeHasColoredStatusBar(rule); 347 void checkAssumptions(ActivityTestRule<?> rule) throws AssumptionViolatedException { 348 assumeHasColoredNavigationBar(rule); 364 abstract void checkAssumptions(ActivityTestRule<?> rule) throws AssumptionViolatedException;
|
/cts/tests/appintegrity/src/android/appintegrity/cts/ |
D | CtsAppIntegrityDeviceTest.java | 21 import androidx.test.rule.ActivityTestRule; 171 Rule rule = new Rule(IntegrityFormula.Application.packageNameEquals("package"), Rule.DENY); in ruleSetApiMethodsAvailable() local 175 .addRules(Arrays.asList(rule)) in ruleSetApiMethodsAvailable()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | TestUtils.java | 37 import androidx.test.rule.ActivityTestRule; 54 TestUtils(ActivityTestRule<?> rule) { in TestUtils() argument 60 mRule = rule; in TestUtils()
|
/cts/tools/vm-tests-tf/ |
D | jill-jarjar-rules.txt | 1 rule org.objectweb.** com.android.jill.@0
|
/cts/hostsidetests/jvmti/run-tests/test-1975/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1975@1
|
/cts/hostsidetests/jvmti/run-tests/test-1991/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1991@1
|
/cts/tests/tests/wrap/nowrap/ |
D | jarjar-rules.txt | 1 rule android.wrap.cts.WrapTest** android.wrap.cts.WrapTestNoWrap@1
|
/cts/hostsidetests/jvmti/run-tests/test-1931/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1931@1
|
/cts/hostsidetests/jvmti/run-tests/test-1953/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1953@1
|
/cts/hostsidetests/jvmti/run-tests/test-1978/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1978@1
|
/cts/hostsidetests/jvmti/run-tests/test-1997/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1997@1
|