Home
last modified time | relevance | path

Searched refs:evaluate (Results 1 – 25 of 53) sorted by relevance

123

/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DRetryRuleTest.java63 public void evaluate() throws Throwable { in evaluate() method in RetryRuleTest.RetryableStatement
97 .evaluate(); in testPassOnRetryableException()
106 mDescription).evaluate(); in testDoCleanOnRetryableException()
119 mDescription).evaluate()); in testKeepLastStatusWhenFailOnRetryableException()
130 rule.apply(mMockStatement, mDescription).evaluate(); in testNeverCleanWhenStatementPass()
132 verify(mMockStatement, times(1)).evaluate(); in testNeverCleanWhenStatementPass()
141 doThrow(exception).when(mMockStatement).evaluate(); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException()
144 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException()
147 verify(mMockStatement, times(1)).evaluate(); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException()
158 .evaluate(); in testPassOnRetryableExceptionWithTimeout()
[all …]
DStateChangerRuleTest.java62 rule.apply(mStatement, mDescription).evaluate(); in testSetAndRestoreOnSuccess()
64 verify(mStatement, times(1)).evaluate(); in testSetAndRestoreOnSuccess()
77 rule.apply(mStatement, mDescription).evaluate(); in testDontSetIfSameValueOnSuccess()
79 verify(mStatement, times(1)).evaluate(); in testDontSetIfSameValueOnSuccess()
89 rule.apply(mStatement, mDescription).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
91 verify(mStatement, times(1)).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
103 rule.apply(mStatement, mDescription).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess()
106 verify(mStatement, times(1)).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess()
116 doThrow(mRuntimeException).when(mStatement).evaluate(); in testSetAndRestoreOnFailure()
119 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetAndRestoreOnFailure()
[all …]
DStateKeeperRuleTest.java60 rule.apply(mStatement, mDescription).evaluate(); in testRestoreOnSuccess()
62 verify(mStatement, times(1)).evaluate(); in testRestoreOnSuccess()
72 doThrow(mRuntimeException).when(mStatement).evaluate(); in testRestoreOnFailure()
75 () -> rule.apply(mStatement, mDescription).evaluate()); in testRestoreOnFailure()
88 rule.apply(mStatement, mDescription).evaluate(); in testDoNotRestoreWhenNotChanged()
90 verify(mStatement, times(1)).evaluate(); in testDoNotRestoreWhenNotChanged()
98 doThrow(mRuntimeException).when(mStatement).evaluate(); in testDoNotRestoreOnFailure()
101 () -> rule.apply(mStatement, mDescription).evaluate()); in testDoNotRestoreOnFailure()
DSafeCleanerRuleTest.java50 public void evaluate() throws Throwable { in evaluate() method in SafeCleanerRuleTest.FailureStatement
70 rule.apply(mGoodGuyStatement, mDescription).evaluate(); in testEmptyRule_testPass()
77 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails()
85 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails_withDumper()
96 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails()
109 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails_withDumper()
124 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails()
142 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails_withDumper()
158 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrownAsCallable()
175 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrown()
[all …]
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DStateChangerRuleTest.java62 rule.apply(mStatement, mDescription).evaluate(); in testSetAndRestoreOnSuccess()
64 verify(mStatement, times(1)).evaluate(); in testSetAndRestoreOnSuccess()
77 rule.apply(mStatement, mDescription).evaluate(); in testDontSetIfSameValueOnSuccess()
79 verify(mStatement, times(1)).evaluate(); in testDontSetIfSameValueOnSuccess()
89 rule.apply(mStatement, mDescription).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
91 verify(mStatement, times(1)).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
103 rule.apply(mStatement, mDescription).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess()
106 verify(mStatement, times(1)).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess()
116 doThrow(mRuntimeException).when(mStatement).evaluate(); in testSetAndRestoreOnFailure()
119 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetAndRestoreOnFailure()
[all …]
DRetryRuleTest.java53 public void evaluate() throws Throwable { in evaluate() method in RetryRuleTest.RetryableStatement
77 .evaluate(); in testPassOnRetryableException()
87 .evaluate(); in testPassOnRetryableExceptionWithTimeout()
99 mDescription).evaluate()); in testFailOnRetryableException()
108 rule.apply(mMockStatement, mDescription).evaluate(); in testPassWhenDisabledAndStatementPass()
110 verify(mMockStatement, times(1)).evaluate(); in testPassWhenDisabledAndStatementPass()
117 doThrow(exception).when(mMockStatement).evaluate(); in testFailWhenDisabledAndStatementThrowsRetryableException()
120 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsRetryableException()
123 verify(mMockStatement, times(1)).evaluate(); in testFailWhenDisabledAndStatementThrowsRetryableException()
130 doThrow(exception).when(mMockStatement).evaluate(); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
[all …]
DStateKeeperRuleTest.java60 rule.apply(mStatement, mDescription).evaluate(); in testRestoreOnSuccess()
62 verify(mStatement, times(1)).evaluate(); in testRestoreOnSuccess()
72 doThrow(mRuntimeException).when(mStatement).evaluate(); in testRestoreOnFailure()
75 () -> rule.apply(mStatement, mDescription).evaluate()); in testRestoreOnFailure()
88 rule.apply(mStatement, mDescription).evaluate(); in testDoNotRestoreWhenNotChanged()
90 verify(mStatement, times(1)).evaluate(); in testDoNotRestoreWhenNotChanged()
98 doThrow(mRuntimeException).when(mStatement).evaluate(); in testDoNotRestoreOnFailure()
101 () -> rule.apply(mStatement, mDescription).evaluate()); in testDoNotRestoreOnFailure()
DSafeCleanerRuleTest.java50 public void evaluate() throws Throwable { in evaluate() method in SafeCleanerRuleTest.FailureStatement
70 rule.apply(mGoodGuyStatement, mDescription).evaluate(); in testEmptyRule_testPass()
77 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails()
85 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails_withDumper()
96 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails()
109 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails_withDumper()
124 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails()
142 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails_withDumper()
158 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrownAsCallable()
175 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrown()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java54 float result = floatEvaluator.evaluate(0, start, end); in testFloatEvaluator()
57 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator()
60 result = floatEvaluator.evaluate(1, start, end); in testFloatEvaluator()
79 float[] result = evaluator.evaluate(0, start, end); in floatArrayEvaluatorTestImpl()
83 result = evaluator.evaluate(fraction, start, end); in floatArrayEvaluatorTestImpl()
87 result = evaluator.evaluate(1, start, end); in floatArrayEvaluatorTestImpl()
111 int result = (Integer) evaluator.evaluate(0, START, END); in testArgbEvaluator()
121 result = (Integer) evaluator.evaluate(.5f, START, END); in testArgbEvaluator()
139 result = (Integer) evaluator.evaluate(1, START, END); in testArgbEvaluator()
157 int result = intEvaluator.evaluate(0, start, end); in testIntEvaluator()
[all …]
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DRequiredPropertyRule.java44 public void evaluate() throws Throwable { in apply()
45 base.evaluate(); in apply()
66 public void evaluate() throws Throwable {
72 base.evaluate();
86 public void evaluate() throws Throwable {
96 base.evaluate();
DRequiredFeatureRule.java45 public void evaluate() throws Throwable { in apply()
52 base.evaluate(); in apply()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DRetryRule.java52 public void evaluate() throws Throwable { in apply()
56 base.evaluate(); in apply()
64 base.evaluate(); in apply()
DBeforeAfterRule.java32 public void evaluate() throws Throwable { in apply()
35 base.evaluate(); in apply()
DOnFailureRule.java42 public void evaluate() throws Throwable { in apply()
44 base.evaluate(); in apply()
DRequiredFeatureRule.java45 public void evaluate() throws Throwable { in apply()
52 base.evaluate(); in apply()
DAdoptShellPermissionsRule.java62 public void evaluate() throws Throwable { in apply()
69 base.evaluate(); in apply()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DRetryRule.java69 public void evaluate() throws Throwable { in apply()
73 base.evaluate(); in apply()
81 base.evaluate(); in apply()
DBeforeAfterRule.java32 public void evaluate() throws Throwable { in apply()
35 base.evaluate(); in apply()
DOnFailureRule.java42 public void evaluate() throws Throwable { in apply()
44 base.evaluate(); in apply()
DRequiredFeatureRule.java52 public void evaluate() throws Throwable { in apply()
61 base.evaluate(); in apply()
DAdoptShellPermissionsRule.java61 public void evaluate() throws Throwable { in apply()
68 base.evaluate(); in apply()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DAbstractContentCaptureIntegrationActivityLessTest.java31 public void evaluate() throws Throwable { in getMainTestRule()
32 base.evaluate(); in getMainTestRule()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DTracer.java32 public void evaluate() throws Throwable { in apply()
36 base.evaluate(); in apply()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DTracer.java32 public void evaluate() throws Throwable { in apply()
36 base.evaluate(); in apply()
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DFlakyTestRule.java42 public void evaluate() throws Throwable { in apply()
46 statement.evaluate(); in apply()

123