Home
last modified time | relevance | path

Searched refs:getFraction (Results 1 – 25 of 37) 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/
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()
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()
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.java82 final int maxHeight = (int) typedValue.getFraction(point.y, point.y); in calculateDimensions()
DFillUi.java529 outPoint.x = (int) typedValue.getFraction(outPoint.x, outPoint.x); in resolveMaxWindowSize()
532 outPoint.y = (int) typedValue.getFraction(outPoint.y, outPoint.y); in resolveMaxWindowSize()
/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/inputmethodservice/
DCompactExtractEditLayout.java70 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt()
DKeyboard.java914 return Math.round(a.getFraction(index, base, base, defValue)); in getDimensionOrFraction()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperRestoreTest.java115 .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.java520 public float getFraction(int index, int base, int pbase, float defValue) { in getFraction() method in BridgeTypedArray
527 return mValue.getFraction(base, pbase); in getFraction()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java271 float defaultScale = mContext.getResources().getFraction( in isAlreadyConfiguredCriticalAccessibilitySetting()
/frameworks/base/core/java/com/android/internal/policy/
DDividerSnapAlgorithm.java128 mFixedRatio = res.getFraction( in DividerSnapAlgorithm()
DDecorView.java679 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels);
707 h = (int) tvh.getFraction(metrics.heightPixels, metrics.heightPixels);
756 min = (int)tv.getFraction(mAvailableWidth, mAvailableWidth);
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java423 when(mockResources.getFraction( in createResources()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java63 float autoBrightnessAdjustmentMaxGamma = resources.getFraction( in create()
/frameworks/base/core/java/android/content/res/
DTypedArray.java884 public float getFraction(@StyleableRes int index, int base, int pbase, float defValue) { in getFraction() method in TypedArray

12