Home
last modified time | relevance | path

Searched defs:rule (Results 1 – 25 of 33) 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/tests/notification/src/android/app/notification/current/cts/
DAutomaticZenRuleTest.java62 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConditionId, in testDescribeContents() local
69 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testWriteToParcel() local
106 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetConditionId() local
114 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetEnabled() local
122 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetInterruptionFilter() local
133 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetName() local
142 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testSetConfigurationActivity() local
153 AutomaticZenRule rule = new AutomaticZenRule(mName, mOwner, mConfigActivity, mConditionId, in testCreateRuleWithZenPolicy() local
197 AutomaticZenRule rule = new AutomaticZenRule.Builder("oldName", Uri.parse("oldCondition")) in testBuilder_overwriteConstructorParameters() local
245 AutomaticZenRule rule = new AutomaticZenRule.Builder(mName, mConditionId) in testWriteToParcelFromBuilder() local
[all …]
DNotificationManagerZenTest.java798 AutomaticZenRule rule = createRule("test_consolidated_policy", in testConsolidatedNotificationPolicy() local
949 AutomaticZenRule rule = createRule("testRule"); in testConsolidatedNotificationPolicy_broadcasts() local
1020 AutomaticZenRule rule = createRule("test_consolidated_policy_priority_channels", in testConsolidatedNotificationPolicy_mergesAllowPriorityChannels() local
1129 AutomaticZenRule rule = createRule("test_total_silence", INTERRUPTION_FILTER_NONE); in testTotalSilenceOnlyMuteStreams() local
1175 AutomaticZenRule rule = createRule("test_alarms", INTERRUPTION_FILTER_ALARMS); in testAlarmsOnlyMuteStreams() local
2070 AutomaticZenRule rule = createRule("test_channel_bypass", in testPriorityChannelNotInterceptedByDefault() local
2108 AutomaticZenRule rule = createRule("test_channels_disallowed", in testPriorityChannelInterceptedWhenChannelsDisallowed() local
2327 AutomaticZenRule rule = createRule("Without filter", INTERRUPTION_FILTER_ALL); in addAutomaticZenRule_withInterruptionFilterAll_canBeUsed() local
2664 AutomaticZenRule rule = createRule("Test"); in getAutomaticZenRuleState_returnsRuleState() local
2690 AutomaticZenRule rule = createRule("Grayscale"); in setAutomaticZenRuleState_ruleWithGrayscale_applied() local
[all …]
/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 assumeHasColoredStatusBar(ActivityTestRule<?> rule) { in assumeHasColoredStatusBar()
54 public static void assumeHasStatusBar(ActivityTestRule<?> rule) { in assumeHasStatusBar()
62 public static void assumeHasColoredNavigationBar(ActivityTestRule<?> rule) { in assumeHasColoredNavigationBar()
103 private static WindowInsets getInsets(ActivityTestRule<?> rule) { in getInsets()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMixingRuleTest.java73 AudioMixingRule rule = new AudioMixingRule.Builder() in testConstructValidRule() local
101 AudioMixingRule rule = new AudioMixingRule.Builder() in testRuleBuilderDedupsCriteria() local
156 AudioMixingRule rule = new AudioMixingRule.Builder() in injectorMixTypeDeductionWithGenericRuleSucceeds() local
197 AudioMixingRule rule = new AudioMixingRule.Builder() in sessionIdRuleCompatibleWithPlayersMix() local
208 AudioMixingRule rule = new AudioMixingRule.Builder() in sessionIdRuleCompatibleWithInjectorMix() local
/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
/cts/tests/input/src/android/input/cts/
DVerifyHardwareKeyEventTest.kt47 val rule = ActivityScenarioRule<CaptureEventActivity>(CaptureEventActivity::class.java) constant
DBackKeyShortcutsTest.kt53 val rule = ActivityScenarioRule<CaptureEventActivity>(CaptureEventActivity::class.java) in <lambda>() constant in android.input.cts.BackKeyShortcutsTest
DKeyboardLayoutTest.kt46 val rule = ActivityScenarioRule<CaptureEventActivity>(CaptureEventActivity::class.java) constant in android.input.cts.KeyboardLayoutTest
DModifierKeyRemappingTest.kt63 val rule = ActivityScenarioRule<CaptureEventActivity>(CaptureEventActivity::class.java) constant in android.input.cts.ModifierKeyRemappingTest
/cts/tests/tests/security/src/android/security/cts/AutomaticZenRuleTests/
DAutomaticZenRuleTests.java101 AutomaticZenRule rule = new AutomaticZenRule(ZEN_RULE_NAME + ruleNo, owner, in testUsingAppComponents() local
109 AutomaticZenRule rule = new AutomaticZenRule(ZEN_RULE_NAME + i, owner, null, in testUsingAppComponents() local
/cts/tests/autofillservice/src/android/autofillservice/cts/androidx-tests/
DSaveUiTest.java59 public ActivityScenarioRule<SimpleSaveActivity> rule = field in SaveUiTest
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewMouseInteractionTest.java74 public ActivityScenarioRule<TextViewMouseInteractionActivity> rule = new ActivityScenarioRule<>( field in TextViewMouseInteractionTest
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java290 AutomaticZenRule rule = mNm.getAutomaticZenRule(id); in test() local
693 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local
711 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() local
770 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local
788 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() local
846 AutomaticZenRule rule = new AutomaticZenRule(BROADCAST_RULE_NAME, null, in setUp() local
864 AutomaticZenRule rule = mNm.getAutomaticZenRule(mId); in test() local
/cts/tests/tests/util/src/android/util/cts/
DCloseGuardTest.java43 public final TestRule rule = field in CloseGuardTest
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorTest.java82 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/hostsidetests/security/src/android/security/cts/
DSELinuxNeverallowRule.java139 String rule = matcher.group(1).replace("\n", " "); in parsePolicy() local

12