/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTestUtil.java | 28 import android.support.test.rule.ActivityTestRule; 38 public static void waitForExecution(final ActivityTestRule<? extends Activity> rule) { in waitForExecution() argument 44 rule.runOnUiThread(() -> { in waitForExecution() 46 rule.runOnUiThread(() -> { in waitForExecution() 53 private static void runOnUiThreadRethrow(ActivityTestRule<? extends Activity> rule, in runOnUiThreadRethrow() argument 59 rule.runOnUiThread(r); in runOnUiThreadRethrow() 67 final ActivityTestRule<? extends Activity> rule) { in executePendingTransactions() argument 68 return executePendingTransactions(rule, rule.getActivity().getFragmentManager()); in executePendingTransactions() 72 final ActivityTestRule<? extends Activity> rule, final FragmentManager fm) { in executePendingTransactions() argument 74 runOnUiThreadRethrow(rule, new Runnable() { in executePendingTransactions() [all …]
|
D | RecreatedActivity.java | 22 import android.support.test.rule.ActivityTestRule; 69 public void waitForResume(ActivityTestRule<? extends Activity> rule) throws Throwable { in waitForResume() argument 76 rule.runOnUiThread(() -> { in waitForResume()
|
/cts/tests/app/src/android/app/cts/ |
D | AutomaticZenRuleTest.java | 45 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testDescribeContents() local 47 assertEquals(expected, rule.describeContents()); in testDescribeContents() 51 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testWriteToParcel() local 54 rule.writeToParcel(parcel, 0); in testWriteToParcel() 63 rule.setName(null); in testWriteToParcel() 65 rule.writeToParcel(parcel, 0); in testWriteToParcel() 77 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testSetConditionId() local 79 rule.setConditionId(newConditionId); in testSetConditionId() 80 assertEquals(newConditionId, rule.getConditionId()); in testSetConditionId() 84 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testSetEnabled() local [all …]
|
/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/tests/autofillservice/src/android/autofillservice/cts/ |
D | SafeCleanerRuleTest.java | 70 final SafeCleanerRule rule = new SafeCleanerRule(); in testEmptyRule_testPass() local 71 rule.apply(mGoodGuyStatement, mDescription).evaluate(); in testEmptyRule_testPass() 76 final SafeCleanerRule rule = new SafeCleanerRule(); in testEmptyRule_testFails() local 78 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails() 84 final SafeCleanerRule rule = new SafeCleanerRule().setDumper(mDumper); in testEmptyRule_testFails_withDumper() local 86 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails_withDumper() 93 final SafeCleanerRule rule = new SafeCleanerRule() in testOnlyTestFails() local 97 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails() 105 final SafeCleanerRule rule = new SafeCleanerRule() in testOnlyTestFails_withDumper() local 110 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails_withDumper() [all …]
|
D | RetryRuleTest.java | 64 final RetryRule rule = new RetryRule(2); in testPassOnRetryableException() local 65 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException() 73 final RetryRule rule = new RetryRule(2); in testPassOnRetryableExceptionWithTimeout() local 74 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout() 82 final RetryRule rule = new RetryRule(2); in testFailOnRetryableException() local 84 rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/common/ |
D | StateChangerRuleTest.java | 61 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetAndRestoreOnSuccess() local 65 rule.apply(mStatement, mDescription).evaluate(); in testSetAndRestoreOnSuccess() 76 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetIfSameValueOnSuccess() local 80 rule.apply(mStatement, mDescription).evaluate(); in testDontSetIfSameValueOnSuccess() 88 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetButDontRestoreIfSameValueOnSuccess() local 92 rule.apply(mStatement, mDescription).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess() 102 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetButRestoreIfValueChangedOnSuccess() local 106 rule.apply(mStatement, mDescription).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess() 116 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetAndRestoreOnFailure() local 122 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetAndRestoreOnFailure() [all …]
|
D | StateKeeperRuleTest.java | 60 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testRestoreOnSuccess() local 63 rule.apply(mStatement, mDescription).evaluate(); in testRestoreOnSuccess() 73 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testRestoreOnFailure() local 78 () -> rule.apply(mStatement, mDescription).evaluate()); in testRestoreOnFailure() 88 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testDoNotRestoreWhenNotChanged() local 91 rule.apply(mStatement, mDescription).evaluate(); in testDoNotRestoreWhenNotChanged() 99 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testDoNotRestoreOnFailure() local 104 () -> rule.apply(mStatement, mDescription).evaluate()); in testDoNotRestoreOnFailure()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 27 import android.support.test.rule.ActivityTestRule; 43 UiAutomation uiAutomation, ActivityTestRule<? extends Activity> rule) throws Exception { in launchActivityAndWaitForItToBeOnscreen() argument 54 mTempActivity = rule.launchActivity(null); in launchActivityAndWaitForItToBeOnscreen()
|
/cts/tools/vm-tests-tf/ |
D | jill-jarjar-rules.txt | 1 rule org.objectweb.** com.android.jill.@0
|
/cts/tests/tests/wrap/wrap_debug_malloc_debug/ |
D | jarjar-rules.txt | 1 rule android.wrap.cts.WrapTest** android.wrap.cts.WrapTestDebugMalloc@1
|
/cts/hostsidetests/jvmti/run-tests/test-1915/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1915@1
|
/cts/hostsidetests/jvmti/run-tests/test-1937/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1937@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-1911/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1911@1
|
/cts/hostsidetests/jvmti/run-tests/test-994/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest994@1
|
/cts/hostsidetests/jvmti/run-tests/test-908/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest908@1
|
/cts/hostsidetests/jvmti/run-tests/test-932/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest932@1
|
/cts/hostsidetests/jvmti/run-tests/test-914/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest914@1
|
/cts/hostsidetests/jvmti/run-tests/test-911/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest911@1
|
/cts/hostsidetests/jvmti/run-tests/test-1922/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest1922@1
|
/cts/hostsidetests/jvmti/allocation-tracking/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTestAllocationTracking@1
|
/cts/tests/tests/wrap/wrap_debug/ |
D | jarjar-rules.txt | 1 rule android.wrap.cts.WrapTest** android.wrap.cts.WrapTestWrapDebug@1
|
/cts/tests/tests/wrap/wrap_nodebug/ |
D | jarjar-rules.txt | 1 rule android.wrap.cts.WrapTest** android.wrap.cts.WrapTestWrapNoDebug@1
|
/cts/hostsidetests/jvmti/run-tests/test-930/ |
D | jarjar-rules.txt | 1 rule android.jvmti.cts.JvmtiHostTest** android.jvmti.cts.JvmtiHostTest930@1
|