Home
last modified time | relevance | path

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

123

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DKillAppsRuleTest.java45 KillAppsRule rule = new KillAppsRule(); in testNoAppToKillFails() local
57 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), "example.package.name"); in testOneAppToKill() local
70 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), false, in testOneAppToKillAfterTestRun() local
84 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), in testMultipleAppsToKill() local
104 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), false, in testMultipleAppsToKillAfterTestRun() local
126 TestableKillAppsRule rule = new TestableKillAppsRule(noKillAppsBundle, in testDisableKillsAppsRuleOption() local
DTracePointRuleTest.java37 TestableTracePointRule rule = new TestableTracePointRule(); in testNoNameGiven() local
46 TestableTracePointRule rule = new TestableTracePointRule(""); in testEmptyStringGiven() local
55 TestableTracePointRule rule = new TestableTracePointRule("FakeName"); in testTagGiven() local
64 TestableTracePointRule rule = new TestableTracePointRule(); in testTraceCallOrder() local
74 TestableTracePointRule rule = new TestableTracePointRule("FakeName", 4); in testSectionNameMaxLength_withTag() local
83 TestableTracePointRule rule = new TestableTracePointRule(7); in testSectionNameMaxLength_withTestName() local
DTestWatcherTest.java38 TestableTestWatcher rule = in testAllCallsSuccessful() local
50 TestableTestWatcher rule = in testCallsFail_starting() local
66 TestableTestWatcher rule = in testCallsFail_statement() local
82 TestableTestWatcher rule = in testCallsFail_succeeded() local
98 TestableTestWatcher rule = in testStatementIsSkipped() local
114 TestableTestWatcher rule = in testCallFails_skipped() local
131 TestableTestWatcher rule = in testCallsFail_failed() local
147 TestableTestWatcher rule = in testCallsFail_finished() local
DCompilationFilterRuleTest.java49 TestableCompilationFilterRule rule = in testNoAppToCompile() local
68 TestableCompilationFilterRule rule = in testSingleAppToCompile() local
88 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(badFilterBundle, in testAppToCompile_badFilterThrows() local
102 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testAppToCompile_failCompilationThrows() local
122 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppToCompile() local
143 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppToCompileMultipleIterations() local
178 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppMultipleCompileMultipleTests() local
213 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppToCompileDuplicateTests() local
236 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testMultipleAppsToCompile() local
262 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testMultipleAppsToCompileInSpeedProfile() local
DGarbageCollectRuleTest.java44 GarbageCollectRule rule = new TestableGarbageCollectRule(); in testNoGcBeforeTest() local
62 GarbageCollectRule rule = new TestableGarbageCollectRule("package.name1"); in testCallsGcBeforeTest() local
86 GarbageCollectRule rule = new TestableGarbageCollectRule(gcEndBundle, "package.name1"); in testCallsGcBeforeAndAfterTest() local
108 GarbageCollectRule rule = new TestableGarbageCollectRule(gcEndBundle, "package.name1"); in testCallsGcOnlyBeforeTest() local
129 GarbageCollectRule rule = new TestableGarbageCollectRule(gcEndBundle, "package.name1"); in testExtendWaitTime() local
DQuickstepPressureRuleTest.java40 TestableQuickstepPressureRule rule = new TestableQuickstepPressureRule(); in testNoAppToOpenFails() local
52 TestableQuickstepPressureRule rule = in testOneAppToOpen() local
64 TestableQuickstepPressureRule rule = in testMultipleAppsToOpen() local
80 TestableQuickstepPressureRule rule = new TestableQuickstepPressureRule(PackageOption); in testOneAppToOpenFromOption() local
DSetDefaultVolumeRuleTest.kt32 val rule = in testSetDefaultMinVolumeRule() constant
49 val rule = in testSetDefaultMaxVolumeRule() constant
DTestMetricRuleTest.java75 TestMetricRule rule = in testValidListener_testPasses() local
93 TestMetricRule rule = in testValidListener_testFails() local
118 TestMetricRule rule = in testMultipleListeners_allValid() local
161 TestMetricRule rule = new TestMetricRule(args); in testMultipleListeners_lifoOrder() local
197 TestMetricRule rule = in testInvalidListenerNameThrows() local
211 TestMetricRule rule = createWithMetricCollectorNames(simpleName); in testSimpleClassNameAttemptedWithKnownPackage() local
229 TestMetricRule rule = in testInitWithDifferentOptionNames() local
DStopwatchRuleTest.java40 StopwatchRule rule = new StopwatchRule(); in testMeasurementIsCorrect() local
60 StopwatchRule rule = new StopwatchRule(); in testMetricSendToInstr() local
77 TestableStopwatchRule rule = new TestableStopwatchRule(args); in testMetricKeyWithoutAppend() local
98 TestableStopwatchRule rule = new TestableStopwatchRule(args); in testMetricKeyWithAppend() local
DUnlockScreenRuleTest.java43 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(false, false); in testScreenOff() local
59 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(true, false); in testScreenLocked() local
75 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(true, true); in testScreenOn() local
DLimitDevicesRuleTest.kt42 val rule = LimitDevicesRule(thisDevice = CF_PHONE.product) in allowOnPhone_withPhone_succeeds() constant
51 val rule = LimitDevicesRule(thisDevice = CF_TABLET.product) in allowOnPhone_withTablet_fails() constant
60 val rule = LimitDevicesRule(thisDevice = CF_TABLET.product) in denyOnPhone_withTablet_succeeds() constant
69 val rule = LimitDevicesRule(thisDevice = CF_PHONE.product) in denyOnPhone_withPhone_fails() constant
DDropCachesRuleTest.java41 TestableDropCachesRule rule = new TestableDropCachesRule(new Bundle()); in testDropCachesCommand() local
56 TestableDropCachesRule rule = new TestableDropCachesRule(noDropCacheBundle); in testNoDropCacheFlag() local
69 TestableDropCachesRule rule = new TestableDropCachesRule(noSyncBundle); in testNoSync() local
DRemoveAppFromStackRuleTest.java49 RemoveAppFromStackRule rule = new RemoveAppFromStackRule(); in testNoAppToRemoveFromStackFails() local
61 TestableRule rule = new TestableRule(new Bundle(), "example.package.name"); in testRemoveAppFromStack() local
79 TestableRule rule = new TestableRule(noRemoveAppFromStackBundle, "example.package.name"); in testDisableRemoveAppFromStack() local
DFinishActivitiesWithoutProcessKillRuleTest.java48 FinishActivitiesWithoutProcessKillRule rule = in testNoAppToFinishActivitiesFails() local
61 TestableRule rule = new TestableRule(new Bundle(), "example.package.name"); in testFinishActivities() local
80 TestableRule rule = new TestableRule(bundle, "example.package.name"); in testDisableFinishActivities() local
DKillAppsOnFailureRuleTest.java55 TestableKillAppsOnFailureRule rule = new TestableKillAppsOnFailureRule(null); in testDefaultDoesNothing() local
65 TestableKillAppsOnFailureRule rule = new TestableKillAppsOnFailureRule(app); in testKillsSpecifiedApp() local
75 TestableKillAppsOnFailureRule rule = new TestableKillAppsOnFailureRule(apps); in testKillsSpecifiedApps() local
DSuspendUnsuspendAppRuleTest.java52 TestableSuspendUnsuspendAppRule rule = in testSuspendUnsuspendAppRule() local
86 TestableSuspendUnsuspendAppRule rule = in testEnableSuspendUnsuspendAppRuleTrue() local
121 TestableSuspendUnsuspendAppRule rule = in testEnableSuspendUnsuspendAppRuleFalse() local
DWaitForIdleTimeoutRuleTest.java79 WaitForIdleTimeoutRule rule = createRule(timeout, false); in testSetsAndRestoresTimeout() local
95 WaitForIdleTimeoutRule rule = createRule(777L, null); in testDisable() local
109 WaitForIdleTimeoutRule rule = spy(new WaitForIdleTimeoutRule()); in createRule() local
DCoolDownRuleTest.java67 TestableRule rule = getDefaultRule(screenOn, maxWait, abortOnTimeout); in testCoolDownNormal() local
94 TestableRule rule = new TestableRule(screenOn, mThermalHelper); in testCoolDownFallback() local
106 TestableRule rule = getDefaultRule(screenOn, maxWait, abortOnTimeout); in testCoolDownTimeout() local
139 TestableRule rule = getDefaultRule(screenOn, maxWait, abortOnTimeout); in testCoolDownTimeoutAbort() local
172 TestableRule rule = getDefaultRule(screenOn, maxWait, abortOnTimeout); in testCoolDownScreenOff() local
255 TestableRule rule = new TestableRule(screenOn, mThermalHelper); in getDefaultRule() local
DPressHomeRuleTest.java46 TestablePressHomeRule rule = new TestablePressHomeRule(pressHomeBundle); in testPressHomeEnabled() local
68 TestablePressHomeRule rule = new TestablePressHomeRule(pressHomeBundle); in testPressHomeDisabled() local
DNotificationPressureRuleTest.java42 TestableNotificationPressureRule rule = in testPostNotifications_withoutPackage() local
67 TestableNotificationPressureRule rule = in testPostNotifications_withPackage() local
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTraceMonitorRuleTest.kt58 val rule = createRule(listOf(monitorWithoutException)) in executesSuccessfully() constant
66 val rule = createRule(listOf(monitorWithoutException, monitorWithoutException)) in executesSuccessfullyMonitor2() constant
76 val rule = createRule(listOf(monitorWithExceptionStart)) in executesWithStartFailure() constant
88 val rule = createRule(listOf(monitorWithExceptionStart, monitorWithoutException)) in executesStartFailureMonitor2() constant
100 val rule = createRule(listOf(monitorWithExceptionStop)) in executesWithStopFailure() constant
112 val rule = createRule(listOf(monitorWithExceptionStop, monitorWithoutException)) in executesStopFailureMonitor2() constant
DTransitionExecutionRuleTest.kt73 val rule = createRule(listOf(runTransition)) in runSuccessfully() constant
81 val rule = createRule(listOf(runTransition), writer) in setTransitionStartAndEndTime() constant
91 val rule = createRule(listOf(throwTransitionError)) in throwsTransitionFailure() constant
102 val rule = createRule(listOf()) in throwsTransitionFailureEmptyTransitions() constant
113 val rule = createRule(listOf(throwAssertionError)) in throwsAssertionFailure() constant
123 val rule = createRule(listOf(runCreateValidTags), writer) in createsValidTags() constant
156 val rule = createRule(listOf(runInvalidTagSpace), writer) in throwErrorCreateInvalidTagWithSpace() constant
167 val rule = createRule(listOf(runCreateValidTags, runCreateValidTags), writer) in throwErrorCreateInvalidTagDuplicate() constant
178 val rule = createRule(listOf(runInvalidTagUnderscore), writer) in throwErrorCreateInvalidTagWithUnderscore() constant
DSetupTeardownRuleTest.kt54 val rule = createRule(listOf(runSetup), listOf(runTeardown)) in executesSetupTeardown() constant
64 val rule = createRule(listOf(throwError, runSetup), listOf(runTeardown)) in throwsSetupFailureAndExecutesTeardown() constant
76 val rule = createRule(listOf(runSetup), listOf(throwError, runTeardown)) in throwsTeardownFailure() constant
/platform_testing/tests/automotive/functional/home/src/android/platform/tests/
DSystemUiTest.java37 @Rule public ConditionalIgnoreRule rule = new ConditionalIgnoreRule(); field in SystemUiTest
/platform_testing/tests/automotive/functional/profileicon/src/android/platform/tests/
DProfileIconTest.java38 @Rule public ConditionalIgnoreRule rule = new ConditionalIgnoreRule(); field in ProfileIconTest

123