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

1 2 3 4 5 6 7 8 91011>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
fpformat.py 26 # \3 fraction (empty or begins with point)
36 """Return (sign, intpart, fraction, expo) or raise an exception:
39 fraction is 0 or more digits
43 sign, intpart, fraction, exppart = res.group(1,2,3,4)
45 if fraction: fraction = fraction[1:]
48 return sign, intpart, fraction, expo
50 def unexpo(intpart, fraction, expo):
51 """Remove the exponent by changing intpart and fraction.""
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
fpformat.py 26 # \3 fraction (empty or begins with point)
36 """Return (sign, intpart, fraction, expo) or raise an exception:
39 fraction is 0 or more digits
43 sign, intpart, fraction, exppart = res.group(1,2,3,4)
45 if fraction: fraction = fraction[1:]
48 return sign, intpart, fraction, expo
50 def unexpo(intpart, fraction, expo):
51 """Remove the exponent by changing intpart and 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) */
  /frameworks/base/core/java/android/animation/
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));
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);
77 * @param fraction The elapsed fraction of the animatio
    [all...]
PathKeyframes.java 65 public Object getValue(float fraction) {
67 if (fraction < 0) {
68 return interpolateInRange(fraction, 0, 1);
69 } else if (fraction > 1) {
70 return interpolateInRange(fraction, numPoints - 2, numPoints - 1);
71 } else if (fraction == 0) {
73 } else if (fraction == 1) {
84 if (fraction < midFraction) {
86 } else if (fraction > midFraction) {
93 // now high is below the fraction and low is above the fractio
    [all...]
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) {
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) {
99 return new IntKeyframe(fraction);
108 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
    [all...]
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);
ArgbEvaluator.java 44 * @param fraction The fraction from the starting to the ending values
54 public Object evaluate(float fraction, Object startValue, Object endValue) {
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))));
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) {
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);
FloatKeyframeSet.java 45 public Object getValue(float fraction) {
46 return getFloatValue(fraction);
67 public float getFloatValue(float fraction) {
76 fraction = mInterpolator.getInterpolation(fraction);
79 return firstValue + fraction * deltaValue;
81 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).floatValue();
84 if (fraction <= 0f) {
93 fraction = interpolator.getInterpolation(fraction);
    [all...]
IntKeyframeSet.java 45 public Object getValue(float fraction) {
46 return getIntValue(fraction);
67 public int getIntValue(float fraction) {
76 fraction = mInterpolator.getInterpolation(fraction);
79 return firstValue + (int)(fraction * deltaValue);
81 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).intValue();
84 if (fraction <= 0f) {
93 fraction = interpolator.getInterpolation(fraction);
    [all...]
  /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));
  /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);
  /external/chromium_org/third_party/WebKit/Source/core/animation/animatable/
AnimatableVisibility.cpp 43 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableVisibility::interpolateTo(const AnimatableValue* value, double fraction) const
48 return defaultInterpolateTo(this, value, fraction);
49 if (fraction <= 0)
51 if (fraction >= 1)
AnimatableSVGLength.cpp 38 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableSVGLength::interpolateTo(const AnimatableValue* value, double fraction) const
40 return create(toAnimatableSVGLength(value)->toSVGLength()->blend(m_length.get(), narrowPrecisionToFloat(fraction)));
AnimatableImage.cpp 50 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableImage::interpolateTo(const AnimatableValue* value, double fraction) const
52 if (fraction <= 0 || fraction >= 1 || usesDefaultInterpolationWith(value))
53 return defaultInterpolateTo(this, value, fraction);
59 crossfadeValue->setPercentage(CSSPrimitiveValue::create(fraction, CSSPrimitiveValue::CSS_NUMBER));
AnimatableLengthBox.cpp 36 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableLengthBox::interpolateTo(const AnimatableValue* value, double fraction) const
40 AnimatableValue::interpolate(this->left(), lengthBox->left(), fraction),
41 AnimatableValue::interpolate(this->right(), lengthBox->right(), fraction),
42 AnimatableValue::interpolate(this->top(), lengthBox->top(), fraction),
43 AnimatableValue::interpolate(this->bottom(), lengthBox->bottom(), fraction));
AnimatableValue.cpp 52 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction)
59 if (fraction && fraction != 1 && left->isSameType(right))
60 return left->interpolateTo(right, fraction);
62 return defaultInterpolateTo(left, right, fraction);
  /frameworks/av/media/libstagefright/codecs/amrnb/common/include/
pow2.h 104 Word16 fraction, /* (i) : Fractional part. (range: 0.0<=val<1.0) */
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
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);
  /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);
  /external/chromium_org/ui/keyboard/resources/layouts/
symbol-altkeys.js 7 '\u00BD', // Vulgar fraction 1/2
8 '\u2153', // Vulgar fraction 1/3
9 '\u00BC', // Vulgar fraction 1/4
10 '\u215B'], // Vulgar fraction 1/8
12 '\u2154'], // Vulgar fraction 2/3
14 '\u00BE', // Vulgar fraction 3/4
15 '\u215C'], // Vulgar fraction 3/8
17 '5': ['\u215D'], // Vulgar fraction 5/8
18 '7': ['\u215E'], // Vulgar fraction 7/8

Completed in 668 milliseconds

1 2 3 4 5 6 7 8 91011>>