/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...] |
/frameworks/base/services/input/ |
H A D | InputDispatcher.cpp | 201 const SkIRect& rect = it.rect(); local 202 dump.appendFormat("[%d,%d][%d,%d]", rect.fLeft, rect.fTop, rect.fRight, rect.fBottom);
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestView.java | 40 private Rect rect = new Rect(); field in class:BiDiTestView 184 rect.set(BORDER_PADDING, BORDER_PADDING, width - BORDER_PADDING, height - BORDER_PADDING); 185 canvas.drawRect(rect, paint);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
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...] |
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 | 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...] |
/frameworks/base/graphics/java/android/graphics/ |
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 | 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...] |
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 | Matrix.java | 485 /** Controlls how the src rect should align into the dst rect for 698 * back into it. This is accomplished by transforming the 4 corners of rect, 701 * @param rect The rectangle to transform. 704 public boolean mapRect(RectF rect) { argument 705 return mapRect(rect, rect);
|
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 | Region.java | 247 * Perform the specified Op on this region and the specified rect. Return 256 * Perform the specified Op on this region and the specified rect. Return 273 * Set this region to the result of performing the Op on the specified rect 276 public boolean op(Rect rect, Region region, Op op) { argument 277 return nativeOp(mNativeRegion, rect, region.mNativeRegion, 375 private static native boolean nativeGetBounds(int native_region, Rect rect); argument 381 private static native boolean nativeOp(int native_dst, Rect rect, argument
|
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...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 367 NinePatchState(NinePatch ninePatch, Rect rect, boolean dither) { argument 369 mPadding = rect;
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RectShape.java | 50 protected final RectF rect() { method in class:RectShape
|
/frameworks/base/libs/gui/ |
H A D | SurfaceTextureClient.cpp | 347 android_native_rect_t const* rect = va_arg(args, android_native_rect_t*); local 348 return setCrop(reinterpret_cast<Rect const*>(rect)); 440 int SurfaceTextureClient::setCrop(Rect const* rect) argument 446 if (rect == NULL || rect->isEmpty()) { 449 realRect = *rect; 452 status_t err = mSurfaceTexture->setCrop(*rect);
|
/frameworks/base/libs/gui/tests/ |
H A D | SurfaceTexture_test.cpp | 502 const android_native_rect_t& rect) { 511 bool inside = rect.left <= x && x < rect.right && 512 rect.top <= y && y < rect.bottom; 515 bool inside = rect.left <= 2*x && 2*x < rect.right && 516 rect.top <= 2*y && 2*y < rect.bottom; 662 SCOPED_TRACE(String8::format("rect{ 501 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 586 const Rect& rect = layer->layer; local 589 drawColorRect(rect.left, rect.top, rect.right, rect.bottom, 602 dirtyLayer(rect.left, rect.top, rect.right, rect.bottom, *previous->transform); 606 composeLayerRegion(layer, rect); 635 drawTextureLayer(Layer* layer, const Rect& rect) argument 686 composeLayerRect(Layer* layer, const Rect& rect, bool swap) argument 724 composeLayerRegion(Layer* layer, const Rect& rect) argument 2231 const Rect& rect = layer->layer; local [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/media/libstagefright/ |
H A D | ACodec.cpp | 1170 OMX_CONFIG_RECTTYPE rect; local 1171 InitOMXParams(&rect); 1172 rect.nPortIndex = kPortIndexOutput; 1176 &rect, sizeof(rect)) != OK) { 1177 rect.nLeft = 0; 1178 rect.nTop = 0; 1179 rect.nWidth = videoDef->nFrameWidth; 1180 rect.nHeight = videoDef->nFrameHeight; 1183 CHECK_GE(rect [all...] |
H A D | OMXCodec.cpp | 4561 OMX_CONFIG_RECTTYPE rect; local 4562 InitOMXParams(&rect); 4563 rect.nPortIndex = kPortIndexOutput; 4567 &rect, sizeof(rect)); 4574 CHECK_GE(rect.nLeft, 0); 4575 CHECK_GE(rect.nTop, 0); 4576 CHECK_GE(rect.nWidth, 0u); 4577 CHECK_GE(rect.nHeight, 0u); 4578 CHECK_LE(rect [all...] |
/frameworks/base/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 356 int stride, const android_native_rect_t& rect) ; 566 int h, int stride, const android_native_rect_t& rect) { 575 bool inside = rect.left <= x && x < rect.right && 576 rect.top <= y && y < rect.bottom; 579 bool inside = rect.left <= 2*x && 2*x < rect.right && 580 rect.top <= 2*y && 2*y < rect 565 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument [all...] |
/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/tests/coretests/src/android/util/ |
H A D | InternalSelectionView.java | 152 // draw background rect 156 // draw forground rect 185 public void getRectForRow(Rect rect, int row) { argument 188 rect.set(mPaddingLeft, 247 // set the row that is closest to the rect
|