/frameworks/base/graphics/java/android/graphics/ |
H A D | LargeBitmap.java | 44 * Decodes a rectangle region in the image specified by rect. 46 * @param rect The rectangle that specified the region to be decode. 52 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) 56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, 57 rect [all...] |
H A D | YuvImage.java | 214 private void adjustRectangle(Rect rect) { argument 215 int width = rect.width(); 216 int height = rect.height(); 221 rect.left &= ~1; 222 rect.top &= ~1; 223 rect.right = rect.left + width; 224 rect.bottom = rect.top + height; 230 rect [all...] |
H A D | BitmapRegionDecoder.java | 174 * Decodes a rectangle region in the image specified by rect. 176 * @param rect The rectangle that specified the region to be decode. 187 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 191 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() 192 || rect.top >= getHeight()) 194 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 195 rect [all...] |
H A D | Outline.java | 120 * or round rect support clipping. 170 * Sets the Outline to the rounded rect defined by the input rect, and 180 public void setRect(@NonNull Rect rect) { argument 181 setRect(rect.left, rect.top, rect.right, rect.bottom); 185 * Sets the Outline to the rounded rect defined by the input rect, an 207 setRoundRect(@onNull Rect rect, float radius) argument 269 setOval(@onNull Rect rect) argument [all...] |
/frameworks/support/car/src/main/java/androidx/car/widget/ |
H A D | MinTouchTargetHelper.java | 84 Rect rect = new Rect(); 85 mSubjectView.getHitRect(rect); 88 int hitWidth = Math.abs(rect.right - rect.left); 91 rect.left -= amountToIncrease; 92 rect.right += amountToIncrease; 95 int hitHeight = Math.abs(rect.top - rect.bottom); 98 rect.top -= amountToIncrease; 99 rect [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 37 canvas.drawOval(rect(), paint); 42 final RectF rect = rect(); 43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
|
H A D | RectShape.java | 43 final RectF rect = rect(); 44 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 45 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); 56 protected final RectF rect() { method in class:RectShape
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationExpandButton.java | 59 private void extendRectToMinTouchSize(Rect rect) { argument 61 rect.left = rect.centerX() - touchTargetSize / 2; 62 rect.right = rect.left + touchTargetSize; 63 rect.top = rect.centerY() - touchTargetSize / 2; 64 rect.bottom = rect.top + touchTargetSize;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 297 Rectangle rect = parseRect(rectDesc); local 300 rectangle.push_back(rect); 368 Rectangle rect; local 381 rect.format = format->format; 384 rect.displayFrame = hwcTestParseHwcRect(in, error); 393 rect.sourceDim = HwcTestDim(rect.displayFrame.right 394 - rect.displayFrame.left, 395 rect.displayFrame.bottom 396 - rect [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SnapshotTests.cpp | 33 ClipRect rect(Rect(0, 0, 75, 75)); 36 child->serializeIntersectedClip(allocator, &rect, Matrix4::identity()); 38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child"; 41 rect.intersectWithRoot = true; 44 child->serializeIntersectedClip(allocator, &rect, Matrix4::identity()); 46 EXPECT_EQ(Rect(10, 10, 75, 75), intersectWithRoot->rect) << "Expect intersect with root"; 55 ClipRect rect(Rect(0, 0, 75, 75)); 59 child->applyClip(&rect, Matrix4::identity()); 66 rect.intersectWithRoot = true; 69 child->applyClip(&rect, Matrix [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | LayerProtoHelper.cpp | 33 void LayerProtoHelper::writeToProto(const Rect& rect, RectProto* rectProto) { argument 34 rectProto->set_left(rect.left); 35 rectProto->set_top(rect.top); 36 rectProto->set_bottom(rect.bottom); 37 rectProto->set_right(rect.right); 40 void LayerProtoHelper::writeToProto(const FloatRect& rect, FloatRectProto* rectProto) { argument 41 rectProto->set_left(rect.left); 42 rectProto->set_top(rect.top); 43 rectProto->set_bottom(rect.bottom); 44 rectProto->set_right(rect [all...] |
H A D | LayerProtoHelper.h | 31 static void writeToProto(const Rect& rect, RectProto* rectProto); 32 static void writeToProto(const FloatRect& rect, FloatRectProto* rectProto);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/ |
H A D | BoundsRule.java | 113 * @param rect Represents the current bounds. 116 public void calculateBounds(Rect rect, Rect result) { argument 118 result.left = rect.left; 120 result.left = doCalculate(rect.left, left, rect.width()); 124 result.right = rect.right; 126 result.right = doCalculate(rect.left, right, rect.width()); 130 result.top = rect.top; 132 result.top = doCalculate(rect [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 242 Rect rect = getVisibleBounds(); 243 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 245 return getInteractionController().swipe(rect.centerX(), 246 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, 270 Rect rect = getVisibleBounds(); 271 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 273 return getInteractionController().swipe(rect.centerX(), 274 rect [all...] |
H A D | UiScrollable.java | 421 Rect rect = new Rect(); 422 node.getBoundsInScreen(rect); 432 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); 434 downX = rect.centerX(); 435 downY = rect.bottom - swipeAreaAdjust; 436 upX = rect.centerX(); 437 upY = rect.top + swipeAreaAdjust; 439 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); 442 downX = rect.right - swipeAreaAdjust; 443 downY = rect [all...] |
/frameworks/base/core/java/android/view/ |
H A D | AppTransitionAnimationSpec.java | 19 public final Rect rect; field in class:AppTransitionAnimationSpec 21 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { argument 23 this.rect = rect; 29 rect = in.readParcelable(null); 41 dest.writeParcelable(rect, 0 /* flags */); 58 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}";
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
H A D | RequestRectangleVisible.java | 43 final Rect rect = new Rect(); 61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); 62 childToMakeVisible.requestRectangleOnScreen(rect, true); 69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); 70 topBlob.requestRectangleOnScreen(rect, true); 77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); 78 childToMakeVisible.requestRectangleOnScreen(rect, true); 85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight()); 86 bottomBlob.requestRectangleOnScreen(rect, true);
|
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/ |
H A D | EglRectBlt.java | 106 * Draws a viewport-filling rect, texturing it with the specified texture object and rect. 117 void setTexRect(Rect rect) { argument 118 mTexCoords[0] = rect.left / (float)mTexWidth; 119 mTexCoords[1] = 1.0f - rect.bottom / (float)mTexHeight; 120 mTexCoords[2] = rect.right / (float)mTexWidth; 121 mTexCoords[3] = 1.0f - rect.bottom / (float)mTexHeight; 122 mTexCoords[4] = rect.left / (float)mTexWidth; 123 mTexCoords[5] = 1.0f - rect.top / (float)mTexHeight; 124 mTexCoords[6] = rect [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaProfileRenderer.cpp | 24 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); local 25 mCanvas->drawRect(rect, paint); 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], local 32 mCanvas->drawRect(rect, paint);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListItemRequestRectAboveThinFirstItemTest.java | 53 // having the second item call requestRectangleOnScreen with a rect above 62 final Rect rect = new Rect(); 63 second.getDrawingRect(rect); 64 rect.offset(0, -2 * second.getBottom()); 66 getActivity().requestRectangleOnScreen(1, rect); 87 final Rect rect = new Rect(); 88 secondToLast.getDrawingRect(rect); 89 rect.offset(0, 93 getActivity().requestRectangleOnScreen(secondToLastIndex, rect);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | WindowAnimationSpecTest.java | 63 argThat(rect -> rect.equals(windowCrop))); 74 argThat(rect -> rect.equals(mStackBounds))); 87 argThat(rect -> rect.left == 20 && rect.top == 40 && rect.right == 30 88 && rect.bottom == 50)); 99 argThat(rect [all...] |
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 58 * @param size a non-{@code null} rect 62 * @throws NullPointerException if {@code rect} was {@code null} 64 public static Rect createRect(RectF rect) { argument 65 checkNotNull(rect, "rect must not be null"); 68 rect.roundOut(r); 74 * Map the rectangle in {@code rect} with the transform in {@code transform} into 81 * @param rect a non-{@code null} rectangle 86 public static Rect mapRect(Matrix transform, Rect rect) { argument 88 checkNotNull(rect, "rec 105 createSize(Rect rect) argument [all...] |
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
H A D | FakeComposerUtils.h | 31 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_rect_t& rect) { argument 32 return os << "(" << rect.left << "," 33 << rect.top << "," 34 << rect.right << "," 35 << rect.bottom << ")"; 38 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_frect_t& rect) { argument 39 return os << "(" << rect.left << "," 40 << rect.top << "," 41 << rect.right << "," 42 << rect [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TapExcludeRegionHolder.java | 51 final Rect rect = mTapExcludeRects.valueAt(i); 52 rect.intersect(boundingRegion); 53 region.union(rect);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/ |
H A D | AppTransitionAnimationSpecCompat.java | 31 public AppTransitionAnimationSpecCompat(int taskId, Bitmap buffer, Rect rect) { argument 34 mRect = rect;
|