Searched refs:fraction (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/animation/
H A DKeyframe.java67 * @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
326 FloatKeyframe(float fraction, float value) argument
333 FloatKeyframe(float fraction) argument
[all...]
H A DFloatEvaluator.java26 * <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 DIntEvaluator.java26 * <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 DRectEvaluator.java27 * end Rect values, with <code>fraction</code> representing the proportion
32 * @param fraction The fraction from the starting to the ending values
36 * <code>fraction</code> parameter.
39 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { argument
40 return new Rect(startValue.left + (int)((endValue.left - startValue.left) * fraction),
41 startValue.top + (int)((endValue.top - startValue.top) * fraction),
42 startValue.right + (int)((endValue.right - startValue.right) * fraction),
43 startValue.bottom + (int)((endValue.bottom - startValue.bottom) * fraction));
H A DTypeEvaluator.java31 * <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 DArgbEvaluator.java31 * @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 DFloatKeyframeSet.java44 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 DIntKeyframeSet.java44 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 DKeyframeSet.java165 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the
167 * function maps the input fraction to the appropriate keyframe interval and a fraction
168 * between them and returns the interpolated value. Note that the input fraction may fall
170 * spring interpolation that might send the fraction past 1.0). We handle this situation by
173 * @param fraction The elapsed fraction of the animation
176 public Object getValue(float fraction) { argument
181 fraction = mInterpolator.getInterpolation(fraction);
[all...]
H A DTimeAnimator.java43 void animateValue(float fraction) { argument
H A DValueAnimator.java73 // determine elapsed time (and therefore the elapsed fraction) in subsequent calls
111 * elapsed fraction to be inverted to calculate the appropriate values.
122 * Tracks current elapsed/eased fraction, for querying in getAnimatedFraction().
200 * The time interpolator to be used. The elapsed fraction of the animation will be passed
201 * through this interpolator to calculate the interpolated fraction, which is then used to
848 * The time interpolator used in calculating the elapsed fraction of this animation. The
1138 * the elapsed fraction, of the animation. The return value indicates whether the animation
1151 float fraction = mDuration > 0 ? (float)(currentTime - mStartTime) / mDuration : 1f;
1152 if (fraction >= 1f) {
1164 mCurrentIteration += (int)fraction;
1241 animateValue(float fraction) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
H A Dlog2.h50 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/
57 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
H A Dmath_op.h38 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
H A Dpow2.h104 Word16 fraction, /* (i) : Fractional part. (range: 0.0<=val<1.0) */
H A Dlog2_norm.h109 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dlog2.c52 * 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);
H A Dpitch_f4.c60 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...]
H A Dmath_op.c83 | 1- If exponant is odd then shift fraction right once. |
85 | 3- i = bit25-b30 of fraction, 16 <= i <= 63 ->because of normalization. |
88 | 6- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2 |
136 | L_x = pow(2.0, exponant.fraction) (exponant = interger part) |
137 | = pow(2.0, 0.fraction) << exponant |
144 | 1- i = bit10-b15 of fraction, 0 <= i <= 31 |
145 | 2- a = bit0-b9 of fraction |
160 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
166 L_x = vo_L_mult(fraction, 32); /* L_x = fraction<<
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dlog2_norm.cpp95 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...]
H A Dpow2.cpp83 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 Dpvamrwb_math_op.h85 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) */
H A Dpvamrwb_math_op.cpp307 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/base/core/java/android/net/
H A DSntpClient.java186 long fraction = read32(buffer, offset + 4);
187 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L);
205 long fraction = milliseconds * 0x100000000L / 1000L;
206 // write fraction in big endian format
207 buffer[offset++] = (byte)(fraction >> 24);
208 buffer[offset++] = (byte)(fraction >> 16);
209 buffer[offset++] = (byte)(fraction >> 8);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp257 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...]
H A Dbitstream_io.h35 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction);

Completed in 241 milliseconds

12