Home
last modified time | relevance | path

Searched defs:rule (Results 1 – 25 of 28) sorted by relevance

12

/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DStateChangerRuleTest.java58 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetAndRestoreOnSuccess() local
73 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetIfSameValueOnSuccess() local
85 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetButDontRestoreIfSameValueOnSuccess() local
99 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetButRestoreIfValueChangedOnSuccess() local
113 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetAndRestoreOnFailure() local
130 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetIfSameValueOnFailure() local
144 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testSetButDontRestoreIfSameValueOnFailure() local
160 final StateChangerRule<String> rule = new StateChangerRule<>(mStateManager, in testDontSetButRestoreIfValueChangedOnFailure() local
DSafeCleanerRuleTest.java69 final SafeCleanerRule rule = new SafeCleanerRule(); in testEmptyRule_testPass() local
75 final SafeCleanerRule rule = new SafeCleanerRule(); in testEmptyRule_testFails() local
83 final SafeCleanerRule rule = new SafeCleanerRule().setDumper(mDumper); in testEmptyRule_testFails_withDumper() local
92 final SafeCleanerRule rule = new SafeCleanerRule() in testOnlyTestFails() local
104 final SafeCleanerRule rule = new SafeCleanerRule() in testOnlyTestFails_withDumper() local
118 final SafeCleanerRule rule = new SafeCleanerRule() in testTestPass_oneRunnerFails() local
133 final SafeCleanerRule rule = new SafeCleanerRule() in testTestPass_oneRunnerFails_withDumper() local
152 final SafeCleanerRule rule = new SafeCleanerRule() in testTestPass_oneExtraExceptionThrownAsCallable() local
167 final SafeCleanerRule rule = new SafeCleanerRule() in testTestPass_oneExtraExceptionThrown() local
184 final SafeCleanerRule rule = new SafeCleanerRule() in testTestPass_oneExtraExceptionThrown_withDumper() local
[all …]
DRetryRuleTest.java95 final RetryRule rule = new RetryRule(1); in testPassOnRetryableException() local
103 final RetryRule rule = new RetryRule(2, cleaner); in testDoCleanOnRetryableException() local
114 final RetryRule rule = new RetryRule(2, cleaner); in testKeepLastStatusWhenFailOnRetryableException() local
128 final RetryRule rule = new RetryRule(2, cleaner); in testNeverCleanWhenStatementPass() local
140 final RetryRule rule = new RetryRule(0, cleaner); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() local
156 final RetryRule rule = new RetryRule(1); in testPassOnRetryableExceptionWithTimeout() local
166 final RetryRule rule = new RetryRule(1); in testFailOnRetryableException() local
177 final RetryRule rule = new RetryRule(0); in testPassWhenDisabledAndStatementPass() local
187 final RetryRule rule = new RetryRule(0); in testFailWhenDisabledAndStatementThrowsRetryableException() local
200 final RetryRule rule = new RetryRule(0); in testFailWhenDisabledAndStatementThrowsNonRetryableException() local
DStateKeeperRuleTest.java57 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testRestoreOnSuccess() local
70 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testRestoreOnFailure() local
85 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testDoNotRestoreWhenNotChanged() local
96 final StateKeeperRule<String> rule = new StateKeeperRule<>(mStateManager); in testDoNotRestoreOnFailure() local
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTestUtil.java39 public static void waitForExecution(final ActivityTestRule<? extends Activity> rule) { in waitForExecution()
54 private static void runOnUiThreadRethrow(ActivityTestRule<? extends Activity> rule, in runOnUiThreadRethrow()
68 final ActivityTestRule<? extends Activity> rule) { in executePendingTransactions()
73 final ActivityTestRule<? extends Activity> rule, final FragmentManager fm) { in executePendingTransactions()
84 public static boolean popBackStackImmediate(final ActivityTestRule<? extends Activity> rule) { in popBackStackImmediate()
88 public static boolean popBackStackImmediate(final ActivityTestRule<? extends Activity> rule, in popBackStackImmediate()
100 public static boolean popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule, in popBackStackImmediate()
105 public static boolean popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule, in popBackStackImmediate()
117 public static boolean popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule, in popBackStackImmediate()
122 public static boolean popBackStackImmediate(final ActivityTestRule<FragmentTestActivity> rule, in popBackStackImmediate()
[all …]
DFragmentTestActivity.java77 public void waitForResume(ActivityTestRule<? extends Activity> rule) throws Throwable { in waitForResume()
/cts/tests/app/src/android/app/cts/
DAutomaticZenRuleTest.java48 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testDescribeContents() local
54 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testWriteToParcel() local
82 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetConditionId() local
89 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetEnabled() local
96 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetInterruptionFilter() local
106 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetName() local
114 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetConfigurationActivity() local
124 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testCreateRuleWithZenPolicy() local
/cts/libs/helpers/core/tests/src/com/android/cts/helpers/
DDeviceInteractionHelperRuleTest.java64 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testMissingProperty() local
82 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testEmptyProperty() local
100 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testExplicitDefaultProperty() local
121 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testOnePackageExplicitDefault() local
142 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testOnePackage() local
166 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testTwoPackages() local
191 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testDefaultAtFront() local
216 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testDefaultInMiddle() local
241 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testDefaultAtEnd() local
271 DeviceInteractionHelperRule<ICtsDeviceInteractionHelper> rule = in testDefaultSubstringPrefix() local
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DBarTestUtils.java51 public static void assumeStatusBarContainsCutout(ActivityTestRule<?> rule) { in assumeStatusBarContainsCutout()
65 public static void assumeHasColoredStatusBar(ActivityTestRule<?> rule) { in assumeHasColoredStatusBar()
70 public static void assumeHasStatusBar(ActivityTestRule<?> rule) { in assumeHasStatusBar()
78 public static void assumeHasColoredNavigationBar(ActivityTestRule<?> rule) { in assumeHasColoredNavigationBar()
119 private static WindowInsets getInsets(ActivityTestRule<?> rule) { in getInsets()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2022_20456.java59 private void checkFields(AutomaticZenRule rule, boolean ownerFlag, boolean configActivityFlag, in checkFields()
91 AutomaticZenRule rule = new AutomaticZenRule(mLongString, owner, configActivity, mLongUri, in checkConstructor() local
109 AutomaticZenRule rule = new AutomaticZenRule(ZEN_RULE_NAME, owner, configActivity, in checkFieldSetters() local
131 AutomaticZenRule rule = new AutomaticZenRule(ZEN_RULE_NAME, owner, configActivity, in checkParcelInput() local
DFlagSlipperyTest.kt129 val rule = ActivityScenarioRule<SlipperyEnterBottomActivity>( constant in FlagSlipperyTest
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java275 AutomaticZenRule rule = mNm.getAutomaticZenRule(id); in test() local
675 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local
693 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() local
752 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local
770 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() local
828 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local
846 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() local
/cts/tests/input/src/android/input/cts/
DVerifyHardwareKeyEventTest.kt47 val rule = ActivityScenarioRule<CaptureEventActivity>(CaptureEventActivity::class.java) constant in android.input.cts.VerifyHardwareKeyEventTest
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20143/
DCVE_2022_20143.java81 AutomaticZenRule rule = new AutomaticZenRule("ZenRuleName" + i, null, component, in testPocCVE_2022_20143() local
/cts/tests/tests/util/src/android/util/cts/
DCloseGuardTest.java37 public final TestRule rule = CloseGuardSupport.getRule(); field in CloseGuardTest
/cts/tools/selinux/
DSELinuxNeverallowTestGen.py82 def neverallow_rule_to_test(rule, test_num): argument
/cts/tests/tests/widget/src/android/widget/cts/
DBackInvokedOnWidgetsTest.java58 public static GestureNavRule rule = new GestureNavRule(); field in BackInvokedOnWidgetsTest
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorTest.java80 public MockitoRule rule = MockitoJUnit.rule(); field in InputDeviceVibratorTest
/cts/tests/appintegrity/src/android/appintegrity/cts/
DCtsAppIntegrityDeviceTest.java183 Rule rule = new Rule(IntegrityFormula.Application.packageNameEquals("package"), Rule.DENY); in ruleSetApiMethodsAvailable() local
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java56 TestUtils(ActivityTestRule<?> rule) { in TestUtils()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java162 private <T extends Activity> T launchAndWait(ActivityTestRule<T> rule, in launchAndWait()
DWindowInsetsPolicyTest.java280 private <T extends Activity> T launchAndWait(ActivityTestRule<T> rule) { in launchAndWait()
DLocationOnScreenTests.java148 private <T extends Activity> T launchAndWait(ActivityTestRule<T> rule, in launchAndWait()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DInlineUiBot.java58 public static RuleChain annotateRule(TestRule rule) { in annotateRule()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextViewIntegrationTest.java83 public ActivityScenarioRule<TextViewActivity> rule = new ActivityScenarioRule<>( field in TextViewIntegrationTest

12