/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 74 result.left = (int) Math.ceil(left * scale); in scaleInsets() 75 result.top = (int) Math.ceil(top * scale); in scaleInsets() 76 result.right = (int) Math.ceil(right * scale); in scaleInsets() 77 result.bottom = (int) Math.ceil(bottom * scale); in scaleInsets()
|
/frameworks/native/libs/renderengine/skia/filters/ |
D | KawaseBlurFilter.cpp | 64 float numberOfPasses = std::min(kMaxPasses, (uint32_t)ceil(tmpRadius)); in generate() 68 SkImageInfo scaledInfo = input->imageInfo().makeWH(std::ceil(blurRect.width() * kInputScale), in generate() 69 std::ceil(blurRect.height() * kInputScale)); in generate()
|
D | GaussianBlurFilter.cpp | 46 SkImageInfo scaledInfo = input->imageInfo().makeWH(std::ceil(blurRect.width() * kInputScale), in generate() 47 std::ceil(blurRect.height() * kInputScale)); in generate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDetailClipper.java | 76 int r = (int) Math.ceil(Math.sqrt(x * x + y * y)); in updateCircularClip() 77 r = (int) Math.max(r, Math.ceil(Math.sqrt(w * w + y * y))); in updateCircularClip() 78 r = (int) Math.max(r, Math.ceil(Math.sqrt(w * w + h * h))); in updateCircularClip() 79 r = (int) Math.max(r, Math.ceil(Math.sqrt(x * x + h * h))); in updateCircularClip()
|
/frameworks/base/core/java/android/util/ |
D | FloatMath.java | 58 public static float ceil(float value) { in ceil() method in FloatMath 59 return (float) Math.ceil(value); in ceil()
|
D | Half.java | 545 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/ |
D | OvalShape.java | 43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
|
D | RectShape.java | 46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
|
D | RoundRectShape.java | 104 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline()
|
/frameworks/base/core/tests/benchmarks/src/android/util/ |
D | FloatMathBenchmark.java | 26 f += FloatMath.ceil(100.123f); in timeFloatMathCeil() 35 f += (float) Math.ceil(100.123f); in timeFloatMathCeil_math()
|
/frameworks/base/core/java/android/text/method/ |
D | BaseMovementMethod.java | 109 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/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 336 region.right = Math.min((int) Math.ceil(region.right * scale), in generate() 338 region.bottom = Math.min((int) Math.ceil(region.bottom * scale), in generate() 452 (int) Math.ceil(bitmap.getWidth() * scaleRatio), 453 (int) Math.ceil(bitmap.getHeight() * scaleRatio),
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 163 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/ |
D | AImageReaderUtils.cpp | 45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/viewmodel/ |
D | UserSwitcherViewModel.kt | 30 import kotlin.math.ceil in <lambda>() 110 ceil(userCount / 2.0).toInt() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationLaunchAnimatorController.kt | 14 import kotlin.math.ceil 113 params.startClipTopAmount = ceil(childClip.toDouble()).toInt() in createAnimatorState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | TextAnimatorTest.kt | 29 import kotlin.math.ceil 50 val width = ceil(Layout.getDesiredWidth(text, 0, text.length, paint)).toInt() in makeLayout()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | Illustration.java | 177 (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/ |
D | CropView.java | 205 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/core/java/com/android/internal/widget/ |
D | LinearSmoothScroller.java | 179 return (int) Math.ceil(calculateTimeForScrolling(dx) / .3356); in calculateTimeForDeceleration() 193 return (int) Math.ceil(Math.abs(dx) * MILLISECONDS_PER_PX); in calculateTimeForScrolling()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | CropFilter.java | 92 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/graphics/java/android/graphics/animation/ |
D | FallbackLUTInterpolator.java | 52 int numAnimFrames = Math.max(2, (int) Math.ceil(((double) duration) / animIntervalMs)); in createLUT()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 79 final int r = (int) Math.ceil(mTargetRadius); in getBounds()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
D | MultiPageTextWithPaddingTest.java | 57 int scrollsNeeded = (int)Math.ceil(Math.max(0.0f, in testScrollDownToBottom()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/time/ |
D | FakeSystemClock.java | 109 mCurrentThreadTimeMillis += Math.ceil(awakeMillis * 0.5); in advanceTime()
|