/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
H A D | FloatProperties.kt | 42 rect?.offsetTo(value.toInt(), rect.top) 45 override fun getValue(rect: Rect?): Float { 61 rect?.offsetTo(rect.left, value.toInt()) 78 return rect.width().toFloat() 82 rect.right = rect.left + value.toInt() 95 return rect.height().toFloat() 99 rect.bottom = rect.top + value.toInt() 114 rect?.offsetTo(value, rect.top) 118 return rect?.left ?: -Float.MAX_VALUE 133 rect?.offsetTo(rect.left, value) [all …]
|
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 246 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp() 274 rect.top + SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeDown() 302 rect.centerY(), rect.left + SWIPE_MARGIN_LIMIT, rect.centerY(), steps); in swipeLeft() 329 rect.centerY(), rect.right - SWIPE_MARGIN_LIMIT, rect.centerY(), steps); in swipeRight() 402 return getInteractionController().clickAndSync(rect.centerX(), rect.centerY(), in click() 460 return getInteractionController().clickNoSync(rect.left + 5, rect.top + 5); in clickTopLeft() 477 return getInteractionController().longTapNoSync(rect.right - 5, rect.bottom - 5); in longClickBottomRight() 494 return getInteractionController().clickNoSync(rect.right - 5, rect.bottom - 5); in clickBottomRight() 511 return getInteractionController().longTapNoSync(rect.centerX(), rect.centerY()); in longClick() 528 return getInteractionController().longTapNoSync(rect.left + 5, rect.top + 5); in longClickTopLeft() [all …]
|
H A D | UiScrollable.java | 421 Rect rect = new Rect(); in scrollForward() local 422 node.getBoundsInScreen(rect); in scrollForward() 434 downX = rect.centerX(); in scrollForward() 436 upX = rect.centerX(); in scrollForward() 443 downY = rect.centerY(); in scrollForward() 445 upY = rect.centerY(); in scrollForward() 500 Rect rect = new Rect(); in scrollBackward() local 514 downX = rect.centerX(); in scrollBackward() 516 upX = rect.centerX(); in scrollBackward() 524 downY = rect.centerY(); in scrollBackward() [all …]
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | GlowingCard.kt | 54 val rect = RectF(0f, 0f, width.toFloat(), height.toFloat()) regex 62 paint.shader = LinearGradient(rect.left, rect.bottom, rect.right, rect.top, 66 canvas.drawRoundRect(rect, radius, radius, paint) 69 rect.inset(3.dp(), 3.dp()) 74 canvas.drawRoundRect(rect, radius, radius, paint) 76 rect.inset(5.dp(), 5.dp()) 82 "${Color.blue(glowColor)}}", rect.left, rect.centerY(), paint) 83 canvas.drawText("(press to activate)", rect.left, rect.bottom, paint)
|
H A D | RadialGlow.kt | 63 val rect = RectF(0f, 0f, width.toFloat(), height.toFloat()) regex 66 canvas.drawRoundRect(rect, radius, radius, paint) 72 canvas.translate(rect.width() * frac, rect.height() - (rect.height() * frac)) 80 val innerRect = RectF(rect) 81 innerRect.inset(rect.width() / 4, rect.height() / 4) 85 canvas.drawText("Tap to toggle animation", rect.centerX(), innerRect.top - 4.dp(), paint) 86 canvas.drawText("Outside text", rect.centerX(), rect.bottom - 4.dp(), paint)
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | Outline.java | 181 public void setRect(@NonNull Rect rect) { in setRect() argument 182 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 208 public void setRoundRect(@NonNull Rect rect, float radius) { in setRoundRect() argument 209 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 270 public void setOval(@NonNull Rect rect) { in setOval() argument 271 setOval(rect.left, rect.top, rect.right, rect.bottom); in setOval()
|
H A D | BitmapRegionDecoder.java | 238 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion() argument 242 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() in decodeRegion() 243 || rect.top >= getHeight()) in decodeRegion() 245 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, in decodeRegion() 246 rect.right - rect.left, rect.bottom - rect.top, options, in decodeRegion()
|
H A D | Canvas.java | 845 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipRect() 869 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipRect() 880 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipRectUnion() 892 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipRect() 904 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipOutRect() 915 public boolean clipRect(@NonNull Rect rect) { in clipRect() argument 916 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipRect() 928 return nClipRect(mNativeCanvasWrapper, rect.left, rect.top, rect.right, rect.bottom, in clipOutRect() 1165 rect.left, rect.top, rect.right, rect.bottom); in quickReject() 1180 rect.left, rect.top, rect.right, rect.bottom); in quickReject() [all …]
|
H A D | YuvImage.java | 390 private void adjustRectangle(Rect rect) { in adjustRectangle() argument 391 int width = rect.width(); in adjustRectangle() 392 int height = rect.height(); in adjustRectangle() 397 rect.left &= ~1; in adjustRectangle() 398 rect.top &= ~1; in adjustRectangle() 399 rect.right = rect.left + width; in adjustRectangle() 400 rect.bottom = rect.top + height; in adjustRectangle() 406 rect.left &= ~1; in adjustRectangle() 407 rect.right = rect.left + width; in adjustRectangle()
|
H A D | Path.java | 285 public boolean isRect(@Nullable RectF rect) { in isRect() argument 286 return nIsRect(mNativePath, rect); in isRect() 545 public void addRect(@NonNull RectF rect, @NonNull Direction dir) { in addRect() argument 546 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 623 public void addRoundRect(@NonNull RectF rect, float rx, float ry, @NonNull Direction dir) { in addRoundRect() argument 624 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, rx, ry, dir); in addRoundRect() 648 public void addRoundRect(@NonNull RectF rect, @NonNull float[] radii, @NonNull Direction dir) { in addRoundRect() argument 649 if (rect == null) { in addRoundRect() 652 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); in addRoundRect() 883 private static native boolean nIsRect(long nPath, RectF rect); in nIsRect() argument
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_view_TextureView.cpp | 112 Rect rect(Rect::EMPTY_RECT); in android_view_TextureView_lockCanvas() local 114 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); in android_view_TextureView_lockCanvas() 115 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); in android_view_TextureView_lockCanvas() 116 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); in android_view_TextureView_lockCanvas() 117 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); in android_view_TextureView_lockCanvas() 119 rect.set(Rect(0x3FFF, 0x3FFF)); in android_view_TextureView_lockCanvas() 124 int32_t status = native_window_lock(window.get(), &outBuffer, &rect); in android_view_TextureView_lockCanvas() 129 canvas.clipRect({rect.left, rect.top, rect.right, rect.bottom}); in android_view_TextureView_lockCanvas() 133 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); in android_view_TextureView_lockCanvas()
|
H A D | android_graphics_GraphicBuffer.cpp | 147 Rect rect(Rect::EMPTY_RECT); in android_graphics_GraphicBuffer_lockCanvas() local 149 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); in android_graphics_GraphicBuffer_lockCanvas() 150 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); in android_graphics_GraphicBuffer_lockCanvas() 151 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); in android_graphics_GraphicBuffer_lockCanvas() 152 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); in android_graphics_GraphicBuffer_lockCanvas() 154 rect.set(Rect(buffer->getWidth(), buffer->getHeight())); in android_graphics_GraphicBuffer_lockCanvas() 158 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits); in android_graphics_GraphicBuffer_lockCanvas() 175 canvas.clipRect({rect.left, rect.top, rect.right, rect.bottom}); in android_graphics_GraphicBuffer_lockCanvas() 179 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); in android_graphics_GraphicBuffer_lockCanvas()
|
/aosp14/frameworks/base/libs/hwui/ |
H A D | Rect.h | 62 left(rect.fLeft) in Rect() 63 , top(rect.fTop) in Rect() 64 , right(rect.fRight) in Rect() 65 , bottom(rect.fBottom) {} in Rect() 69 left(rect.fLeft) in Rect() 70 , top(rect.fTop) in Rect() 71 , right(rect.fRight) in Rect() 256 if (rect.isEmpty()) { 261 if (rect.left == 0 && rect.top == 0) { 262 return os << "[" << rect.right << " x " << rect.bottom << "]"; [all …]
|
H A D | FrameInfoVisualizer.cpp | 155 float* rect; in initializeRects() local 159 rect = mFastRects.get(); in initializeRects() 164 rect = mJankyRects.get(); in initializeRects() 171 rect[ri + 0] = right - lineWidth; in initializeRects() 172 rect[ri + 1] = baseline; in initializeRects() 173 rect[ri + 2] = right; in initializeRects() 174 rect[ri + 3] = baseline; in initializeRects() 188 float* rect; in nextBarSegment() local 192 rect = mFastRects.get(); in nextBarSegment() 196 rect = mJankyRects.get(); in nextBarSegment() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 64 public static Rect createRect(RectF rect) { in createRect() argument 65 checkNotNull(rect, "rect must not be null"); in createRect() 68 rect.roundOut(r); in createRect() 86 public static Rect mapRect(Matrix transform, Rect rect) { in mapRect() argument 88 checkNotNull(rect, "rect must not be null"); in mapRect() 90 RectF rectF = new RectF(rect); in mapRect() 105 public static Size createSize(Rect rect) { in createSize() argument 106 checkNotNull(rect, "rect must not be null"); in createSize() 108 return new Size(rect.width(), rect.height()); in createSize()
|
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 37 canvas.drawOval(rect(), paint); in draw() 42 final RectF rect = rect(); in getOutline() local 43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline() 44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline()
|
H A D | RectShape.java | 45 final RectF rect = rect(); in getOutline() local 46 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), in getOutline() 47 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); in getOutline() 58 protected final RectF rect() { in rect() method in RectShape
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
H A D | RequestRectangleVisible.java | 43 final Rect rect = new Rect(); in onCreate() local 61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate() 62 childToMakeVisible.requestRectangleOnScreen(rect, true); in onCreate() 69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); in onCreate() 70 topBlob.requestRectangleOnScreen(rect, true); in onCreate() 77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate() 78 childToMakeVisible.requestRectangleOnScreen(rect, true); in onCreate() 85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight()); in onCreate() 86 bottomBlob.requestRectangleOnScreen(rect, true); in onCreate()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListItemRequestRectAboveThinFirstItemTest.java | 62 final Rect rect = new Rect(); in testSecondItemRequestRectAboveTop() local 63 second.getDrawingRect(rect); in testSecondItemRequestRectAboveTop() 64 rect.offset(0, -2 * second.getBottom()); in testSecondItemRequestRectAboveTop() 66 getActivity().requestRectangleOnScreen(1, rect); in testSecondItemRequestRectAboveTop() 87 final Rect rect = new Rect(); in testSecondToLastItemRequestRectBelowBottom() local 88 secondToLast.getDrawingRect(rect); in testSecondToLastItemRequestRectBelowBottom() 89 rect.offset(0, in testSecondToLastItemRequestRectBelowBottom() 93 getActivity().requestRectangleOnScreen(secondToLastIndex, rect); in testSecondToLastItemRequestRectBelowBottom()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | AppTransitionAnimationSpec.java | 20 public final Rect rect; field in AppTransitionAnimationSpec 23 public AppTransitionAnimationSpec(int taskId, HardwareBuffer buffer, Rect rect) { in AppTransitionAnimationSpec() argument 25 this.rect = rect; in AppTransitionAnimationSpec() 31 rect = in.readTypedObject(Rect.CREATOR); in AppTransitionAnimationSpec() 43 dest.writeTypedObject(rect, 0 /* flags */); in writeToParcel() 60 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}"; in toString()
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/common/ |
H A D | HDRIndicator.kt | 38 val rect = RectF(0f, 0f, width.toFloat(), height.toFloat()) regex 44 canvas.drawText("H", rect.left, rect.bottom, paint) 46 canvas.drawText("D", rect.left + height.toFloat(), rect.bottom, paint) 48 canvas.drawText("R", rect.left + height.toFloat() * 2, rect.bottom, paint)
|
/aosp14/frameworks/base/libs/hwui/apex/ |
H A D | android_region.cpp | 53 const SkIRect& rect = ARegionIter_to_SkRegionIter(iterator)->rect(); in ARegionIterator_getRect() local 54 return { rect.fLeft, rect.fTop, rect.fRight, rect.fBottom }; in ARegionIterator_getRect()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/stylus/ |
H A D | HandwritableViewInfoTest.java | 44 final Rect rect = new Rect(1, 2, 3, 4); in constructorTest() local 45 final View view = createView(rect); in constructorTest() 56 final Rect rect = new Rect(1, 2, 3, 4); in update() local 57 final View view = createView(rect); in update() 66 assertThat(handwritableViewInfo.getHandwritingArea()).isEqualTo(rect); in update() 72 final Rect rect = new Rect(1, 2, 3, 4); in update_viewDisableAutoHandwriting() local 73 final View view = HandwritingTestUtil.createView(rect, false /* autoHandwritingEnabled */, in update_viewDisableAutoHandwriting()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | RegionUtils.java | 58 final Rect rect = new Rect(); in forEachRect() local 59 while (it.next(rect)) { in forEachRect() 60 rectConsumer.accept(rect); in forEachRect() 75 final Rect rect = new Rect(); in forEachRectReverse() local 76 while (it.next(rect)) { in forEachRectReverse() 77 rects.add(new Rect(rect)); in forEachRectReverse()
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 60 public static Quad fromRect(RectF rect) { in fromRect() argument 61 return new Quad(new PointF(rect.left, rect.top), in fromRect() 62 new PointF(rect.right, rect.top), in fromRect() 63 new PointF(rect.left, rect.bottom), in fromRect() 64 new PointF(rect.right, rect.bottom)); in fromRect() 112 public static Quad fromRotatedRect(RectF rect, float angle) { in fromRotatedRect() argument 113 return Quad.fromRect(rect).rotated(angle); in fromRotatedRect() 125 public static Quad fromTransformedRect(RectF rect, Matrix matrix) { in fromTransformedRect() argument 126 return Quad.fromRect(rect).transformed(matrix); in fromTransformedRect()
|