Searched refs:fraction (Results 26 - 50 of 143) sorted by relevance

123456

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dpow2.cpp83 fraction = Fractional part whose valid range is 0 <= value < 1
103 This function computes L_x = pow(2.0, exponent.fraction)
107 1- i = bit10-b15 of fraction, 0 <= i <= 31
108 2- a = bit0-b9 of fraction
127 Word16 fraction // (i) : Fractional part. (range: 0.0<=val<1.0)
133 L_x = L_mult (fraction, 32); // L_x = fraction<<6
134 i = extract_h (L_x); // Extract b10-b16 of fraction
136 a = extract_l (L_x); // Extract b0-b9 of fraction
178 Word16 fraction, /* (
176 Pow2( Word16 exponent, Word16 fraction, Flag *pOverflow ) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DSlide.java61 float getGoneX(ViewGroup sceneRoot, View view, float fraction); argument
64 float getGoneY(ViewGroup sceneRoot, View view, float fraction); argument
70 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { argument
78 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { argument
85 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
86 return view.getTranslationX() - sceneRoot.getWidth() * fraction;
92 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
96 x = view.getTranslationX() + sceneRoot.getWidth() * fraction;
98 x = view.getTranslationX() - sceneRoot.getWidth() * fraction;
106 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) {
[all...]
/frameworks/base/libs/hwui/utils/
H A DVectorDrawableUtils.h33 const PathData& morphTo, float fraction);
36 float fraction);
/frameworks/support/transition/src/android/support/transition/
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));
/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...]
/frameworks/base/core/java/android/animation/
H A DValueAnimator.java89 * determine elapsed time (and therefore the elapsed fraction) in subsequent calls
143 * Tracks the overall fraction of the animation, ranging from 0 to mRepeatCount + 1
148 * Tracks current elapsed/eased fraction, for querying in getAnimatedFraction().
149 * This is calculated by interpolating the fraction (range: [0, 1]) in the current iteration.
234 * The time interpolator to be used. The elapsed fraction of the animation will be passed
235 * through this interpolator to calculate the interpolated fraction, which is then used to
616 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1;
617 setCurrentFraction(fraction);
621 * Sets the position of the animation to the specified fraction. This fraction shoul
637 setCurrentFraction(float fraction) argument
662 getCurrentIteration(float fraction) argument
679 getCurrentIterationFraction(float fraction, boolean inReverse) argument
693 clampFraction(float fraction) argument
1512 animateValue(float fraction) argument
[all...]
H A DArgbEvaluator.java44 * @param fraction The fraction from the starting to the ending values
54 public Object evaluate(float fraction, Object startValue, Object endValue) { argument
77 float a = startA + fraction * (endA - startA);
78 float r = startR + fraction * (endR - startR);
79 float g = startG + fraction * (endG - startG);
80 float b = startB + fraction * (endB - startB);
H A DKeyframeSet.java185 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the
187 * function maps the input fraction to the appropriate keyframe interval and a fraction
188 * between them and returns the interpolated value. Note that the input fraction may fall
190 * spring interpolation that might send the fraction past 1.0). We handle this situation by
193 * @param fraction The elapsed fraction of the animation
196 public Object getValue(float fraction) { argument
200 fraction = mInterpolator.getInterpolation(fraction);
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
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 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 DDetailsParallax.java50 .fraction(1.0f);
/frameworks/base/core/java/android/inputmethodservice/
H A DCompactExtractEditLayout.java69 private int applyFractionInt(@FractionRes int fraction, int whole) { argument
70 return Math.round(getResources().getFraction(fraction, whole, whole));
90 com.android.internal.R.fraction.input_extract_layout_height, screenHeightPx));
93 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_left,
96 applyFractionInt(com.android.internal.R.fraction.input_extract_layout_padding_right,
101 applyFractionInt(com.android.internal.R.fraction.input_extract_text_margin_bottom,
105 applyFractionInt(com.android.internal.R.fraction.input_extract_action_margin_bottom,
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DFreePathInterpolator.java69 float fraction = pointComponents[componentIndex++];
72 if (fraction == prevFraction && x != prevX) {
84 prevFraction = fraction;
125 float fraction = tInRange / xRange;
129 return startY + (fraction * (endY - startY));
164 float fraction = tInRange / yRange;
168 return startX + (fraction * (endX - startX));
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
H A DArgbEvaluator.java51 * @param fraction The fraction from the starting to the ending values
62 public Object evaluate(float fraction, Object startValue, Object endValue) { argument
85 float a = startA + fraction * (endA - startA);
86 float r = startR + fraction * (endR - startR);
87 float g = startG + fraction * (endG - startG);
88 float b = startB + fraction * (endB - startB);
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
H A Dmath_op.h38 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dpvamrwb_math_op.h85 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
98 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/
105 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
H A Dpvamrwb_math_op.cpp307 1- If exponant is odd then shift fraction right once.
309 3- i = bit25-b30 of fraction, 16 <= i <= 63 ->because of normalization.
312 6- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2
363 L_x = pow(2.0, exponant.fraction) (exponant = interger part)
364 = pow(2.0, 0.fraction) << exponant
371 1- i = bit10-b15 of fraction, 0 <= i <= 31
372 2- a = bit0-b9 of fraction
386 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
392 L_x = fraction << 5; /* L_x = fraction<<
547 Lg2_normalized(shl_int32(L_x, exp), exp, exponent, fraction); local
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dpitch_f4.c62 Word32 frac /* (i) : fraction (-4..+3) */
72 Word16 * pit_frac, /* (o) : chosen fraction (0, 1, 2 or 3). */
79 Word32 fraction, i; local
122 fraction = -3;
126 fraction = -2;
130 fraction = 0;
132 max = Interpol_4(&corr[t0], fraction);
134 for (i = fraction + step; i <= 3; i += step)
140 fraction = i;
143 /* limit the fraction valu
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingTextHelper.java307 void setExpansionFraction(float fraction) { argument
308 fraction = MathUtils.clamp(fraction, 0f, 1f);
310 if (fraction != mExpandedFraction) {
311 mExpandedFraction = fraction;
348 private void calculateOffsets(final float fraction) { argument
349 interpolateBounds(fraction);
350 mCurrentDrawX = lerp(mExpandedDrawX, mCollapsedDrawX, fraction,
352 mCurrentDrawY = lerp(mExpandedDrawY, mCollapsedDrawY, fraction,
356 fraction, mTextSizeInterpolato
468 interpolateBounds(float fraction) argument
712 lerp(float startValue, float endValue, float fraction, Interpolator interpolator) argument
[all...]
/frameworks/base/core/java/android/util/
H A DPathParser.java108 * <code>fraction</code>, and put the resulting path data into <code>outData</code>.
113 * @param fraction The fraction to interpolate.
116 float fraction) {
118 toData.mNativePathData, fraction);
136 long toDataPtr, float fraction);
115 interpolatePathData(PathData outData, PathData fromData, PathData toData, float fraction) argument
135 nInterpolatePathData(long outDataPtr, long fromDataPtr, long toDataPtr, float fraction) argument
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DBitmapView.java59 float fraction = (float) getBottom() / (mListView.getHeight() + getHeight());
60 drawable.setParallaxFraction(fraction);
/frameworks/base/libs/hwui/
H A DPropertyValuesAnimatorSet.cpp163 void PropertyAnimator::setFraction(float fraction, long iteration) { argument
164 double totalFraction = fraction + iteration;
165 // This makes sure we only set the fraction = repeatCount + 1 once. It is needed because there
174 // fraction based on the play direction.
176 fraction = 1.0f - fraction;
178 float interpolatedFraction = mInterpolator->interpolate(fraction);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPathInterpolatorBuilder.java74 float fraction = pointComponents[componentIndex++];
77 if (fraction == prevFraction && x != prevX) {
93 prevFraction = fraction;
145 float fraction = tInRange / xRange;
149 return startY + (fraction * (endY - startY));
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/
H A DCompositeDrawableTest.java63 float fraction = 0.5f;
73 fraction);
78 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction);
93 ValueRule.inheritFromParentWithOffset(fraction, 100);
98 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction + 100);
104 ValueRule.inheritFromParent(fraction);
109 expectedBounds.bottom = bounds.top + (int) ((HEIGHT - 200) * fraction);
116 float fraction = 0.5f;
129 boundsRule.bottom = ValueRule.inheritFromParent(fraction);
137 expectedBounds.bottom = (int) (HEIGHT * fraction);
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp257 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) argument
279 bitleft = bitused - (numbyte << 3); /* number of bits used (fraction) */
283 *fraction = 1;
287 *fraction = 0;
301 if (*fraction)
329 Int fraction; local
341 BitstreamSavePartial(stream, &fraction);
359 Int fraction; local
377 BitstreamSavePartial(stream, &fraction);
422 Int bitused, bitleft, offset, fraction; local
585 Int fraction; local
684 Int movebyte, bitused, leftover, i, fraction; local
[all...]

Completed in 2461 milliseconds

123456