Home
last modified time | relevance | path

Searched refs:rectF (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/bitmap/src/com/android/bitmap/util/
DRectUtils.java60 final RectF rectF = new RectF(rect); in rotateRect() local
63 matrix.mapRect(rectF); in rotateRect()
64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom); in rotateRect()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java95 RectF rectF = new RectF(); in displayCutoutForRotation() local
97 rectF.set(0, DISPLAY_HEIGHT / 4, DISPLAY_CUTOUT_HEIGHT, DISPLAY_HEIGHT * 3 / 4); in displayCutoutForRotation()
99 rectF.set(DISPLAY_WIDTH / 4, 0, DISPLAY_WIDTH * 3 / 4, DISPLAY_CUTOUT_HEIGHT); in displayCutoutForRotation()
104 m.mapRect(rectF); in displayCutoutForRotation()
122 return DisplayCutout.fromBoundingRect((int) rectF.left, (int) rectF.top, in displayCutoutForRotation()
123 (int) rectF.right, (int) rectF.bottom, pos); in displayCutoutForRotation()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditTextCursorAnchorInfoTest.java271 expectedLineBounds.forEach(rectF -> rectF.offset(0, -scrollY)); in testVisibleLineBounds_scrolled_cutTopLines()
290 expectedLineBounds.forEach(rectF -> rectF.offset(0, -scrollY)); in testVisibleLineBounds_scrolled_cutTopAndBottomLines()
307 expectedLineBounds.forEach(rectF -> rectF.offset(0f, -scrollY)); in testVisibleLineBounds_scrolled_partiallyVisibleLines()
325 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topDrawableHeight)); in testVisibleLineBounds_withCompoundDrawable_allVisible()
345 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topDrawableHeight)); in testVisibleLineBounds_withCompoundDrawable_cutBottomLines()
367 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topDrawableHeight - scrollY)); in testVisibleLineBounds_withCompoundDrawable_scrolled()
389 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topDrawableHeight - scrollY)); in testVisibleLineBounds_withCompoundDrawable_partiallyVisible()
405 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topPadding)); in testVisibleLineBounds_withPaddings_allVisible()
423 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topPadding)); in testVisibleLineBounds_withPaddings_cutBottomLines()
444 expectedLineBounds.forEach(rectF -> rectF.offset(0f, topPadding - scrollY)); in testVisibleLineBounds_withPaddings_scrolled()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DTextBoundsInfo.java552 private void getBoundsForRange(int start, int end, @NonNull RectF rectF) { in getBoundsForRange() argument
556 rectF.setEmpty(); in getBoundsForRange()
560 rectF.left = Float.MAX_VALUE; in getBoundsForRange()
561 rectF.top = Float.MAX_VALUE; in getBoundsForRange()
562 rectF.right = Float.MIN_VALUE; in getBoundsForRange()
563 rectF.bottom = Float.MIN_VALUE; in getBoundsForRange()
566 rectF.left = Math.min(rectF.left, mCharacterBounds[4 * offset]); in getBoundsForRange()
567 rectF.top = Math.min(rectF.top, mCharacterBounds[4 * offset + 1]); in getBoundsForRange()
568 rectF.right = Math.max(rectF.right, mCharacterBounds[4 * offset + 2]); in getBoundsForRange()
569 rectF.bottom = Math.max(rectF.bottom, mCharacterBounds[4 * offset + 3]); in getBoundsForRange()
[all …]
DCursorAnchorInfo.java755 final RectF rectF = new RectF( in getVisibleLineBounds() local
760 result.add(rectF); in getVisibleLineBounds()
/frameworks/base/core/java/android/hardware/camera2/utils/
DParamsUtils.java90 RectF rectF = new RectF(rect); in mapRect() local
91 transform.mapRect(rectF); in mapRect()
92 return createRect(rectF); in mapRect()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DCutoutSpecificationBenchmark.java73 final RectF rectF = new RectF(); in toRectAndAddToRegion() local
74 p.computeBounds(rectF, false /* unused */); in toRectAndAddToRegion()
75 rectF.round(inoutRect); in toRectAndAddToRegion()
/frameworks/base/core/java/android/view/
DHandwritingInitiator.java839 RectF rectF = mTempRectF; in isInHandwritingArea() local
840 rectF.set(left, top, right, bottom); in isInHandwritingArea()
841 matrix.mapRect(rectF); in isInHandwritingArea()
843 return region.op(Math.round(rectF.left), Math.round(rectF.top), in isInHandwritingArea()
844 Math.round(rectF.right), Math.round(rectF.bottom), Region.Op.INTERSECT); in isInHandwritingArea()
DViewRootImpl.java2809 RectF rectF = new RectF(0, 0, mWidth, mHeight); in getChildLocalHitRegion() local
2810 matrix.mapRect(rectF); in getChildLocalHitRegion()
2813 return region.op(Math.round(rectF.left), Math.round(rectF.top), in getChildLocalHitRegion()
2814 Math.round(rectF.right), Math.round(rectF.bottom), Region.Op.INTERSECT); in getChildLocalHitRegion()
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
DHandwritingIme.java236 RectF rectF = new RectF(left, top, right, bottom); in getSanitizedRectF() local
237 Log.d(TAG, "Sending RichGesture " + rectF.toShortString()); in getSanitizedRectF()
238 return rectF; in getSanitizedRectF()
/frameworks/base/core/java/android/text/
DLayout.java1257 RectF rectF = new RectF(); in computeDrawingBoundingBox() local
1290 tl.metrics(null, rectF, false, null); in computeDrawingBoundingBox()
1292 float lineLeft = rectF.left; in computeDrawingBoundingBox()
1293 float lineRight = rectF.right; in computeDrawingBoundingBox()
1294 float lineTop = rectF.top + getLineBaseline(line); in computeDrawingBoundingBox()
1295 float lineBottom = rectF.bottom + getLineBaseline(line); in computeDrawingBoundingBox()