/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RectShape.java | 50 protected final RectF rect() { method in class:RectShape
|
/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 | 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 | 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 | 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
|
/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/java/android/view/ |
H A D | FocusFinder.java | 74 // 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 D | GLES20RecordingCanvas.java | 243 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 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...] |
H A D | android_hardware_Camera.cpp | 342 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 D | android_view_Surface.cpp | 680 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 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
|
H A D | ListScenario.java | 572 * @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 D | NinePatchDrawable.java | 367 NinePatchState(NinePatch ninePatch, Rect rect, boolean dither) { argument 369 mPadding = rect;
|
/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/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...] |
/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 | 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...] |
/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 308 * 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 D | Path.cpp | 79 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 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/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/core/java/android/widget/ |
H A D | HorizontalScrollView.java | 1231 * 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 D | ScrollView.java | 1240 * 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...] |