Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/animation/
DFloatKeyframeSet.java88 float prevFraction = prevKeyframe.getFraction(); in getFloatValue()
89 float nextFraction = nextKeyframe.getFraction(); in getFloatValue()
104 float prevFraction = prevKeyframe.getFraction(); in getFloatValue()
105 float nextFraction = nextKeyframe.getFraction(); in getFloatValue()
119 if (fraction < nextKeyframe.getFraction()) { in getFloatValue()
121 float intervalFraction = (fraction - prevKeyframe.getFraction()) / in getFloatValue()
122 (nextKeyframe.getFraction() - prevKeyframe.getFraction()); in getFloatValue()
DIntKeyframeSet.java88 float prevFraction = prevKeyframe.getFraction(); in getIntValue()
89 float nextFraction = nextKeyframe.getFraction(); in getIntValue()
104 float prevFraction = prevKeyframe.getFraction(); in getIntValue()
105 float nextFraction = nextKeyframe.getFraction(); in getIntValue()
118 if (fraction < nextKeyframe.getFraction()) { in getIntValue()
120 float intervalFraction = (fraction - prevKeyframe.getFraction()) / in getIntValue()
121 (nextKeyframe.getFraction() - prevKeyframe.getFraction()); in getIntValue()
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.java219 final float prevFraction = mFirstKeyframe.getFraction(); in getValue()
221 (nextKeyframe.getFraction() - prevFraction); in getValue()
230 final float prevFraction = prevKeyframe.getFraction(); in getValue()
232 (mLastKeyframe.getFraction() - prevFraction); in getValue()
239 if (fraction < nextKeyframe.getFraction()) { in getValue()
241 final float prevFraction = prevKeyframe.getFraction(); in getValue()
243 (nextKeyframe.getFraction() - prevFraction); in getValue()
DAnimatorInflater.java820 (keyframe.getFraction() < 0 ? "null" : keyframe.getFraction()) + ", " + in dumpKeyframes()
861 float endFraction = lastKeyframe.getFraction(); in loadPvh()
870 float startFraction = firstKeyframe.getFraction(); in loadPvh()
883 if (keyframe.getFraction() < 0) { in loadPvh()
894 if (keyframeArray[j].getFraction() >= 0) { in loadPvh()
899 float gap = keyframeArray[endIndex + 1].getFraction() - in loadPvh()
900 keyframeArray[startIndex - 1].getFraction(); in loadPvh()
945 keyframes[i].setFraction(keyframes[i-1].getFraction() + increment); in distributeKeyframes()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DColorFilterDimmer.java50 float activeLevel = a.getFraction(R.styleable.LeanbackTheme_overlayDimActiveLevel, 1, 1, in createDefault()
51 context.getResources().getFraction(R.fraction.lb_view_active_level, 1, 0)); in createDefault()
52 float dimmedLevel = a.getFraction(R.styleable.LeanbackTheme_overlayDimDimmedLevel, 1, 1, in createDefault()
53 context.getResources().getFraction(R.fraction.lb_view_dimmed_level, 1, 1)); in createDefault()
DColorOverlayDimmer.java46 float activeLevel = a.getFraction(R.styleable.LeanbackTheme_overlayDimActiveLevel, 1, 1, in createDefault()
47 context.getResources().getFraction(R.fraction.lb_view_active_level, 1, 0)); in createDefault()
48 float dimmedLevel = a.getFraction(R.styleable.LeanbackTheme_overlayDimDimmedLevel, 1, 1, in createDefault()
49 context.getResources().getFraction(R.fraction.lb_view_dimmed_level, 1, 1)); in createDefault()
/frameworks/support/percent/src/android/support/percent/
DPercentLayoutHelper.java149 float value = array.getFraction(R.styleable.PercentLayout_Layout_layout_widthPercent, 1, 1, in getPercentLayoutInfo()
158 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_heightPercent, 1, 1, -1f); in getPercentLayoutInfo()
166 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginPercent, 1, 1, -1f); in getPercentLayoutInfo()
177 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginLeftPercent, 1, 1, in getPercentLayoutInfo()
186 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginTopPercent, 1, 1, in getPercentLayoutInfo()
195 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginRightPercent, 1, 1, in getPercentLayoutInfo()
204 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginBottomPercent, 1, 1, in getPercentLayoutInfo()
213 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginStartPercent, 1, 1, in getPercentLayoutInfo()
222 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_marginEndPercent, 1, 1, in getPercentLayoutInfo()
232 value = array.getFraction(R.styleable.PercentLayout_Layout_layout_aspectRatio, 1, 1, -1f); in getPercentLayoutInfo()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPreviewPageFrame.java44 mSelectedPageAlpha = mContext.getResources().getFraction( in PreviewPageFrame()
46 mNotSelectedAlpha = mContext.getResources().getFraction( in PreviewPageFrame()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DContentFrameLayout.java105 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure()
124 h = (int) tvh.getFraction(metrics.heightPixels, metrics.heightPixels); in onMeasure()
149 min = (int) tv.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure()
DTintTypedArray.java165 public float getFraction(int index, int base, int pbase, float defValue) { in getFraction() method in TintTypedArray
166 return mWrapped.getFraction(index, base, pbase, defValue); in getFraction()
DResourcesWrapper.java122 public float getFraction(int id, int base, int pbase) { in getFraction() method in ResourcesWrapper
123 return mResources.getFraction(id, base, pbase); in getFraction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java80 mClockYFractionMin = res.getFraction(R.fraction.keyguard_clock_y_fraction_min, 1, 1); in loadDimens()
81 mClockYFractionMax = res.getFraction(R.fraction.keyguard_clock_y_fraction_max, 1, 1); in loadDimens()
DPhoneStatusBarTransitions.java42 mIconAlphaWhenOpaque = res.getFraction(R.dimen.status_bar_icon_drawing_alpha, 1, 1); in PhoneStatusBarTransitions()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedRotateDrawable.java190 state.mPivotX = state.mPivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
196 state.mPivotY = state.mPivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
DRotateDrawable.java127 state.mPivotX = state.mPivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
133 state.mPivotY = state.mPivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); in updateStateFromTypedArray()
DScaleDrawable.java174 return a.getFraction(index, 1, 1, defaultValue); in getPercent()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSpeechOrbView.java33 resources.getFraction(R.fraction.lb_search_bar_speech_orb_max_level_zoom, 1, 1); in SpeechOrbView()
DRowHeaderPresenter.java91 viewHolder.mUnselectAlpha = parent.getResources().getFraction( in onCreateViewHolder()
DFocusHighlightHelper.java156 res.getFraction(getResId(mScaleIndex), 1, 1); in getScale()
/frameworks/base/core/java/android/inputmethodservice/
DCompactExtractEditLayout.java68 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBatteryMeterDrawable.java123 mButtonHeightFraction = context.getResources().getFraction( in BatteryMeterDrawable()
125 mSubpixelSmoothingLeft = context.getResources().getFraction( in BatteryMeterDrawable()
127 mSubpixelSmoothingRight = context.getResources().getFraction( in BatteryMeterDrawable()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteDialogHelper.java52 return (int) value.getFraction(metrics.widthPixels, metrics.widthPixels); in getDialogWidth()
/frameworks/base/core/java/android/util/
DTypedValue.java420 public float getFraction(float base, float pbase) in getFraction() method in TypedValue
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java512 public float getFraction(int index, int base, int pbase, float defValue) { in getFraction() method in BridgeTypedArray
519 return mValue.getFraction(base, pbase); in getFraction()

12