Searched refs:rect (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
H A DLargeBitmap.java54 * 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 DYuvImage.java214 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 DBitmapRegionDecoder.java173 * 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 DPath.java143 * Returns true if the path specifies a rectangle. If so, and if rect is
144 * not null, set rect to the bounds of the path. If the path does not
145 * specify a rectangle, return false and ignore rect.
147 * @param rect If not null, returns the bounds of the path if it specifies
151 public boolean isRect(RectF rect) { argument
152 return native_isRect(mNativePath, rect);
347 * @param rect The rectangle to add as a closed contour to the path
350 public void addRect(RectF rect, Direction dir) { argument
351 if (rect == null) {
352 throw new NullPointerException("need rect paramete
418 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument
434 addRoundRect(RectF rect, float[] radii, Direction dir) argument
553 native_isRect(int nPath, RectF rect) argument
571 native_addRect(int nPath, RectF rect, int dir) argument
579 native_addRoundRect(int nPath, RectF rect, float rx, float ry, int dir) argument
[all...]
H A DCanvas.java459 * @param rect The rect to intersect with the current clip
463 public boolean clipRect(RectF rect, Region.Op op) { argument
465 rect.left, rect.top, rect.right, rect.bottom,
473 * @param rect The rectangle to intersect with the current clip.
477 public boolean clipRect(Rect rect, Region.Op op) { argument
479 rect
490 clipRect(RectF rect) argument
499 clipRect(Rect rect) argument
638 quickReject(RectF rect, EdgeType type) argument
842 drawRect(RectF rect, Paint paint) argument
934 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument
1485 native_quickReject(int nativeCanvas, RectF rect, int native_edgeType) argument
1506 native_drawRect(int nativeCanvas, RectF rect, int paint) argument
1519 native_drawRoundRect(int nativeCanvas, RectF rect, float rx, float ry, int paint) argument
[all...]
H A DRegion.java239 * Perform the specified Op on this region and the specified rect. Return
248 * Perform the specified Op on this region and the specified rect. Return
265 * Set this region to the result of performing the Op on the specified rect
268 public boolean op(Rect rect, Region region, Op op) { argument
269 return nativeOp(mNativeRegion, rect, region.mNativeRegion,
357 private static native boolean nativeGetBounds(int native_region, Rect rect); argument
363 private static native boolean nativeOp(int native_dst, Rect rect, argument
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisible.java43 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 DRequestRectangleVisibleWithInternalScroll.java65 // 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 DListItemRequestRectAboveThinFirstItemTest.java51 // 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/jni/
H A Dcom_android_internal_graphics_NativeUtils.cpp37 static jboolean scrollRect(JNIEnv* env, jobject graphics2D, jobject canvas, jobject rect, int dx, int dy) { argument
44 if (NULL != rect) {
45 GraphicsJNI::jrect_to_irect(env, rect, &src);
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java37 canvas.drawOval(rect(), paint);
H A DArcShape.java48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
H A DRectShape.java50 protected final RectF rect() { method in class:RectShape
/frameworks/base/libs/ui/
H A DGraphicBuffer.cpp154 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) argument
156 if (rect.left < 0 || rect.right > this->width ||
157 rect.top < 0 || rect.bottom > this->height) {
159 rect.left, rect.top, rect.right, rect.bottom,
163 status_t res = getBufferMapper().lock(handle, usage, rect, vadd
[all...]
H A DRegion.cpp270 virtual void operator()(const Rect& rect) {
272 // rect.left, rect.top, rect.right, rect.bottom);
274 if (cur->top != rect.top) {
276 } else if (cur->right == rect.left) {
277 cur->right = rect.right;
281 span.add(rect);
429 head->left != it.rect()
[all...]
/frameworks/base/core/java/android/text/style/
H A DDynamicDrawableSpan.java81 Rect rect = d.getBounds();
84 fm.ascent = -rect.bottom;
91 return rect.right;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java330 /*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 DPath_Delegate.java175 /*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 DCanvas_Delegate.java195 /*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
586 native_quickReject(int nativeCanvas, RectF rect, int native_edgeType) argument
679 native_drawRect(int nativeCanvas, RectF rect, int paint) argument
773 native_drawRoundRect(int nativeCanvas, final RectF rect, final float rx, final float ry, int paint) argument
1222 saveLayerAlpha(RectF rect, int alpha, int saveFlags) argument
1228 saveLayer(RectF rect, Paint_Delegate paint, int saveFlags) argument
[all...]
/frameworks/base/native/include/android/
H A Dnative_window.h20 #include <android/rect.h>
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java303 * Translate the screen rect to the application frame.
305 public void translateRectInScreenToAppWinFrame(Rect rect) { argument
306 rect.scale(applicationInvertedScale);
360 public void translateRectInAppWindowToScreen(Rect rect) { argument
361 rect.scale(applicationScale);
367 public void translateRectInScreenToAppWindow(Rect rect) { argument
368 rect.scale(applicationInvertedScale);
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java100 final Rect rect = new Rect(0, 0, 20, 20);
102 assertBeamsOverlap(View.FOCUS_LEFT, rect, rect);
103 assertBeamsOverlap(View.FOCUS_RIGHT, rect, rect);
104 assertBeamsOverlap(View.FOCUS_UP, rect, rect);
105 assertBeamsOverlap(View.FOCUS_DOWN, rect, rect);
490 * Assert that particular rect i
[all...]
/frameworks/base/core/java/android/gesture/
H A DGestureStroke.java163 final RectF rect = boundingBox;
165 GestureUtils.translate(pts, -rect.left, -rect.top);
167 float sx = width / rect.width();
168 float sy = height / rect.height();
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLayerDrawable.java499 final Rect rect = mTmpRect;
500 r.mDrawable.getPadding(rect);
501 if (rect.left != mPaddingL[i] || rect.top != mPaddingT[i] ||
502 rect.right != mPaddingR[i] || rect.bottom != mPaddingB[i]) {
503 mPaddingL[i] = rect.left;
504 mPaddingT[i] = rect.top;
505 mPaddingR[i] = rect.right;
506 mPaddingB[i] = rect
[all...]
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java1144 * If rect is off screen, scroll just enough to get it (or at least the
1147 * @param rect The rectangle.
1151 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1152 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1169 * @param rect The rect.
1172 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1181 // leave room for left fading edge as long as rect isn't at very left
1182 if (rect.left > 0) {
1186 // leave room for right fading edge as long as rect is
[all...]

Completed in 798 milliseconds

123