Home
last modified time | relevance | path

Searched refs:ceil (Results 1 – 25 of 132) sorted by relevance

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailClipper.java52 int r = (int) Math.ceil(Math.sqrt(x * x + y * y)); in animateCircularClip()
53 r = (int) Math.max(r, Math.ceil(Math.sqrt(w * w + y * y))); in animateCircularClip()
54 r = (int) Math.max(r, Math.ceil(Math.sqrt(w * w + h * h))); in animateCircularClip()
55 r = (int) Math.max(r, Math.ceil(Math.sqrt(x * x + h * h))); in animateCircularClip()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java75 result.left = (int) Math.ceil(left * scale); in scaleInsets()
76 result.top = (int) Math.ceil(top * scale); in scaleInsets()
77 result.right = (int) Math.ceil(right * scale); in scaleInsets()
78 result.bottom = (int) Math.ceil(bottom * scale); in scaleInsets()
/frameworks/base/core/java/android/util/
DFloatMath.java58 public static float ceil(float value) { in ceil() method in FloatMath
59 return (float) Math.ceil(value); in ceil()
DHalf.java545 public static @HalfFloat short ceil(@HalfFloat short h) { in ceil() method in Half
546 return FP16.ceil(h); in ceil()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DOvalShape.java43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DRectShape.java46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
DRoundRectShape.java104 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java26 f += FloatMath.ceil(100.123f); in timeFloatMathCeil()
35 f += (float) Math.ceil(100.123f); in timeFloatMathCeil_math()
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java109 handled |= scrollLeft(widget, text, (int)Math.ceil(-hscroll)); in onGenericMotionEvent()
111 handled |= scrollRight(widget, text, (int)Math.ceil(hscroll)); in onGenericMotionEvent()
114 handled |= scrollUp(widget, text, (int)Math.ceil(-vscroll)); in onGenericMotionEvent()
116 handled |= scrollDown(widget, text, (int)Math.ceil(vscroll)); in onGenericMotionEvent()
419 return (int) Math.ceil(widget.getPaint().getFontSpacing()); in getCharacterWidth()
448 final int lineRight = (int) Math.ceil(layout.getLineRight(line)); in getScrollBoundsRight()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java120 imgW = (int) Math.ceil(shadowBounds[2] + translateX); in paintRectShadow()
121 imgH = (int) Math.ceil(shadowBounds[3] + translateY); in paintRectShadow()
143 imgW = Math.max((int) Math.ceil(shadowBounds[2] + translateX), imgW); in paintRectShadow()
144 imgH = Math.max((int) Math.ceil(shadowBounds[3] + translateY), imgH); in paintRectShadow()
237 int gap = (int) Math.ceil(radius * SCALE_DOWN * sRoundedGap); in drawScaled()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java163 xpos = (float) Math.ceil(segmentStartX); in spatialSampling()
172 xpos = (float) Math.ceil(segmentEndX); in spatialSampling()
183 ypos = (float) Math.ceil(segmentStartY); in spatialSampling()
192 ypos = (float) Math.ceil(segmentEndY); in spatialSampling()
213 int xCeiling = (int) Math.ceil(x); in plot()
215 int yCeiling = (int) Math.ceil(y); in plot()
/frameworks/av/media/utils/
DAImageReaderUtils.cpp45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java177 (int) Math.ceil(layoutWidth / scale), in onLayout()
178 (int) Math.ceil((layoutHeight - illustrationBounds.height()) / scale)); in onLayout()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java205 mCenterX += Math.ceil(edges.left / scale); in moveToLeft()
302 adjustment[1] = (float) Math.ceil(edges.top / scale); in onTouchEvent()
307 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); in onTouchEvent()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCropFilter.java92 int[] croppedDims = { (int)Math.ceil(mCropRect.xEdge().length() * inDims[0]), in onProcess()
93 (int)Math.ceil(mCropRect.yEdge().length() * inDims[1]) }; in onProcess()
/frameworks/base/core/java/com/android/internal/widget/
DLinearSmoothScroller.java179 return (int) Math.ceil(calculateTimeForScrolling(dx) / .3356); in calculateTimeForDeceleration()
193 return (int) Math.ceil(Math.abs(dx) * MILLISECONDS_PER_PX); in calculateTimeForScrolling()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DMultiPageTextWithPaddingTest.java57 int scrollsNeeded = (int)Math.ceil(Math.max(0.0f, in testScrollDownToBottom()
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleComponent.java79 final int r = (int) Math.ceil(mTargetRadius); in getBounds()
/frameworks/base/graphics/java/android/graphics/animation/
DFallbackLUTInterpolator.java52 int numAnimFrames = Math.max(2, (int) Math.ceil(((double) duration) / animIntervalMs)); in createLUT()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/time/
DFakeSystemClock.java89 mCurrentThreadTimeMillis += Math.ceil(uptime * 0.5); in advanceTime()
/frameworks/layoutlib/bridge/src/android/graphics/text/
DLineBreaker_Delegate.java114 List<Integer> breaks = new ArrayList<Integer>((int) Math.ceil(length / 5d)); in nComputeLineBreaks()
200 List<Primitive> primitives = new ArrayList<Primitive>(((int) Math.ceil(length * 1.833))); in computePrimitives()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java37 return (int) Math.ceil(dp * dm.density); in convertDpToPx()
/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
DMirrorSurfaceActivity.java310 int width = (int) Math.ceil(displayFrame.width() / scale); in updateMirror()
311 int height = (int) Math.ceil(displayFrame.height() / scale); in updateMirror()
320 drawBorder(mBorderSc, width, height, (int) Math.ceil(BORDER_SIZE / scale)); in updateMirror()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java74 (int) Math.ceil(Math.sqrt((double) (w * h) / maxNumOfPixels)); in computeInitialSampleSize()
109 int initialSize = Math.max(1, (int) Math.ceil(1 / scale)); in computeSampleSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java266 (int) Math.ceil(childBounds.right), in invalidateGlobalRegion()
267 (int) Math.ceil(childBounds.bottom)); in invalidateGlobalRegion()
271 + "," + (int) Math.ceil(childBounds.right) in invalidateGlobalRegion()
272 + "," + (int) Math.ceil(childBounds.bottom)); in invalidateGlobalRegion()

123456