Searched defs:rect (Results 1 - 25 of 44) 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.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 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/base/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.java74 // fill in interesting rect from focused
78 // make up a rect at top left or bottom right of root
198 * direction from a source rect? This is the core routine that determines
241 * exclusively in the beam of the source rect.
292 * Includes an edge case for an empty rect (which is used in some cases when
406 * @param source The source rect.
407 * @param dest The destination rect.
577 private void getRect(View view, Rect rect) { argument
578 view.getDrawingRect(rect);
579 mRoot.offsetDescendantRectToMyCoords(view, rect);
[all...]
H A DGLES20RecordingCanvas.java243 public void drawRoundRect(RectF rect, float rx, float ry, Paint paint) { argument
244 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...]
H A Dandroid_hardware_Camera.cpp342 jobject rect = env->NewObject(mRectClass, fields.rect_constructor); local
343 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]);
344 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]);
345 env->SetIntField(rect, fields.rect_right, metadata->faces[i].rect[2]);
346 env->SetIntField(rect, fields.rect_bottom, metadata->faces[i].rect[3]);
348 env->SetObjectField(face, fields.face_rect, rect);
[all...]
H A Dandroid_view_Surface.cpp680 const SkIRect& r(it.rect());
891 jclass rect = env->FindClass("android/graphics/Rect"); local
892 ro.l = env->GetFieldID(rect, "left", "I");
893 ro.t = env->GetFieldID(rect, "top", "I");
894 ro.r = env->GetFieldID(rect, "right", "I");
895 ro.b = env->GetFieldID(rect, "bottom", "I");
/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java152 // 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
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.java367 NinePatchState(NinePatch ninePatch, Rect rect, boolean dither) { argument
369 mPadding = rect;
/frameworks/base/libs/ui/
H A DGraphicBuffer.cpp166 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/opengl/tests/hwc/
H A DhwcRects.cpp300 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...]
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestView.java40 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 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/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/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/libs/gui/
H A DSurfaceTextureClient.cpp347 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/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp356 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/core/java/android/widget/
H A DHorizontalScrollView.java1231 * If rect is off screen, scroll just enough to get it (or at least the
1234 * @param rect The rectangle.
1238 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1239 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1256 * @param rect The rect.
1259 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1268 // leave room for left fading edge as long as rect isn't at very left
1269 if (rect.left > 0) {
1273 // leave room for right fading edge as long as rect is
[all...]
H A DScrollView.java1240 * If rect is off screen, scroll just enough to get it (or at least the
1243 * @param rect The rectangle.
1247 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1248 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1265 * @param rect The rect.
1268 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1277 // leave room for top fading edge as long as rect isn't at very top
1278 if (rect.top > 0) {
1282 // leave room for bottom fading edge as long as rect is
[all...]

Completed in 3253 milliseconds

12