/frameworks/base/core/java/android/animation/ |
H A D | ArgbEvaluator.java | 31 * @param fraction The fraction from the starting to the ending values 41 public Object evaluate(float fraction, Object startValue, Object endValue) { argument 54 return (int)((startA + (int)(fraction * (endA - startA))) << 24) | 55 (int)((startR + (int)(fraction * (endR - startR))) << 16) | 56 (int)((startG + (int)(fraction * (endG - startG))) << 8) | 57 (int)((startB + (int)(fraction * (endB - startB))));
|
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 | FloatKeyframeSet.java | 44 public Object getValue(float fraction) { argument 45 return getFloatValue(fraction); 60 public float getFloatValue(float fraction) { argument 69 fraction = mInterpolator.getInterpolation(fraction); 72 return firstValue + fraction * deltaValue; 74 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).floatValue(); 77 if (fraction <= 0f) { 86 fraction = interpolator.getInterpolation(fraction); [all...] |
H A D | IntKeyframeSet.java | 44 public Object getValue(float fraction) { argument 45 return getIntValue(fraction); 60 public int getIntValue(float fraction) { argument 69 fraction = mInterpolator.getInterpolation(fraction); 72 return firstValue + (int)(fraction * deltaValue); 74 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).intValue(); 77 if (fraction <= 0f) { 86 fraction = interpolator.getInterpolation(fraction); [all...] |
H A D | TimeAnimator.java | 37 void animateValue(float fraction) { argument
|
H A D | Keyframe.java | 67 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction 73 public static Keyframe ofInt(float fraction, int value) { argument 74 return new IntKeyframe(fraction, value); 86 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction 89 public static Keyframe ofInt(float fraction) { argument 90 return new IntKeyframe(fraction); 99 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction 105 ofFloat(float fraction, float value) argument 121 ofFloat(float fraction) argument 137 ofObject(float fraction, Object value) argument 153 ofObject(float fraction) argument 198 setFraction(float fraction) argument 246 ObjectKeyframe(float fraction, Object value) argument 280 IntKeyframe(float fraction, int value) argument 287 IntKeyframe(float fraction) argument 324 FloatKeyframe(float fraction, float value) argument 331 FloatKeyframe(float fraction) argument [all...] |
H A D | KeyframeSet.java | 152 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the 154 * function maps the input fraction to the appropriate keyframe interval and a fraction 155 * between them and returns the interpolated value. Note that the input fraction may fall 157 * spring interpolation that might send the fraction past 1.0). We handle this situation by 160 * @param fraction The elapsed fraction of the animation 163 public Object getValue(float fraction) { argument 168 fraction = mInterpolator.getInterpolation(fraction); [all...] |
H A D | ObjectAnimator.java | 460 * This method is called with the elapsed fraction of the animation during every 461 * animation frame. This function turns the elapsed fraction into an interpolated fraction 469 * @param fraction The elapsed fraction of the animation. 472 void animateValue(float fraction) { argument 473 super.animateValue(fraction);
|
H A D | PropertyValuesHolder.java | 657 * @param fraction The elapsed, interpolated fraction of the animation. 659 void calculateValue(float fraction) { argument 660 mAnimatedValue = mKeyframeSet.getValue(fraction); 791 void calculateValue(float fraction) { argument 792 mIntAnimatedValue = mIntKeyframeSet.getIntValue(fraction); 928 void calculateValue(float fraction) { argument 929 mFloatAnimatedValue = mFloatKeyframeSet.getFloatValue(fraction);
|
H A D | ValueAnimator.java | 74 // determine elapsed time (and therefore the elapsed fraction) in subsequent calls 95 * elapsed fraction to be inverted to calculate the appropriate values. 106 * Tracks current elapsed/eased fraction, for querying in getAnimatedFraction(). 184 * The time interpolator to be used. The elapsed fraction of the animation will be passed 185 * through this interpolator to calculate the interpolated fraction, which is then used to 827 * The time interpolator used in calculating the elapsed fraction of this animation. The 1071 * the elapsed fraction, of the animation. The return value indicates whether the animation 1084 float fraction = mDuration > 0 ? (float)(currentTime - mStartTime) / mDuration : 1f; 1085 if (fraction >= 1f) { 1097 mCurrentIteration += (int)fraction; 1162 animateValue(float fraction) argument [all...] |
/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/av/media/libstagefright/codecs/amrwb/src/ |
H A D | pvamrwb_math_op.cpp | 307 1- If exponant is odd then shift fraction right once. 309 3- i = bit25-b30 of fraction, 16 <= i <= 63 ->because of normalization. 312 6- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2 363 L_x = pow(2.0, exponant.fraction) (exponant = interger part) 364 = pow(2.0, 0.fraction) << exponant 371 1- i = bit10-b15 of fraction, 0 <= i <= 31 372 2- a = bit0-b9 of fraction 386 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ 392 L_x = fraction << 5; /* L_x = fraction<< 547 Lg2_normalized(shl_int32(L_x, exp), exp, exponent, fraction); local [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | pitch_f4.c | 60 Word32 frac /* (i) : fraction (-4..+3) */ 70 Word16 * pit_frac, /* (o) : chosen fraction (0, 1, 2 or 3). */ 77 Word32 fraction, i; local 120 fraction = -3; 124 fraction = -2; 128 fraction = 0; 130 max = Interpol_4(&corr[t0], fraction); 132 for (i = fraction + step; i <= 3; i += step) 138 fraction = i; 141 /* limit the fraction valu [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | bitstream_io.cpp | 257 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) argument 279 bitleft = bitused - (numbyte << 3); /* number of bits used (fraction) */ 283 *fraction = 1; 287 *fraction = 0; 301 if (*fraction) 329 Int fraction; local 341 BitstreamSavePartial(stream, &fraction); 359 Int fraction; local 377 BitstreamSavePartial(stream, &fraction); 422 Int bitused, bitleft, offset, fraction; local 585 Int fraction; local 684 Int movebyte, bitused, leftover, i, fraction; local [all...] |