/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 67 return (int)((startA + (int)(fraction * (endA - startA))) << 24) | 68 (int)((startR + (int)(fraction * (endR - startR))) << 16) | 69 (int)((startG + (int)(fraction * (endG - startG))) << 8) | 70 (int)((startB + (int)(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 | 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 | 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 | FloatKeyframeSet.java | 44 public Object getValue(float fraction) { argument 45 return getFloatValue(fraction); 66 public float getFloatValue(float fraction) { argument 75 fraction = mInterpolator.getInterpolation(fraction); 78 return firstValue + fraction * deltaValue; 80 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).floatValue(); 83 if (fraction <= 0f) { 92 fraction = interpolator.getInterpolation(fraction); [all...] |
H A D | IntKeyframeSet.java | 44 public Object getValue(float fraction) { argument 45 return getIntValue(fraction); 66 public int getIntValue(float fraction) { argument 75 fraction = mInterpolator.getInterpolation(fraction); 78 return firstValue + (int)(fraction * deltaValue); 80 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).intValue(); 83 if (fraction <= 0f) { 92 fraction = interpolator.getInterpolation(fraction); [all...] |
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 77 * @param fraction The elapsed fraction o 80 getIntValue(float fraction) argument 93 getFloatValue(float fraction) argument [all...] |
H A D | TimeAnimator.java | 69 void animateValue(float fraction) { argument
|
H A D | KeyframeSet.java | 193 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the 195 * function maps the input fraction to the appropriate keyframe interval and a fraction 196 * between them and returns the interpolated value. Note that the input fraction may fall 198 * spring interpolation that might send the fraction past 1.0). We handle this situation by 201 * @param fraction The elapsed fraction of the animation 204 public Object getValue(float fraction) { argument 208 fraction = mInterpolator.getInterpolation(fraction); [all...] |
H A D | Keyframe.java | 76 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction 82 public static Keyframe ofInt(float fraction, int value) { argument 83 return new IntKeyframe(fraction, value); 95 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction 98 public static Keyframe ofInt(float fraction) { argument 99 return new IntKeyframe(fraction); 108 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction 114 ofFloat(float fraction, float value) argument 130 ofFloat(float fraction) argument 146 ofObject(float fraction, Object value) argument 162 ofObject(float fraction) argument 221 setFraction(float fraction) argument 269 ObjectKeyframe(float fraction, Object value) argument 304 IntKeyframe(float fraction, int value) argument 311 IntKeyframe(float fraction) argument 351 FloatKeyframe(float fraction, float value) argument 358 FloatKeyframe(float fraction) argument [all...] |
H A D | PathKeyframes.java | 66 public Object getValue(float fraction) { argument 68 if (fraction < 0) { 69 return interpolateInRange(fraction, 0, 1); 70 } else if (fraction > 1) { 71 return interpolateInRange(fraction, numPoints - 2, numPoints - 1); 72 } else if (fraction == 0) { 74 } else if (fraction == 1) { 85 if (fraction < midFraction) { 87 } else if (fraction > midFraction) { 94 // now high is below the fraction an 99 interpolateInRange(float fraction, int startIndex, int endIndex) argument 150 interpolate(float fraction, float startValue, float endValue) argument 242 getValue(float fraction) argument 255 getValue(float fraction) argument [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/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
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/base/libs/hwui/ |
H A D | PropertyValuesHolder.cpp | 28 float PropertyValuesHolder::getValueFromData(float fraction) { argument 33 if (fraction <= 0.0f) { 36 if (fraction >= 1.0f) { 40 fraction *= mDataSource.size() - 1; 41 int lowIndex = floor(fraction); 42 fraction -= lowIndex; 44 float value = mDataSource[lowIndex] * (1.0f - fraction) 45 + mDataSource[lowIndex + 1] * fraction; 49 void GroupPropertyValuesHolder::setFraction(float fraction) { argument 52 animatedValue = getValueFromData(fraction); 59 lerp(U8CPU fromValue, U8CPU toValue, float fraction) argument 64 interpolateColors(SkColor fromColor, SkColor toColor, float fraction) argument 73 setFraction(float fraction) argument 78 setFraction(float fraction) argument 88 setFraction(float fraction) argument 93 setFraction(float fraction) argument [all...] |
/frameworks/support/design/base/android/support/design/widget/ |
H A D | AnimationUtils.java | 36 * Linear interpolation between {@code startValue} and {@code endValue} by {@code fraction}. 38 static float lerp(float startValue, float endValue, float fraction) { argument 39 return startValue + (fraction * (endValue - startValue)); 42 static int lerp(int startValue, int endValue, float fraction) { argument 43 return startValue + Math.round(fraction * (endValue - startValue));
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | CompactExtractEditLayout.java | 67 private int applyFractionInt(@FractionRes int fraction, int whole) { argument 68 return Math.round(getResources().getFraction(fraction, whole, whole)); 88 com.android.internal.R.fraction.input_extract_layout_height, screenHeightPx)); 91 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_left, 94 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_right, 99 applyFractionInt(com.android.internal.R.fraction.input_extract_text_margin_bottom, 103 applyFractionInt(com.android.internal.R.fraction.input_extract_action_margin_bottom,
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionUtils.java | 182 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { argument 187 mTempEndValues[i] = mTempStartValues[i] + (fraction * diff);
|
H A D | Slide.java | 60 float getGoneX(ViewGroup sceneRoot, View view, float fraction); argument 63 float getGoneY(ViewGroup sceneRoot, View view, float fraction); argument 69 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { argument 77 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { argument 84 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { 85 return view.getTranslationX() - sceneRoot.getWidth() * fraction; 91 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { 95 x = view.getTranslationX() + sceneRoot.getWidth() * fraction; 97 x = view.getTranslationX() - sceneRoot.getWidth() * fraction; 105 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | TemplateLayout.java | 150 * Set the X translation as a fraction of the width of this view. Make sure this method is not 161 public void setXFraction(float fraction) { argument 162 mXFraction = fraction; 165 setTranslationX(width * fraction); 167 // If we haven't done a layout pass yet, wait for one and then set the fraction before 186 * Return the X translation as a fraction of the width, as previously set in
|
/frameworks/base/core/java/android/util/ |
H A D | PathParser.java | 106 * <code>fraction</code>, and put the resulting path data into <code>outData</code>. 111 * @param fraction The fraction to interpolate. 114 float fraction) { 116 toData.mNativePathData, fraction); 127 long toDataPtr, float fraction); 113 interpolatePathData(PathData outData, PathData fromData, PathData toData, float fraction) argument 126 nInterpolatePathData(long outDataPtr, long fromDataPtr, long toDataPtr, float fraction) argument
|