/frameworks/base/graphics/java/android/graphics/ |
H A D | LargeBitmap.java | 54 * Decodes a rectangle region in the image specified by rect. 56 * @param rect The rectangle that specified the region to be decode. 62 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 64 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) 66 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, 67 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 | 173 * Decodes a rectangle region in the image specified by rect. 175 * @param rect The rectangle that specified the region to be decode. 181 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 183 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() 184 || rect.bottom > getHeight()) 186 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 187 rect [all...] |
H A D | Path.java | 173 * Returns true if the path specifies a rectangle. If so, and if rect is 174 * not null, set rect to the bounds of the path. If the path does not 175 * specify a rectangle, return false and ignore rect. 177 * @param rect If not null, returns the bounds of the path if it specifies 181 public boolean isRect(RectF rect) { argument 182 return native_isRect(mNativePath, rect); 401 * @param rect The rectangle to add as a closed contour to the path 404 public void addRect(RectF rect, Direction dir) { argument 405 if (rect == null) { 406 throw new NullPointerException("need rect paramete 476 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument 493 addRoundRect(RectF rect, float[] radii, Direction dir) argument 617 native_isRect(int nPath, RectF rect) argument 635 native_addRect(int nPath, RectF rect, int dir) argument 643 native_addRoundRect(int nPath, RectF rect, float rx, float ry, int dir) argument [all...] |
H A D | Canvas.java | 529 * @param rect The rect to intersect with the current clip 533 public boolean clipRect(RectF rect, Region.Op op) { argument 535 rect.left, rect.top, rect.right, rect.bottom, 543 * @param rect The rectangle to intersect with the current clip. 547 public boolean clipRect(Rect rect, Region.Op op) { argument 549 rect 560 clipRect(RectF rect) argument 569 clipRect(Rect rect) argument 712 quickReject(RectF rect, EdgeType type) argument 916 drawRect(RectF rect, Paint paint) argument 1017 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument 1674 native_quickReject(int nativeCanvas, RectF rect, int native_edgeType) argument 1695 native_drawRect(int nativeCanvas, RectF rect, int paint) argument 1708 native_drawRoundRect(int nativeCanvas, RectF rect, float rx, float ry, int paint) argument [all...] |
/frameworks/base/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 300 Rectangle rect = parseRect(rectDesc); local 303 rectangle.push_back(rect); 369 Rectangle rect; local 383 rect.format = format->format; 386 rect.displayFrame = hwcTestParseHwcRect(in, error); 395 rect.sourceDim = HwcTestDim(rect.displayFrame.right 396 - rect.displayFrame.left, 397 rect.displayFrame.bottom 398 - rect [all...] |
H A D | hwcTestLib.cpp | 180 hwc_rect rect; local 182 rect.left = rect.top = 0; 184 rect.right = this->_w; 185 rect.bottom = this->_h; 187 return rect; 191 string hwcTestRect2str(const struct hwc_rect& rect) argument 196 out << rect.left << ", "; 197 out << rect.top << ", "; 198 out << rect 208 struct hwc_rect rect; local [all...] |
H A D | hwcCommit.cpp | 454 Rectangle rect(format->format, startDim); 456 rectList.push_back(rect); 653 Rectangle rect(format, startDim, startDim); 654 rect.displayFrame.left = x; 655 rect.displayFrame.top = y; 656 rect.displayFrame.right = x + startDim.width(); 657 rect.displayFrame.bottom = y + startDim.height(); 659 rectList.push_back(rect); 679 Rectangle rect(format, startDim); 685 rect [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/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 37 canvas.drawOval(rect(), paint);
|
H A D | ArcShape.java | 48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
|
H A D | RectShape.java | 50 protected final RectF rect() { method in class:RectShape
|
/frameworks/base/core/jni/ |
H A D | android_view_TextureView.cpp | 132 Rect rect; local 134 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 135 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); 136 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); 137 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); 139 rect.set(Rect(0x3FFF, 0x3FFF)); 143 native_window_lock(window.get(), &buffer, &rect); 165 clipRect.set(rect.left, rect.top, rect [all...] |
/frameworks/media/libvideoeditor/include/ |
H A D | II420ColorConverter.h | 22 #include <android/rect.h>
|
/frameworks/base/media/libstagefright/yuv/ |
H A D | YUVCanvas.cpp | 42 void YUVCanvas::FillYUVRectangle(const Rect& rect, argument 44 for (int32_t y = rect.top; y < rect.bottom; ++y) { 45 for (int32_t x = rect.left; x < rect.right; ++x) {
|
/frameworks/base/core/java/android/text/style/ |
H A D | DynamicDrawableSpan.java | 81 Rect rect = d.getBounds(); 84 fm.ascent = -rect.bottom; 91 return rect.right;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 330 /*package*/ static boolean nativeGetBounds(int native_region, Rect rect) { argument 338 rect.left = rect.top = rect.right = rect.bottom = 0; 342 rect.left = bounds.x; 343 rect.top = bounds.y; 344 rect.right = bounds.x + bounds.width; 345 rect.bottom = bounds.y + bounds.height; 390 /*package*/ static boolean nativeOp(int native_dst, Rect rect, in argument [all...] |
H A D | Path_Delegate.java | 175 /*package*/ static boolean native_isRect(int nPath, RectF rect) { argument 181 // create an Area that can test if the path is a rect 184 if (rect != null) { 185 pathDelegate.fillBounds(rect); 314 /*package*/ static void native_addRect(int nPath, RectF rect, int dir) { argument 320 pathDelegate.addRect(rect.left, rect.top, rect.right, rect.bottom, dir); 373 int nPath, RectF rect, floa 372 native_addRoundRect( int nPath, RectF rect, float rx, float ry, int dir) argument 385 native_addRoundRect(int nPath, RectF rect, float[] radii, int dir) argument [all...] |
H A D | Canvas_Delegate.java | 195 /*package*/ static boolean clipRect(Canvas thisCanvas, RectF rect) { argument 196 return clipRect(thisCanvas, rect.left, rect.top, rect.right, rect.bottom); 200 /*package*/ static boolean clipRect(Canvas thisCanvas, Rect rect) { argument 201 return clipRect(thisCanvas, (float) rect.left, (float) rect.top, 202 (float) rect.right, (float) rect 568 native_quickReject(int nativeCanvas, RectF rect, int native_edgeType) argument 661 native_drawRect(int nativeCanvas, RectF rect, int paint) argument 755 native_drawRoundRect(int nativeCanvas, final RectF rect, final float rx, final float ry, int paint) argument 1221 saveLayerAlpha(RectF rect, int alpha, int saveFlags) argument 1227 saveLayer(RectF rect, Paint_Delegate paint, int saveFlags) argument [all...] |
/frameworks/base/libs/ui/ |
H A D | GraphicBuffer.cpp | 166 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) argument 168 if (rect.left < 0 || rect.right > this->width || 169 rect.top < 0 || rect.bottom > this->height) { 171 rect.left, rect.top, rect.right, rect.bottom, 175 status_t res = getBufferMapper().lock(handle, usage, rect, vadd [all...] |
/frameworks/base/include/media/stagefright/ |
H A D | YUVCanvas.h | 45 void FillYUVRectangle(const Rect& rect,
|
/frameworks/base/native/include/android/ |
H A D | native_window.h | 20 #include <android/rect.h>
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 438 public boolean clipRect(Rect rect) { argument 439 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect.bottom, 444 public boolean clipRect(Rect rect, Region.Op op) { argument 445 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect 449 clipRect(RectF rect) argument 455 clipRect(RectF rect, Region.Op op) argument 490 quickReject(RectF rect, EdgeType type) argument 966 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument [all...] |