/frameworks/base/core/java/android/animation/ |
D | FloatKeyframeSet.java | 88 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()
|
D | IntKeyframeSet.java | 88 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()
|
D | Keyframe.java | 211 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()
|
D | KeyframeSet.java | 219 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()
|
D | AnimatorInflater.java | 820 (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/ |
D | ColorFilterDimmer.java | 50 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()
|
D | ColorOverlayDimmer.java | 46 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/ |
D | PercentLayoutHelper.java | 149 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/ |
D | PreviewPageFrame.java | 44 mSelectedPageAlpha = mContext.getResources().getFraction( in PreviewPageFrame() 46 mNotSelectedAlpha = mContext.getResources().getFraction( in PreviewPageFrame()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ContentFrameLayout.java | 105 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()
|
D | TintTypedArray.java | 165 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()
|
D | ResourcesWrapper.java | 122 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/ |
D | KeyguardClockPositionAlgorithm.java | 80 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()
|
D | PhoneStatusBarTransitions.java | 42 mIconAlphaWhenOpaque = res.getFraction(R.dimen.status_bar_icon_drawing_alpha, 1, 1); in PhoneStatusBarTransitions()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedRotateDrawable.java | 190 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()
|
D | RotateDrawable.java | 127 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()
|
D | ScaleDrawable.java | 174 return a.getFraction(index, 1, 1, defaultValue); in getPercent()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SpeechOrbView.java | 33 resources.getFraction(R.fraction.lb_search_bar_speech_orb_max_level_zoom, 1, 1); in SpeechOrbView()
|
D | RowHeaderPresenter.java | 91 viewHolder.mUnselectAlpha = parent.getResources().getFraction( in onCreateViewHolder()
|
D | FocusHighlightHelper.java | 156 res.getFraction(getResId(mScaleIndex), 1, 1); in getScale()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 68 return Math.round(getResources().getFraction(fraction, whole, whole)); in applyFractionInt()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | BatteryMeterDrawable.java | 123 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/ |
D | MediaRouteDialogHelper.java | 52 return (int) value.getFraction(metrics.widthPixels, metrics.widthPixels); in getDialogWidth()
|
/frameworks/base/core/java/android/util/ |
D | TypedValue.java | 420 public float getFraction(float base, float pbase) in getFraction() method in TypedValue
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | BridgeTypedArray.java | 512 public float getFraction(int index, int base, int pbase, float defValue) { in getFraction() method in BridgeTypedArray 519 return mValue.getFraction(base, pbase); in getFraction()
|