/frameworks/base/libs/hwui/ |
PropertyValuesHolder.cpp | 29 inline constexpr float lerp(float fromValue, float toValue, float fraction) { 30 return float(fromValue * (1 - fraction) + toValue * fraction); 39 float fraction) const { 40 float a = lerp(SkColorGetA(fromColor) / 255.0f, SkColorGetA(toColor) / 255.0f, fraction); 41 float r = lerp(linearize(SkColorGetR(fromColor)), linearize(SkColorGetR(toColor)), fraction); 42 float g = lerp(linearize(SkColorGetG(fromColor)), linearize(SkColorGetG(toColor)), fraction); 43 float b = lerp(linearize(SkColorGetB(fromColor)), linearize(SkColorGetB(toColor)), fraction); 50 float fraction) const { 51 VectorDrawableUtils::interpolatePaths(out, from, to, fraction); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
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...] |
/external/python/cpython2/Lib/ |
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/gdb/darwin-x86/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/gdb/linux-x86/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/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); 71 * @param fraction The elapsed fraction of the animatio [all...] |
PathKeyframes.java | 66 public Object getValue(float fraction) { 68 if (fraction < 0) { 69 return interpolateInRange(fraction, 0, 1); 70 } else if (fraction > 1) { 71 return interpolateInRange(fraction, numPoints - 2, numPoints - 1); 72 } else if (fraction == 0) { 74 } else if (fraction == 1) { 85 if (fraction < midFraction) { 87 } else if (fraction > midFraction) { 94 // 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);
|
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);
|
/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) */
|
/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);
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
AbstractCalendar.java | 221 long fraction = date.getTimeOfDay(); local 222 if (fraction != CalendarDate.TIME_UNDEFINED) { 223 return fraction; 225 fraction = getTimeOfDayValue(date); 226 date.setTimeOfDay(fraction); 227 return fraction; 231 long fraction = date.getHours(); local 232 fraction *= 60; 233 fraction += date.getMinutes(); 234 fraction *= 60 380 long fraction = getTimeOfDay(date); local [all...] |
/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/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
RectFEvaluator.java | 30 * end Rect values, with <code>fraction</code> representing the proportion 37 * @param fraction The fraction from the starting to the ending values 41 * <code>fraction</code> parameter. 44 public RectF evaluate(float fraction, RectF startValue, RectF endValue) { 45 float left = startValue.left + ((endValue.left - startValue.left) * fraction); 46 float top = startValue.top + ((endValue.top - startValue.top) * fraction); 47 float right = startValue.right + ((endValue.right - startValue.right) * fraction); 48 float bottom = startValue.bottom + ((endValue.bottom - startValue.bottom) * fraction);
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
RectEvaluator.java | 58 * end Rect values, with <code>fraction</code> representing the proportion 67 * @param fraction The fraction from the starting to the ending values 71 * <code>fraction</code> parameter. 74 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { 75 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 76 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); 77 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); 78 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
RectEvaluatorCompat.java | 38 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { 39 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); 40 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); 41 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); 42 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
|
/cts/tests/tests/animation/src/android/animation/cts/ |
InterpolatorTest.java | 64 // Test that the first segment of the curve (i.e. fraction in (0, 0.166666)) is below the 66 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { 67 assertTrue(interpolator.getInterpolation(fraction) 68 < fraction / turningPointX * turningPointY); 71 // Test that the second segment of the curve (i.e. fraction in (0.166666, 1)) is above 73 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) [all...] |
/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...] |