Searched refs:fraction (Results 1 - 25 of 143) sorted by last modified time

123456

/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/presenter/
H A DHeaderItemPresenter.java40 .getFraction(R.fraction.lb_browse_header_unselect_alpha, 1, 1);
/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/presenter/
H A DHeaderItemPresenter.java40 .getFraction(R.fraction.lb_browse_header_unselect_alpha, 1, 1);
/frameworks/support/transition/api14/android/support/transition/
H A DPathProperty.java57 public void set(T target, Float fraction) { argument
58 mCurrentFraction = fraction;
59 mPathMeasure.getPosTan(mPathLength * fraction, mPosition, null);
/frameworks/support/transition/src/android/support/transition/
H A DChangeImageTransform.java55 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) {
H A DFloatArrayEvaluator.java44 * Interpolates the value at each index by the fraction. If
49 * @param fraction The fraction from the starting to the ending values
56 public float[] evaluate(float fraction, float[] startValue, float[] endValue) { argument
65 array[i] = start + (fraction * (end - start));
H A DRectEvaluator.java60 * end Rect values, with <code>fraction</code> representing the proportion
69 * @param fraction The fraction from the starting to the ending values
73 * <code>fraction</code> parameter.
76 public Rect evaluate(float fraction, Rect startValue, Rect endValue) { argument
77 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction);
78 int top = startValue.top + (int) ((endValue.top - startValue.top) * fraction);
79 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction);
80 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction);
H A DTransitionUtils.java120 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { argument
125 mTempEndValues[i] = mTempStartValues[i] + (fraction * diff);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBrowseFragment.java1137 mScaleFactor = getResources().getFraction(R.fraction.lb_browse_rows_scale, 1, 1);
H A DBrowseSupportFragment.java1140 mScaleFactor = getResources().getFraction(R.fraction.lb_browse_rows_scale, 1, 1);
H A DDetailsBackgroundVideoHelper.java95 public void update(float fraction) {
96 if (fraction == maxFrameTop) {
H A DPlaybackFragment.java535 final float fraction = (Float) arg0.getAnimatedValue();
536 if (DEBUG) Log.v(TAG, "fraction " + fraction);
537 view.setAlpha(fraction);
538 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
561 final float fraction = (Float) arg0.getAnimatedValue();
566 view.setAlpha(fraction);
567 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
H A DPlaybackOverlayFragment.java477 final float fraction = (Float) arg0.getAnimatedValue();
478 if (DEBUG) Log.v(TAG, "fraction " + fraction);
479 view.setAlpha(fraction);
480 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
520 final float fraction = (Float) arg0.getAnimatedValue();
523 view.setAlpha(fraction);
524 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
H A DPlaybackOverlaySupportFragment.java480 final float fraction = (Float) arg0.getAnimatedValue();
481 if (DEBUG) Log.v(TAG, "fraction " + fraction);
482 view.setAlpha(fraction);
483 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
523 final float fraction = (Float) arg0.getAnimatedValue();
526 view.setAlpha(fraction);
527 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
H A DPlaybackSupportFragment.java538 final float fraction = (Float) arg0.getAnimatedValue();
539 if (DEBUG) Log.v(TAG, "fraction " + fraction);
540 view.setAlpha(fraction);
541 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
564 final float fraction = (Float) arg0.getAnimatedValue();
569 view.setAlpha(fraction);
570 view.setTranslationY((float) mAnimationTranslateY * (1f - fraction));
H A DRowsFragment.java104 float fraction;
106 fraction = 1;
109 fraction = (float) (totalTime / (double) mSelectAnimatorDurationInUse);
112 fraction = mSelectAnimatorInterpolatorInUse.getInterpolation(fraction);
114 float level = mSelectLevelAnimStart + fraction * mSelectLevelAnimDelta;
H A DRowsSupportFragment.java107 float fraction;
109 fraction = 1;
112 fraction = (float) (totalTime / (double) mSelectAnimatorDurationInUse);
115 fraction = mSelectAnimatorInterpolatorInUse.getInterpolation(fraction);
117 float level = mSelectLevelAnimStart + fraction * mSelectLevelAnimDelta;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DBoundsRule.java35 * Creates ValueRule using a fraction of parent size.
37 * @param fraction Percentage of parent.
40 public static ValueRule inheritFromParent(float fraction) { argument
41 return new ValueRule(0, fraction);
55 * Creates ValueRule of fraction and offset.
57 * @param fraction Percentage of parent.
61 public static ValueRule inheritFromParentWithOffset(float fraction, int value) { argument
62 return new ValueRule(value, fraction);
65 ValueRule(int absoluteValue, float fraction) { argument
67 this.mFraction = fraction;
80 setFraction(float fraction) argument
[all...]
H A DColorFilterDimmer.java51 context.getResources().getFraction(R.fraction.lb_view_active_level, 1, 0));
53 context.getResources().getFraction(R.fraction.lb_view_dimmed_level, 1, 1));
H A DColorOverlayDimmer.java47 context.getResources().getFraction(R.fraction.lb_view_active_level, 1, 0));
49 context.getResources().getFraction(R.fraction.lb_view_dimmed_level, 1, 1));
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsParallax.java50 .fraction(1.0f);
H A DFocusHighlightHelper.java45 return R.fraction.lb_focus_zoom_factor_small;
47 return R.fraction.lb_focus_zoom_factor_xsmall;
49 return R.fraction.lb_focus_zoom_factor_medium;
51 return R.fraction.lb_focus_zoom_factor_large;
130 float fraction;
132 fraction = 1;
135 fraction = (float) (totalTime / (double) mDuration);
138 fraction = mInterpolator.getInterpolation(fraction);
140 setFocusLevel(mFocusLevelStart + fraction * mFocusLevelDelt
[all...]
H A DParallaxEffect.java35 * {@link ParallaxEffect#performMapping(Parallax)} which computes a fraction between 0 and 1
37 * on, the fraction increases from 0 at beginning to 1 at the end. Then the fraction is passed on
209 float fraction = 0;
221 fraction = calculateFraction(source);
223 target.update(fraction);
229 * This method is expected to compute a fraction between 0 and 1 based on the current values of
230 * variables in {@link Parallax}. As the parallax effect goes on, the fraction increases
247 * fraction inside a range to fraction o
252 getFractionWithWeightAdjusted(float fraction, int markerValueIndex) argument
[all...]
H A DParallaxTarget.java34 * Implementation class is supposed to update target with the provided fraction
35 * (between 0 and 1). The fraction represents percentage of completed change (e.g. scroll) on
38 * @param fraction Fraction between 0 to 1.
41 public void update(float fraction) { argument
46 * {@link #directUpdate(Number)} will be used to update value, otherwise update(fraction) will
89 public void update(float fraction) { argument
90 mFraction = fraction;
91 mAnimator.setCurrentPlayTime((long) (PSEUDO_DURATION * fraction));
H A DRecyclerViewParallax.java56 * tracking_pos = view.top + fraction * view.height() + offset
58 * This way we can track top using fraction 0 and bottom using fraction 1.
104 * Sets fraction of size to be added to view's start position. e.g. to track the
105 * center position of the view, use fraction 0.5; to track the end position of the view
106 * use fraction 1.
108 * @param fraction Fraction of size of the view.
111 public ChildPositionProperty fraction(float fraction) { argument
112 mFraction = fraction;
[all...]
H A DRowHeaderPresenter.java118 R.fraction.lb_browse_header_unselect_alpha, 1, 1);

Completed in 3926 milliseconds

123456