Home
last modified time | relevance | path

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

1234567

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DCandidateScorerTest.java170 private double evaluate(ConcreteCandidate candidate) { in evaluate() method in CandidateScorerTest
182 assertEquals(evaluate(mCandidate1), evaluate(mCandidate2), TOL); in testEqualInputsShouldGiveTheSameResult()
190 assertThat(evaluate(mCandidate1.setFrequency(5180).setScanRssi(-44)), in testPrefer5GhzOver2GhzInNonFringeConditionsSimilarRssi()
191 greaterThan(evaluate(mCandidate2.setFrequency(2432).setScanRssi(-44)))); in testPrefer5GhzOver2GhzInNonFringeConditionsSimilarRssi()
199 assertThat(evaluate(mCandidate1.setScanRssi(-70)), in testPreferHigherRssi()
200 greaterThan(evaluate(mCandidate2.setScanRssi(-71)))); in testPreferHigherRssi()
208 assertThat(evaluate(mCandidate1), in testPreferASecureNetworkOverAnOpenOne()
209 greaterThan(evaluate(mCandidate2.setOpenNetwork(true)))); in testPreferASecureNetworkOverAnOpenOne()
217 assertThat(evaluate(mCandidate1.setScanRssi(-76).setCurrentNetwork(true) in testPreferTheCurrentNetworkEvenIfRssiDifferenceIsSignificant()
219 greaterThan(evaluate(mCandidate2.setScanRssi(-69) in testPreferTheCurrentNetworkEvenIfRssiDifferenceIsSignificant()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/
DTaskbarUnitTestRuleTest.kt68 testRule.apply(EMPTY_STATEMENT, DESCRIPTION).evaluate() in testTeardown_taskbarDestroyed()
81 TaskbarUnitTestRule(testClass, context).apply(EMPTY_STATEMENT, DESCRIPTION).evaluate() in testInjectController_validControllerType_isInjected()
116 .evaluate() in testInjectController_invalidControllerType_exceptionThrown()
148 TaskbarUnitTestRule(testClass, context).apply(EMPTY_STATEMENT, DESCRIPTION).evaluate() in testInjectBubbleController_bubbleFlagOn_isInjected()
169 .evaluate() in testInjectBubbleController_bubbleFlagOff_exceptionThrown()
223 override fun evaluate() = runTest(testRule) in onSetup() method
227 .evaluate() in onSetup()
233 override fun evaluate() = Unit method
DTaskbarWindowSandboxContextTest.kt39 override fun evaluate() = Unit in testVirtualDisplay_releasedOnTeardown() method
43 .evaluate() in testVirtualDisplay_releasedOnTeardown()
DMockedRecentsModelTestRule.kt29 override fun evaluate() { in apply() method
30 base?.evaluate() in apply()
/packages/services/Car/tests/CarTestLibUnitTest/src/android/car/test/
DPermissionsCheckerRuleTest.java66 mRule.apply(mBaseStatement, testMethod).evaluate(); in testNoAnnotation()
77 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_onePermission()
91 () -> mRule.apply(mBaseStatement, testMethod).evaluate()); in testEnsureHasPermission_onePermissionTestThrows()
102 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_multiplePermissions()
114 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_permissionsAdoptedBefore()
127 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_annotatedClass()
145 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_annotatedClassAndParent()
/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/meta_testing/
DAbstractFlagsPreparerClassRuleIntegrationTestCase.java142 mRule.apply(mStatement, test).evaluate(); in testAnnotationLessRule()
170 mRule.apply(mStatement, test).evaluate(); in testMethodAnnotation_setSdkSandboxStateEnabledAnnotation()
192 mRule.apply(mStatement, test).evaluate(); in testMethodAnnotation_setSdkSandboxStateDisabledAnnotation()
213 mRule.apply(mStatement, test).evaluate(); in testMethodAnnotation_setSyncDisabledModeForTestAnnotation()
231 mRule.apply(mStatement, test).evaluate(); in testClassAnnotation_setSdkSandboxStateEnabled()
248 mRule.apply(mStatement, test).evaluate(); in testClassAnnotation_setSdkSandboxStateDisabled()
268 mRule.apply(mStatement, test).evaluate(); in testClassAnnotation_setSyncDisabledModeForTestAnnotation_untilReboot()
293 mRule.apply(mStatement, test).evaluate(); in testClassAndMethodAnnotation_setSyncDisabledModeForTestAnnotation_untilRebootThenNone()
314 mRule.apply(mStatement, test).evaluate(); in testAnnotationsFromSubclassAreExecutedFirstAndInOrder_sdkSandboxFirst()
342 mRule.apply(mStatement, test).evaluate(); in testAnnotationsFromSubclassAreExecutedFirstAndInOrder_deviceConfigFirst()
[all …]
DTestNamerRuleTester.java73 public void evaluate() throws Throwable { in assertInsideTest()
78 mRule.apply(statement, mDescription).evaluate(); in assertInsideTest()
92 public void evaluate() throws Throwable { in assertAfterTestThatFails()
99 Throwable.class, () -> mRule.apply(statement, mDescription).evaluate()); in assertAfterTestThatFails()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DAbstractLoggingUsageRuleTest.java56 () -> rule.evaluate(mBaseStatement, mDescription)); in testEvaluate_withNonTestDescription_throwsException()
73 rule.evaluate(mBaseStatement, mDescription); in testEvaluate_withSkipAnnotation_gracefullyExits()
86 rule.evaluate(mBaseStatement, mDescription); in testEvaluate_withNoLogVerifiers_gracefullyExits()
99 assertThrows(RuntimeException.class, () -> rule.evaluate(mBaseStatement, mDescription)); in testEvaluate_withStatementThrowsException_setupDoneButNoVerification()
113 IllegalArgumentException.class, () -> rule.evaluate(mBaseStatement, mDescription)); in testEvaluate_withLogVerifierThrowsException_throwsSameException()
134 rule.evaluate(mBaseStatement, mDescription); in testEvaluate_withSuccessfulExecution()
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/
DAbstractAdServicesDeviceSupportedRuleTest.java146 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithLowRam_deviceLowRam()
171 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithLargeScreen_deviceLargeScreen()
196 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithSmallScreen_deviceSmallScreen()
217 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithRequiresGoDevice_deviceGoDevice()
273 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithRequiresGoDeviceAndRequiresLowMemoryDevice_deviceBoth()
287 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithRequiresAndroidServiceAvailable_available()
355 mAdServicesDeviceSupportedRule.apply(mBaseStatement, methodDescription).evaluate(); in testAnnotatedWithRequiresAndroidServiceAvailable_methodOverridingClassAnnotation()
366 .evaluate()); in assertTestThrowsAssumptionsViolatedException()
/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractRule.java42 public void evaluate() throws Throwable { in apply()
45 AbstractRule.this.evaluate(base, description); in apply()
57 protected abstract void evaluate(Statement base, Description description) throws Throwable;
DSupportedByConditionRule.java50 public void evaluate() throws Throwable { in apply()
52 base.evaluate(); in apply()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DAccessNetworkEvaluator.java256 mHandler.post(this::evaluate); in rebuild()
288 mHandler.post(this::evaluate); in registerForQualifiedNetworksChanged()
525 evaluate(); in onQnsTelephonyInfoChanged()
549 evaluate(EVALUATE_SPECIFIC_REASON_IWLAN_DISABLE); in onIwlanNetworkStatusChanged()
551 evaluate(); in onIwlanNetworkStatusChanged()
583 evaluate(); in onWfcEnabledChanged()
585 evaluate(EVALUATE_SPECIFIC_REASON_IWLAN_DISABLE); in onWfcEnabledChanged()
619 evaluate(); in onWfcModeChanged()
636 evaluate(); in onWfcPlatformChanged()
655 evaluate(); in onRestrictInfoChanged()
[all …]
/packages/services/Car/libs/car-test-lib/src/android/car/test/
DApiCheckerRule.java272 public void evaluate() throws Throwable { in apply()
273 base.evaluate(); in apply()
284 public void evaluate() throws Throwable {
301 base.evaluate();
430 base.evaluate();
701 base.evaluate();
722 base.evaluate();
745 base.evaluate();
768 base.evaluate();
DPermissionsCheckerRule.java68 public void evaluate() throws Throwable { in apply()
95 base.evaluate(); in apply()
101 base.evaluate(); in apply()
/packages/modules/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/
DTestUtils.java155 public void evaluate() throws Throwable { in apply()
161 base.evaluate(); in apply()
192 public void evaluate() throws Throwable {
193 nestedStatement.evaluate();
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAbstractRuleTest.java47 mRule.apply(mBaseStatement, mDefaultDescription).evaluate(); in testApply()
103 protected void evaluate(Statement base, Description description) throws Throwable { in evaluate() method in AbstractRuleTest.ConcreteRule
105 base.evaluate(); in evaluate()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DSpeedClassifier.java36 return SpeedEvaluator.evaluate(0.0f); in getFalseTouchEvaluation()
38 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration); in getFalseTouchEvaluation()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaskbarModeSwitchRule.java78 public void evaluate() throws Throwable { in apply()
100 base.evaluate(); in apply()
105 base.evaluate(); in apply()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DPortraitLandscapeRunner.java48 public void evaluate() throws Throwable { in apply()
94 base.evaluate(); in apply()
104 base.evaluate(); in apply()
/packages/apps/Car/systemlibs/car-scalable-ui-lib/src/com/android/car/scalableui/model/
DVariant.java140 Rect bounds = mRectEvaluator.evaluate(fraction, fromBounds, toBounds); in getAnimator()
142 float alpha = mFloatEvaluator.evaluate(fraction, fromAlpha, toAlpha); in getAnimator()
144 int radius = mIntEvaluator.evaluate(fraction, fromCornerRadius, in getAnimator()
147 Rect insets = mRectEvaluator.evaluate(fraction, fromInsets, in getAnimator()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestRule.kt31 override fun evaluate() { in apply() method
34 base.evaluate() in apply()
DSupportsSafetyCenterRule.kt39 override fun evaluate() { in apply() method
46 base.evaluate() in apply()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DAssumptionCheckerRule.java52 public void evaluate() throws Throwable { in apply()
54 base.evaluate(); in apply()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DDeviceExclusionRule.java47 public void evaluate() throws Throwable { in apply()
54 base.evaluate(); in apply()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DCtsNotificationListenerHelperRule.kt35 override fun evaluate() { in apply() method
45 base.evaluate() in apply()

1234567