/development/samples/browseable/Flashlight/Wearable/src/com.example.android.wearable.flashlight/ |
PartyLightView.java | 102 private int getColor(float fraction, int colorStart, int colorEnd) { 115 return (startA + (int)(fraction * (endA - startA))) << 24 | 116 (startR + (int)(fraction * (endR - startR))) << 16 | 117 (startG + (int)(fraction * (endG - startG))) << 8 | 118 ((startB + (int)(fraction * (endB - startB))));
|
/external/chromium_org/third_party/WebKit/Source/core/animation/animatable/ |
AnimatableColor.h | 44 AnimatableColorImpl interpolateTo(const AnimatableColorImpl&, double fraction) const; 68 virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
|
AnimatableNeutral.h | 46 virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue* value, double fraction) const OVERRIDE
|
AnimatableClipPathOperation.cpp | 49 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableClipPathOperation::interpolateTo(const AnimatableValue* value, double fraction) const 52 return defaultInterpolateTo(this, value, fraction); 58 return AnimatableClipPathOperation::create(ShapeClipPathOperation::create(toShape->blend(fromShape, fraction)).get());
|
AnimatableFilterOperations.cpp | 44 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableFilterOperations::interpolateTo(const AnimatableValue* value, double fraction) const 47 return defaultInterpolateTo(this, value, fraction); 57 RefPtr<FilterOperation> blendedOp = FilterOperation::blend(from, to, fraction);
|
AnimatableLength.cpp | 70 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableLength::interpolateTo(const AnimatableValue* value, double fraction) const 73 return create(blend(m_pixels, length->m_pixels, fraction), blend(m_percent, length->m_percent, fraction),
|
AnimatableShapeValue.cpp | 51 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableShapeValue::interpolateTo(const AnimatableValue* value, double fraction) const 54 return defaultInterpolateTo(this, value, fraction); 59 return AnimatableShapeValue::create(ShapeValue::createShapeValue(toShape->blend(fromShape, fraction), shapeValue->m_shape->cssBox()).get());
|
AnimatableRepeatable.cpp | 55 bool AnimatableRepeatable::interpolateLists(const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >& fromValues, const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >& toValues, double fraction, WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >& interpolatedValues) 68 interpolatedValues.append(interpolate(from, to, fraction)); 73 PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableRepeatable::interpolateTo(const AnimatableValue* value, double fraction) const 76 bool success = interpolateLists(m_values, toAnimatableRepeatable(value)->m_values, fraction, interpolatedValues); 79 return defaultInterpolateTo(this, value, fraction);
|
AnimatableClipPathOperation.h | 51 virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
|
AnimatableFilterOperations.h | 51 virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
|
AnimatableSVGLength.h | 56 virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
|
AnimatableShadow.h | 51 virtual PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
normal.cc | 129 int fraction = increment; 136 (fraction * (*output)[channel_ix][i] + 137 (32 - fraction) * expanded[channel_ix][i] + 8) >> 5; 138 fraction += increment; 165 int16_t fraction = increment; 170 (fraction * signal[i] + (32 - fraction) * cng_output[i] + 8) >> 5; 171 fraction += increment;
|
/external/chromium_org/ui/ozone/demo/ |
ozone_demo.cc | 144 float fraction = (sinf(iteration_ * 2 * M_PI / kAnimationSteps) + 1) / 2; local 149 return fraction; 153 float fraction = NextFraction(); local 157 glClearColor(1 - fraction, fraction, 0.0, 1.0); 165 float fraction = NextFraction(); local 171 SkColorSetARGB(0xff, 0, 0xff * fraction, 0xff * (1 - fraction));
|
/external/tcpdump/ |
ntp.h | 21 * | Fraction Part | 27 * | Integer Part | Fraction Part | 32 u_int32_t fraction; member in struct:l_fixedpt 37 u_int16_t fraction; member in struct:s_fixedpt
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
and_constructor.h | 26 range.fraction = (long)((float)(x-(long)x)*PRECISION); \ 30 x += ((float)range.fraction/PRECISION); \
|
/external/chromium_org/chrome/browser/chromeos/ui/ |
accessibility_focus_ring.h | 80 double fraction);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
math_op.h | 38 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
|
/frameworks/base/core/java/android/animation/ |
ValueAnimator.java | 74 // determine elapsed time (and therefore the elapsed fraction) in subsequent calls 112 * elapsed fraction to be inverted to calculate the appropriate values. 132 * Tracks current elapsed/eased fraction, for querying in getAnimatedFraction(). 210 * The time interpolator to be used. The elapsed fraction of the animation will be passed 211 * through this interpolator to calculate the interpolated fraction, which is then used to 549 float fraction = mUnscaledDuration > 0 ? (float) playTime / mUnscaledDuration : 1; local 550 setCurrentFraction(fraction); 554 * Sets the position of the animation to the specified fraction. This fraction should 555 * be between 0 and the total fraction of the animation, including any repetition. That is 1267 float fraction = mDuration > 0 ? (float)(currentTime - mStartTime) \/ mDuration : 1f; local [all...] |
/development/samples/devbytes/animation/MultiPropertyAnimations/src/com/example/android/multipropertyanimations/ |
MultiPropertyAnimations.java | 57 float fraction = animator.getAnimatedFraction(); 58 view.setTranslationX(TX_START + fraction * (TX_END - TX_START)); 59 view.setTranslationY(TY_START + fraction * (TY_END - TY_START));
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
pvamrwb_math_op.h | 85 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ 98 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/ 105 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
|
/packages/apps/Camera/src/com/android/camera/ |
SwitchAnimManager.java | 76 float fraction = timeDiff / ANIMATION_DURATION; local 81 float previewAnimScale = 1 - ZOOM_DELTA_PREVIEW * (1 - fraction); 88 float reviewAnimScale = 1 + ZOOM_DELTA_REVIEW * fraction; 109 canvas.setAlpha(fraction); // fade in 114 canvas.setAlpha((1f - fraction) * INITIAL_DARKEN_ALPHA); // fade out
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
pitch_f4.c | 62 Word32 frac /* (i) : fraction (-4..+3) */ 72 Word16 * pit_frac, /* (o) : chosen fraction (0, 1, 2 or 3). */ 79 Word32 fraction, i; local 122 fraction = -3; 126 fraction = -2; 130 fraction = 0; 132 max = Interpol_4(&corr[t0], fraction); 134 for (i = fraction + step; i <= 3; i += step) 140 fraction = i; 143 /* limit the fraction value in the interval [0,1,2,3] * [all...] |
/frameworks/base/core/java/android/net/ |
SntpClient.java | 185 long fraction = read32(buffer, offset + 4); local 186 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); 204 long fraction = milliseconds * 0x100000000L / 1000L; local 205 // write fraction in big endian format 206 buffer[offset++] = (byte)(fraction >> 24); 207 buffer[offset++] = (byte)(fraction >> 16); 208 buffer[offset++] = (byte)(fraction >> 8);
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
Interpolation.h | 21 void interpolate(int iteration, double fraction) const;
|