Home
last modified time | relevance | path

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

/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 …]
DRecreatedActivity.java70 public void waitForResume(ActivityTestRule<? extends Activity> rule) throws Throwable { in waitForResume()
/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.java49 public static void assumeStatusBarContainsCutout(ActivityTestRule<?> rule) { in assumeStatusBarContainsCutout()
63 public static void assumeHasColoredStatusBar(ActivityTestRule<?> rule) { in assumeHasColoredStatusBar()
68 public static void assumeHasStatusBar(ActivityTestRule<?> rule) { in assumeHasStatusBar()
75 public static void assumeHasColoredNavigationBar(ActivityTestRule<?> rule) { in assumeHasColoredNavigationBar()
115 private static WindowInsets getInsets(ActivityTestRule<?> rule) { in getInsets()
/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/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/view/src/android/view/cts/input/
DInputDeviceVibratorTest.java78 public MockitoRule rule = MockitoJUnit.rule(); field in InputDeviceVibratorTest
/cts/tests/appintegrity/src/android/appintegrity/cts/
DCtsAppIntegrityDeviceTest.java171 Rule rule = new Rule(IntegrityFormula.Application.packageNameEquals("package"), Rule.DENY); in ruleSetApiMethodsAvailable() local
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DInlineUiBot.java57 public static RuleChain annotateRule(TestRule rule) { in annotateRule()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java54 TestUtils(ActivityTestRule<?> rule) { in TestUtils()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java161 private <T extends Activity> T launchAndWait(ActivityTestRule<T> rule, in launchAndWait()
DWindowInsetsPolicyTest.java261 private <T extends Activity> T launchAndWait(ActivityTestRule<T> rule) { in launchAndWait()
DLocationOnScreenTests.java147 private <T extends Activity> T launchAndWait(ActivityTestRule<T> rule, in launchAndWait()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextViewIntegrationTest.java87 public ActivityScenarioRule<TextViewActivity> rule = new ActivityScenarioRule<>( field in TextViewIntegrationTest
/cts/tests/tests/security/src/android/security/cts/
DFlagSlipperyTest.kt132 val rule = ActivityScenarioRule<SlipperyEnterBottomActivity>( constant
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java74 ActivityTestRule<T> rule) throws Exception { in launchActivityAndWaitForItToBeOnscreen()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java83 public MockitoRule rule = MockitoJUnit.rule(); field in InputHidTestCase
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java1016 AutomaticZenRule rule = createRule("test_consolidated_policy", in testConsolidatedNotificationPolicy() local
2199 AutomaticZenRule rule = createRule("test_total_silence", INTERRUPTION_FILTER_NONE); in testTotalSilenceOnlyMuteStreams() local
2242 AutomaticZenRule rule = createRule("test_alarms", INTERRUPTION_FILTER_ALARMS); in testAlarmsOnlyMuteStreams() local