Home
last modified time | relevance | path

Searched refs:statement (Results 1 – 14 of 14) sorted by relevance

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DLimitDevicesRuleTest.kt46 assertEquals(rule.apply(statement, description), statement) in allowOnPhone_withPhone_succeeds()
55 rule.apply(statement, description).evaluate() in allowOnPhone_withTablet_fails()
64 assertEquals(rule.apply(statement, description), statement) in denyOnPhone_withTablet_succeeds()
73 rule.apply(statement, description).evaluate() in denyOnPhone_withPhone_fails()
83 assertEquals(ruleOnPhone.apply(statement, description), statement) in allowedOnBothPhonesAndTablets_withTabletAndPhone_succeeds()
84 assertEquals(ruleOnTablet.apply(statement, description), statement) in allowedOnBothPhonesAndTablets_withTabletAndPhone_succeeds()
90 private val statement: Statement = in createDescription() constant in android.platform.test.rule.LimitDevicesRuleTest
DSetDefaultVolumeRuleTest.kt35 rule.apply(statement, description).evaluate() in testSetDefaultMinVolumeRule()
52 rule.apply(statement, description).evaluate() in testSetDefaultMaxVolumeRule()
63 private val statement: Statement = constant in android.platform.test.rule.SetDefaultVolumeRuleTest
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevityClassRunner.java134 protected Statement withBeforeClasses(Statement statement) { in withBeforeClasses() argument
135 return statement; in withBeforeClasses()
144 protected Statement withAfterClasses(Statement statement) { in withAfterClasses() argument
146 statement, getTestClass().getAnnotatedMethods(AfterClass.class), null); in withAfterClasses()
154 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { in withBefores() argument
164 ? statement in withBefores()
165 : addRunBefores(statement, allBeforeMethods, target); in withBefores()
173 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
183 statement, in withAfters()
192 Statement statement, List<FrameworkMethod> befores, Object target) { in addRunBefores() argument
[all …]
DScheduledScenarioRunner.java110 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
117 statement.evaluate(); in withAfters()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DFlickerServiceJUnit4ClassRunner.kt87 val statement = childrenInvoker(notifier) in <lambda>() constant
88 statement.evaluate() in <lambda>()
363 val statement: Statement = in <lambda>() constant
370 runLeaf(statement, description, notifier) in <lambda>()
387 var statement: Statement? = methodInvoker(method!!, test) in <lambda>() variable
388 statement = possiblyExpectingExceptions(method, test, statement) in <lambda>()
389 statement = withPotentialTimeout(method, test, statement) in <lambda>()
393 statement = withBefores(method, test, statement) in <lambda>()
396 statement = withAfters(method, test, statement) in <lambda>()
398 statement = withRules(method, test, statement) in <lambda>()
[all …]
DRuleContainer.kt70 statement: Statement in apply()
73 return statement in apply()
75 var result = statement in apply()
DLegacyFlickerJUnit4ClassRunner.kt141 val statement = classBlock(notifier) in <lambda>() constant
142 statement.evaluate() in <lambda>()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DFunctional.java72 private Statement artifactSaver(Statement statement, Stream<FrameworkMethod> methods) { in artifactSaver() argument
77 statement.evaluate(); in artifactSaver()
91 private Statement withTrace(String name, Statement statement) {
97 statement.evaluate();
127 final Statement statement = befores.isEmpty() ? s : new RunBefores(s, befores, target);
130 return withTrace("Befores", artifactSaver(statement, Stream.of(method)));
140 final Statement statement = super.withAfters(method, target, s);
143 return withTrace("Afters", artifactSaver(statement, Stream.of(method)));
181 final Statement statement =
191 statement.evaluate();
DMicrobenchmark.java308 private Statement withRules(FrameworkMethod method, Object target, Statement statement) { in withRules() argument
309 Statement result = statement; in withRules()
392 Statement statement = methodInvoker(method, test); in runChild() local
393 statement = possiblyExpectingExceptions(method, test, statement); in runChild()
394 statement = withPotentialTimeout(method, test, statement); in runChild()
395 statement = withBefores(method, test, statement); in runChild()
396 statement = withAfters(method, test, statement); in runChild()
397 statement = withRules(method, test, statement); in runChild()
403 statement.evaluate(); in runChild()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDynamicRuleChain.java79 Statement statement = base; in apply() local
119 statement = rule.apply(statement, description); in apply()
121 return statement; in apply()
DRepeatTestRule.java40 RepeatTestStatement(Statement statement, int repeatCount) { in RepeatTestStatement() argument
41 this.mStatement = statement; in RepeatTestStatement()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevityClassRunnerTest.java306 Statement statement = in testAfterClassMethodsHandling_marksFailure() local
316 statement.evaluate(); in testAfterClassMethodsHandling_marksFailure()
339 Statement statement = in testRunAfterClassMethodsHandling_marksPassed() local
348 statement.evaluate(); in testRunAfterClassMethodsHandling_marksPassed()
359 Statement statement = in testAfterClass_runAsAfterForPassingTest() local
364 statement.evaluate(); in testAfterClass_runAsAfterForPassingTest()
385 Statement statement = mRunner.withAfterClasses(FAILING_STATEMENT); in testAfterClass_runAsAfterClassForFailingTest() local
387 statement.evaluate(); in testAfterClass_runAsAfterClassForFailingTest()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java55 TimedStatement(Statement statement, int warmUpIterations, int runs, in TimedStatement() argument
57 mStatement = statement; in TimedStatement()
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DAnnotationTestRuleHelper.java164 private PreparedTest(Statement statement) { in PreparedTest() argument
165 mStatement = statement; in PreparedTest()