Home
last modified time | relevance | path

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

12

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DCompilationFilterRuleTest.java48 CompilationFilterRule rule = new CompilationFilterRule(); in testNoAppToCompileFails() local
59 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(badFilterBundle, in testAppToCompile_badFilterThrows() local
73 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testAppToCompile_failCompilationThrows() local
93 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppToCompile() local
114 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppToCompileMultipleIterations() local
137 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppMultipleCompileMultipleTests() local
160 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testOneAppToCompileDuplicateTests() local
183 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testMultipleAppsToCompile() local
209 TestableCompilationFilterRule rule = new TestableCompilationFilterRule(filterBundle, in testMultipleAppsToCompileInSpeedProfile() 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
DLimitDevicesRuleTest.kt40 val rule = LimitDevicesRule(thisDevice = CF_PHONE.product) in allowOnPhone_withPhone_succeeds() constant
49 val rule = LimitDevicesRule(thisDevice = CF_TABLET.product) in allowOnPhone_withTablet_fails() constant
58 val rule = LimitDevicesRule(thisDevice = CF_TABLET.product) in denyOnPhone_withTablet_succeeds() constant
67 val rule = LimitDevicesRule(thisDevice = CF_PHONE.product) in denyOnPhone_withPhone_fails() constant
DKillAppsRuleTest.java44 KillAppsRule rule = new KillAppsRule(); in testNoAppToKillFails() local
56 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), "example.package.name"); in testOneAppToKill() local
69 TestableKillAppsRule rule = new TestableKillAppsRule(new Bundle(), in testMultipleAppsToKill() local
90 TestableKillAppsRule rule = new TestableKillAppsRule(noKillAppsBundle, in testDisableKillsAppsRuleOption() local
DGarbageCollectRuleTest.java44 GarbageCollectRule rule = new TestableGarbageCollectRule(); in testNoGcBeforeTest() local
62 GarbageCollectRule rule = new TestableGarbageCollectRule("package.name1"); in testCallsGcBeforeTest() local
83 GarbageCollectRule rule = new TestableGarbageCollectRule(gcEndBundle, "package.name1"); in testCallsGcBeforeAndAfterTest() local
104 GarbageCollectRule rule = new TestableGarbageCollectRule(gcEndBundle, "package.name1"); in testCallsGcOnlyBeforeTest() local
DQuickstepPressureRuleTest.java37 QuickstepPressureRule rule = new QuickstepPressureRule(); in testNoAppToOpenFails() local
47 TestableQuickstepPressureRule rule = in testOneAppToOpen() local
59 TestableQuickstepPressureRule rule = in testMultipleAppsToOpen() 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.java40 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(false, false); in testScreenOff() local
56 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(true, false); in testScreenLocked() local
72 TestableUnlockScreenRule rule = new TestableUnlockScreenRule(true, true); in testScreenOn() local
DTestMetricRuleTest.java75 TestMetricRule rule = in testValidListener_testPasses() local
93 TestMetricRule rule = in testValidListener_testFails() local
118 TestMetricRule rule = in testMultipleListeners_allValid() local
157 TestMetricRule rule = in testInvalidListenerNameThrows() local
171 TestMetricRule rule = createWithMetricCollectorNames(simpleName); in testSimpleClassNameAttemptedWithKnownPackage() local
181 TestMetricRule rule = in testInitWithDifferentOptionName() 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
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
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
DDropCachesRuleTest.java41 TestableDropCachesRule rule = new TestableDropCachesRule(new Bundle()); in testDropCachesCommand() local
56 TestableDropCachesRule rule = new TestableDropCachesRule(noDropCacheBundle); in testNoDropCacheFlag() local
DClassMetricRuleTest.java69 ClassMetricRule rule = in testRunsSpecifiedCollectorsAndReportRunMetrics() local
92 ClassMetricRule rule = in testUsesTestCallbackRatherThanRunCallback() local
DDex2oatPressureRuleTest.java68 private Dex2oatPressureRule rule; field in Dex2oatPressureRuleTest
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/service/
DFassMockTest.kt40 val rule = WMFlickerServiceRuleTest() constant
DRotationMockTest.kt41 val rule = WMFlickerServiceRuleTest() constant
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/
DAudioTestHarnessServerModuleTests.java45 @Rule public final MockitoRule rule = MockitoJUnit.rule(); field in AudioTestHarnessServerModuleTests
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDynamicRuleChain.java84 TestRule rule = null; in apply() local

12