/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
D | ColorUtils.java | 185 r = Math.round(255 * (c + m)); 186 g = Math.round(255 * (x + m)); 187 b = Math.round(255 * m); 190 r = Math.round(255 * (x + m)); 191 g = Math.round(255 * (c + m)); 192 b = Math.round(255 * m); 195 r = Math.round(255 * m); 196 g = Math.round(255 * (c + m)); 197 b = Math.round(255 * (x + m)); 200 r = Math.round(255 * m); [all …]
|
D | ColorCutQuantizer.java | 351 final int redAverage = Math.round(redSum / (float) totalPopulation); in getAverageColor() 352 final int greenAverage = Math.round(greenSum / (float) totalPopulation); in getAverageColor() 353 final int blueAverage = Math.round(blueSum / (float) totalPopulation); in getAverageColor()
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 71 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect() 72 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect() 73 final int srcCroppedSliceH = Math.round(dstSliceH * scale); in calculateCroppedSrcRect() 83 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); in calculateCroppedSrcRect() 86 .round(Math.abs(srcH - srcCroppedSliceH) * vertSliceFrac + srcHalfSliceH); in calculateCroppedSrcRect() 116 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect() 117 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | dct.cpp | 42 Int round; in BlockDCT_AANwSub() local 53 round = 1 << (FDCT_SHIFT - 1); in BlockDCT_AANwSub() 118 k1 = mla724(k12, k5, round); in BlockDCT_AANwSub() 119 k0 = mla724(k12, k2, round); in BlockDCT_AANwSub() 136 k1 = mla392(k0, k14, round); in BlockDCT_AANwSub() 213 k1 = mla724(k12, k5, round); in BlockDCT_AANwSub() 214 k0 = mla724(k12, k2, round); in BlockDCT_AANwSub() 231 k1 = mla392(k0, k14, round); in BlockDCT_AANwSub() 271 Int round; in Block4x4DCT_AANwSub() local 282 round = 1 << (FDCT_SHIFT - 1); in Block4x4DCT_AANwSub() [all …]
|
D | fastquant_inline.h | 30 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) in aan_scale() argument 32 q_value = coeff * q_value + round; in aan_scale() 83 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) in smlabb() argument 85 q_value = coeff * q_value + round; in smlabb() 174 int32 round, int32 QPdiv2) in aan_scale() argument 178 smlabb q_value, coeff, q_value, round in aan_scale() 221 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round) in smlabb() argument 225 smlabb q_value, coeff, q_value, round in smlabb() 269 int32 round, int32 QPdiv2) in aan_scale() argument 273 mla q_value, coeff, q_value, round in aan_scale() [all …]
|
D | dct_inline.h | 38 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument 44 k1 = k0 * 392 + round; in mla392() 123 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument 129 smlabt k1, k0, k14, round in mla392() 187 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument 194 mla k1, k0, k1, round in mla392() 285 __inline int32 mla392(int32 k0, int32 k14, int32 round) in mla392() argument 290 register int32 cc = (int32)round; in mla392()
|
D | fastquant.cpp | 159 Int round = 1 << 15; in BlockQuantDequantH263Inter() local 224 coeff = aan_scale(q_value, coeff, round, QPdiv2); in BlockQuantDequantH263Inter() 278 Int round = 1 << 15; in BlockQuantDequantH263Intra() local 326 q_value = round + (coeff << 12); in BlockQuantDequantH263Intra() 383 q_value = smlabb(q_value, coeff, round); in BlockQuantDequantH263Intra() 553 Int round = 1 << 15; in BlockQuantDequantMPEGInter() local 583 q_value = smlabb(q_value, coeff, round); in BlockQuantDequantMPEGInter() 682 Int round = 1 << 15; in BlockQuantDequantMPEGIntra() local 708 q_value = round + (coeff << 12); in BlockQuantDequantMPEGIntra() 755 q_value = smlabb(coeff, q_value, round); in BlockQuantDequantMPEGIntra()
|
/frameworks/base/core/java/android/transition/ |
D | TranslationAnimationCreator.java | 60 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation() 61 int startPosY = viewPosY + Math.round(startY - terminalY); in createAnimation() 98 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener() 99 mStartY = startY - Math.round(mMovingView.getTranslationY()); in TransitionPositionListener() 113 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel() 114 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY()); in onAnimationCancel()
|
D | TransitionUtils.java | 95 int left = Math.round(bounds.left); in copyViewImage() 96 int top = Math.round(bounds.top); in copyViewImage() 97 int right = Math.round(bounds.right); in copyViewImage() 98 int bottom = Math.round(bounds.bottom); in copyViewImage() 157 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap() 158 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap()
|
D | ChangeBounds.java | 75 mBounds.offsetTo(Math.round(value.x), Math.round(value.y)); 118 int right = Math.round(bottomRight.x); 119 int bottom = Math.round(bottomRight.y); 133 int left = Math.round(topLeft.x); 134 int top = Math.round(topLeft.y); 150 int left = Math.round(topLeft.x); 151 int top = Math.round(topLeft.y); 482 mLeft = Math.round(topLeft.x); in setTopLeft() 483 mTop = Math.round(topLeft.y); in setTopLeft() 491 mRight = Math.round(bottomRight.x); in setBottomRight() [all …]
|
D | CircularPropagation.java | 85 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay() 87 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay() 99 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
|
D | Explode.java | 136 + Math.round(sceneRoot.getTranslationX()); in calculateOut() 138 + Math.round(sceneRoot.getTranslationY()); in calculateOut() 161 outVector[0] = Math.round(maxDistance * xVector); in calculateOut() 162 outVector[1] = Math.round(maxDistance * yVector); in calculateOut()
|
D | SidePropagation.java | 94 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay() 95 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay() 119 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
|
D | VisibilityPropagation.java | 52 loc[0] += Math.round(view.getTranslationX()); in captureValues() 54 loc[1] += Math.round(view.getTranslationY()); in captureValues()
|
/frameworks/base/docs/html/training/wearables/ui/ |
D | layouts.jd | 30 and round screens. Any content placed near the corners of the screen may be cropped on round 31 Android Wear devices, so layouts designed for square screens do not work well on round devices. 35 <p>For example, figure 1 shows how the following layout looks on square and round screens:</p> 39 square screens does not work well on round screens.</p> 56 <p>The text does not display correctly on devices with round screens.</p> 61 <li>Define different layouts for square and round devices. Your app detects the shape 63 <li>Use a special layout included in the library for both square and round devices. This layout 69 on both screen shapes without having views cropped near the edges of round screens.</p> 98 different layout definitions for square and round screens. This class detects the screen shape 107 <li>Specify a layout definition file for round screens with the <code>roundLayout</code> [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | DrawerArrowDrawable.java | 77 mBarSize = Math.round(typedArray.getDimension(R.styleable.DrawerArrowToggle_barSize, 0)); in DrawerArrowDrawable() 79 mTopBottomArrowSize = Math.round(typedArray.getDimension( in DrawerArrowDrawable() 83 mBarGap = Math.round(typedArray.getDimension( in DrawerArrowDrawable() 118 final float middleBarCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); in draw() 124 final float arrowWidth = Math.round(arrowSize * Math.cos(rotation)); in draw() 125 final float arrowHeight = Math.round(arrowSize * Math.sin(rotation)); in draw()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TwilightCalculator.java | 86 float n = Math.round(daysSince2000 - J0 - arcLongitude); in calculateTwilight() 113 mSunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight() 114 mSunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
|
/frameworks/base/core/java/android/widget/ |
D | StackView.java | 251 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); in transformViewForTransition() 271 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); in transformViewForTransition() 569 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight()); in onLayout() 572 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount); in onLayout() 788 if (mTouchRect.contains(Math.round(x), Math.round(y))) { 859 duration = Math.round(mStackSlider.getDurationForNeutralPosition()); 861 duration = Math.round(mStackSlider.getDurationForOffscreenPosition()); 877 duration = Math.round(mStackSlider.getDurationForNeutralPosition()); 879 duration = Math.round(mStackSlider.getDurationForOffscreenPosition()); 979 viewLp.setVerticalOffset(Math.round(-r * stackDirection * mSlideAmount)); [all …]
|
D | Scroller.java | 311 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset() 312 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset() 330 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset() 335 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset() 464 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling() 469 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
|
/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 443 public void round(Rect dst) { in round() method in RectF 444 dst.set(FastMath.round(left), FastMath.round(top), in round() 445 FastMath.round(right), FastMath.round(bottom)); in round()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 118 int width = Math.round(bitmap.getWidth() * scale); in resizeBitmapByScale() 119 int height = Math.round(bitmap.getHeight() * scale); in resizeBitmapByScale() 159 int width = Math.round(scale * bitmap.getWidth()); in resizeAndCropCenter() 160 int height = Math.round(scale * bitmap.getHeight()); in resizeAndCropCenter()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FastMath.java | 29 public static int round(float value) { in round() method in FastMath
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | Throughput.java | 50 return Math.round(getFramesPerSecond()) + " FPS"; in toString()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/ |
D | Deemph_32_neon.s | 55 MOV r14, r10, ASR #16 @y[0] = round(L_tmp) 66 MOV r14, r10, ASR #16 @y[1] = round(L_tmp)
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/ |
D | Deemph_32_opt.s | 55 MOV r14, r10, ASR #16 @y[0] = round(L_tmp) 66 MOV r14, r10, ASR #16 @y[1] = round(L_tmp)
|