/frameworks/base/libs/hwui/ |
D | PropertyValuesHolder.cpp | 28 float PropertyValuesHolder::getValueFromData(float fraction) { in getValueFromData() argument 33 if (fraction <= 0.0f) { in getValueFromData() 36 if (fraction >= 1.0f) { in getValueFromData() 40 fraction *= mDataSource.size() - 1; in getValueFromData() 41 int lowIndex = floor(fraction); in getValueFromData() 42 fraction -= lowIndex; in getValueFromData() 44 float value = mDataSource[lowIndex] * (1.0f - fraction) in getValueFromData() 45 + mDataSource[lowIndex + 1] * fraction; in getValueFromData() 49 void GroupPropertyValuesHolder::setFraction(float fraction) { in setFraction() argument 52 animatedValue = getValueFromData(fraction); in setFraction() [all …]
|
D | PropertyValuesHolder.h | 33 virtual void setFraction(float fraction) = 0; 37 float getValueFromData(float fraction); 52 void setFraction(float fraction) override; 68 void setFraction(float fraction) override; 69 static SkColor interpolateColors(SkColor fromColor, SkColor toColor, float fraction); 85 void setFraction(float fraction) override; 100 void setFraction(float fraction) override; 114 void setFraction(float fraction) override;
|
D | PropertyValuesAnimatorSet.cpp | 124 float fraction = currentIterationPlayTime / (float) mDuration; in setCurrentPlayTime() local 125 setFraction(fraction); in setCurrentPlayTime() 134 void PropertyAnimator::setFraction(float fraction) { in setFraction() argument 135 mLatestFraction = fraction; in setFraction() 136 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 | FloatKeyframeSet.java | 44 public Object getValue(float fraction) { in getValue() argument 45 return getFloatValue(fraction); in getValue() 66 public float getFloatValue(float fraction) { in getFloatValue() argument 75 fraction = mInterpolator.getInterpolation(fraction); in getFloatValue() 78 return firstValue + fraction * deltaValue; in getFloatValue() 80 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).floatValue(); in getFloatValue() 83 if (fraction <= 0f) { in getFloatValue() 92 fraction = interpolator.getInterpolation(fraction); in getFloatValue() 94 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getFloatValue() 99 } else if (fraction >= 1f) { in getFloatValue() [all …]
|
D | IntKeyframeSet.java | 44 public Object getValue(float fraction) { in getValue() argument 45 return getIntValue(fraction); in getValue() 66 public int getIntValue(float fraction) { in getIntValue() argument 75 fraction = mInterpolator.getInterpolation(fraction); in getIntValue() 78 return firstValue + (int)(fraction * deltaValue); in getIntValue() 80 return ((Number)mEvaluator.evaluate(fraction, firstValue, lastValue)).intValue(); in getIntValue() 83 if (fraction <= 0f) { in getIntValue() 92 fraction = interpolator.getInterpolation(fraction); in getIntValue() 94 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction); in getIntValue() 99 } else if (fraction >= 1f) { in getIntValue() [all …]
|
D | ValueAnimator.java | 577 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime() local 578 setCurrentFraction(fraction); in setCurrentPlayTime() 598 public void setCurrentFraction(float fraction) { in setCurrentFraction() argument 600 fraction = clampFraction(fraction); in setCurrentFraction() 601 long seekTime = (long) (getScaledDuration() * fraction); in setCurrentFraction() 608 mSeekFraction = fraction; in setCurrentFraction() 610 mOverallFraction = fraction; in setCurrentFraction() 611 final float currentIterationFraction = getCurrentIterationFraction(fraction); in setCurrentFraction() 620 private int getCurrentIteration(float fraction) { in getCurrentIteration() argument 621 fraction = clampFraction(fraction); in getCurrentIteration() [all …]
|
D | KeyframeSet.java | 204 public Object getValue(float fraction) { in getValue() argument 208 fraction = mInterpolator.getInterpolation(fraction); in getValue() 210 return mEvaluator.evaluate(fraction, mFirstKeyframe.getValue(), in getValue() 213 if (fraction <= 0f) { in getValue() 217 fraction = interpolator.getInterpolation(fraction); in getValue() 220 float intervalFraction = (fraction - prevFraction) / in getValue() 224 } else if (fraction >= 1f) { in getValue() 228 fraction = interpolator.getInterpolation(fraction); in getValue() 231 float intervalFraction = (fraction - prevFraction) / in getValue() 239 if (fraction < nextKeyframe.getFraction()) { in getValue() [all …]
|
D | ArgbEvaluator.java | 54 public Object evaluate(float fraction, Object startValue, Object endValue) { in evaluate() argument 67 return (int)((startA + (int)(fraction * (endA - startA))) << 24) | in evaluate() 68 (int)((startR + (int)(fraction * (endR - startR))) << 16) | in evaluate() 69 (int)((startG + (int)(fraction * (endG - startG))) << 8) | in evaluate() 70 (int)((startB + (int)(fraction * (endB - startB)))); in evaluate()
|
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 | Keyframes.java | 54 Object getValue(float fraction); in getValue() argument 80 int getIntValue(float fraction); in getIntValue() argument 93 float getFloatValue(float fraction); in getFloatValue() argument
|
/frameworks/base/core/java/android/transition/ |
D | Slide.java | 60 float getGoneX(ViewGroup sceneRoot, View view, float fraction); in getGoneX() argument 63 float getGoneY(ViewGroup sceneRoot, View view, float fraction); in getGoneY() argument 69 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { in getGoneY() argument 77 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { in getGoneX() argument 84 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { 85 return view.getTranslationX() - sceneRoot.getWidth() * fraction; 91 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { 95 x = view.getTranslationX() + sceneRoot.getWidth() * fraction; 97 x = view.getTranslationX() - sceneRoot.getWidth() * fraction; 105 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { [all …]
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 304 void setExpansionFraction(float fraction) { in setExpansionFraction() argument 305 fraction = MathUtils.constrain(fraction, 0f, 1f); in setExpansionFraction() 307 if (fraction != mExpandedFraction) { in setExpansionFraction() 308 mExpandedFraction = fraction; in setExpansionFraction() 329 private void calculateOffsets(final float fraction) { in calculateOffsets() argument 330 interpolateBounds(fraction); in calculateOffsets() 331 mCurrentDrawX = lerp(mExpandedDrawX, mCollapsedDrawX, fraction, in calculateOffsets() 333 mCurrentDrawY = lerp(mExpandedDrawY, mCollapsedDrawY, fraction, in calculateOffsets() 337 fraction, mTextSizeInterpolator)); in calculateOffsets() 342 mTextPaint.setColor(blendColors(mExpandedTextColor, mCollapsedTextColor, fraction)); in calculateOffsets() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
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()
|
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/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/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 67 private int applyFractionInt(@FractionRes int fraction, int whole) { in applyFractionInt() argument 68 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt() 88 com.android.internal.R.fraction.input_extract_layout_height, screenHeightPx)); in applyProportionalLayout() 91 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_left, in applyProportionalLayout() 94 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_right, in applyProportionalLayout() 99 applyFractionInt(com.android.internal.R.fraction.input_extract_text_margin_bottom, in applyProportionalLayout() 103 applyFractionInt(com.android.internal.R.fraction.input_extract_action_margin_bottom, in applyProportionalLayout()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | FocusHighlightHelper.java | 41 return R.fraction.lb_focus_zoom_factor_small; in getResId() 43 return R.fraction.lb_focus_zoom_factor_xsmall; in getResId() 45 return R.fraction.lb_focus_zoom_factor_medium; in getResId() 47 return R.fraction.lb_focus_zoom_factor_large; in getResId() 126 float fraction; in onTimeUpdate() local 128 fraction = 1; in onTimeUpdate() 131 fraction = (float) (totalTime / (double) mDuration); in onTimeUpdate() 134 fraction = mInterpolator.getInterpolation(fraction); in onTimeUpdate() 136 setFocusLevel(mFocusLevelStart + fraction * mFocusLevelDelta); in onTimeUpdate()
|
/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/base/core/java/android/net/ |
D | SntpClient.java | 236 long fraction = read32(buffer, offset + 4); in readTimeStamp() local 238 if (seconds == 0 && fraction == 0) { in readTimeStamp() 241 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); in readTimeStamp() 265 long fraction = milliseconds * 0x100000000L / 1000L; in writeTimeStamp() local 267 buffer[offset++] = (byte)(fraction >> 24); in writeTimeStamp() 268 buffer[offset++] = (byte)(fraction >> 16); in writeTimeStamp() 269 buffer[offset++] = (byte)(fraction >> 8); in writeTimeStamp()
|
/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/support/design/base/android/support/design/widget/ |
D | AnimationUtils.java | 38 static float lerp(float startValue, float endValue, float fraction) { in lerp() argument 39 return startValue + (fraction * (endValue - startValue)); in lerp() 42 static int lerp(int startValue, int endValue, float fraction) { in lerp() argument 43 return startValue + Math.round(fraction * (endValue - startValue)); in lerp()
|
/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()
|