Home
last modified time | relevance | path

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

/cts/tests/tests/animation/src/android/animation/cts/
DInterpolatorTest.java76 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { in testFastOutExtraSlowIn()
77 assertTrue(interpolator.getInterpolation(fraction) in testFastOutExtraSlowIn()
78 < fraction / turningPointX * turningPointY); in testFastOutExtraSlowIn()
83 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) { in testFastOutExtraSlowIn()
84 float value = interpolator.getInterpolation(fraction); in testFastOutExtraSlowIn()
85 assertTrue((value - turningPointY) / (fraction - turningPointX) in testFastOutExtraSlowIn()
DKeyframeTest.java38 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()
DEvaluatorTest.java51 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 …]
DObjectAnimatorTest.java229 public Float evaluate(float fraction, Float startValue, Float endValue) { in testOfObject_generic()
230 return startValue + fraction * (endValue - startValue); in testOfObject_generic()
448 float fraction = animation.getAnimatedFraction(); in testOfFloat_Path() local
461 assertTrue(fraction < firstSegEndFraction + delta); in testOfFloat_Path()
469 assertTrue(fraction > firstSegEndFraction - delta); in testOfFloat_Path()
503 float fraction = animation.getAnimatedFraction(); in testOfInt_Path() local
517 assertTrue(fraction <= 0.75f); in testOfInt_Path()
525 assertTrue(fraction >= 0.75f); in testOfInt_Path()
568 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Path()
571 if (fraction < 0.5) { in testOfMultiFloat_Path()
[all …]
DPropertyValuesHolderTest.java355 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Path()
358 if (fraction < 0.5) { in testOfMultiFloat_Path()
368 } else if (fraction <= 0.5) { in testOfMultiFloat_Path()
375 lastFraction = fraction; in testOfMultiFloat_Path()
408 float fraction = animation.getAnimatedFraction(); in testOfMultiFloat_Array() local
412 float expectedX = fraction * (data.length - 1); in testOfMultiFloat_Array()
449 float fraction = animation.getAnimatedFraction(); in testOfMultiInt_Path()
452 if (fraction < 0.5) { in testOfMultiInt_Path()
462 } else if (fraction <= 0.5) { in testOfMultiInt_Path()
469 lastFraction = fraction; in testOfMultiInt_Path()
[all …]
DValueAnimatorTest.java428 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { in testSetObjectValues()
429 tmpValue.x = fraction * startValue.x + (1f - fraction) * endValue.x; in testSetObjectValues()
430 tmpValue.y = fraction * startValue.y + (1f - fraction) * endValue.y; in testSetObjectValues()
543 float fraction = i / (float) sliceNum; in testGetAnimatedValue() local
544 animator.setCurrentFraction(fraction); in testGetAnimatedValue()
545 assertEquals(myInterpolator.getInterpolation(fraction), in testGetAnimatedValue()
561 float fraction = i / (float) sliceNum; in testGetAnimatedValue_PropertyName() local
562 animator.setCurrentFraction(fraction); in testGetAnimatedValue_PropertyName()
563 assertEquals(myInterpolator.getInterpolation(fraction), in testGetAnimatedValue_PropertyName()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationUtils.java37 (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)));
DWindowInsetsAnimationTestBase.java126 assertEquals(0f, steps.get(0).fraction, 0f); in assertAnimationSteps()
128 assertEquals(1f, steps.get(steps.size() - 1).fraction, 0f); in assertAnimationSteps()
136 assertListElements(steps, step -> step.fraction, in assertAnimationSteps()
183 AnimationStep(WindowInsets insets, float fraction, float interpolatedFraction, in AnimationStep() argument
186 this.fraction = fraction; in AnimationStep()
192 public float fraction; field in WindowInsetsAnimationTestBase.AnimCallback.AnimationStep
/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/windowmanager/src/android/server/wm/animations/
DManifestLayoutTests.java181 private static Size calculateExpectedSize(Rect stableBounds, boolean fraction) { in calculateExpectedSize() argument
186 if (fraction) { in calculateExpectedSize()
210 private void validateGravityInfluencesSize(int vGravity, int hGravity, boolean fraction) in validateGravityInfluencesSize() argument
216 final Size expectedSize = calculateExpectedSize(stableBounds, fraction); in validateGravityInfluencesSize()
/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.java548 private long doAllocateReceiver(String pkg, double fraction, long time) throws Exception { in doAllocateReceiver() argument
553 intent.putExtra(UtilsReceiver.EXTRA_FRACTION, fraction); in doAllocateReceiver()
568 private long doAllocateProvider(String pkg, double fraction, long time) throws Exception { in doAllocateProvider() argument
570 args.putDouble(UtilsReceiver.EXTRA_FRACTION, fraction); in doAllocateProvider()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationControllerTests.java589 float fraction = runningAnimations.get(0).getFraction(); in setupAnimationListener()
591 String.format(Locale.US, "onProgress(%.2f)", fraction), in setupAnimationListener()
596 fraction, in setupAnimationListener()
/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()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt859 field public static final int fraction = 16843992; // 0x10104d8
2351 public static final class R.fraction {
2352 ctor public R.fraction();
49111 field public static final String TYPE_FRACTION = "android.type.fraction";