/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...] |
H A D | ArcShape.java | 47 canvas.drawArc(rect(), mStart, mSweep, true, paint);
|
/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 | 85 * or round rect support clipping. 140 * Sets the Outline to the rounded rect defined by the input rect, and 150 public void setRect(@NonNull Rect rect) { argument 151 setRect(rect.left, rect.top, rect.right, rect.bottom); 155 * Sets the Outline to the rounded rect defined by the input rect, an 174 setRoundRect(@onNull Rect rect, float radius) argument 202 setOval(@onNull Rect rect) argument [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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 239 Rect rect = getVisibleBounds(); 240 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 242 return getInteractionController().swipe(rect.centerX(), 243 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, 267 Rect rect = getVisibleBounds(); 268 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 270 return getInteractionController().swipe(rect.centerX(), 271 rect [all...] |
H A D | UiScrollable.java | 418 Rect rect = new Rect(); 419 node.getBoundsInScreen(rect); 429 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); 431 downX = rect.centerX(); 432 downY = rect.bottom - swipeAreaAdjust; 433 upX = rect.centerX(); 434 upY = rect.top + swipeAreaAdjust; 436 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); 439 downX = rect.right - swipeAreaAdjust; 440 downY = 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); 39 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument 40 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect); 59 * will be the bounding rect of the real transformed rect. 61 * @param descendant view defining the original coordinate system of rect 62 * @param rect (in/out) the rect t 64 offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) argument [all...] |
/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 | 51 // having the second item call requestRectangleOnScreen with a rect above 60 final Rect rect = new Rect(); 61 second.getDrawingRect(rect); 62 rect.offset(0, -2 * second.getBottom()); 64 getActivity().requestRectangleOnScreen(1, rect); 85 final Rect rect = new Rect(); 86 secondToLast.getDrawingRect(rect); 87 rect.offset(0, 91 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 | 189 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) argument 191 if (rect.left < 0 || rect.right > width || 192 rect.top < 0 || rect.bottom > height) { 194 rect.left, rect.top, rect.right, rect.bottom, 198 status_t res = getBufferMapper().lock(handle, inUsage, rect, vadd 209 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument 236 lockAsync(uint32_t inUsage, const Rect& rect, void** vaddr, int fenceFd) argument 259 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 | 76 protected void setOutlineRect(RectF rect) { argument 77 if (rect != null) { 78 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
|
/frameworks/base/libs/hwui/ |
H A D | SkiaCanvasProxy.cpp | 72 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { argument 73 mCanvas->drawOval(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); 76 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { argument 77 mCanvas->drawRect(rect.fLeft, rect.fTop, rect.fRight, rect 82 const SkRect& rect = roundRect.rect(); local 149 SkRect rect; local 344 onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle) argument [all...] |
H A D | FrameInfoVisualizer.cpp | 144 float* rect; local 148 rect = mFastRects.get(); 153 rect = mJankyRects.get(); 160 rect[ri + 0] = right - lineWidth; 161 rect[ri + 1] = baseline; 162 rect[ri + 2] = right; 163 rect[ri + 3] = baseline; 176 float* rect; local 180 rect = mFastRects.get(); 184 rect [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GraphicBuffer.cpp | 161 Rect rect; local 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 | 145 Rect rect; local 147 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 148 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 149 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 150 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 152 rect.set(Rect(0x3FFF, 0x3FFF)); 156 int32_t status = native_window_lock(window.get(), &buffer, &rect); 172 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...] |
/frameworks/native/include/media/editor/ |
H A D | II420ColorConverter.h | 22 #include <android/rect.h>
|