Home
last modified time | relevance | path

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

1234567

/frameworks/support/v4/java/android/support/v4/graphics/
DColorUtils.java240 r = Math.round(255 * (c + m));
241 g = Math.round(255 * (x + m));
242 b = Math.round(255 * m);
245 r = Math.round(255 * (x + m));
246 g = Math.round(255 * (c + m));
247 b = Math.round(255 * m);
250 r = Math.round(255 * m);
251 g = Math.round(255 * (c + m));
252 b = Math.round(255 * (x + m));
255 r = Math.round(255 * m);
[all …]
/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()
Dfastquant.cpp159 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/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/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()
DTransitionUtils.java95 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()
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);
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 …]
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()
DExplode.java135 + Math.round(sceneRoot.getTranslationX()); in calculateOut()
137 + Math.round(sceneRoot.getTranslationY()); in calculateOut()
160 outVector[0] = (int) Math.round(maxDistance * xVector); in calculateOut()
161 outVector[1] = (int) Math.round(maxDistance * yVector); in calculateOut()
DSidePropagation.java92 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
93 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
117 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction); in getStartDelay()
DVisibilityPropagation.java52 loc[0] += Math.round(view.getTranslationX()); in captureValues()
54 loc[1] += Math.round(view.getTranslationY()); in captureValues()
/frameworks/base/docs/html/training/wearables/ui/
Dlayouts.jd30 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>
100 and round screens. This class detects the screen shape at runtime and inflates the corresponding
111 <li>Specify a layout definition file for round screens with the <code>roundLayout</code>
[all …]
/frameworks/base/core/java/android/widget/
DStackView.java250 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); in transformViewForTransition()
270 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); in transformViewForTransition()
568 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight()); in onLayout()
571 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount); in onLayout()
787 if (mTouchRect.contains(Math.round(x), Math.round(y))) {
858 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
860 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
876 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
878 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
978 viewLp.setVerticalOffset(Math.round(-r * stackDirection * mSlideAmount));
[all …]
DScroller.java310 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset()
311 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset()
329 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset()
334 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset()
463 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
468 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
/frameworks/base/services/core/java/com/android/server/
DTwilightCalculator.java85 float n = Math.round(daysSince2000 - J0 - arcLongitude); in calculateTwilight()
112 mSunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
113 mSunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
DDrawerArrowDrawable.java137 setGapSize(Math.round(a.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0))); in DrawerArrowDrawable()
141 mBarLength = Math.round(a.getDimension(R.styleable.DrawerArrowToggle_barLength, 0)); in DrawerArrowDrawable()
143 mArrowHeadLength = Math.round(a.getDimension( in DrawerArrowDrawable()
348 final float arrowShaftCut = Math.round(lerp(0, mMaxCutForBarSize, mProgress)); in draw()
356 final float arrowWidth = Math.round(arrowHeadBarLength * Math.cos(rotation)); in draw()
357 final float arrowHeight = Math.round(arrowHeadBarLength * Math.sin(rotation)); in draw()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightCalculator.java100 float n = Math.round(daysSince2000 - J0 - arcLongitude); in calculateTwilight()
127 sunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
128 sunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
/frameworks/base/graphics/java/android/graphics/
DRectF.java442 public void round(Rect dst) { in round() method in RectF
443 dst.set(FastMath.round(left), FastMath.round(top), in round()
444 FastMath.round(right), FastMath.round(bottom)); in round()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java117 int width = Math.round(bitmap.getWidth() * scale); in resizeBitmapByScale()
118 int height = Math.round(bitmap.getHeight() * scale); in resizeBitmapByScale()
158 int width = Math.round(scale * bitmap.getWidth()); in resizeAndCropCenter()
159 int height = Math.round(scale * bitmap.getHeight()); in resizeAndCropCenter()
/frameworks/support/design/base/android/support/design/widget/
DShadowDrawableWrapper.java89 mCornerRadius = Math.round(radius); in ShadowDrawableWrapper()
100 int i = Math.round(value); in toEven()
138 mShadowSize = Math.round(shadowSize * SHADOW_MULTIPLIER); in setShadowSize()
178 radius = Math.round(radius); in setCornerRadius()
/frameworks/base/core/java/com/android/internal/util/
DFastMath.java29 public static int round(float value) { in round() method in FastMath
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DThroughput.java50 return Math.round(getFramesPerSecond()) + " FPS"; in toString()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
DDeemph_32_opt.s55 MOV r14, r10, ASR #16 @y[0] = round(L_tmp)
66 MOV r14, r10, ASR #16 @y[1] = round(L_tmp)

1234567