/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 | 418 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { in testSetObjectValues() 419 tmpValue.x = fraction * startValue.x + (1f - fraction) * endValue.x; in testSetObjectValues() 420 tmpValue.y = fraction * startValue.y + (1f - fraction) * endValue.y; in testSetObjectValues() 533 float fraction = i / (float) sliceNum; in testGetAnimatedValue() local 534 animator.setCurrentFraction(fraction); in testGetAnimatedValue() 535 assertEquals(myInterpolator.getInterpolation(fraction), in testGetAnimatedValue() 551 float fraction = i / (float) sliceNum; in testGetAnimatedValue_PropertyName() local 552 animator.setCurrentFraction(fraction); in testGetAnimatedValue_PropertyName() 553 assertEquals(myInterpolator.getInterpolation(fraction), in testGetAnimatedValue_PropertyName()
|
/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/framework/base/windowmanager/src/android/server/wm/ |
D | ManifestLayoutTests.java | 126 int vGravity, int hGravity, boolean fraction) throws Exception { in testLayout() argument 149 if (fraction) { in testLayout()
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 390 private long doAllocateReceiver(String pkg, double fraction, long time) throws Exception { in doAllocateReceiver() argument 395 intent.putExtra(UtilsReceiver.EXTRA_FRACTION, fraction); in doAllocateReceiver() 410 private long doAllocateProvider(String pkg, double fraction, long time) throws Exception { in doAllocateProvider() argument 412 args.putDouble(UtilsReceiver.EXTRA_FRACTION, fraction); in doAllocateProvider()
|
/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/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()
|