/frameworks/base/awt/java/awt/font/ |
H A D | GlyphMetrics.java | 63 * The bounds. 65 private Rectangle2D.Float bounds; field in class:GlyphMetrics 106 * @param bounds 107 * the glyph's bounds. 111 public GlyphMetrics(boolean horizontal, float advanceX, float advanceY, Rectangle2D bounds, argument 117 this.bounds = new Rectangle2D.Float(); 118 this.bounds.setRect(bounds); 128 * @param bounds 129 * the glyph's bounds 133 GlyphMetrics(float advanceX, Rectangle2D bounds, byte glyphType) argument [all...] |
H A D | TextLayout.java | 366 * Gets the black box bounds of the characters in the specified area. The 367 * black box bounds is an Shape which contains all bounding boxes of all the 375 * @return the Shape which contains black box bounds. 386 * Gets the bounds of this TextLayout. 388 * @return the bounds of this TextLayout. 413 * @param bounds 414 * the bounds to which the caret info is constructed. 417 public float[] getCaretInfo(TextHitInfo hitInfo, Rectangle2D bounds) { argument 424 * the bounds of this TextLayout. 428 * @param bounds 432 getCaretShape(TextHitInfo hitInfo, Rectangle2D bounds) argument 476 getCaretShapes(int offset, Rectangle2D bounds) argument 493 getCaretShapes(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy) argument 601 getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds) argument 808 getVisualHighlightShape(TextHitInfo hit1, TextHitInfo hit2, Rectangle2D bounds) argument 895 hitTestChar(float x, float y, Rectangle2D bounds) argument [all...] |
/frameworks/base/awt/org/apache/harmony/awt/gl/render/ |
H A D | JavaArcRasterizer.java | 225 static void addSeg(MultiRectArea mra, int cx1, int cy1, int cx2, int cy2, int a, int b, int[] xline, int[] yline, int[] bounds) { argument 226 switch(bounds[0]) { 228 addY3LineSeg(mra, yline, cx2, cy1, a, bounds[1], bounds[2]); 231 addX1LineSeg(mra, xline, cx2, cy1, b, bounds[1], bounds[2]); 234 addX2LineSeg(mra, xline, cx1, cy1, b, bounds[1], bounds[2]); 237 addY2LineSeg(mra, yline, cx1, cy1, a, bounds[1], bounds[ [all...] |
H A D | JavaShapeRasterizer.java | 40 int[] bounds; field in class:JavaShapeRasterizer 196 bounds = new int[POINT_CAPACITY]; 212 bounds = checkBufSize(bounds, boundCount); 213 bounds[boundCount] = edgesCount; 223 bounds = checkBufSize(bounds, boundCount); 224 bounds[boundCount] = edgesCount; 235 bounds = checkBufSize(bounds, boundCoun [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatch.cpp | 9 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, 48 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, argument 65 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 70 canvas->translate(bounds.fLeft, bounds.fTop); 73 bounds.fRight = SkScalarDiv(bounds.fRight-bounds.fLeft, scale); 74 bounds.fBottom = SkScalarDiv(bounds 94 SkRect bounds; local 110 SkRect bounds; local 123 SkRect bounds; local [all...] |
H A D | NinePatchImpl.cpp | 103 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument 106 if (canvas && canvas->quickReject(bounds, SkCanvas::kBW_EdgeType)) { 113 SkNinePatch::DrawMesh(canvas, bounds, bitmap, 137 SkDEBUGF(("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()))); 144 if (bounds.isEmpty() || 200 SkDebugf("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n", 202 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 26 * actual view bounds. The view whose touch area is changed is called the delegate view. This 28 * instance that specifies the bounds that should be mapped to the delegate and the delegate 86 * @param bounds Bounds in local coordinates of the containing view that should be mapped to 90 public TouchDelegate(Rect bounds, View delegateView) { argument 91 mBounds = bounds; 94 mSlopBounds = new Rect(bounds); 100 * Will forward touch events to the delegate view if the event is within the bounds 115 Rect bounds = mBounds; 117 if (bounds.contains(x, y)) {
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | PictureDrawable.java | 69 Rect bounds = getBounds(); 71 canvas.clipRect(bounds); 72 canvas.translate(bounds.left, bounds.top);
|
H A D | AnimatedRotateDrawable.java | 73 final Rect bounds = drawable.getBounds(); 75 int w = bounds.right - bounds.left; 76 int h = bounds.bottom - bounds.top; 190 protected void onBoundsChange(Rect bounds) { argument 191 mState.mDrawable.setBounds(bounds.left, bounds.top, bounds.right, bounds [all...] |
H A D | RotateDrawable.java | 74 Rect bounds = mState.mDrawable.getBounds(); 76 int w = bounds.right - bounds.left; 77 int h = bounds.bottom - bounds.top; 172 protected void onBoundsChange(Rect bounds) { argument 173 mState.mDrawable.setBounds(bounds.left, bounds.top, 174 bounds.right, bounds [all...] |
H A D | Drawable.java | 110 * Draw in its bounds (set via setBounds) respecting optional effects such 139 public void setBounds(Rect bounds) { argument 140 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 144 * Return a copy of the drawable's bounds in the specified Rect (allocated 145 * by the caller). The bounds specify where this will draw when its draw() 148 * @param bounds Rect to receive the drawable's bounds (allocate 151 copyBounds(Rect bounds) argument 579 onBoundsChange(Rect bounds) argument [all...] |
H A D | ClipDrawable.java | 180 protected void onBoundsChange(Rect bounds) { argument 181 mClipState.mDrawable.setBounds(bounds); 192 final Rect bounds = getBounds(); 194 int w = bounds.width(); 199 int h = bounds.height(); 204 Gravity.apply(mClipState.mGravity, w, h, bounds, r);
|
/frameworks/base/awt/java/awt/ |
H A D | Polygon.java | 77 protected Rectangle bounds; field in class:Polygon 133 // awt.110=Iterator out of bounds 149 // awt.110=Iterator out of bounds 212 bounds = null; 222 bounds = null; 250 if (bounds != null) { 251 bounds.setFrameFromDiagonal(Math.min(bounds.getMinX(), px), Math.min(bounds.getMinY(), 252 py), Math.max(bounds [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 143 protected void onBoundsChange(Rect bounds) { argument 144 super.onBoundsChange(bounds); 148 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument 157 track.setBounds(bounds); 163 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 168 thumbRect.set(bounds.left, bounds.top + offset, 169 bounds.right, bounds.top + offset + length); 171 thumbRect.set(bounds [all...] |
/frameworks/base/awt/org/apache/harmony/awt/gl/image/ |
H A D | BufferedImageGraphics2D.java | 41 private Rectangle bounds = null; field in class:BufferedImageGraphics2D 46 this.bounds = new Rectangle(0, 0, bi.getWidth(), bi.getHeight()); 47 clip(bounds);
|
/frameworks/base/awt/java/awt/im/spi/ |
H A D | InputMethod.java | 53 public void notifyClientWindowChange(Rectangle bounds); argument
|
/frameworks/base/awt/org/apache/harmony/awt/gl/font/ |
H A D | CaretManager.java | 314 * @param useBounds - true if the cared should fit into the provided bounds 315 * @param bounds - bounds for the caret 320 boolean useItalic, boolean useBounds, Rectangle2D bounds 360 y1 = (float) bounds.getMaxY(); 361 y2 = (float) bounds.getMinY(); 363 if (x2 > bounds.getMaxX()) { 364 x1 = x2 = (float) bounds.getMaxX(); 366 if (x1 < bounds.getMinX()) { 367 x1 = x2 = (float) bounds 384 getCaretShapes( int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy, TextLayout layout ) argument 431 getVisualHighlightShape( TextHitInfo hit1, TextHitInfo hit2, Rectangle2D bounds, TextLayout layout ) argument 509 getLogicalHighlightShape( int firstEndpoint, int secondEndpoint, Rectangle2D bounds, TextLayout layout ) argument [all...] |
H A D | TextRunBreaker.java | 276 } catch(IllegalArgumentException e) { // Index out of bounds 613 * Creates the black box bounds shape 616 * @return black box bounds shape 619 GeneralPath bounds = new GeneralPath(); 625 bounds.append(segment.getCharsBlackBoxBounds(idx, secondEndpoint), false); 628 return bounds; 632 * Creates visual bounds shape 633 * @return visual bounds rectangle 636 Rectangle2D bounds = null; 640 if (bounds ! [all...] |
H A D | CommonGlyphVector.java | 211 * Returnes the pixel bounds of this GlyphVector rendered at the 217 * @return a Rectangle that bounds pixels of this GlyphVector 261 * Returns the visual bounds of this GlyphVector. 262 * The visual bounds is the bounds of the total outline of 264 * @return a Rectangle2D that id the visual bounds of this GlyphVector 276 Rectangle2D bounds = this.getGlyphVisualBounds(i).getBounds2D(); 277 if (bounds.getWidth() == 0){ 280 xm = (float)bounds.getX(); 281 ym = (float)bounds [all...] |
/frameworks/base/awt/java/awt/image/ |
H A D | AffineTransformOp.java | 204 Rectangle2D.Float bounds = new Rectangle2D.Float(corners[0], corners[1], 0, 0); 205 bounds.add(corners[2], corners[3]); 206 bounds.add(corners[4], corners[5]); 207 bounds.add(corners[6], corners[7]); 209 return bounds; 505 Rectangle bounds = getBounds2D(src).getBounds().intersection(normDstBounds); 522 int minX = bounds.x + dstBounds.x; 523 int minY = bounds.y + dstBounds.y; 524 int maxX = minX + bounds.width; 525 int maxY = minY + bounds [all...] |
/frameworks/base/awt/org/apache/harmony/awt/wtk/ |
H A D | NativeWindow.java | 60 * Tries to set desired window bounds. It's not gurantied the 70 * Governs the new bounds interpretation. 75 * Returns last notified window bounds. This means the last bounds 79 * @return last notified window bounds 191 * Set desired [top-level] window bounds when being in maximized state. 195 void setMaximizedBounds(Rectangle bounds); argument
|
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 220 final RectF bounds = new RectF(); 221 path.computeBounds(bounds, true); 223 final float sx = (width - 2 * inset) / bounds.width(); 224 final float sy = (height - 2 * inset) / bounds.height(); 228 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f, 229 -bounds.top + (height - bounds.height() * scale) / 2.0f);
|
/frameworks/base/libs/surfaceflinger/ |
H A D | Transform.cpp | 159 Rect Transform::transform(const Rect& bounds) const 163 s.set( SkIntToScalar( bounds.left ), 164 SkIntToScalar( bounds.top ), 165 SkIntToScalar( bounds.right ), 166 SkIntToScalar( bounds.bottom )); 186 out.set(transform(reg.bounds()));
|
H A D | LayerBase.cpp | 628 Rect bounds(dirty.bounds()); 641 bounds.set(Rect(tw, th)); 676 0, bounds.top, t.width, bounds.height(), 678 t.data + bounds.top*t.width*2); 681 0, bounds.top, t.width, bounds.height(), 683 t.data + bounds.top*t.width*2); 686 0, bounds [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path.java | 165 * not null, set rect to the bounds of the path. If the path does not 168 * @param rect If not null, returns the bounds of the path if it specifies 178 * Compute the bounds of the path, and write the answer into bounds. If the 179 * path contains 0 or 1 points, the bounds is set to (0,0,0,0) 181 * @param bounds Returns the computed bounds of the path 182 * @param exact If true, return the exact (but slower) bounds, else return 183 * just the bounds of all control points 185 public void computeBounds(RectF bounds, boolea argument [all...] |