/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 | 176 * Decodes a rectangle region in the image specified by rect. 178 * @param rect The rectangle that specified the region to be decode. 184 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument 187 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() 188 || rect.top >= getHeight()) 190 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, 191 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...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 299 Rectangle rect = parseRect(rectDesc); local 302 rectangle.push_back(rect); 370 Rectangle rect; local 384 rect.format = format->format; 387 rect.displayFrame = hwcTestParseHwcRect(in, error); 396 rect.sourceDim = HwcTestDim(rect.displayFrame.right 397 - rect.displayFrame.left, 398 rect.displayFrame.bottom 399 - rect [all...] |
H A D | hwcTestLib.cpp | 182 hwc_rect rect; local 184 rect.left = rect.top = 0; 186 rect.right = this->_w; 187 rect.bottom = this->_h; 189 return rect; 193 string hwcTestRect2str(const struct hwc_rect& rect) argument 198 out << rect.left << ", "; 199 out << rect.top << ", "; 200 out << rect 210 struct hwc_rect rect; local [all...] |
H A D | hwcCommit.cpp | 453 Rectangle rect(format->format, startDim); 455 rectList.push_back(rect); 652 Rectangle rect(format, startDim, startDim); 653 rect.displayFrame.left = x; 654 rect.displayFrame.top = y; 655 rect.displayFrame.right = x + startDim.width(); 656 rect.displayFrame.bottom = y + startDim.height(); 658 rectList.push_back(rect); 678 Rectangle rect(format, startDim); 684 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/testing/uiautomator/library/src/com/android/uiautomator/core/ |
H A D | UiObject.java | 172 Rect rect = getVisibleBounds(); 173 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 175 return getInteractionController().swipe(rect.centerX(), 176 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, 193 Rect rect = getVisibleBounds(); 194 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 196 return getInteractionController().swipe(rect.centerX(), 197 rect [all...] |
H A D | UiScrollable.java | 313 Rect rect = new Rect();; 314 node.getBoundsInScreen(rect); 324 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); 326 downX = rect.centerX(); 327 downY = rect.bottom - swipeAreaAdjust; 328 upX = rect.centerX(); 329 upY = rect.top + swipeAreaAdjust; 331 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); 334 downX = rect.right - swipeAreaAdjust; 335 downY = rect [all...] |
/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/native/include/media/editor/ |
H A D | II420ColorConverter.h | 22 #include <android/rect.h>
|
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 164 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) argument 166 if (rect.left < 0 || rect.right > this->width || 167 rect.top < 0 || rect.bottom > this->height) { 169 rect.left, rect.top, rect.right, rect.bottom, 173 status_t res = getBufferMapper().lock(handle, usage, rect, vadd [all...] |
/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 574 native_quickReject(int nativeCanvas, RectF rect, int native_edgeType) argument 669 native_drawRect(int nativeCanvas, RectF rect, int paint) argument 766 native_drawRoundRect(int nativeCanvas, final RectF rect, final float rx, final float ry, int paint) argument 1237 saveLayerAlpha(RectF rect, int alpha, int saveFlags) argument 1243 saveLayer(RectF rect, Paint_Delegate paint, int saveFlags) argument [all...] |
/frameworks/av/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/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 281 public void setViewport(Rect rect) { argument 283 setNativeViewport(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
|
/frameworks/av/include/media/stagefright/ |
H A D | YUVCanvas.h | 45 void FillYUVRectangle(const Rect& rect,
|