Home
last modified time | relevance | path

Searched refs:getFraction (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/animation/
DIntKeyframeSet.java62 float prevFraction = prevKeyframe.getFraction(); in getIntValue()
63 float nextFraction = nextKeyframe.getFraction(); in getIntValue()
78 float prevFraction = prevKeyframe.getFraction(); in getIntValue()
79 float nextFraction = nextKeyframe.getFraction(); in getIntValue()
92 if (fraction < nextKeyframe.getFraction()) { in getIntValue()
94 float intervalFraction = (fraction - prevKeyframe.getFraction()) / in getIntValue()
95 (nextKeyframe.getFraction() - prevKeyframe.getFraction()); in getIntValue()
DFloatKeyframeSet.java62 float prevFraction = prevKeyframe.getFraction(); in getFloatValue()
63 float nextFraction = nextKeyframe.getFraction(); in getFloatValue()
78 float prevFraction = prevKeyframe.getFraction(); in getFloatValue()
79 float nextFraction = nextKeyframe.getFraction(); in getFloatValue()
93 if (fraction < nextKeyframe.getFraction()) { in getFloatValue()
95 float intervalFraction = (fraction - prevKeyframe.getFraction()) / in getFloatValue()
96 (nextKeyframe.getFraction() - prevKeyframe.getFraction()); in getFloatValue()
DKeyframe.java211 public float getFraction() { in getFraction() method in Keyframe
287 ObjectKeyframe kfClone = new ObjectKeyframe(getFraction(), hasValue() ? mValue : null); in clone()
334 new IntKeyframe(getFraction(), mValue) : in clone()
335 new IntKeyframe(getFraction()); in clone()
381 new FloatKeyframe(getFraction(), mValue) : in clone()
382 new FloatKeyframe(getFraction()); in clone()
DKeyframeSet.java211 final float prevFraction = mFirstKeyframe.getFraction(); in getValue()
213 (nextKeyframe.getFraction() - prevFraction); in getValue()
222 final float prevFraction = prevKeyframe.getFraction(); in getValue()
224 (mLastKeyframe.getFraction() - prevFraction); in getValue()
231 if (fraction < nextKeyframe.getFraction()) { in getValue()
233 final float prevFraction = prevKeyframe.getFraction(); in getValue()
235 (nextKeyframe.getFraction() - prevFraction); in getValue()
DAnimatorInflater.java824 (keyframe.getFraction() < 0 ? "null" : keyframe.getFraction()) + ", " + in dumpKeyframes()
865 float endFraction = lastKeyframe.getFraction(); in loadPvh()
874 float startFraction = firstKeyframe.getFraction(); in loadPvh()
887 if (keyframe.getFraction() < 0) { in loadPvh()
898 if (keyframeArray[j].getFraction() >= 0) { in loadPvh()
903 float gap = keyframeArray[endIndex + 1].getFraction() - in loadPvh()
904 keyframeArray[startIndex - 1].getFraction(); in loadPvh()
949 keyframes[i].setFraction(keyframes[i-1].getFraction() + increment); in distributeKeyframes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java111 mButtonHeightFraction = resources.getFraction( in BatteryMeterDrawable()
113 mAspectRatio = resources.getFraction(R.fraction.bt_battery_ratio_fraction, 1, 1); in BatteryMeterDrawable()
DBatteryMeterDrawableBase.java122 mButtonHeightFraction = context.getResources().getFraction( in BatteryMeterDrawableBase()
124 mSubpixelSmoothingLeft = context.getResources().getFraction( in BatteryMeterDrawableBase()
126 mSubpixelSmoothingRight = context.getResources().getFraction( in BatteryMeterDrawableBase()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedRotateDrawable.java191 state.mPivotX = state.mPivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
197 state.mPivotY = state.mPivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
DRotateDrawable.java129 state.mPivotX = state.mPivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
135 state.mPivotY = state.mPivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
DScaleDrawable.java176 return a.getFraction(index, 1, 1, defaultValue); in getPercent()
DInsetDrawable.java209 float f = tv.getFraction(1.0f, 1.0f); in getInset()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DCustomScrollView.java83 final int maxHeight = (int) typedValue.getFraction(point.y, point.y); in calculateDimensions()
DFillUi.java566 outPoint.x = (int) typedValue.getFraction(outPoint.x, outPoint.x); in resolveMaxWindowSize()
569 outPoint.y = (int) typedValue.getFraction(outPoint.y, outPoint.y); in resolveMaxWindowSize()
/frameworks/base/services/core/java/com/android/server/wm/
DLocalAnimationAdapter.java138 default float getFraction(float currentPlayTime) { in getFraction() method
DDimmer.java383 final float fraction = getFraction(currentPlayTime); in apply()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarTransitions.java43 mIconAlphaWhenOpaque = res.getFraction(R.dimen.status_bar_icon_drawing_alpha, 1, 1); in PhoneStatusBarTransitions()
/frameworks/base/core/java/android/view/
DWindowInsetsAnimation.java88 public float getFraction() { in getFraction() method in WindowInsetsAnimation
DInsetsAnimationControlImpl.java256 return mAnimation.getFraction(); in getCurrentFraction()
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java70 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperRestoreTest.java116 .getFraction( in setDefaultAccessibilityDisplayMagnificationScale()
/frameworks/base/core/java/android/util/
DTypedValue.java459 public float getFraction(float base, float pbase) in getFraction() method in TypedValue
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java542 public float getFraction(int index, int base, int pbase, float defValue) { in getFraction() method in BridgeTypedArray
549 return mValue.getFraction(base, pbase); in getFraction()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedActivityUtils.java470 widthFraction = sw.getFraction(R.styleable.AndroidManifestLayout_defaultWidth, 1, 1, in parseLayout()
478 heightFraction = sw.getFraction(R.styleable.AndroidManifestLayout_defaultHeight, 1, in parseLayout()
/frameworks/base/core/java/com/android/internal/policy/
DDividerSnapAlgorithm.java132 mFixedRatio = res.getFraction( in DividerSnapAlgorithm()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java307 float defaultScale = mContext.getResources().getFraction( in isAlreadyConfiguredCriticalAccessibilitySetting()

12