/frameworks/base/libs/hwui/ |
D | PropertyValuesHolder.cpp | 29 inline constexpr float lerp(float fromValue, float toValue, float fraction) { in lerp() argument 30 return float(fromValue * (1 - fraction) + toValue * fraction); in lerp() 39 float fraction) const { in evaluate() 40 float a = lerp(SkColorGetA(fromColor) / 255.0f, SkColorGetA(toColor) / 255.0f, fraction); in evaluate() 41 float r = lerp(linearize(SkColorGetR(fromColor)), linearize(SkColorGetR(toColor)), fraction); in evaluate() 42 float g = lerp(linearize(SkColorGetG(fromColor)), linearize(SkColorGetG(toColor)), fraction); in evaluate() 43 float b = lerp(linearize(SkColorGetB(fromColor)), linearize(SkColorGetB(toColor)), fraction); in evaluate() 50 float fraction) const { in evaluate() 51 VectorDrawableUtils::interpolatePaths(out, from, to, fraction); in evaluate() 55 const T PropertyValuesHolderImpl<T>::getValueFromData(float fraction) const { in getValueFromData() [all …]
|
D | PropertyValuesHolder.h | 33 virtual void setFraction(float fraction) = 0; 40 virtual void evaluate(T* out, const T& from, const T& to, float fraction) const {}; in evaluate() argument 47 float fraction) const override { in evaluate() argument 48 *out = from * (1 - fraction) + to * fraction; in evaluate() 55 float fraction) const override; 60 float fraction) const override; 72 const T getValueFromData(float fraction) const; 75 const T calculateAnimatedValue(float fraction) const; 95 void setFraction(float fraction) override; 111 void setFraction(float fraction) override; [all …]
|
D | PropertyValuesAnimatorSet.cpp | 163 void PropertyAnimator::setFraction(float fraction, long iteration) { in setFraction() argument 164 double totalFraction = fraction + iteration; in setFraction() 176 fraction = 1.0f - fraction; in setFraction() 178 float interpolatedFraction = mInterpolator->interpolate(fraction); in setFraction()
|
/frameworks/base/core/java/android/animation/ |
D | Keyframe.java | 82 public static Keyframe ofInt(float fraction, int value) { in ofInt() argument 83 return new IntKeyframe(fraction, value); in ofInt() 98 public static Keyframe ofInt(float fraction) { in ofInt() argument 99 return new IntKeyframe(fraction); in ofInt() 114 public static Keyframe ofFloat(float fraction, float value) { in ofFloat() argument 115 return new FloatKeyframe(fraction, value); in ofFloat() 130 public static Keyframe ofFloat(float fraction) { in ofFloat() argument 131 return new FloatKeyframe(fraction); in ofFloat() 146 public static Keyframe ofObject(float fraction, Object value) { in ofObject() argument 147 return new ObjectKeyframe(fraction, value); in ofObject() [all …]
|
D | PathKeyframes.java | 66 public Object getValue(float fraction) { in getValue() argument 68 if (fraction < 0) { in getValue() 69 return interpolateInRange(fraction, 0, 1); in getValue() 70 } else if (fraction > 1) { in getValue() 71 return interpolateInRange(fraction, numPoints - 2, numPoints - 1); in getValue() 72 } else if (fraction == 0) { in getValue() 74 } else if (fraction == 1) { in getValue() 85 if (fraction < midFraction) { in getValue() 87 } else if (fraction > midFraction) { in getValue() 95 return interpolateInRange(fraction, high, low); in getValue() [all …]
|
D | ValueAnimator.java | 648 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime() local 649 setCurrentFraction(fraction); in setCurrentPlayTime() 669 public void setCurrentFraction(float fraction) { in setCurrentFraction() argument 671 fraction = clampFraction(fraction); in setCurrentFraction() 674 long seekTime = (long) (getScaledDuration() * fraction); in setCurrentFraction() 682 mSeekFraction = fraction; in setCurrentFraction() 684 mOverallFraction = fraction; in setCurrentFraction() 685 final float currentIterationFraction = getCurrentIterationFraction(fraction, mReversing); in setCurrentFraction() 694 private int getCurrentIteration(float fraction) { in getCurrentIteration() argument 695 fraction = clampFraction(fraction); in getCurrentIteration() [all …]
|
D | IntKeyframeSet.java | 39 public Object getValue(float fraction) { in getValue() argument 40 return getIntValue(fraction); in getValue() 56 public int getIntValue(float fraction) { in getIntValue() argument 57 if (fraction <= 0f) { in getIntValue() 66 fraction = interpolator.getInterpolation(fraction); in getIntValue() 68 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getIntValue() 73 } else if (fraction >= 1f) { in getIntValue() 82 fraction = interpolator.getInterpolation(fraction); in getIntValue() 84 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getIntValue() 92 if (fraction < nextKeyframe.getFraction()) { in getIntValue() [all …]
|
D | FloatKeyframeSet.java | 39 public Object getValue(float fraction) { in getValue() argument 40 return getFloatValue(fraction); in getValue() 56 public float getFloatValue(float fraction) { in getFloatValue() argument 57 if (fraction <= 0f) { in getFloatValue() 66 fraction = interpolator.getInterpolation(fraction); in getFloatValue() 68 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getFloatValue() 73 } else if (fraction >= 1f) { in getFloatValue() 82 fraction = interpolator.getInterpolation(fraction); in getFloatValue() 84 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getFloatValue() 93 if (fraction < nextKeyframe.getFraction()) { in getFloatValue() [all …]
|
D | KeyframeSet.java | 196 public Object getValue(float fraction) { in getValue() argument 200 fraction = mInterpolator.getInterpolation(fraction); in getValue() 202 return mEvaluator.evaluate(fraction, mFirstKeyframe.getValue(), in getValue() 205 if (fraction <= 0f) { in getValue() 209 fraction = interpolator.getInterpolation(fraction); in getValue() 212 float intervalFraction = (fraction - prevFraction) / in getValue() 216 } else if (fraction >= 1f) { in getValue() 220 fraction = interpolator.getInterpolation(fraction); in getValue() 223 float intervalFraction = (fraction - prevFraction) / in getValue() 231 if (fraction < nextKeyframe.getFraction()) { in getValue() [all …]
|
D | RectEvaluator.java | 72 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { in evaluate() argument 73 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); in evaluate() 74 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction); in evaluate() 75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() 76 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate()
|
D | ArgbEvaluator.java | 57 public Object evaluate(float fraction, Object startValue, Object endValue) { in evaluate() argument 80 float a = startA + fraction * (endA - startA); in evaluate() 81 float r = startR + fraction * (endR - startR); in evaluate() 82 float g = startG + fraction * (endG - startG); in evaluate() 83 float b = startB + fraction * (endB - startB); in evaluate()
|
D | Keyframes.java | 54 Object getValue(float fraction); in getValue() argument 74 int getIntValue(float fraction); in getIntValue() argument 87 float getFloatValue(float fraction); in getFloatValue() argument
|
D | PointFEvaluator.java | 72 public PointF evaluate(float fraction, PointF startValue, PointF endValue) { in evaluate() argument 73 float x = startValue.x + (fraction * (endValue.x - startValue.x)); in evaluate() 74 float y = startValue.y + (fraction * (endValue.y - startValue.y)); in evaluate()
|
/frameworks/base/core/java/android/transition/ |
D | Slide.java | 61 float getGoneX(ViewGroup sceneRoot, View view, float fraction); in getGoneX() argument 64 float getGoneY(ViewGroup sceneRoot, View view, float fraction); in getGoneY() argument 70 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { in getGoneY() argument 78 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { in getGoneX() argument 85 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { 86 return view.getTranslationX() - sceneRoot.getWidth() * fraction; 92 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { 96 x = view.getTranslationX() + sceneRoot.getWidth() * fraction; 98 x = view.getTranslationX() - sceneRoot.getWidth() * fraction; 106 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { [all …]
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/ |
D | TemperatureColorStore.java | 112 float fraction = (temperature - startValue.getTemperature()) / (endValue.getTemperature() in getColorForTemperature() local 114 return lerpColor(fraction, startValue.getColor(), endValue.getColor()); in getColorForTemperature() 117 int lerpColor(float fraction, int startColor, int endColor) { in lerpColor() argument 132 outColor[0] = hueLerp(fraction, startHsv[0], endHsv[0]); in lerpColor() 133 outColor[1] = lerp(fraction, startHsv[1], endHsv[1]); in lerpColor() 134 outColor[2] = lerp(fraction, startHsv[2], endHsv[2]); in lerpColor() 139 private float hueLerp(float fraction, float start, float end) { in hueLerp() argument 155 return lerp(fraction, start, end) % 360f; in hueLerp() 159 private float lerp(float fraction, float start, float end) { in lerp() argument 166 if (fraction >= 1) { in lerp() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | RectFEvaluator.java | 44 public RectF evaluate(float fraction, RectF startValue, RectF endValue) { in evaluate() argument 45 float left = startValue.left + ((endValue.left - startValue.left) * fraction); in evaluate() 46 float top = startValue.top + ((endValue.top - startValue.top) * fraction); in evaluate() 47 float right = startValue.right + ((endValue.right - startValue.right) * fraction); in evaluate() 48 float bottom = startValue.bottom + ((endValue.bottom - startValue.bottom) * fraction); in evaluate()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | log2.c | 60 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Log2_norm() argument 68 *fraction = 0; in Log2_norm() 81 *fraction = extract_h (L_y); in Log2_norm() 101 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Log2() argument 107 Log2_norm ((L_x << exp), exp, exponent, fraction); in Log2()
|
D | pitch_f4.c | 79 Word32 fraction, i; in Pitch_fr4() local 122 fraction = -3; in Pitch_fr4() 126 fraction = -2; in Pitch_fr4() 130 fraction = 0; in Pitch_fr4() 132 max = Interpol_4(&corr[t0], fraction); in Pitch_fr4() 134 for (i = fraction + step; i <= 3; i += step) in Pitch_fr4() 140 fraction = i; in Pitch_fr4() 144 if (fraction < 0) in Pitch_fr4() 146 fraction += UP_SAMP; in Pitch_fr4() 149 *pit_frac = fraction; in Pitch_fr4()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/ |
D | FreePathInterpolator.java | 69 float fraction = pointComponents[componentIndex++]; in initPath() local 72 if (fraction == prevFraction && x != prevX) { in initPath() 84 prevFraction = fraction; in initPath() 125 float fraction = tInRange / xRange; in getInterpolation() local 129 return startY + (fraction * (endY - startY)); in getInterpolation() 164 float fraction = tInRange / yRange; in getX() local 168 return startX + (fraction * (endX - startX)); in getX()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 69 private int applyFractionInt(@FractionRes int fraction, int whole) { in applyFractionInt() argument 70 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt() 90 com.android.internal.R.fraction.input_extract_layout_height, screenHeightPx)); in applyProportionalLayout() 93 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_left, in applyProportionalLayout() 96 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_right, in applyProportionalLayout() 101 applyFractionInt(com.android.internal.R.fraction.input_extract_text_margin_bottom, in applyProportionalLayout() 105 applyFractionInt(com.android.internal.R.fraction.input_extract_action_margin_bottom, in applyProportionalLayout()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | bitstream_io.cpp | 257 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) in BitstreamSavePartial() argument 283 *fraction = 1; in BitstreamSavePartial() 287 *fraction = 0; in BitstreamSavePartial() 301 if (*fraction) in BitstreamSavePartial() 329 Int fraction; in BitstreamShortHeaderByteAlignStuffing() local 341 BitstreamSavePartial(stream, &fraction); in BitstreamShortHeaderByteAlignStuffing() 359 Int fraction; in BitstreamMpeg4ByteAlignStuffing() local 377 BitstreamSavePartial(stream, &fraction); in BitstreamMpeg4ByteAlignStuffing() 422 Int bitused, bitleft, offset, fraction; in BitstreamAppendEnc() local 424 status = BitstreamSavePartial(bitstream1, &fraction); in BitstreamAppendEnc() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | pvamrwb_math_op.cpp | 386 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ in power_of_2() argument 392 L_x = fraction << 5; /* L_x = fraction<<6 */ in power_of_2() 393 i = (fraction >> 10); /* Extract b10-b16 of fraction */ in power_of_2() 493 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Lg2_normalized() argument 502 *fraction = 0;; in Lg2_normalized() 520 *fraction = extract_h(L_y); in Lg2_normalized() 541 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in amrwb_log_2() argument 547 Lg2_normalized(shl_int32(L_x, exp), exp, exponent, fraction); in amrwb_log_2()
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | log2_norm.cpp | 200 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */ in Log2_norm() argument 209 *fraction = 0; in Log2_norm() 234 *fraction = (Word16)(L_y >> 16); in Log2_norm()
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 271 long fraction = read32(buffer, offset + 4); in readTimeStamp() local 273 if (seconds == 0 && fraction == 0) { in readTimeStamp() 276 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); in readTimeStamp() 300 long fraction = milliseconds * 0x100000000L / 1000L; in writeTimeStamp() local 302 buffer[offset++] = (byte)(fraction >> 24); in writeTimeStamp() 303 buffer[offset++] = (byte)(fraction >> 16); in writeTimeStamp() 304 buffer[offset++] = (byte)(fraction >> 8); in writeTimeStamp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | PathInterpolatorBuilder.java | 74 float fraction = pointComponents[componentIndex++]; in initPath() local 77 if (fraction == prevFraction && x != prevX) { in initPath() 93 prevFraction = fraction; in initPath() 145 float fraction = tInRange / xRange; in getInterpolation() local 149 return startY + (fraction * (endY - startY)); in getInterpolation()
|