/frameworks/base/core/java/android/animation/ |
H A D | FloatEvaluator.java | 26 * <code>fraction</code> representing the proportion between the start and end values. The 29 * and <code>t</code> is <code>fraction</code>. 31 * @param fraction The fraction from the starting to the ending values 36 * <code>fraction</code> parameter. 38 public Float evaluate(float fraction, Number startValue, Number endValue) { argument 40 return startFloat + fraction * (endValue.floatValue() - startFloat);
|
H A D | IntEvaluator.java | 26 * <code>fraction</code> representing the proportion between the start and end values. The 29 * and <code>t</code> is <code>fraction</code>. 31 * @param fraction The fraction from the starting to the ending values 36 * <code>fraction</code> parameter. 38 public Integer evaluate(float fraction, Integer startValue, Integer endValue) { argument 40 return (int)(startInt + fraction * (endValue - startInt));
|
H A D | TypeEvaluator.java | 31 * <code>fraction</code> representing the proportion between the start and end values. The 34 * and <code>t</code> is <code>fraction</code>. 36 * @param fraction The fraction from the starting to the ending values 40 * <code>fraction</code> parameter. 42 public T evaluate(float fraction, T startValue, T endValue); argument
|
H A D | ArgbEvaluator.java | 44 * @param fraction The fraction from the starting to the ending values 54 public Object evaluate(float fraction, Object startValue, Object endValue) { argument 77 float a = startA + fraction * (endA - startA); 78 float r = startR + fraction * (endR - startR); 79 float g = startG + fraction * (endG - startG); 80 float b = startB + fraction * (endB - startB);
|
H A D | FloatArrayEvaluator.java | 52 * Interpolates the value at each index by the fraction. If 57 * @param fraction The fraction from the starting to the ending values 64 public float[] evaluate(float fraction, float[] startValue, float[] endValue) { argument 73 array[i] = start + (fraction * (end - start));
|
H A D | FloatKeyframeSet.java | 39 public Object getValue(float fraction) { argument 40 return getFloatValue(fraction); 56 public float getFloatValue(float fraction) { argument 57 if (fraction <= 0f) { 66 fraction = interpolator.getInterpolation(fraction); 68 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); 73 } else if (fraction >= 1f) { 82 fraction = interpolator.getInterpolation(fraction); [all...] |
H A D | IntArrayEvaluator.java | 52 * Interpolates the value at each index by the fraction. If {@link #IntArrayEvaluator(int[])} 56 * @param fraction The fraction from the starting to the ending values 63 public int[] evaluate(float fraction, int[] startValue, int[] endValue) { argument 71 array[i] = (int) (start + (fraction * (end - start)));
|
H A D | IntKeyframeSet.java | 39 public Object getValue(float fraction) { argument 40 return getIntValue(fraction); 56 public int getIntValue(float fraction) { argument 57 if (fraction <= 0f) { 66 fraction = interpolator.getInterpolation(fraction); 68 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); 73 } else if (fraction >= 1f) { 82 fraction = interpolator.getInterpolation(fraction); [all...] |
H A D | PointFEvaluator.java | 56 * end PointF values, with <code>fraction</code> representing the proportion 65 * @param fraction The fraction from the starting to the ending values 69 * <code>fraction</code> parameter. 72 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { argument 73 float x = startValue.x + (fraction * (endValue.x - startValue.x)); 74 float y = startValue.y + (fraction * (endValue.y - startValue.y));
|
H A D | RectEvaluator.java | 56 * end Rect values, with <code>fraction</code> representing the proportion 65 * @param fraction The fraction from the starting to the ending values 69 * <code>fraction</code> parameter. 72 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { argument 73 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 74 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); 75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); 76 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
|
H A D | Keyframes.java | 43 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the 45 * function maps the input fraction to the appropriate keyframe interval and a fraction 46 * between them and returns the interpolated value. Note that the input fraction may fall 48 * spring interpolation that might send the fraction past 1.0). We handle this situation by 51 * @param fraction The elapsed fraction of the animation 54 Object getValue(float fraction); argument 71 * @param fraction The elapsed fraction o 74 getIntValue(float fraction) argument 87 getFloatValue(float fraction) argument [all...] |
H A D | TimeAnimator.java | 69 void animateValue(float fraction) { argument
|
H A D | KeyframeSet.java | 185 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the 187 * function maps the input fraction to the appropriate keyframe interval and a fraction 188 * between them and returns the interpolated value. Note that the input fraction may fall 190 * spring interpolation that might send the fraction past 1.0). We handle this situation by 193 * @param fraction The elapsed fraction of the animation 196 public Object getValue(float fraction) { argument 200 fraction = mInterpolator.getInterpolation(fraction); [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | Parallaxable.java | 23 * implement this interface to receive the current parallax fraction to use when 28 * @param fraction the vertical center point for the viewport, in the range [0,1] 30 void setParallaxFraction(float fraction); argument
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | pow2.cpp | 83 fraction = Fractional part whose valid range is 0 <= value < 1 103 This function computes L_x = pow(2.0, exponent.fraction) 107 1- i = bit10-b15 of fraction, 0 <= i <= 31 108 2- a = bit0-b9 of fraction 127 Word16 fraction // (i) : Fractional part. (range: 0.0<=val<1.0) 133 L_x = L_mult (fraction, 32); // L_x = fraction<<6 134 i = extract_h (L_x); // Extract b10-b16 of fraction 136 a = extract_l (L_x); // Extract b0-b9 of fraction 178 Word16 fraction, /* ( 176 Pow2( Word16 exponent, Word16 fraction, Flag *pOverflow ) argument [all...] |
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | FloatArrayEvaluator.java | 44 * Interpolates the value at each index by the fraction. If 49 * @param fraction The fraction from the starting to the ending values 56 public float[] evaluate(float fraction, float[] startValue, float[] endValue) { argument 65 array[i] = start + (fraction * (end - start));
|
H A D | RectEvaluator.java | 58 * end Rect values, with <code>fraction</code> representing the proportion 67 * @param fraction The fraction from the starting to the ending values 71 * <code>fraction</code> parameter. 74 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { argument 75 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 76 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); 77 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); 78 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
|
H A D | PathProperty.java | 57 public void set(T target, Float fraction) { argument 58 mCurrentFraction = fraction; 59 mPathMeasure.getPosTan(mPathLength * fraction, mPosition, null);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | RectFEvaluator.java | 30 * end Rect values, with <code>fraction</code> representing the proportion 37 * @param fraction The fraction from the starting to the ending values 41 * <code>fraction</code> parameter. 44 public RectF evaluate(float fraction, RectF startValue, RectF endValue) { argument 45 float left = startValue.left + ((endValue.left - startValue.left) * fraction); 46 float top = startValue.top + ((endValue.top - startValue.top) * fraction); 47 float right = startValue.right + ((endValue.right - startValue.right) * fraction); 48 float bottom = startValue.bottom + ((endValue.bottom - startValue.bottom) * fraction);
|
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/ |
H A D | ArgbEvaluator.java | 52 * @param fraction The fraction from the starting to the ending values 63 public Object evaluate(float fraction, Object startValue, Object endValue) { argument 86 float a = startA + fraction * (endA - startA); 87 float r = startR + fraction * (endR - startR); 88 float g = startG + fraction * (endG - startG); 89 float b = startB + fraction * (endB - startB);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | ParallaxTarget.java | 34 * Implementation class is supposed to update target with the provided fraction 35 * (between 0 and 1). The fraction represents percentage of completed change (e.g. scroll) on 38 * @param fraction Fraction between 0 to 1. 41 public void update(float fraction) { argument 46 * {@link #directUpdate(Number)} will be used to update value, otherwise update(fraction) will 89 public void update(float fraction) { argument 90 mFraction = fraction; 91 mAnimator.setCurrentPlayTime((long) (PSEUDO_DURATION * fraction));
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | CompactExtractEditLayout.java | 69 private int applyFractionInt(@FractionRes int fraction, int whole) { argument 70 return Math.round(getResources().getFraction(fraction, whole, whole)); 90 com.android.internal.R.fraction.input_extract_layout_height, screenHeightPx)); 93 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_left, 96 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_right, 101 applyFractionInt(com.android.internal.R.fraction.input_extract_text_margin_bottom, 105 applyFractionInt(com.android.internal.R.fraction.input_extract_action_margin_bottom,
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionUtils.java | 206 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { argument 211 mTempEndValues[i] = mTempStartValues[i] + (fraction * diff);
|
/frameworks/base/libs/hwui/ |
H A D | PropertyValuesHolder.cpp | 29 inline constexpr float lerp(float fromValue, float toValue, float fraction) { argument 30 return float(fromValue * (1 - fraction) + toValue * fraction); 39 float fraction) const { 40 float a = lerp(SkColorGetA(fromColor) / 255.0f, SkColorGetA(toColor) / 255.0f, fraction); 41 float r = lerp(linearize(SkColorGetR(fromColor)), linearize(SkColorGetR(toColor)), fraction); 42 float g = lerp(linearize(SkColorGetG(fromColor)), linearize(SkColorGetG(toColor)), fraction); 43 float b = lerp(linearize(SkColorGetB(fromColor)), linearize(SkColorGetB(toColor)), fraction); 50 float fraction) const { 51 VectorDrawableUtils::interpolatePaths(out, from, to, fraction); 87 setFraction(float fraction) argument 92 setFraction(float fraction) argument 97 setFraction(float fraction) argument 102 setFraction(float fraction) argument 107 setFraction(float fraction) argument [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/ |
H A D | BoundsRule.java | 35 * Creates ValueRule using a fraction of parent size. 37 * @param fraction Percentage of parent. 40 public static ValueRule inheritFromParent(float fraction) { argument 41 return new ValueRule(0, fraction); 55 * Creates ValueRule of fraction and offset. 57 * @param fraction Percentage of parent. 61 public static ValueRule inheritFromParentWithOffset(float fraction, int value) { argument 62 return new ValueRule(value, fraction); 65 ValueRule(int absoluteValue, float fraction) { argument 67 this.mFraction = fraction; 80 setFraction(float fraction) argument [all...] |