/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
DynamicListView.java | 457 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { 458 return new Rect(interpolate(startValue.left, endValue.left, fraction), 459 interpolate(startValue.top, endValue.top, fraction), 460 interpolate(startValue.right, endValue.right, fraction), 461 interpolate(startValue.bottom, endValue.bottom, fraction)); 464 public int interpolate(int start, int end, float fraction) { 465 return (int)(start + fraction * (end - start));
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
KeyframeAnimationEffect.cpp | 87 static PassRefPtr<BlendedCompositableValue> create(const AnimationEffect::CompositableValue* before, const AnimationEffect::CompositableValue* after, double fraction) 89 return adoptRef(new BlendedCompositableValue(before, after, fraction)); 100 BlendedCompositableValue(const AnimationEffect::CompositableValue* before, const AnimationEffect::CompositableValue* after, double fraction) 103 , m_fraction(fraction) 185 PassOwnPtr<AnimationEffect::CompositableValueList> KeyframeAnimationEffect::sample(int iteration, double fraction) const 188 ASSERT(!isNull(fraction)); 192 map->append(std::make_pair(iter->key, iter->value->sample(iteration, fraction)));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ResourceUtils.java | 235 R.fraction.maxKeyboardHeight, dm.heightPixels, dm.heightPixels); 237 R.fraction.minKeyboardHeight, dm.heightPixels, dm.heightPixels); 239 // Specified fraction was negative, so it should be calculated against display 242 R.fraction.minKeyboardHeight, dm.widthPixels, dm.widthPixels); 249 public static boolean isValidFraction(final float fraction) { 250 return fraction >= 0.0f;
|
/external/llvm/lib/Analysis/ |
ProfileEstimatorPass.cpp | 218 double fraction = floor(incoming/Edges.size()); local 223 w = fraction; 224 incoming -= fraction; 289 double fraction = Edges.size() ? floor(BBWeight/Edges.size()) : 0.0; local 295 EdgeInformation[BB->getParent()][*ei] += fraction; 296 BBWeight -= fraction;
|
/bootable/recovery/ |
screen_ui.cpp | 512 void ScreenRecoveryUI::SetProgress(float fraction) 515 if (fraction < 0.0) fraction = 0.0; 516 if (fraction > 1.0) fraction = 1.0; 517 if (progressBarType == DETERMINATE && fraction > progress) { 521 if ((int) (progress * scale) != (int) (fraction * scale)) { 522 progress = fraction;
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
LayoutUnit.h | 164 LayoutUnit fraction() const function in class:WebCore::LayoutUnit 166 // Add the fraction to the size (as opposed to the full location) to avoid overflows. 167 // Compute fraction using the mod operator to preserve the sign of the value as it may affect rounding. 168 LayoutUnit fraction; local 169 fraction.setRawValue(rawValue() % kFixedPointDenominator); 170 return fraction; 768 LayoutUnit fraction = location.fraction(); local 769 return (fraction + size).round() - fraction.round() [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
vp9_picklpf.c | 24 YV12_BUFFER_CONFIG *dst_ybc, int fraction) { 28 const int lines_to_copy = MAX(height >> (fraction + 4), 1) << 4; 36 YV12_BUFFER_CONFIG *dest, int Fraction) { 43 int linestocopy = (source->y_height >> (Fraction + 4));
|
/hardware/invensense/60xx/mlsdk/platform/include/linux/ |
mpu.h | 204 long fraction; member in struct:fix_pnt_range 209 return (long)(rng.mantissa * 1000 + rng.fraction / 10);
|
/external/chromium_org/third_party/tcmalloc/chromium/src/gperftools/ |
malloc_extension.h | 394 double fraction; // Fraction of range that is being used (0 if !INUSE) member in struct:base::MallocRange
|
/external/chromium_org/third_party/tcmalloc/vendor/src/gperftools/ |
malloc_extension.h | 410 double fraction; // Fraction of range that is being used (0 if !INUSE) member in struct:base::MallocRange
|
/external/ceres-solver/internal/ceres/ |
jet_quaternion_integration_test.cc | 88 const J fraction(0.1); 89 Quaternion<J> c = Quaternion<J>::Slerp(a, b, fraction); 91 Quaternion<double>::Slerp(double_a, double_b, fraction.a);
|
/external/smack/src/org/xbill/DNS/ |
LOCRecord.java | 84 double fraction = Integer.parseInt(parts[1]); local 86 fraction *= -1; 88 return value + (fraction / Math.pow(10, digits));
|
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
pitch_filter.c | 216 double fraction; local 222 fraction = parameters->lag_offset - (parameters->lag + PITCH_FILTDELAY); 223 fraction_index = WebRtcIsac_lrint(PITCH_FRACS * fraction - 0.5);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_strtod.py | 39 fraction = m.group('frac') or '' 40 intpart = int(m.group('int') + fraction) 41 exp = int(m.group('exp') or '0') - len(fraction)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_strtod.py | 39 fraction = m.group('frac') or '' 40 intpart = int(m.group('int') + fraction) 41 exp = int(m.group('exp') or '0') - len(fraction)
|
/frameworks/base/core/java/android/animation/ |
PropertyValuesHolder.java | 657 * @param fraction The elapsed, interpolated fraction of the animation. 659 void calculateValue(float fraction) { 660 mAnimatedValue = mKeyframeSet.getValue(fraction); [all...] |
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
ListViewItemAnimations.java | 239 float fraction = Math.abs(deltaX) / view.getWidth(); local 242 view.setAlpha(1 - fraction); 247 mCurrentAlpha = (1 - fraction);
|
/external/chromium_org/third_party/skia/src/animator/ |
SkDrawColor.cpp | 71 //SkScalar fraction = SkScalarMod(hue, 60 * SK_Scalar1); 73 SkScalar fraction = hue / 60 - SkIntToScalar(sextant); local 75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction)); 77 SkScalarMul(saturation, SK_Scalar1 - fraction));
|
/external/chromium_org/third_party/skia/src/utils/ |
SkInterpolator.cpp | 82 SkScalar fraction = SkScalarFraction(fRepeat); local 83 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime : 84 (SkMSec) SkScalarMulFloor(fraction, totalTime);
|
/external/qemu/ |
cutils.c | 331 double val, mul, integral, fraction; local 338 fraction = modf(val, &integral); 339 if (fraction != 0) {
|
/external/skia/src/animator/ |
SkDrawColor.cpp | 71 //SkScalar fraction = SkScalarMod(hue, 60 * SK_Scalar1); 73 SkScalar fraction = hue / 60 - SkIntToScalar(sextant); local 75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction)); 77 SkScalarMul(saturation, SK_Scalar1 - fraction));
|
/external/skia/src/utils/ |
SkInterpolator.cpp | 82 SkScalar fraction = SkScalarFraction(fRepeat); local 83 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime : 84 (SkMSec) SkScalarMulFloor(fraction, totalTime);
|
/external/sonivox/arm-fm-22k/lib_src/ |
eas_chorus.c | 127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction 151 //16 bit whole part, 16 bit fraction 189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction) 200 EAS_I16 fraction; local 208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part 231 //compute linear interpolation as (val1 + ((val2-val1)*fraction)) 232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
|
/external/sonivox/arm-hybrid-22k/lib_src/ |
eas_chorus.c | 127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction 151 //16 bit whole part, 16 bit fraction 189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction) 200 EAS_I16 fraction; local 208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part 231 //compute linear interpolation as (val1 + ((val2-val1)*fraction)) 232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
|
/external/sonivox/arm-wt-22k/lib_src/ |
eas_chorus.c | 127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction 151 //16 bit whole part, 16 bit fraction 189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction) 200 EAS_I16 fraction; local 208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part 231 //compute linear interpolation as (val1 + ((val2-val1)*fraction)) 232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
|