/cts/tests/tests/animation/src/android/animation/cts/ |
D | InterpolatorTest.java | 67 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { in testFastOutExtraSlowIn() 68 assertTrue(interpolator.getInterpolation(fraction) in testFastOutExtraSlowIn() 69 < fraction / turningPointX * turningPointY); in testFastOutExtraSlowIn() 74 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) { in testFastOutExtraSlowIn() 75 float value = interpolator.getInterpolation(fraction); in testFastOutExtraSlowIn() 76 assertTrue((value - turningPointY) / (fraction - turningPointX) in testFastOutExtraSlowIn()
|
D | KeyframeTest.java | 38 float fraction = keyFrame.getFraction(); in testGetFraction() local 39 assertEquals(0.0f, fraction, 0.0f); in testGetFraction() 46 float fraction = keyFrame.getFraction(); in testSetFraction() local 47 assertEquals(0.5f, fraction, 0.0f); in testSetFraction() 53 float fraction = keyFrame.getFraction(); in testOfFloat() local 54 assertEquals(0.0f, fraction, 0.0f); in testOfFloat() 74 float fraction = keyFrame.getFraction(); in testOfObject() local 75 assertEquals(0.0f, fraction, 0.0f); in testOfObject()
|
D | EvaluatorTest.java | 51 float fraction = 0.5f; in testFloatEvaluator() local 57 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator() 77 float fraction = 0.5f; in floatArrayEvaluatorTestImpl() local 83 result = evaluator.evaluate(fraction, start, end); in floatArrayEvaluatorTestImpl() 154 final float fraction = 0.5f; in testIntEvaluator() local 160 result = intEvaluator.evaluate(fraction, start, end); in testIntEvaluator() 180 float fraction = 0.5f; in intArrayEvaluatorTestImpl() local 186 result = evaluator.evaluate(fraction, start, end); in intArrayEvaluatorTestImpl() 212 final float fraction = 0.5f; in rectEvaluatorTestImpl() local 220 result = evaluator.evaluate(fraction, start, end); in rectEvaluatorTestImpl() [all …]
|
D | ObjectAnimatorTest.java | 394 float fraction = animation.getAnimatedFraction(); in testOfFloat_Path() local 407 assertTrue(fraction < firstSegEndFraction + delta); in testOfFloat_Path() 415 assertTrue(fraction > firstSegEndFraction - delta); in testOfFloat_Path() 449 float fraction = animation.getAnimatedFraction(); in testOfInt_Path() local 463 assertTrue(fraction <= 0.75f); in testOfInt_Path() 471 assertTrue(fraction >= 0.75f); in testOfInt_Path() 514 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Path() 517 if (fraction < 0.5) { in testOfMultiFloat_Path() 527 } else if (fraction <= 0.5) { in testOfMultiFloat_Path() 534 lastFraction = fraction; in testOfMultiFloat_Path() [all …]
|
D | PropertyValuesHolderTest.java | 341 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Path() 344 if (fraction < 0.5) { in testOfMultiFloat_Path() 354 } else if (fraction <= 0.5) { in testOfMultiFloat_Path() 361 lastFraction = fraction; in testOfMultiFloat_Path() 394 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Array() local 398 float expectedX = fraction * (data.length - 1); in testOfMultiFloat_Array() 435 float fraction = animation.getAnimatedFraction(); in testOfMultiInt_Path() 438 if (fraction < 0.5) { in testOfMultiInt_Path() 448 } else if (fraction <= 0.5) { in testOfMultiInt_Path() 455 lastFraction = fraction; in testOfMultiInt_Path() [all …]
|
D | ValueAnimatorTest.java | 419 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { in testSetObjectValues() 420 tmpValue.x = fraction * startValue.x + (1f - fraction) * endValue.x; in testSetObjectValues() 421 tmpValue.y = fraction * startValue.y + (1f - fraction) * endValue.y; in testSetObjectValues() 534 float fraction = i / (float) sliceNum; in testGetAnimatedValue() local 535 animator.setCurrentFraction(fraction); in testGetAnimatedValue() 536 assertEquals(myInterpolator.getInterpolation(fraction), in testGetAnimatedValue() 552 float fraction = i / (float) sliceNum; in testGetAnimatedValue_PropertyName() local 553 animator.setCurrentFraction(fraction); in testGetAnimatedValue_PropertyName() 554 assertEquals(myInterpolator.getInterpolation(fraction), in testGetAnimatedValue_PropertyName()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationUtils.java | 37 (fraction, startValue, endValue) -> Insets.of( 38 (int) (startValue.left + fraction * (endValue.left - startValue.left)), 39 (int) (startValue.top + fraction * (endValue.top - startValue.top)), 40 (int) (startValue.right + fraction * (endValue.right - startValue.right)), 41 (int) (startValue.bottom + fraction * (endValue.bottom - startValue.bottom)));
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsAnimationTestBase.java | 118 assertEquals(0f, steps.get(0).fraction, 0f); in assertAnimationSteps() 120 assertEquals(1f, steps.get(steps.size() - 1).fraction, 0f); in assertAnimationSteps() 128 assertListElements(steps, step -> step.fraction, in assertAnimationSteps() 175 AnimationStep(WindowInsets insets, float fraction, float interpolatedFraction, in AnimationStep() argument 178 this.fraction = fraction; in AnimationStep() 184 float fraction; field in WindowInsetsAnimationTestBase.AnimCallback.AnimationStep
|
D | ManifestLayoutTests.java | 131 int vGravity, int hGravity, boolean fraction) throws Exception { in testLayout() argument 157 if (fraction) { in testLayout()
|
D | WindowInsetsAnimationControllerTests.java | 498 float fraction = runningAnimations.get(0).getFraction(); in setupAnimationListener() 500 String.format(Locale.US, "onProgress(%.2f)", fraction), in setupAnimationListener() 503 fraction, equalTo(mAnimator.getAnimatedFraction())); in setupAnimationListener()
|
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
D | UtilsReceiver.java | 68 final double fraction = extras.getDouble(EXTRA_FRACTION, 0); in doAllocation() local 70 final long bytes = (long) (quota * fraction); in doAllocation()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | IconHeaderItemPresenter.java | 39 .getFraction(R.fraction.lb_browse_header_unselect_alpha, 1, 1); in onCreateViewHolder()
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 424 private long doAllocateReceiver(String pkg, double fraction, long time) throws Exception { in doAllocateReceiver() argument 429 intent.putExtra(UtilsReceiver.EXTRA_FRACTION, fraction); in doAllocateReceiver() 444 private long doAllocateProvider(String pkg, double fraction, long time) throws Exception { in doAllocateProvider() argument 446 args.putDouble(UtilsReceiver.EXTRA_FRACTION, fraction); in doAllocateProvider()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | CoreMathVerifier.java | 819 static private Target.Floaty mix(double start, double stop, double fraction, Target t) { in mix() argument 822 Target.Floaty inFraction = t.newFloaty(fraction); in mix()
|