/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));
|
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) */
|
/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);
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
AnimatableValue.cpp | 44 PassRefPtr<AnimatableValue> AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction) 51 if (fraction && fraction != 1 && left->isSameType(right)) 52 return left->interpolateTo(right, fraction); 54 return defaultInterpolateTo(left, right, 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...] |
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/chromium_org/media/base/simd/ |
filter_yuv_mmx.cc | 27 int fraction) { 34 dest[pixel] = (src0[pixel] * (256 - fraction) + 35 src1[pixel] * fraction) >> 8; 40 __m64 src1_fraction = _mm_set1_pi16(fraction); 41 __m64 src0_fraction = _mm_set1_pi16(256 - fraction); 69 dest[pixel] = (src0[pixel] * (256 - fraction) + 70 src1[pixel] * fraction) >> 8;
|
filter_yuv_sse2.cc | 20 int fraction) { 27 dest[pixel] = (src0[pixel] * (256 - fraction) + 28 src1[pixel] * fraction) >> 8; 33 __m128i src1_fraction = _mm_set1_epi16(fraction); 34 __m128i src0_fraction = _mm_set1_epi16(256 - fraction); 66 dest[pixel] = (src0[pixel] * (256 - fraction) + 67 src1[pixel] * fraction) >> 8;
|