/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/java/android/hardware/ |
H A D | Camera.java | 1164 * is 800x480. The rect passed from the driver is (-1000, -1000, 0, 0). 1165 * The corresponding viewfinder rect should be (0, 0, 400, 240). It is 1193 public Rect rect; field in class:Camera.Face 1215 * the same space as the ones for {@link #rect}. This is an optional 1224 * in the same space as the ones for {@link #rect}.This is an optional 1233 * the same space as the ones for {@link #rect}. This is an optional 1386 * @param rect the bounds of the area. 1389 public Area(Rect rect, int weight) { argument 1390 this.rect = rect; 1424 public Rect rect; field in class:Camera.Area [all...] |
/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 | GLES20Canvas.java | 438 public boolean clipRect(Rect rect) { argument 439 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect.bottom, 444 public boolean clipRect(Rect rect, Region.Op op) { argument 445 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect 449 clipRect(RectF rect) argument 455 clipRect(RectF rect, Region.Op op) argument 490 quickReject(RectF rect, EdgeType type) argument 966 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument [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);
|
H A D | ViewGroup.java | 4068 // in case the dirty rect extends outside the bounds of this container 4087 * @param rect A rectangle defined in descendant's coordinate space. 4089 public final void offsetDescendantRectToMyCoords(View descendant, Rect rect) { argument 4090 offsetRectBetweenParentAndChild(descendant, rect, true, false); 4097 * @param rect A rectangle defined in descendant's coordinate space. 4099 public final void offsetRectIntoDescendantCoords(View descendant, Rect rect) { argument 4100 offsetRectBetweenParentAndChild(descendant, rect, false, false); 4104 * Helper method that offsets a rect either from parent to descendant or 4107 void offsetRectBetweenParentAndChild(View descendant, Rect rect, argument 4123 rect [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebView.java | 2826 the rect into view coordinates, so we can then call invalidate(...). 2831 address that, we are a little more liberal in the size of the rect that 2903 // Used to avoid sending many visible rect messages. 2955 // bar is partially visible, the part of the visible rect which is 2972 // bar is partially visible, the part of the visible rect which is 3723 // move our visible rect according to scroll request 5512 Rect rect = nativeCursorNodeBounds(); 5513 mSelectX = contentToViewX(rect.left); 5514 mSelectY = contentToViewY(rect.top); 5828 // visible == false means we're clipped - send a null rect dow 7566 isRectFitOnScreen(Rect rect) argument 7587 centerFitRect(Rect rect) argument 7732 requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) argument 9560 nativeGetDrawGLFunction(int nativeInstance, Rect rect, Rect viewRect, RectF visibleRect, float scale, int extras) argument 9562 nativeUpdateDrawGLFunction(Rect rect, Rect viewRect, RectF visibleRect) argument 9629 nativeSelectBestAt(Rect rect) argument [all...] |
H A D | WebViewCore.java | 2876 private native void nativeScrollLayer(int layer, Rect rect); argument
|
/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 | ListView.java | 545 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument 547 int rectTopWithinChild = rect.top; 549 // offset so rect is in coordinates of the this view 550 rect.offset(child.getLeft(), child.getTop()); 551 rect.offset(-child.getScrollX(), -child.getScrollY()); 559 // leave room for top fading edge as long as rect isn't at very top 569 // leave room for bottom fading edge as long as rect isn't at very bottom 571 || (rect.bottom < (bottomOfBottomChild - fadingEdge))) { 578 if (rect.bottom > listUnfadedBottom && rect [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...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Canvas.cpp | 244 static jboolean clipRect_Rect(JNIEnv* env, jobject jcanvas, jobject rect) { argument 246 NPE_CHECK_RETURN_ZERO(env, rect); 249 return c->clipRect(*GraphicsJNI::jrect_to_rect(env, rect, &tmp)); 255 SkRect rect; local 256 rect.set(SkFloatToScalar(left), SkFloatToScalar(top), 258 return canvas->clipRect(rect, (SkRegion::Op)op); 277 jobject rect, int edgetype) { 279 GraphicsJNI::jrectf_to_rect(env, rect, &rect_); 383 jobject rect, SkPaint* paint) { 385 GraphicsJNI::jrectf_to_rect(env, rect, 276 quickReject__RectFI(JNIEnv* env, jobject, SkCanvas* canvas, jobject rect, int edgetype) argument 382 drawRect__RectFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jobject rect, SkPaint* paint) argument 424 SkRect rect; local [all...] |
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/core/jni/ |
H A D | android_app_NativeActivity.cpp | 986 ARect rect; local 987 rect.left = x; 988 rect.top = y; 989 rect.right = x+w; 990 rect.bottom = y+h; 991 code->callbacks.onContentRectChanged(code, &rect);
|
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_GLES20Canvas.cpp | 281 OpenGLRenderer* renderer, jobject rect) { 284 env->CallVoidMethod(rect, gRectClassInfo.set, 433 const SkIRect& r = it.rect(); 280 android_view_GLES20Canvas_getClipBounds(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jobject rect) argument
|
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");
|
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...] |
/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/ |
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...] |