/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/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
|
H A D | RoundRectShape.java | 45 * Specifies an outer (round)rect and an optional inner (round)rect. 52 * rect to each side of the outer rect. For no inner, pass 100 final RectF rect = rect(); 101 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 102 (int) Math.floor(rect.right), (int) Math.floor(rect [all...] |
/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 &rect, Matrix4::identity()); 38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child"; 41 rect.intersectWithRoot = true; 44 &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/support/v17/leanback/src/android/support/v17/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/java/com/android/internal/widget/ |
H A D | NotificationExpandButton.java | 60 private void extendRectToMinTouchSize(Rect rect) { argument 62 rect.left = rect.centerX() - touchTargetSize / 2; 63 rect.right = rect.left + touchTargetSize; 64 rect.top = rect.centerY() - touchTargetSize / 2; 65 rect.bottom = rect.top + touchTargetSize;
|
/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);
|
H A D | RequestRectangleVisibleWithInternalScroll.java | 65 // the rect we want to make visible is offset to match 67 Rect rect = new Rect(); 68 rect.set(0, 0, 0, mTextBlob.getHeight()); 69 rect.offset(0, mTextBlob.getScrollY()); 70 mTextBlob.requestRectangleOnScreen(rect);
|
/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/minikin/tests/unittest/ |
H A D | LayoutTest.cpp | 68 MinikinRect rect; local 83 layout.getBounds(&rect); 84 EXPECT_EQ(0.0f, rect.mLeft); 85 EXPECT_EQ(0.0f, rect.mTop); 86 EXPECT_EQ(70.0f, rect.mRight); 87 EXPECT_EQ(10.0f, rect.mBottom); 102 layout.getBounds(&rect); 103 EXPECT_EQ(0.0f, rect.mLeft); 104 EXPECT_EQ(0.0f, rect.mTop); 105 EXPECT_EQ(90.0f, rect 157 MinikinRect rect; local 256 MinikinRect rect; local [all...] |
/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/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/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewTransform.java | 62 // This is a window-space rect used for positioning the task in the stack and freeform workspace 63 public RectF rect = new RectF(); field in class:TaskViewTransform 75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom()); 88 rect.set(other.rect); 100 && rect.equals(other.rect); 113 rect.setEmpty(); 130 return ((int) rect.left != v.getLeft()) || ((int) rect [all...] |
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
H A D | parcelable_composer_layer.cpp | 94 for (auto& rect: layer_.visible_regions) { 95 ret = parcel->writeInt32(rect.left); 96 ret = parcel->writeInt32(rect.top); 97 ret = parcel->writeInt32(rect.right); 98 ret = parcel->writeInt32(rect.bottom); 105 for (auto& rect: layer_.damaged_regions) { 106 ret = parcel->writeInt32(rect.left); 107 ret = parcel->writeInt32(rect.top); 108 ret = parcel->writeInt32(rect.right); 109 ret = parcel->writeInt32(rect 200 hwc_rect_t rect; local 220 hwc_rect_t rect; local [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 229 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) argument 231 if (rect.left < 0 || rect.right > width || 232 rect.top < 0 || rect.bottom > height) { 234 rect.left, rect.top, rect.right, rect.bottom, 238 status_t res = getBufferMapper().lock(handle, inUsage, rect, vadd 249 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument 276 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument 282 lockAsync(uint64_t inProducerUsage, uint64_t inConsumerUsage, const Rect& rect, void** vaddr, int fenceFd) argument 305 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | Rect.h | 76 inline Rect(const SkIRect& rect): // NOLINT, implicit argument 77 left(rect.fLeft), 78 top(rect.fTop), 79 right(rect.fRight), 80 bottom(rect.fBottom) { 83 inline Rect(const SkRect& rect): // NOLINT, implicit argument 84 left(rect.fLeft), 85 top(rect.fTop), 86 right(rect.fRight), 87 bottom(rect 294 operator <<(std::ostream& os, const Rect& rect) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_TextureView.cpp | 146 Rect rect(Rect::EMPTY_RECT); 148 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 149 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 150 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 151 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 153 rect.set(Rect(0x3FFF, 0x3FFF)); 157 int32_t status = native_window_lock(window.get(), &buffer, &rect); 173 nativeCanvas->clipRect(rect.left, rect.top, rect [all...] |