Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/animation/src/android/animation/cts/
DInterpolatorTest.java66 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()
DKeyframeTest.java37 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()
DEvaluatorTest.java50 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 …]
DObjectAnimatorTest.java394 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 …]
DPropertyValuesHolderTest.java340 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 …]
DValueAnimatorTest.java415 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/
DUtilsReceiver.java68 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/
DActivityManagerManifestLayoutTests.java124 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/
DIconHeaderItemPresenter.java39 .getFraction(R.fraction.lb_browse_header_unselect_alpha, 1, 1); in onCreateViewHolder()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java390 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/
DCoreMathVerifier.java819 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()