Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCandidateScorerTest.java130 private double evaluate(ConcreteCandidate candidate) { in evaluate() method in CandidateScorerTest
142 assertEquals(evaluate(mCandidate1), evaluate(mCandidate2), TOL); in testEqualInputsShouldGiveTheSameResult()
150 assertThat(evaluate(mCandidate1.setFrequency(5180).setScanRssi(-44)), in testPrefer5GhzOver2GhzInNonFringeConditionsSimilarRssi()
151 greaterThan(evaluate(mCandidate2.setFrequency(2432).setScanRssi(-44)))); in testPrefer5GhzOver2GhzInNonFringeConditionsSimilarRssi()
159 assertThat(evaluate(mCandidate1.setScanRssi(-70)), in testPreferHigherRssi()
160 greaterThan(evaluate(mCandidate2.setScanRssi(-71)))); in testPreferHigherRssi()
168 assertThat(evaluate(mCandidate1), in testPreferASecureNetworkOverAnOpenOne()
169 greaterThan(evaluate(mCandidate2.setOpenNetwork(true)))); in testPreferASecureNetworkOverAnOpenOne()
177 assertThat(evaluate(mCandidate1.setScanRssi(-76).setCurrentNetwork(true) in testPreferTheCurrentNetworkEvenIfRssiDifferenceIsSignificant()
179 greaterThan(evaluate(mCandidate2.setScanRssi(-69) in testPreferTheCurrentNetworkEvenIfRssiDifferenceIsSignificant()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DDexmakerShareClassLoaderRuleTest.java49 mRule.apply(ASSERT_STATEMENT, null).evaluate(); in rule_setsProperty()
54 mRule.apply(ASSERT_STATEMENT, null).evaluate(); in rule_resetsProperty()
61 mRule.apply(ASSERT_STATEMENT, null).evaluate(); in rule_resetsProperty_toExactValue()
69 public void evaluate() throws Throwable { in rule_preventsOtherThreadFromInterfering()
75 new DexmakerShareClassLoaderRule().apply(ASSERT_STATEMENT, null).evaluate(); in rule_preventsOtherThreadFromInterfering()
90 }, null).evaluate(); in rule_preventsOtherThreadFromInterfering()
98 public void evaluate() throws Throwable { in rule_isReentrant()
100 new DexmakerShareClassLoaderRule().apply(ASSERT_STATEMENT, null).evaluate(); in rule_isReentrant()
103 }, null).evaluate(); in rule_isReentrant()
113 public void evaluate() throws Throwable {
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRuleTest.java40 public void evaluate() throws Throwable { in testRule_rethrows_unchecked_exceptions()
45 mWmsRule.apply(statement, null /* Description*/).evaluate(); in testRule_rethrows_unchecked_exceptions()
53 public void evaluate() throws Throwable { in testRule_rethrows_checked_exceptions()
58 mWmsRule.apply(statement, null /* Description*/).evaluate(); in testRule_rethrows_checked_exceptions()
67 public void evaluate() throws Throwable { in testRule_ranSuccessfully()
71 mWmsRule.apply(statement, null /* Description*/).evaluate(); in testRule_ranSuccessfully()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DStaticMockFixtureRuleTest.java98 doNothing().when(mStatement).evaluate(); in prepareMockBehaviours()
100 .when(mSkipStatement).evaluate(); in prepareMockBehaviours()
102 .when(mThrowStatement).evaluate(); in prepareMockBehaviours()
133 runMe.evaluate(); in testRuleWorksWithExplicitFixtures()
135 inOrder.verify(mStatement).evaluate(); in testRuleWorksWithExplicitFixtures()
141 rule.apply(mStatement, mDescription).evaluate(); in testRuleWorksWithExplicitFixtures()
147 inOrder.verify(mStatement).evaluate(); in testRuleWorksWithExplicitFixtures()
173 runMe.evaluate(); in testRuleWorksWithFixtureSuppliers()
175 inOrder.verify(mStatement).evaluate(); in testRuleWorksWithFixtureSuppliers()
181 rule.apply(mStatement, mDescription).evaluate(); in testRuleWorksWithFixtureSuppliers()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluationEngineTest.java88 assertThat(mEngine.evaluate(appInstallMetadata1).getEffect()) in testAllowedInstallers_empty()
90 assertThat(mEngine.evaluate(appInstallMetadata2).getEffect()) in testAllowedInstallers_empty()
92 assertThat(mEngine.evaluate(appInstallMetadata3).getEffect()) in testAllowedInstallers_empty()
107 assertThat(mEngine.evaluate(appInstallMetadata1).getEffect()) in testAllowedInstallers_oneElement()
116 assertThat(mEngine.evaluate(appInstallMetadata2).getEffect()) in testAllowedInstallers_oneElement()
125 assertThat(mEngine.evaluate(appInstallMetadata3).getEffect()) in testAllowedInstallers_oneElement()
134 assertThat(mEngine.evaluate(appInstallMetadata4).getEffect()) in testAllowedInstallers_oneElement()
150 assertThat(mEngine.evaluate(appInstallMetadata1).getEffect()) in testAllowedInstallers_multipleElement()
159 assertThat(mEngine.evaluate(appInstallMetadata2).getEffect()) in testAllowedInstallers_multipleElement()
168 assertThat(mEngine.evaluate(appInstallMetadata3).getEffect()) in testAllowedInstallers_multipleElement()
[all …]
/frameworks/base/libs/hwui/
DPropertyValuesHolder.cpp38 void ColorEvaluator::evaluate(SkColor* outColor, const SkColor& fromColor, const SkColor& toColor, in evaluate() function in android::uirenderer::ColorEvaluator
49 void PathEvaluator::evaluate(PathData* out, const PathData& from, const PathData& to, in evaluate() function in android::uirenderer::PathEvaluator
72 mEvaluator->evaluate(&value, mDataSource[lowIndex], mDataSource[lowIndex + 1], fraction); in getValueFromData()
82 mEvaluator->evaluate(&value, mStartValue, mEndValue, fraction); in calculateAnimatedValue()
103 mEvaluator->evaluate(&mPathData, mStartValue, mEndValue, fraction); in setFraction()
DPropertyValuesHolder.h40 virtual void evaluate(T* out, const T& from, const T& to, float fraction) const {}; in evaluate() function
46 virtual void evaluate(float* out, const float& from, const float& to, in evaluate() function
54 virtual void evaluate(SkColor* outColor, const SkColor& from, const SkColor& to,
59 virtual void evaluate(PathData* out, const PathData& from, const PathData& to,
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DSpeedClassifier.java38 return SpeedEvaluator.evaluate(0.0f); in getFalseTouchEvaluation()
40 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration); in getFalseTouchEvaluation()
DPointerCountEvaluator.java20 public static float evaluate(int value) { in evaluate() method in PointerCountEvaluator
DSpeedAnglesPercentageEvaluator.java20 public static float evaluate(float value) { in evaluate() method in SpeedAnglesPercentageEvaluator
DSpeedVarianceEvaluator.java20 public static float evaluate(float value) { in evaluate() method in SpeedVarianceEvaluator
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceThreadRule.java39 public void evaluate() throws Throwable { in apply()
44 base.evaluate(); in apply()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DPerfManualStatusReporter.java66 public void evaluate() throws Throwable { in apply()
67 base.evaluate(); in apply()
DStateKeeperRule.java50 public void evaluate() throws Throwable { in apply()
53 base.evaluate(); in apply()
DPerfStatusReporter.java65 public void evaluate() throws Throwable { in apply()
92 base.evaluate(); in apply()
/frameworks/base/core/java/android/animation/
DFloatKeyframeSet.java71 ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)). in getFloatValue()
87 ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)). in getFloatValue()
105 ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)). in getFloatValue()
DIntKeyframeSet.java71 ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)). in getIntValue()
87 … ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)).intValue(); in getIntValue()
104 ((Number)mEvaluator.evaluate(intervalFraction, prevValue, nextValue)). in getIntValue()
DKeyframeSet.java202 return mEvaluator.evaluate(fraction, mFirstKeyframe.getValue(), in getValue()
214 return mEvaluator.evaluate(intervalFraction, mFirstKeyframe.getValue(), in getValue()
225 return mEvaluator.evaluate(intervalFraction, prevKeyframe.getValue(), in getValue()
240 return mEvaluator.evaluate(intervalFraction, prevKeyframe.getValue(), in getValue()
DTypeEvaluator.java42 public T evaluate(float fraction, T startValue, T endValue); in evaluate() method
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java318 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_correctArgs()
325 verify(mRuleEvaluationEngine).evaluate(metadataCaptor.capture()); in handleBroadcast_correctArgs()
356 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_correctArgs_multipleCerts()
363 verify(mRuleEvaluationEngine).evaluate(metadataCaptor.capture()); in handleBroadcast_correctArgs_multipleCerts()
379 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_correctArgs_sourceStamp()
386 verify(mRuleEvaluationEngine).evaluate(metadataCaptor.capture()); in handleBroadcast_correctArgs_sourceStamp()
403 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_allow()
421 when(mRuleEvaluationEngine.evaluate(any())) in handleBroadcast_reject()
449 when(mRuleEvaluationEngine.evaluate(any())).thenReturn(IntegrityCheckResult.allow()); in handleBroadcast_notInitialized()
470 when(mRuleEvaluationEngine.evaluate(any())) in verifierAsInstaller_skipIntegrityVerification()
/frameworks/base/tests/PlatformCompatGating/test-rules/src/android/compat/testing/
DPlatformCompatChangeRule.java88 public void evaluate() throws Throwable { in evaluate() method in PlatformCompatChangeRule.CompatChangeStatement
106 mTestStatement.evaluate(); in evaluate()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java132 public void evaluate() throws Throwable { in evaluate() method in TimedStatement
138 mStatement.evaluate(); in evaluate()
159 mStatement.evaluate(); in evaluate()
/frameworks/base/core/tests/coretests/src/com/android/internal/content/
DOverlayConfigIterationRule.java114 public void evaluate() throws Throwable { in apply()
128 base.evaluate(); in apply()
155 base.evaluate(); in apply()
/frameworks/base/tests/testables/src/android/testing/
DDexmakerShareClassLoaderRule.java49 return apply(base::evaluate).toStatement(); in apply()
129 public void evaluate() throws Throwable {
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkResultsReporter.java42 public void evaluate() throws Throwable { in apply()
43 base.evaluate(); in apply()

1234