/cts/tests/tests/animation/src/android/animation/cts/ |
D | InterpolatorTest.java | 66 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { in testFastOutExtraSlowIn() 67 assertTrue(interpolator.getInterpolation(fraction) in testFastOutExtraSlowIn() 68 < fraction / turningPointX * turningPointY); in testFastOutExtraSlowIn() 73 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) { in testFastOutExtraSlowIn() 74 float value = interpolator.getInterpolation(fraction); in testFastOutExtraSlowIn() 75 assertTrue((value - turningPointY) / (fraction - turningPointX) in testFastOutExtraSlowIn()
|
D | KeyframeTest.java | 37 float fraction = keyFrame.getFraction(); in testGetFraction() local 38 assertEquals(0.0f, fraction, 0.0f); in testGetFraction() 45 float fraction = keyFrame.getFraction(); in testSetFraction() local 46 assertEquals(0.5f, fraction, 0.0f); in testSetFraction() 52 float fraction = keyFrame.getFraction(); in testOfFloat() local 53 assertEquals(0.0f, fraction, 0.0f); in testOfFloat() 73 float fraction = keyFrame.getFraction(); in testOfObject() local 74 assertEquals(0.0f, fraction, 0.0f); in testOfObject()
|
D | EvaluatorTest.java | 50 float fraction = 0.5f; in testFloatEvaluator() local 56 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator() 76 float fraction = 0.5f; in floatArrayEvaluatorTestImpl() local 82 result = evaluator.evaluate(fraction, start, end); in floatArrayEvaluatorTestImpl() 153 final float fraction = 0.5f; in testIntEvaluator() local 159 result = intEvaluator.evaluate(fraction, start, end); in testIntEvaluator() 179 float fraction = 0.5f; in intArrayEvaluatorTestImpl() local 185 result = evaluator.evaluate(fraction, start, end); in intArrayEvaluatorTestImpl() 211 final float fraction = 0.5f; in rectEvaluatorTestImpl() local 219 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 | 340 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Path() 343 if (fraction < 0.5) { in testOfMultiFloat_Path() 353 } else if (fraction <= 0.5) { in testOfMultiFloat_Path() 360 lastFraction = fraction; in testOfMultiFloat_Path() 393 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Array() local 397 float expectedX = fraction * (data.length - 1); in testOfMultiFloat_Array() 434 float fraction = animation.getAnimatedFraction(); in testOfMultiInt_Path() 437 if (fraction < 0.5) { in testOfMultiInt_Path() 447 } else if (fraction <= 0.5) { in testOfMultiInt_Path() 454 lastFraction = fraction; in testOfMultiInt_Path() [all …]
|
D | ValueAnimatorTest.java | 415 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { in testSetObjectValues() 416 tmpValue.x = fraction * startValue.x + (1f - fraction) * endValue.x; in testSetObjectValues() 417 tmpValue.y = fraction * startValue.y + (1f - fraction) * endValue.y; in testSetObjectValues()
|
/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/activitymanager/src/android/server/am/ |
D | ActivityManagerManifestLayoutTests.java | 124 int vGravity, int hGravity, boolean fraction) throws Exception { in testLayout() argument 147 if (fraction) { in testLayout()
|
/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 | 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/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()
|