Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 219) sorted by relevance

123456789

/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java75 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect()
76 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect()
77 final int srcCroppedSliceH = Math.round(dstSliceH * scale); in calculateCroppedSrcRect()
87 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); in calculateCroppedSrcRect()
90 .round(Math.abs(srcH - srcCroppedSliceH) * vertSliceFrac + srcHalfSliceH); in calculateCroppedSrcRect()
120 final int srcCroppedW = Math.round(dstW * scale); in calculateCroppedSrcRect()
121 final int srcCroppedH = Math.round(dstH * scale); in calculateCroppedSrcRect()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Ddct.cpp42 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 …]
Dfastquant_inline.h30 __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 …]
Ddct_inline.h38 __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()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java296 r = Math.round(255 * (c + m)); in HSLToColor()
297 g = Math.round(255 * (x + m)); in HSLToColor()
298 b = Math.round(255 * m); in HSLToColor()
301 r = Math.round(255 * (x + m)); in HSLToColor()
302 g = Math.round(255 * (c + m)); in HSLToColor()
303 b = Math.round(255 * m); in HSLToColor()
306 r = Math.round(255 * m); in HSLToColor()
307 g = Math.round(255 * (c + m)); in HSLToColor()
308 b = Math.round(255 * (x + m)); in HSLToColor()
311 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/support/compat/src/main/java/androidx/core/graphics/
DColorUtils.java320 r = Math.round(255 * (c + m)); in HSLToColor()
321 g = Math.round(255 * (x + m)); in HSLToColor()
322 b = Math.round(255 * m); in HSLToColor()
325 r = Math.round(255 * (x + m)); in HSLToColor()
326 g = Math.round(255 * (c + m)); in HSLToColor()
327 b = Math.round(255 * m); in HSLToColor()
330 r = Math.round(255 * m); in HSLToColor()
331 g = Math.round(255 * (c + m)); in HSLToColor()
332 b = Math.round(255 * (x + m)); in HSLToColor()
335 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/support/transition/src/main/java/androidx/transition/
DTransitionUtils.java57 int left = Math.round(bounds.left); in copyViewImage()
58 int top = Math.round(bounds.top); in copyViewImage()
59 int right = Math.round(bounds.right); in copyViewImage()
60 int bottom = Math.round(bounds.bottom); in copyViewImage()
111 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap()
112 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap()
115 bitmapWidth = Math.round(bitmapWidth * scale); in createViewBitmap()
116 bitmapHeight = Math.round(bitmapHeight * scale); in createViewBitmap()
DTranslationAnimationCreator.java59 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
60 int startPosY = viewPosY + Math.round(startY - terminalY); in createAnimation()
95 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
96 mStartY = startY - Math.round(mMovingView.getTranslationY()); in TransitionPositionListener()
110 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
111 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY()); in onAnimationCancel()
DChangeBounds.java75 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);
473 mLeft = Math.round(topLeft.x); in setTopLeft()
474 mTop = Math.round(topLeft.y); in setTopLeft()
482 mRight = Math.round(bottomRight.x); in setBottomRight()
[all …]
DCircularPropagation.java83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay()
85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
97 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
/frameworks/base/core/java/android/animation/
DArgbEvaluator.java88 return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b); in evaluate()
/frameworks/base/core/java/android/transition/
DTranslationAnimationCreator.java62 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
63 int startPosY = viewPosY + Math.round(startY - terminalY); in createAnimation()
102 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
103 mStartY = startY - Math.round(mMovingView.getTranslationY()); in TransitionPositionListener()
117 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
118 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY()); in onAnimationCancel()
DChangeBounds.java74 mBounds.offsetTo(Math.round(value.x), Math.round(value.y));
117 int right = Math.round(bottomRight.x);
118 int bottom = Math.round(bottomRight.y);
132 int left = Math.round(topLeft.x);
133 int top = Math.round(topLeft.y);
149 int left = Math.round(topLeft.x);
150 int top = Math.round(topLeft.y);
484 mLeft = Math.round(topLeft.x); in setTopLeft()
485 mTop = Math.round(topLeft.y); in setTopLeft()
493 mRight = Math.round(bottomRight.x); in setBottomRight()
[all …]
DTransitionUtils.java96 int left = Math.round(bounds.left); in copyViewImage()
97 int top = Math.round(bounds.top); in copyViewImage()
98 int right = Math.round(bounds.right); in copyViewImage()
99 int bottom = Math.round(bounds.bottom); in copyViewImage()
174 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap()
175 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap()
DCircularPropagation.java83 epicenterX = Math.round(loc[0] + (sceneRoot.getWidth() / 2) in getStartDelay()
85 epicenterY = Math.round(loc[1] + (sceneRoot.getHeight() / 2) in getStartDelay()
97 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
/frameworks/support/leanback/api21/androidx/leanback/transition/
DTranslationAnimationCreator.java56 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation()
57 int startPosY = viewPosY + Math.round(startY - terminalY); in createAnimation()
96 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener()
97 mStartY = startY - Math.round(mMovingView.getTranslationY()); in TransitionPositionListener()
111 mTransitionPosition[0] = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
112 mTransitionPosition[1] = Math.round(mStartY + mMovingView.getTranslationY()); in onAnimationCancel()
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
DArgbEvaluator.java97 return Math.round(a) << 24 | Math.round(r) << 16 | Math.round(g) << 8 | Math.round(b); in evaluate()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java888 constrain((int) Math.round(r * 255), 0, 255), in XYZToColor()
889 constrain((int) Math.round(g * 255), 0, 255), in XYZToColor()
890 constrain((int) Math.round(b * 255), 0, 255)); in XYZToColor()
961 r = Math.round(255 * (c + m)); in HSLToColor()
962 g = Math.round(255 * (x + m)); in HSLToColor()
963 b = Math.round(255 * m); in HSLToColor()
966 r = Math.round(255 * (x + m)); in HSLToColor()
967 g = Math.round(255 * (c + m)); in HSLToColor()
968 b = Math.round(255 * m); in HSLToColor()
971 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/support/percent/src/main/java/androidx/percentlayout/widget/
DPercentLayoutHelper.java470 params.width = Math.round(widthHint * widthPercent); in fillLayoutParams()
474 params.height = Math.round(heightHint * heightPercent); in fillLayoutParams()
479 params.width = Math.round(params.height * aspectRatio); in fillLayoutParams()
484 params.height = Math.round(params.width / aspectRatio); in fillLayoutParams()
526 params.leftMargin = Math.round(widthHint * leftMarginPercent); in fillMarginLayoutParams()
529 params.topMargin = Math.round(heightHint * topMarginPercent); in fillMarginLayoutParams()
532 params.rightMargin = Math.round(widthHint * rightMarginPercent); in fillMarginLayoutParams()
535 params.bottomMargin = Math.round(heightHint * bottomMarginPercent); in fillMarginLayoutParams()
540 Math.round(widthHint * startMarginPercent)); in fillMarginLayoutParams()
545 Math.round(widthHint * endMarginPercent)); in fillMarginLayoutParams()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java454 final int deltaX = Math.round(x - mStartDragX); in resizeDrag()
455 final int deltaY = Math.round(y - mStartDragY); in resizeDrag()
494 height1 = Math.min(height, Math.round((float)width1 / MIN_ASPECT)); in resizeDrag()
499 Math.min(mMaxVisibleSize.x, Math.round((float)height1 * MIN_ASPECT))); in resizeDrag()
503 width2 = Math.max(width, Math.round((float)height2 * MIN_ASPECT)); in resizeDrag()
508 Math.min(mMaxVisibleSize.y, Math.round((float)width2 / MIN_ASPECT))); in resizeDrag()
513 height1 = Math.max(height, Math.round((float)width1 * MIN_ASPECT)); in resizeDrag()
518 Math.min(mMaxVisibleSize.x, Math.round((float)height1 / MIN_ASPECT))); in resizeDrag()
522 width2 = Math.min(width, Math.round((float)height2 / MIN_ASPECT)); in resizeDrag()
527 Math.min(mMaxVisibleSize.y, Math.round((float)width2 * MIN_ASPECT))); in resizeDrag()
[all …]
/frameworks/native/cmds/surfacereplayer/replayer/
DColor.h121 return RGB(round(r * 255), round(g * 255), round(b * 255)); in getRGB()
/frameworks/base/core/java/android/widget/
DStackView.java249 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); in transformViewForTransition()
269 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); in transformViewForTransition()
567 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight()); in onLayout()
570 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount); in onLayout()
786 if (mTouchRect.contains(Math.round(x), Math.round(y))) {
857 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
859 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
875 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
877 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
977 viewLp.setVerticalOffset(Math.round(-r * stackDirection * mSlideAmount));
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/graphics/drawable/
DDrawerArrowDrawable.java142 setGapSize(Math.round(a.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0))); in DrawerArrowDrawable()
146 mBarLength = Math.round(a.getDimension(R.styleable.DrawerArrowToggle_barLength, 0)); in DrawerArrowDrawable()
148 mArrowHeadLength = Math.round(a.getDimension( in DrawerArrowDrawable()
353 final float arrowShaftCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); in draw()
361 final float arrowWidth = Math.round(arrowHeadBarLength * Math.cos(rotation)); in draw()
362 final float arrowHeight = Math.round(arrowHeadBarLength * Math.sin(rotation)); in draw()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
DTwilightCalculator.java103 float n = Math.round(daysSince2000 - J0 - arcLongitude); in calculateTwilight()
130 sunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
131 sunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskPositionerTests.java258 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
265 final int h = Math.round(w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
302 final int h = Math.round((float)w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragLeft()
343 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT)); in testLandscapePreservedWindowResizingDragTop()
369 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT); in testPortraitPreservedWindowResizingDragTopLeft()
380 final int w = Math.max(mMinVisibleWidth, Math.round(mMinVisibleHeight / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
381 final int h = Math.max(mMinVisibleHeight, Math.round(w * MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
403 int h = Math.round(w * MIN_ASPECT); in testPortraitPreservedWindowResizingDragLeft()
415 h = Math.max(Math.round((float)w * MIN_ASPECT), r.height()); in testPortraitPreservedWindowResizingDragLeft()
456 int w = Math.min(r.width(), Math.round(h / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTop()
[all …]

123456789