Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 221) sorted by relevance

123456789

/cts/tests/fragment/src/android/fragment/cts/
DFragmentTestUtil.java28 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 …]
DFragmentManagerNonConfigTest.java22 import android.support.test.rule.ActivityTestRule;
/cts/tests/app/src/android/app/cts/
DAutomaticZenRuleTest.java45 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/tests/autofillservice/src/android/autofillservice/cts/
DRetryRuleTest.java65 final RetryRule rule = new RetryRule(2); in testPassOnRetryableException() local
66 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException()
72 final RetryRule rule = new RetryRule(2); in testFailOnRetryableException() local
74 rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException()
84 final RetryRule rule = new RetryRule(2); in testPassOnStaleObjectException() local
85 rule.apply(new RetryableStatement<StaleObjectException>(1, sStaleObjectException), in testPassOnStaleObjectException()
92 final RetryRule rule = new RetryRule(2); in testFailOnStaleObjectException() local
94 rule.apply(new RetryableStatement<StaleObjectException>(2, sStaleObjectException), in testFailOnStaleObjectException()
DDatePickerSpinnerActivityTest.java18 import android.support.test.rule.ActivityTestRule;
DDatePickerCalendarActivityTest.java18 import android.support.test.rule.ActivityTestRule;
DTimePickerSpinnerActivityTest.java18 import android.support.test.rule.ActivityTestRule;
DTimePickerClockActivityTest.java18 import android.support.test.rule.ActivityTestRule;
/cts/tools/selinux/
DSELinuxNeverallowTestGen.py56 rule = NeverallowRule(line)
57 rule.treble_only = (treble_only_depth > 0)
58 rules.append(rule)
67 def neverallow_rule_to_test(rule, test_num): argument
68 squashed_neverallow = rule.statement.replace("\n", " ")
75 "true" if rule.treble_only else "false")
93 for rule in neverallow_rules:
94 src_body += neverallow_rule_to_test(rule, i)
/cts/tools/vm-tests-tf/
Djill-jarjar-rules.txt1 rule org.objectweb.** com.android.jill.@0
/cts/hostsidetests/jvmti/base/app/src/android/jvmti/cts/
DJvmtiTestBase.java19 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/app/src/android/app/cts/
DPictureInPictureActionsTest.java23 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCameraTest.java23 import android.support.test.rule.ActivityTestRule;
DScaleGestureDetectorTest.java26 import android.support.test.rule.ActivityTestRule;
DDisplayRefreshRateTest.java24 import android.support.test.rule.ActivityTestRule;
/cts/tests/sample/src/android/sample/cts/
DSampleJUnit4DeviceTest.java28 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java21 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java21 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/colormode/src/android/colormode/cts/
DAttributeWideColorModeTest.java24 import android.support.test.rule.ActivityTestRule;
DDefaultColorModeTest.java24 import android.support.test.rule.ActivityTestRule;
DWideColorModeTest.java24 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarDrawableContainerTest.java25 import android.support.test.rule.ActivityTestRule;
DAnalogClockTest.java21 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureTest.java24 import android.support.test.rule.ActivityTestRule;
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
DToastTest.java19 import android.support.test.rule.ActivityTestRule;

123456789