/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/tests/src/com/android/compatibility/common/util/ |
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 | RetryRuleTest.java | 75 final RetryRule rule = new RetryRule(1); in testPassOnRetryableException() local 76 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException() 85 final RetryRule rule = new RetryRule(1); in testPassOnRetryableExceptionWithTimeout() local 86 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout() 95 final RetryRule rule = new RetryRule(1); in testFailOnRetryableException() local 98 () -> rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException() 106 final RetryRule rule = new RetryRule(0); in testPassWhenDisabledAndStatementPass() local 108 rule.apply(mMockStatement, mDescription).evaluate(); in testPassWhenDisabledAndStatementPass() 116 final RetryRule rule = new RetryRule(0); in testFailWhenDisabledAndStatementThrowsRetryableException() local 120 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsRetryableException() [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/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
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 | RetryRuleTest.java | 75 final RetryRule rule = new RetryRule(1); in testPassOnRetryableException() local 76 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException() 85 final RetryRule rule = new RetryRule(1); in testPassOnRetryableExceptionWithTimeout() local 86 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout() 95 final RetryRule rule = new RetryRule(1); in testFailOnRetryableException() local 98 () -> rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException() 106 final RetryRule rule = new RetryRule(0); in testPassWhenDisabledAndStatementPass() local 108 rule.apply(mMockStatement, mDescription).evaluate(); in testPassWhenDisabledAndStatementPass() 116 final RetryRule rule = new RetryRule(0); in testFailWhenDisabledAndStatementThrowsRetryableException() local 120 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsRetryableException() [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/tools/selinux/ |
D | SELinuxNeverallowTestGen.py | 67 rule = NeverallowRule(line) 68 rule.treble_only = (treble_only_depth > 0) 69 rule.compatible_property_only = (compatible_property_only_depth > 0) 70 rules.append(rule) 82 def neverallow_rule_to_test(rule, test_num): argument 83 squashed_neverallow = rule.statement.replace("\n", " ") 90 "true" if rule.treble_only else "false") 93 "true" if rule.compatible_property_only else "false") 111 for rule in neverallow_rules: 112 src_body += neverallow_rule_to_test(rule, i)
|
/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/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTestBase.java | 37 import androidx.test.rule.ActivityTestRule; 97 private boolean hasVirtualNavigationBar(ActivityTestRule<? extends LightBarBaseActivity> rule) in hasVirtualNavigationBar() argument 100 rule.runOnUiThread(()-> { in hasVirtualNavigationBar() 101 inset[0] = rule.getActivity().getRootWindowInsets(); in hasVirtualNavigationBar() 132 protected void assumeHasColoredStatusBar(ActivityTestRule<? extends LightBarBaseActivity> rule) in assumeHasColoredStatusBar() argument 141 rule.runOnUiThread(()-> { in assumeHasColoredStatusBar() 142 inset[0] = rule.getActivity().getRootWindowInsets(); in assumeHasColoredStatusBar() 148 ActivityTestRule<? extends LightBarBaseActivity> rule) throws Throwable { in assumeHasColoredNavigationBar() argument 152 assumeTrue(hasVirtualNavigationBar(rule)); in assumeHasColoredNavigationBar()
|
/cts/hostsidetests/angle/app/driverTest/src/com/android/angleIntegrationTest/driverTest/ |
D | AngleDriverTestActivity.java | 21 import androidx.test.rule.ActivityTestRule; 37 public ActivityTestRule<AngleIntegrationTestActivity> rule = field in AngleDriverTestActivity 41 AngleIntegrationTestActivity activity = rule.getActivity(); in validateDeveloperOption()
|
/cts/hostsidetests/angle/app/driverTestSecondary/src/com/android/angleIntegrationTest/driverTestSecondary/ |
D | AngleDriverTestActivity.java | 21 import androidx.test.rule.ActivityTestRule; 37 public ActivityTestRule<AngleIntegrationTestActivity> rule = field in AngleDriverTestActivity 41 AngleIntegrationTestActivity activity = rule.getActivity(); in validateDeveloperOption()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 306 AutomaticZenRule rule = mNm.getAutomaticZenRule(id); in test() local 307 if (rule != null && ruleToCreate.getName().equals(rule.getName()) in test() 308 && ruleToCreate.getOwner().equals(rule.getOwner()) in test() 309 && ruleToCreate.getConditionId().equals(rule.getConditionId()) in test() 310 && ruleToCreate.isEnabled() == rule.isEnabled() in test() 311 && ruleToCreate.getInterruptionFilter() == rule.getInterruptionFilter() in test() 313 rule.getConfigurationActivity()) in test() 314 && Objects.equals(ruleToCreate.getZenPolicy(), rule.getZenPolicy())) { in test()
|
/cts/tools/vm-tests-tf/ |
D | jill-jarjar-rules.txt | 1 rule org.objectweb.** com.android.jill.@0
|
/cts/hostsidetests/jvmti/run-tests/test-1910/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1910@1
|
/cts/hostsidetests/jvmti/run-tests/test-917/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest917@1
|
/cts/hostsidetests/jvmti/run-tests/test-1917/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1917@1
|
/cts/hostsidetests/jvmti/run-tests/test-923/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest923@1
|
/cts/hostsidetests/jvmti/run-tests/test-1923/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1923@1
|
/cts/hostsidetests/jvmti/run-tests/test-930/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest930@1
|