Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/java/com/android/internal/policy/
DTaskResizingAlgorithm.java81 final int deltaX = Math.round(x - startDragX); in resizeDrag()
82 final int deltaY = Math.round(y - startDragY); in resizeDrag()
115 height1 = Math.min(height, Math.round((float) width1 / MIN_ASPECT)); in resizeDrag()
120 Math.min(maxVisibleSize.x, Math.round((float) height1 * MIN_ASPECT))); in resizeDrag()
124 width2 = Math.max(width, Math.round((float) height2 * MIN_ASPECT)); in resizeDrag()
129 Math.min(maxVisibleSize.y, Math.round((float) width2 / MIN_ASPECT))); in resizeDrag()
134 height1 = Math.max(height, Math.round((float) width1 * MIN_ASPECT)); in resizeDrag()
139 Math.min(maxVisibleSize.x, Math.round((float) height1 / MIN_ASPECT))); in resizeDrag()
143 width2 = Math.min(width, Math.round((float) height2 / MIN_ASPECT)); in resizeDrag()
148 Math.min(maxVisibleSize.y, Math.round((float) width2 * MIN_ASPECT))); in resizeDrag()
/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/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/base/core/java/com/android/internal/graphics/
DColorUtils.java301 r = Math.round(255 * (c + m)); in HSLToColor()
302 g = Math.round(255 * (x + m)); in HSLToColor()
303 b = Math.round(255 * m); in HSLToColor()
306 r = Math.round(255 * (x + m)); in HSLToColor()
307 g = Math.round(255 * (c + m)); in HSLToColor()
308 b = Math.round(255 * m); in HSLToColor()
311 r = Math.round(255 * m); in HSLToColor()
312 g = Math.round(255 * (c + m)); in HSLToColor()
313 b = Math.round(255 * (x + m)); in HSLToColor()
316 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/base/core/java/android/animation/
DArgbEvaluator.java91 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.java76 mBounds.offsetTo(Math.round(value.x), Math.round(value.y));
120 int right = Math.round(bottomRight.x);
121 int bottom = Math.round(bottomRight.y);
135 int left = Math.round(topLeft.x);
136 int top = Math.round(topLeft.y);
153 int left = Math.round(topLeft.x);
154 int top = Math.round(topLeft.y);
488 mLeft = Math.round(topLeft.x); in setTopLeft()
489 mTop = Math.round(topLeft.y); in setTopLeft()
497 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()
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.java93 int left = loc[0] + Math.round(sceneRoot.getTranslationX()); in getStartDelay()
94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); in getStartDelay()
118 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/services/tests/servicestests/src/com/android/server/biometrics/log/
DALSProbeTest.java182 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testWatchDogCompletesAwait()
218 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testNextLuxWhenAlreadyEnabled()
255 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testNextLuxWhenNotEnabled()
279 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testNextLuxIsNotCanceledByDisableOrDestroy()
310 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testMultipleNextConsumers()
311 mProbe.awaitNextLux((v) -> lux2.set(Math.round(v)), null /* handler */); in testMultipleNextConsumers()
328 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testDestroyAllowsAwaitLuxExactlyOnce()
335 assertThat(lux.get()).isEqualTo(Math.round(lastValue)); in testDestroyAllowsAwaitLuxExactlyOnce()
340 mProbe.awaitNextLux((v) -> lux.set(Math.round(v)), null /* handler */); in testDestroyAllowsAwaitLuxExactlyOnce()
343 assertThat(lux.get()).isEqualTo(Math.round(lastValue)); in testDestroyAllowsAwaitLuxExactlyOnce()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java903 constrain((int) Math.round(r * 255), 0, 255), in XYZToColor()
904 constrain((int) Math.round(g * 255), 0, 255), in XYZToColor()
905 constrain((int) Math.round(b * 255), 0, 255)); in XYZToColor()
976 r = Math.round(255 * (c + m)); in HSLToColor()
977 g = Math.round(255 * (x + m)); in HSLToColor()
978 b = Math.round(255 * m); in HSLToColor()
981 r = Math.round(255 * (x + m)); in HSLToColor()
982 g = Math.round(255 * (c + m)); in HSLToColor()
983 b = Math.round(255 * m); in HSLToColor()
986 r = Math.round(255 * m); in HSLToColor()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipSizeSpecHandler.java224 int width = Math.round(updatedMaxSize.getWidth() * currentPercent); in getSizeForAspectRatio()
225 int height = Math.round(updatedMaxSize.getHeight() * currentPercent); in getSizeForAspectRatio()
230 height = Math.round(width / aspectRatio); in getSizeForAspectRatio()
233 width = Math.round(height * aspectRatio); in getSizeForAspectRatio()
302 height = Math.round(width / aspectRatio); in getDefaultSize()
306 width = Math.round(height * aspectRatio); in getDefaultSize()
313 height = (int) Math.round(Math.sqrt((radius * radius) in getDefaultSize()
315 width = Math.round(height * aspectRatio); in getDefaultSize()
354 height = Math.round(width / aspectRatio); in getSizeForAspectRatio()
358 width = Math.round(height * aspectRatio); in getSizeForAspectRatio()
/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.java253 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); in transformViewForTransition()
273 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); in transformViewForTransition()
571 final int newSlideAmount = Math.round(SLIDE_UP_RATIO * getMeasuredHeight()); in onLayout()
574 mSwipeThreshold = Math.round(SWIPE_THRESHOLD_RATIO * newSlideAmount); in onLayout()
790 if (mTouchRect.contains(Math.round(x), Math.round(y))) {
861 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
863 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
879 duration = Math.round(mStackSlider.getDurationForNeutralPosition());
881 duration = Math.round(mStackSlider.getDurationForOffscreenPosition());
981 viewLp.setVerticalOffset(Math.round(-r * stackDirection * mSlideAmount));
[all …]
DScroller.java317 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset()
318 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset()
336 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset()
341 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset()
470 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
475 mFinalY = startY + (int) Math.round(totalDistance * coeffY); in fling()
/frameworks/base/core/java/com/android/internal/widget/
DScrollBarUtils.java28 int length = Math.round((float) size * extent / range); in getThumbLength()
37 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java297 int width = Math.round((float) (r.bottom - MOUSE_DELTA_Y) * MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
304 final int h = Math.round(w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragTopLeft()
341 final int h = Math.round((float) w / MIN_ASPECT); in testLandscapePreservedWindowResizingDragLeft()
382 int w = Math.max(r.right - r.left, Math.round(h * MIN_ASPECT)); in testLandscapePreservedWindowResizingDragTop()
408 int height = Math.round((float) (r.right - MOUSE_DELTA_X) * MIN_ASPECT); in testPortraitPreservedWindowResizingDragTopLeft()
419 final int w = Math.max(mMinVisibleWidth, Math.round(mMinVisibleHeight / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
420 final int h = Math.max(mMinVisibleHeight, Math.round(w * MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTopLeft()
442 int h = Math.round(w * MIN_ASPECT); in testPortraitPreservedWindowResizingDragLeft()
454 h = Math.max(Math.round((float) w * MIN_ASPECT), r.height()); in testPortraitPreservedWindowResizingDragLeft()
495 int w = Math.min(r.width(), Math.round(h / MIN_ASPECT)); in testPortraitPreservedWindowResizingDragTop()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DMetricsCollector.java715 (int) (round(state.totalTimeMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS), in buildStatsEvent()
724 round(usage.totalDurationMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS, in buildStatsEvent()
828 round(dataCallSession.durationMinutes, DURATION_BUCKET_MILLIS / MINUTE_IN_MILLIS), in buildStatsEvent()
841 (int) (round(stats.registeredMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS), in buildStatsEvent()
842 (int) (round(stats.voiceCapableMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS), in buildStatsEvent()
844 (round(stats.voiceAvailableMillis, DURATION_BUCKET_MILLIS) in buildStatsEvent()
846 (int) (round(stats.smsCapableMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS), in buildStatsEvent()
847 (int) (round(stats.smsAvailableMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS), in buildStatsEvent()
848 (int) (round(stats.videoCapableMillis, DURATION_BUCKET_MILLIS) / SECOND_IN_MILLIS), in buildStatsEvent()
850 (round(stats.videoAvailableMillis, DURATION_BUCKET_MILLIS) in buildStatsEvent()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java65 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
139 return Math.round(MathUtils.lerp(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, ret)); in convertLinearToGammaFloat()

1234567891011