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

1 2 3 4 5 6 7 8 9

  /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/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));
RectEvaluator.java 27 * 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) {
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));
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 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))));
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...]
  /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));
  /external/chromium_org/third_party/WebKit/Source/core/animation/
AnimatableVisibility.cpp 36 PassRefPtr<AnimatableValue> AnimatableVisibility::interpolateTo(const AnimatableValue* value, double fraction) const
41 return defaultInterpolateTo(this, value, fraction);
42 if (fraction <= 0)
44 if (fraction >= 1)
AnimatableImage.cpp 40 PassRefPtr<AnimatableValue> AnimatableImage::interpolateTo(const AnimatableValue* value, double fraction) const
42 if (fraction <= 0 || fraction >= 1)
43 return defaultInterpolateTo(this, value, fraction);
47 return defaultInterpolateTo(this, value, fraction);
50 return defaultInterpolateTo(this, value, fraction);
58 return defaultInterpolateTo(this, value, fraction);
61 return defaultInterpolateTo(this, value, fraction);
66 crossfadeValue->setPercentage(CSSPrimitiveValue::create(fraction, CSSPrimitiveValue::CSS_NUMBER));
AnimatableValue.cpp 45 PassRefPtr<AnimatableValue> AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction)
52 if (fraction && fraction != 1 && left->isSameType(right))
53 return left->interpolateTo(right, fraction);
55 return defaultInterpolateTo(left, right, fraction);
AnimatableClipPathOperation.cpp 36 PassRefPtr<AnimatableValue> AnimatableClipPathOperation::interpolateTo(const AnimatableValue* value, double fraction) const
41 return defaultInterpolateTo(this, value, fraction);
47 return defaultInterpolateTo(this, value, fraction);
49 return AnimatableClipPathOperation::create(ShapeClipPathOperation::create(toShape->blend(fromShape, fraction)).get());
AnimatableShapeValue.cpp 36 PassRefPtr<AnimatableValue> AnimatableShapeValue::interpolateTo(const AnimatableValue* value, double fraction) const
41 return defaultInterpolateTo(this, value, fraction);
47 return defaultInterpolateTo(this, value, fraction);
49 return AnimatableShapeValue::create(ShapeValue::createShapeValue(toShape->blend(fromShape, fraction)).get());
  /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) */
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
Parallaxable.java 7 * implement this interface to receive the current parallax fraction to use when
12 * @param fraction the vertical center point for the viewport, in the range [0,1]
14 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
  /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...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/animation/
TimingFunction.h 53 // Evaluates the timing function at the given fraction. The accuracy parameter provides a hint as to the required
55 virtual double evaluate(double fraction, double accuracy) const = 0;
76 virtual double evaluate(double fraction, double) const
78 ASSERT(RuntimeEnabledFeatures::webAnimationsCSSEnabled() || (fraction >= 0 && fraction <= 1));
79 ASSERT_WITH_MESSAGE(!RuntimeEnabledFeatures::webAnimationsCSSEnabled() || (fraction >= 0 && fraction <= 1), "Web Animations not yet implemented: Timing function behavior outside the range [0, 1] is not yet specified");
80 return fraction;
140 virtual double evaluate(double fraction, double accuracy) const
142 ASSERT(RuntimeEnabledFeatures::webAnimationsCSSEnabled() || (fraction >= 0 && fraction <= 1))
    [all...]

Completed in 683 milliseconds

1 2 3 4 5 6 7 8 9