Home
last modified time | relevance | path

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

123

/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.java827 (keyframe.getFraction() < 0 ? "null" : keyframe.getFraction()) + ", " + in dumpKeyframes()
868 float endFraction = lastKeyframe.getFraction(); in loadPvh()
877 float startFraction = firstKeyframe.getFraction(); in loadPvh()
890 if (keyframe.getFraction() < 0) { in loadPvh()
901 if (keyframeArray[j].getFraction() >= 0) { in loadPvh()
906 float gap = keyframeArray[endIndex + 1].getFraction() - in loadPvh()
907 keyframeArray[startIndex - 1].getFraction(); in loadPvh()
952 keyframes[i].setFraction(keyframes[i-1].getFraction() + increment); in distributeKeyframes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java112 mButtonHeightFraction = resources.getFraction( in BatteryMeterDrawable()
114 mAspectRatio = resources.getFraction(R.fraction.bt_battery_ratio_fraction, 1, 1); in BatteryMeterDrawable()
DBatteryMeterDrawableBase.java123 mButtonHeightFraction = context.getResources().getFraction( in BatteryMeterDrawableBase()
125 mSubpixelSmoothingLeft = context.getResources().getFraction( in BatteryMeterDrawableBase()
127 mSubpixelSmoothingRight = context.getResources().getFraction( in BatteryMeterDrawableBase()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java149 final float maxScaleDimen = context.getResources().getFraction( in DisplayDensityUtils()
152 final float minScale = context.getResources().getFraction( in DisplayDensityUtils()
154 final float minScaleInterval = context.getResources().getFraction( in DisplayDensityUtils()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceVolumeManagerTest.java132 preScale[0] = mContext.getResources().getFraction( in configurablePreScaleAbsoluteVolume_checkIndex()
135 preScale[1] = mContext.getResources().getFraction( in configurablePreScaleAbsoluteVolume_checkIndex()
138 preScale[2] = mContext.getResources().getFraction( in configurablePreScaleAbsoluteVolume_checkIndex()
DVolumeHelperTest.java573 preScale[0] = mContext.getResources().getFraction( in configurablePreScaleAbsoluteVolume_checkIndex()
576 preScale[1] = mContext.getResources().getFraction( in configurablePreScaleAbsoluteVolume_checkIndex()
579 preScale[2] = mContext.getResources().getFraction( in configurablePreScaleAbsoluteVolume_checkIndex()
/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.java177 return a.getFraction(index, 1, 1, defaultValue); in getPercent()
/frameworks/base/services/core/java/com/android/server/wm/
DLocalAnimationAdapter.java163 default float getFraction(float currentPlayTime) { in getFraction() method
DLegacyDimmer.java327 final float fraction = getFraction(currentPlayTime); in apply()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DCustomScrollView.java143 return (int) maxHeightAttrTypedValue.getFraction(100, 100); in getAttrBasedMaxHeightPercent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarTransitions.java45 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
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java70 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthenticationStatsBroadcastReceiverTest.java80 when(mResources.getFraction(eq(R.fraction.config_biometricNotificationFrrThreshold), in setUp()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedSettingsUtil.java238 return context.getResources().getFraction(R.fraction.config_one_handed_offset, 1, 1); in getTranslationFraction()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DLegacySizeSpecSource.kt54 mMinimumSizePercent = res.getFraction(R.fraction.config_pipShortestEdgePercent, 1, 1) in reloadResources()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthenticationStatsCollector.java86 .getFraction(R.fraction.config_biometricNotificationFrrThreshold, 1, 1); in AuthenticationStatsCollector()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperRestoreTest.java131 .getFraction( in setDefaultAccessibilityDisplayMagnificationScale()
/frameworks/base/core/java/android/util/
DTypedValue.java730 public float getFraction(float base, float pbase) in getFraction() method in TypedValue

123