/frameworks/base/core/java/android/animation/ |
D | Keyframe.java | 73 public static Keyframe ofInt(float fraction, int value) { in ofInt() argument 74 return new IntKeyframe(fraction, value); in ofInt() 89 public static Keyframe ofInt(float fraction) { in ofInt() argument 90 return new IntKeyframe(fraction); in ofInt() 105 public static Keyframe ofFloat(float fraction, float value) { in ofFloat() argument 106 return new FloatKeyframe(fraction, value); in ofFloat() 121 public static Keyframe ofFloat(float fraction) { in ofFloat() argument 122 return new FloatKeyframe(fraction); in ofFloat() 137 public static Keyframe ofObject(float fraction, Object value) { in ofObject() argument 138 return new ObjectKeyframe(fraction, value); in ofObject() [all …]
|
D | FloatKeyframeSet.java | 44 public Object getValue(float fraction) { in getValue() argument 45 return getFloatValue(fraction); in getValue() 60 public float getFloatValue(float fraction) { in getFloatValue() argument 69 fraction = mInterpolator.getInterpolation(fraction); in getFloatValue() 72 return firstValue + fraction * deltaValue; in getFloatValue() 74 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).floatValue(); in getFloatValue() 77 if (fraction <= 0f) { in getFloatValue() 86 fraction = interpolator.getInterpolation(fraction); in getFloatValue() 88 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getFloatValue() 93 } else if (fraction >= 1f) { in getFloatValue() [all …]
|
D | IntKeyframeSet.java | 44 public Object getValue(float fraction) { in getValue() argument 45 return getIntValue(fraction); in getValue() 60 public int getIntValue(float fraction) { in getIntValue() argument 69 fraction = mInterpolator.getInterpolation(fraction); in getIntValue() 72 return firstValue + (int)(fraction * deltaValue); in getIntValue() 74 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).intValue(); in getIntValue() 77 if (fraction <= 0f) { in getIntValue() 86 fraction = interpolator.getInterpolation(fraction); in getIntValue() 88 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getIntValue() 93 } else if (fraction >= 1f) { in getIntValue() [all …]
|
D | KeyframeSet.java | 163 public Object getValue(float fraction) { in getValue() argument 168 fraction = mInterpolator.getInterpolation(fraction); in getValue() 170 return mEvaluator.evaluate(fraction, mFirstKeyframe.getValue(), in getValue() 173 if (fraction <= 0f) { in getValue() 177 fraction = interpolator.getInterpolation(fraction); in getValue() 180 float intervalFraction = (fraction - prevFraction) / in getValue() 184 } else if (fraction >= 1f) { in getValue() 188 fraction = interpolator.getInterpolation(fraction); in getValue() 191 float intervalFraction = (fraction - prevFraction) / in getValue() 199 if (fraction < nextKeyframe.getFraction()) { in getValue() [all …]
|
D | ArgbEvaluator.java | 41 public Object evaluate(float fraction, Object startValue, Object endValue) { in evaluate() argument 54 return (int)((startA + (int)(fraction * (endA - startA))) << 24) | in evaluate() 55 (int)((startR + (int)(fraction * (endR - startR))) << 16) | in evaluate() 56 (int)((startG + (int)(fraction * (endG - startG))) << 8) | in evaluate() 57 (int)((startB + (int)(fraction * (endB - startB)))); in evaluate()
|
D | ValueAnimator.java | 1114 float fraction = mDuration > 0 ? (float)(currentTime - mStartTime) / mDuration : 1f; in animationFrame() local 1115 if (fraction >= 1f) { in animationFrame() 1127 mCurrentIteration += (int)fraction; in animationFrame() 1128 fraction = fraction % 1f; in animationFrame() 1132 fraction = Math.min(fraction, 1.0f); in animationFrame() 1136 fraction = 1f - fraction; in animationFrame() 1138 animateValue(fraction); in animationFrame() 1167 void animateValue(float fraction) { in animateValue() argument 1168 fraction = mInterpolator.getInterpolation(fraction); in animateValue() 1169 mCurrentFraction = fraction; in animateValue() [all …]
|
D | IntEvaluator.java | 38 public Integer evaluate(float fraction, Integer startValue, Integer endValue) { in evaluate() argument 40 return (int)(startInt + fraction * (endValue - startInt)); in evaluate()
|
D | FloatEvaluator.java | 38 public Float evaluate(float fraction, Number startValue, Number endValue) { in evaluate() argument 40 return startFloat + fraction * (endValue.floatValue() - startFloat); in evaluate()
|
D | TypeEvaluator.java | 42 public T evaluate(float fraction, T startValue, T endValue); in evaluate() argument
|
D | PropertyValuesHolder.java | 649 void calculateValue(float fraction) { in calculateValue() argument 650 mAnimatedValue = mKeyframeSet.getValue(fraction); in calculateValue() 781 void calculateValue(float fraction) { in calculateValue() argument 782 mIntAnimatedValue = mIntKeyframeSet.getIntValue(fraction); in calculateValue() 917 void calculateValue(float fraction) { in calculateValue() argument 918 mFloatAnimatedValue = mFloatKeyframeSet.getFloatValue(fraction); in calculateValue()
|
D | TimeAnimator.java | 49 void animateValue(float fraction) { in animateValue() argument
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
D | log2.c | 60 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Log2_norm() argument 68 *fraction = 0; in Log2_norm() 81 *fraction = extract_h (L_y); in Log2_norm() 101 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Log2() argument 107 Log2_norm ((L_x << exp), exp, exponent, fraction); in Log2()
|
D | pitch_f4.c | 77 Word32 fraction, i; in Pitch_fr4() local 120 fraction = -3; in Pitch_fr4() 124 fraction = -2; in Pitch_fr4() 128 fraction = 0; in Pitch_fr4() 130 max = Interpol_4(&corr[t0], fraction); in Pitch_fr4() 132 for (i = fraction + step; i <= 3; i += step) in Pitch_fr4() 138 fraction = i; in Pitch_fr4() 142 if (fraction < 0) in Pitch_fr4() 144 fraction += UP_SAMP; in Pitch_fr4() 147 *pit_frac = fraction; in Pitch_fr4()
|
D | math_op.c | 160 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ in Pow2() argument 166 L_x = vo_L_mult(fraction, 32); /* L_x = fraction<<6 */ in Pow2()
|
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | bitstream_io.cpp | 257 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) in BitstreamSavePartial() argument 283 *fraction = 1; in BitstreamSavePartial() 287 *fraction = 0; in BitstreamSavePartial() 301 if (*fraction) in BitstreamSavePartial() 329 Int fraction; in BitstreamShortHeaderByteAlignStuffing() local 341 BitstreamSavePartial(stream, &fraction); in BitstreamShortHeaderByteAlignStuffing() 359 Int fraction; in BitstreamMpeg4ByteAlignStuffing() local 377 BitstreamSavePartial(stream, &fraction); in BitstreamMpeg4ByteAlignStuffing() 422 Int bitused, bitleft, offset, fraction; in BitstreamAppendEnc() local 424 status = BitstreamSavePartial(bitstream1, &fraction); in BitstreamAppendEnc() [all …]
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 186 long fraction = read32(buffer, offset + 4); in readTimeStamp() local 187 … return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); in readTimeStamp() 205 long fraction = milliseconds * 0x100000000L / 1000L; in writeTimeStamp() local 207 buffer[offset++] = (byte)(fraction >> 24); in writeTimeStamp() 208 buffer[offset++] = (byte)(fraction >> 16); in writeTimeStamp() 209 buffer[offset++] = (byte)(fraction >> 8); in writeTimeStamp()
|
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
D | pvamrwb_math_op.cpp | 386 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ in power_of_2() argument 392 L_x = fraction << 5; /* L_x = fraction<<6 */ in power_of_2() 393 i = (fraction >> 10); /* Extract b10-b16 of fraction */ in power_of_2() 493 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Lg2_normalized() argument 502 *fraction = 0;; in Lg2_normalized() 520 *fraction = extract_h(L_y); in Lg2_normalized() 541 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in amrwb_log_2() argument 547 Lg2_normalized(shl_int32(L_x, exp), exp, exponent, fraction); in amrwb_log_2()
|
D | pvamrwb_math_op.h | 85 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ 98 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/ 105 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
|
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
D | log2_norm.cpp | 200 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Log2_norm() argument 209 *fraction = 0; in Log2_norm() 234 *fraction = (Word16)(L_y >> 16); in Log2_norm()
|
D | pow2.cpp | 178 Word16 fraction, /* (i) : Fractional part. (range: 0.0<=val<1.0) */ in Pow2() argument 185 L_x = L_mult(fraction, 32, pOverflow); /* L_x = fraction<<6 */ in Pow2()
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/inc/ |
D | log2.h | 50 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/ 57 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
|
D | math_op.h | 38 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
|
/frameworks/base/media/libstagefright/codecs/amrnb/common/include/ |
D | pow2.h | 104 Word16 fraction, /* (i) : Fractional part. (range: 0.0<=val<1.0) */
|
D | log2_norm.h | 109 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
|
/frameworks/base/docs/html/guide/topics/graphics/ |
D | prop-animation.jd | 133 …hole animation, the {@link android.animation.ValueAnimator} calculates an <em>elapsed fraction</em> 135 elapsed fraction represents the percentage of time that the animation has completed, 0 meaning 0% 136 and 1 meaning 100%. For example, in Figure 1, the elapsed fraction at t = 10 ms would be .25 139 <p>When the {@link android.animation.ValueAnimator} is done calculating an elapsed fraction, it 141 <em>interpolated fraction</em>. An interpolated fraction maps the elapsed fraction to a new 142 fraction that takes into account the time interpolation that is set. For example, in Figure 2, 143 because the animation slowly accelerates, the interpolated fraction, about .15, is less than the 144 elapsed fraction, .25, at t = 10 ms. In Figure 1, the interpolated fraction is always the same as 145 the elapsed fraction.</p> 147 <p>When the interpolated fraction is calculated, {@link android.animation.ValueAnimator} calls [all …]
|