Searched defs:rect (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRectShape.java50 protected final RectF rect() { method in class:RectShape
/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 DBitmapRegionDecoder.java176 * 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 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 DRegion.java247 * 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
/frameworks/av/media/libstagefright/yuv/
H A DYUVCanvas.cpp42 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/view/
H A DFocusFinder.java119 // fill in interesting rect from focused
125 // make up a rect at top left or bottom right of root
284 * direction from a source rect? This is the core routine that determines
327 * exclusively in the beam of the source rect.
378 * Includes an edge case for an empty rect (which is used in some cases when
492 * @param source The source rect.
493 * @param dest The destination rect.
663 private void getRect(View view, Rect rect) { argument
664 view.getDrawingRect(rect);
665 mRoot.offsetDescendantRectToMyCoords(view, rect);
[all...]
H A DGLES20RecordingCanvas.java239 public void drawRoundRect(RectF rect, float rx, float ry, Paint paint) { argument
240 super.drawRoundRect(rect, rx, ry, paint);
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp132 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/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java156 // draw background rect
160 // draw forground rect
196 public void getRectForRow(Rect rect, int row) { argument
199 rect.set(mPaddingLeft,
255 // set the row that is closest to the rect
H A DListScenario.java572 * @param rect The rectangle, in the child's coordinates.
574 public void requestRectangleOnScreen(int childIndex, final Rect rect) { argument
579 child.requestRectangleOnScreen(rect);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java413 NinePatchState(NinePatch ninePatch, Rect rect, Rect layoutInsets, boolean dither) { argument
415 mPadding = rect;
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestView.java40 private Rect rect = new Rect(); field in class:BiDiTestView
190 rect.set(BORDER_PADDING, BORDER_PADDING, width - BORDER_PADDING, height - BORDER_PADDING);
191 canvas.drawRect(rect, paint);
/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...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp446 android_native_rect_t rect = {-2, -13, 40, 18}; local
447 native_window_set_crop(mANW.get(), &rect);
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp164 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...]
H A DRegion.cpp114 Rect rect(l,t,r,b);
116 mStorage.insertAt(rect, where, 1);
285 virtual void operator()(const Rect& rect) { argument
287 // rect.left, rect.top, rect.right, rect.bottom);
289 if (cur->top != rect.top) {
291 } else if (cur->right == rect.left) {
292 cur->right = rect
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp299 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...]
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java308 * Translate the screen rect to the application frame.
310 public void translateRectInScreenToAppWinFrame(Rect rect) { argument
311 rect.scale(applicationInvertedScale);
365 public void translateRectInAppWindowToScreen(Rect rect) { argument
366 rect.scale(applicationScale);
372 public void translateRectInScreenToAppWindow(Rect rect) { argument
373 rect.scale(applicationInvertedScale);
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp356 int stride, const android_native_rect_t& rect) ;
571 int h, int stride, const android_native_rect_t& rect) {
580 bool inside = rect.left <= x && x < rect.right &&
581 rect.top <= y && y < rect.bottom;
584 bool inside = rect.left <= 2*x && 2*x < rect.right &&
585 rect.top <= 2*y && 2*y < rect
570 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp79 static jboolean isRect(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect) { argument
82 GraphicsJNI::rect_to_jrectf(rect_, env, rect);
167 static void addRect__RectFI(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, SkPath::Direction dir) { argument
169 GraphicsJNI::jrectf_to_rect(env, rect, &rect_);
202 static void addRoundRectXY(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, argument
205 GraphicsJNI::jrectf_to_rect(env, rect, &rect_);
211 static void addRoundRect8(JNIEnv* env, jobject, SkPath* obj, jobject rect, argument
214 GraphicsJNI::jrectf_to_rect(env, rect, &rect_);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java281 public void setViewport(Rect rect) { argument
283 setNativeViewport(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java1300 * If rect is off screen, scroll just enough to get it (or at least the
1303 * @param rect The rectangle.
1307 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1308 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1325 * @param rect The rect.
1328 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1337 // leave room for left fading edge as long as rect isn't at very left
1338 if (rect.left > 0) {
1342 // leave room for right fading edge as long as rect is
[all...]
H A DScrollView.java1294 * If rect is off screen, scroll just enough to get it (or at least the
1297 * @param rect The rectangle.
1301 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1302 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1319 * @param rect The rect.
1322 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1331 // leave room for top fading edge as long as rect isn't at very top
1332 if (rect.top > 0) {
1336 // leave room for bottom fading edge as long as rect is
[all...]

Completed in 451 milliseconds

12