/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 240 long fraction = read32(buffer, offset + 4); 242 if (seconds == 0 && fraction == 0) { 245 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); 269 long fraction = milliseconds * 0x100000000L / 1000L; 270 // write fraction in big endian format 271 buffer[offset++] = (byte)(fraction >> 24); 272 buffer[offset++] = (byte)(fraction >> 16); 273 buffer[offset++] = (byte)(fraction >> 8);
|
/frameworks/base/core/java/android/animation/ |
H A D | TimeAnimator.java | 69 void animateValue(float fraction) { argument
|
/frameworks/support/compat/ics/android/support/v4/view/animation/ |
H A D | PathInterpolatorApi14.java | 90 final float fraction = tInRange / xRange; 95 return startY + (fraction * (endY - startY));
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | DumpUtils.java | 162 public static void printPercent(PrintWriter pw, double fraction) { argument 163 fraction *= 100; 164 if (fraction < 1) { 165 pw.print(String.format("%.2f", fraction)); 166 } else if (fraction < 10) { 167 pw.print(String.format("%.1f", fraction)); 169 pw.print(String.format("%.0f", fraction));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ScrimController.java | 139 public void setPanelExpansion(float fraction) { argument 140 if (mFraction != fraction) { 141 mFraction = fraction; 275 float fraction = 1 - behindFraction; 276 fraction = (float) Math.pow(fraction, 0.8f); 278 setScrimInFrontColor(fraction * getScrimInFrontAlpha()); 287 float fraction = Math.max(0, Math.min(mFraction, 1)); 289 setScrimBehindColor(fraction
|
/frameworks/base/core/java/android/view/animation/ |
H A D | PathInterpolator.java | 177 float fraction = pointComponents[componentIndex++]; 180 if (fraction == prevFraction && x != prevX) { 190 prevFraction = fraction; 230 float fraction = tInRange / xRange; 234 return startY + (fraction * (endY - startY));
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 35 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) { argument 46 return (int)((startA + (int)(fraction * (endA - startA))) << 24) 47 | (int)((startR + (int)(fraction * (endR - startR))) << 16) 48 | (int)((startG + (int)(fraction * (endG - startG))) << 8) 49 | (int)((startB + (int)(fraction * (endB - startB))));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | TouchAnimator.java | 55 public void setPosition(float fraction) { argument 56 float t = MathUtils.constrain((fraction - mStartDelay) / mSpan, 0, 1); 212 void setValue(float fraction, Object target) { argument 214 for (i = 1; i < mSize - 1 && fraction > mFrameWidth; i++); 215 float amount = fraction / mFrameWidth;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | TemplateLayout.java | 226 * Set the X translation as a fraction of the width of this view. Make sure this method is not 237 public void setXFraction(float fraction) { argument 238 mXFraction = fraction; 241 setTranslationX(width * fraction); 243 // If we haven't done a layout pass yet, wait for one and then set the fraction before 262 * Return the X translation as a fraction of the width, as previously set in
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | RecyclerViewParallax.java | 56 * 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...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | SwipeDismissBehavior.java | 145 * @param fraction the distance as a fraction of the view's width. 147 public void setStartAlphaSwipeDistance(float fraction) { argument 148 mAlphaStartSwipeDistance = clamp(0f, fraction, 1f); 154 * @param fraction the distance as a fraction of the view's width. 156 public void setEndAlphaSwipeDistance(float fraction) { argument 157 mAlphaEndSwipeDistance = clamp(0f, fraction, 1f); 352 final float distance = fraction(startAlphaDistance, endAlphaDistance, left); 406 * The fraction tha 408 static float fraction(float startValue, float endValue, float value) { method in class:SwipeDismissBehavior [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | math_op.c | 83 | 1- If exponant is odd then shift fraction right once. | 85 | 3- i = bit25-b30 of fraction, 16 <= i <= 63 ->because of normalization. | 88 | 6- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2 | 136 | L_x = pow(2.0, exponant.fraction) (exponant = interger part) | 137 | = pow(2.0, 0.fraction) << exponant | 144 | 1- i = bit10-b15 of fraction, 0 <= i <= 31 | 145 | 2- a = bit0-b9 of fraction | 160 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */ 166 L_x = vo_L_mult(fraction, 32); /* L_x = fraction<< [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_PathParser.cpp | 71 jlong toPathDataPtr, jfloat fraction) { 76 *toPathData, fraction); 70 interpolatePathData(JNIEnv*, jobject, jlong outPathDataPtr, jlong fromPathDataPtr, jlong toPathDataPtr, jfloat fraction) argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | InsetDrawable.java | 41 * A Drawable that insets another Drawable by a specified distance or fraction of the content bounds. 83 * @param inset Inset in fraction (range: [0, 1)) of the inset content bounds. 111 * Creates a new inset drawable with the specified insets in fraction of the view bounds. 114 * @param insetLeftFraction Left inset in fraction (range: [0, 1)) of the inset content bounds. 115 * @param insetTopFraction Top inset in fraction (range: [0, 1)) of the inset content bounds. 116 * @param insetRightFraction Right inset in fraction (range: [0, 1)) of the inset content bounds. 117 * @param insetBottomFraction Bottom inset in fraction (range: [0, 1)) of the inset content bounds. 285 final float fraction = mState.mInsetLeft.mFraction + mState.mInsetRight.mFraction; 286 if (childWidth < 0 || fraction >= 1) { 289 return (int) (childWidth / (1 - fraction)) 393 InsetValue(float fraction, int dimension) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorFilterDimmer.java | 51 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 D | ColorOverlayDimmer.java | 47 context.getResources().getFraction(R.fraction.lb_view_active_level, 1, 0)); 49 context.getResources().getFraction(R.fraction.lb_view_dimmed_level, 1, 1));
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | bitstream_io.h | 35 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction);
|
/frameworks/base/libs/hwui/ |
H A D | Animator.cpp | 277 float fraction = 1.0f; local 279 fraction = mPlayTime / (float) mDuration; 281 fraction = MathUtils::clamp(fraction, 0.0f, 1.0f); 283 fraction = mInterpolator->interpolate(fraction); 284 setValue(mTarget, mFromValue + (mDeltaValue * fraction));
|
H A D | Interpolator.cpp | 117 float fraction = tInRange / xRange; local 121 return startY + (fraction * (endY - startY));
|
H A D | PropertyValuesAnimatorSet.h | 34 // fraction range: [0, 1], iteration range [0, repeatCount] 35 void setFraction(float fraction, long iteration);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | MultiProducerActivity.java | 291 static int evaluate(float fraction, int startInt, int endInt) { argument 302 return (int)((startA + (int)(fraction * (endA - startA))) << 24) | 303 (int)((startR + (int)(fraction * (endR - startR))) << 16) | 304 (int)((startG + (int)(fraction * (endG - startG))) << 8) | 305 (int)((startB + (int)(fraction * (endB - startB))));
|
/frameworks/support/transition/src/android/support/transition/ |
H A D | TransitionUtils.java | 120 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 D | DetailsBackgroundVideoHelper.java | 95 public void update(float fraction) { 96 if (fraction == maxFrameTop) {
|
/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | ScrollManager.java | 42 * Taps beyond this radius fraction are considered close enough to the bezel to be candidates 213 * @param fraction desired fraction of the width of the screen to be treated as a valid rotary 216 public void setBezelWidth(float fraction) { argument 217 mMinRadiusFraction = 1 - fraction;
|
H A D | WearableRecyclerView.java | 214 * bezel to be candidates for circular scrolling. Expressed as a fraction of the screen's 217 public void setBezelFraction(float fraction) { argument 218 mScrollManager.setBezelWidth(fraction); 222 * Returns the current bezel width for circular scrolling as a fraction of the screen's
|