/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 36 canvas.drawOval(rect(), paint); 41 final RectF rect = rect(); 42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 43 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
|
H A D | RectShape.java | 42 final RectF rect = rect(); 43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom)); 55 protected final RectF rect() { method in class:RectShape
|
H A D | RoundRectShape.java | 42 * Specifies an outer (round)rect and an optional inner (round)rect. 50 * rect to each side of the outer rect. 98 final RectF rect = rect(); 99 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top), 100 (int) Math.floor(rect.right), (int) Math.floor(rect [all...] |
/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. 182 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 185 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() 186 || rect.top >= getHeight()) 188 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 189 rect [all...] |
H A D | Outline.java | 113 * or round rect support clipping. 158 * Sets the Outline to the rounded rect defined by the input rect, and 168 public void setRect(@NonNull Rect rect) { argument 169 setRect(rect.left, rect.top, rect.right, rect.bottom); 173 * Sets the Outline to the rounded rect defined by the input rect, an 192 setRoundRect(@onNull Rect rect, float radius) argument 249 setOval(@onNull Rect rect) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationExpandButton.java | 55 private void extendRectToMinTouchSize(Rect rect) { argument 57 rect.left = rect.centerX() - touchTargetSize / 2; 58 rect.right = rect.left + touchTargetSize; 59 rect.top = rect.centerY() - touchTargetSize / 2; 60 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/support/design/src/android/support/design/widget/ |
H A D | ViewGroupUtils.java | 27 void offsetDescendantRect(ViewGroup parent, View child, Rect rect); argument 32 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument 33 parent.offsetDescendantRectToMyCoords(child, rect); 35 // We need to reverse it here so that we get the rect of the view itself rather 37 rect.offset(child.getScrollX(), child.getScrollY()); 43 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument 44 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect); 63 * will be the bounding rect of the real transformed rect. 65 * @param descendant view defining the original coordinate system of rect 68 offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) argument [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/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, Bitmap bitmap, Rect rect) { argument 24 this.rect = rect; 30 rect = in.readParcelable(null); 42 dest.writeParcelable(rect, 0 /* flags */); 59 return "{taskId: " + taskId + ", bitmap: " + bitmap + ", 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);
|
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/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/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 191 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) argument 193 if (rect.left < 0 || rect.right > width || 194 rect.top < 0 || rect.bottom > height) { 196 rect.left, rect.top, rect.right, rect.bottom, 200 status_t res = getBufferMapper().lock(handle, inUsage, rect, vadd 211 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument 238 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument 261 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableOutlineView.java | 81 protected void setOutlineRect(RectF rect) { argument 82 if (rect != null) { 83 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
|
/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/base/core/jni/ |
H A D | android_view_GraphicBuffer.cpp | 161 Rect rect(Rect::EMPTY_RECT); 163 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 164 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 165 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 166 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 168 rect.set(Rect(buffer->getWidth(), buffer->getHeight())); 172 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits); 196 nativeCanvas->clipRect(rect.left, rect.top, rect [all...] |
H A D | android_view_TextureView.cpp | 141 Rect rect(Rect::EMPTY_RECT); 143 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 144 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 145 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 146 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 148 rect.set(Rect(0x3FFF, 0x3FFF)); 152 int32_t status = native_window_lock(window.get(), &buffer, &rect); 168 nativeCanvas->clipRect(rect.left, rect.top, rect [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | FillBuffer.cpp | 55 const android_native_rect_t& rect) { 64 bool inside = rect.left <= x && x < rect.right && 65 rect.top <= y && y < rect.bottom; 68 bool inside = rect.left <= 2*x && 2*x < rect.right && 69 rect.top <= 2*y && 2*y < rect.bottom; 54 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | MeteringRectangle.java | 128 * @param rect a non-{@code null} rectangle with all x,y,w,h dimensions >= 0 134 public MeteringRectangle(Rect rect, int meteringWeight) { argument 135 checkNotNull(rect, "rect must not be null"); 137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative"); 138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative"); 139 mWidth = checkArgumentNonnegative(rect.width(), "rect [all...] |