HomeSort by relevance Sort by last modified time
    Searched refs:fraction (Results 1 - 25 of 124) sorted by null

1 2 3 4 5

  /frameworks/base/core/java/android/animation/
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) {
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) {
90 return new IntKeyframe(fraction);
99 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
    [all...]
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) {
40 return startFloat + fraction * (endValue.floatValue() - startFloat);
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) {
40 return (int)(startInt + fraction * (endValue - startInt));
ArgbEvaluator.java 31 * @param fraction The fraction from the starting to the ending values
41 public Object evaluate(float fraction, Object startValue, Object endValue) {
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))));
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);
FloatKeyframeSet.java 44 public Object getValue(float fraction) {
45 return getFloatValue(fraction);
60 public float getFloatValue(float fraction) {
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...]
IntKeyframeSet.java 44 public Object getValue(float fraction) {
45 return getIntValue(fraction);
60 public int getIntValue(float fraction) {
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...]
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) {
168 fraction = mInterpolator.getInterpolation(fraction);
    [all...]
  /frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
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) */
  /cts/tests/tests/animation/src/android/animation/cts/
FloatEvaluatorTest.java 26 float fraction = 0.5f; local
28 float result = floatEvaluator.evaluate(fraction, start, end);
29 assertTrue(result >= (fraction*start));
30 assertTrue(result <= (fraction*end));
IntEvaluatorTest.java 26 final float fraction = 0.5f; local
31 result = intEvaluator.evaluate(fraction, start, end);
38 assertTrue(result >= (fraction*start));
39 assertTrue(result <= (fraction*end));
KeyframeTest.java 27 float fraction = keyFrame.getFraction(); local
28 assertTrue(fraction == 0.0f);
34 float fraction = keyFrame.getFraction(); local
35 assertTrue(fraction == 0.5f);
40 float fraction = keyFrame.getFraction(); local
41 assertEquals(fraction, 0.0f);
58 float fraction = keyFrame.getFraction(); local
59 assertEquals(fraction, 0.0f);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
CaptureAnimation.java 37 // Calculate the slide factor based on the give time fraction.
38 public static float calculateSlide(float fraction) {
39 return sSlideInterpolator.getInterpolation(fraction);
42 // Calculate the scale factor based on the given time fraction.
43 public static float calculateScale(float fraction) {
45 if (fraction <= 0.5f) {
48 sZoomOutInterpolator.getInterpolation(fraction * 2);
52 sZoomInInterpolator.getInterpolation((fraction - 0.5f) * 2f);
  /frameworks/av/media/libstagefright/codecs/amrnb/common/include/
pow2.h 104 Word16 fraction, /* (i) : Fractional part. (range: 0.0<=val<1.0) */
log2_norm.h 109 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
  /frameworks/av/media/libstagefright/codecs/amrwbenc/src/
log2.c 52 * 5- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2
60 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
68 *fraction = 0;
75 a = (Word16)(L_x); /* Extract b10-b24 of fraction */
81 *fraction = extract_h (L_y);
101 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
107 Log2_norm ((L_x << exp), exp, exponent, fraction);
  /frameworks/av/media/libstagefright/codecs/amrnb/common/src/
log2_norm.cpp 95 fraction = pointer to the fractional part of Log2 (of type Word16)
100 fraction points to the newly calculated fractional part of Log2
122 5. fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2
141 Word16 *fraction // (o) : Fractional part of Log2. (range: 0<=val<1)
150 *fraction = 0;
159 a = extract_l (L_x); // Extract b10-b24 of fraction
168 *fraction = extract_h (L_y);
200 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
209 *fraction = 0;
221 a = L_x & 0x7fff; /* Extract b10-b24 of fraction */
    [all...]
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, /* (i) : Fractional part. (range: 0.0<=val<1.0) *
    [all...]
  /external/webkit/Source/WebCore/rendering/mathml/
RenderMathMLRoot.h 37 RenderMathMLRoot(Node* fraction);
RenderMathMLSquareRoot.h 37 RenderMathMLSquareRoot(Node* fraction);
RenderMathMLFenced.h 37 RenderMathMLFenced(Node *fraction);
RenderMathMLFraction.h 38 RenderMathMLFraction(Element* fraction);
RenderMathMLSubSup.h 39 RenderMathMLSubSup(Element* fraction);
  /external/chromium/chrome/browser/ui/cocoa/
image_utils.h 13 // Works like |-drawInRect:fromRect:operation:fraction:|, except that
18 // |-drawInRect:fromRect:operation:fraction:respectFlipped:hints:|.
22 fraction:(CGFloat)requestedAlpha
  /external/tcpdump/
ntp.h 21 * | Fraction Part |
27 * | Integer Part | Fraction Part |
32 u_int32_t fraction; member in struct:l_fixedpt
37 u_int16_t fraction; member in struct:s_fixedpt

Completed in 388 milliseconds

1 2 3 4 5