/frameworks/base/core/jni/android/graphics/ |
D | NinePatch.cpp | 30 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, 68 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, in draw() argument 86 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), in draw() 87 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom)); in draw() 88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw() 93 canvas->translate(bounds.fLeft, bounds.fTop); in draw() 96 bounds.fRight = SkScalarDiv(bounds.fRight-bounds.fLeft, scale); in draw() 97 bounds.fBottom = SkScalarDiv(bounds.fBottom-bounds.fTop, scale); in draw() 98 bounds.fLeft = bounds.fTop = 0; in draw() 101 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), in draw() [all …]
|
D | NinePatchImpl.cpp | 105 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, in NinePatch_Draw() argument 108 if (canvas && canvas->quickReject(bounds, SkCanvas::kBW_EdgeType)) { in NinePatch_Draw() 122 SkNinePatch::DrawMesh(canvas, bounds, bitmap, in NinePatch_Draw() 146 …V("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.h… in NinePatch_Draw() 153 if (bounds.isEmpty() || in NinePatch_Draw() 206 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), in NinePatch_Draw() 207 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()), in NinePatch_Draw() 212 dst.fTop = bounds.fTop; in NinePatch_Draw() 233 dst.fLeft = bounds.fLeft; in NinePatch_Draw() 236 dst.fBottom = bounds.fBottom; in NinePatch_Draw() [all …]
|
D | HarfbuzzSkia.cpp | 150 SkRect bounds; in getGlyphMetrics() local 151 paint->getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); in getGlyphMetrics() 153 metrics->x = SkScalarToHBFixed(bounds.fLeft); in getGlyphMetrics() 154 metrics->y = SkScalarToHBFixed(bounds.fTop); in getGlyphMetrics() 155 metrics->width = SkScalarToHBFixed(bounds.width()); in getGlyphMetrics() 156 metrics->height = SkScalarToHBFixed(bounds.height()); in getGlyphMetrics()
|
/frameworks/base/core/java/android/widget/ |
D | ScrollBarDrawable.java | 142 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 143 super.onBoundsChange(bounds); in onBoundsChange() 147 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { in drawTrack() argument 156 track.setBounds(bounds); in drawTrack() 162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { in drawThumb() argument 167 thumbRect.set(bounds.left, bounds.top + offset, in drawThumb() 168 bounds.right, bounds.top + offset + length); in drawThumb() 170 thumbRect.set(bounds.left + offset, bounds.top, in drawThumb() 171 bounds.left + offset + length, bounds.bottom); in drawThumb()
|
D | ListView.java | 3098 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { 3102 canvas.clipRect(bounds); 3104 final int span = bounds.bottom - bounds.top; 3106 bounds.top = bounds.bottom - height; 3109 drawable.setBounds(bounds); 3115 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { 3119 canvas.clipRect(bounds); 3121 final int span = bounds.bottom - bounds.top; 3123 bounds.bottom = bounds.top + height; 3126 drawable.setBounds(bounds); [all …]
|
/frameworks/base/libs/hwui/ |
D | PathCache.cpp | 31 const SkRect& bounds = path->getBounds(); in computePathBounds() local 32 computeBounds(bounds, paint, left, top, offset, width, height); in computePathBounds() 35 void computeBounds(const SkRect& bounds, const SkPaint* paint, in computeBounds() argument 37 const float pathWidth = fmax(bounds.width(), 1.0f); in computeBounds() 38 const float pathHeight = fmax(bounds.height(), 1.0f); in computeBounds() 40 left = bounds.fLeft; in computeBounds() 41 top = bounds.fTop; in computeBounds()
|
D | OpenGLRenderer.cpp | 692 Rect bounds(left, top, right, bottom); in createLayer() local 693 Rect untransformedBounds(bounds); in createLayer() 694 mSnapshot->transform->mapRect(bounds); in createLayer() 697 if (bounds.intersect(*mSnapshot->clipRect)) { in createLayer() 699 bounds.snapToPixelBoundaries(); in createLayer() 704 if (!bounds.intersect(mSnapshot->previous->viewport)) { in createLayer() 705 bounds.setEmpty(); in createLayer() 707 clip.set(bounds); in createLayer() 714 bounds.set(untransformedBounds); in createLayer() 720 bounds.setEmpty(); in createLayer() [all …]
|
D | FontRenderer.cpp | 505 Rect bounds; in renderDropShadow() local 506 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); in renderDropShadow() 508 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * radius; in renderDropShadow() 509 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * radius; in renderDropShadow() 516 int penX = radius - bounds.left; in renderDropShadow() 517 int penY = radius - bounds.bottom; in renderDropShadow() 533 void FontRenderer::initRender(const Rect* clip, Rect* bounds) { in initRender() argument 537 mBounds = bounds; in initRender() 571 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, Rect* bounds) { in renderText() argument 577 initRender(clip, bounds); in renderText() [all …]
|
D | Layer.h | 58 const android::Rect& bounds = region.getBounds(); in setRegionAsRect() local 59 regionRect.set(bounds.leftTop().x, bounds.leftTop().y, in setRegionAsRect() 60 bounds.rightBottom().x, bounds.rightBottom().y); in setRegionAsRect()
|
D | Snapshot.cpp | 95 const SkIRect& bounds = clipRegion->getBounds(); in copyClipRectFromRegion() local 96 clipRect->set(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in copyClipRectFromRegion()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RotateDrawable.java | 76 Rect bounds = mState.mDrawable.getBounds(); in draw() local 78 int w = bounds.right - bounds.left; in draw() 79 int h = bounds.bottom - bounds.top; in draw() 86 canvas.rotate(st.mCurrentDegrees, px + bounds.left, py + bounds.top); in draw() 177 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 178 mState.mDrawable.setBounds(bounds.left, bounds.top, in onBoundsChange() 179 bounds.right, bounds.bottom); in onBoundsChange()
|
D | AnimatedRotateDrawable.java | 74 final Rect bounds = drawable.getBounds(); in draw() local 76 int w = bounds.right - bounds.left; in draw() 77 int h = bounds.bottom - bounds.top; in draw() 82 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top); in draw() 197 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 198 mState.mDrawable.setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); in onBoundsChange()
|
D | PictureDrawable.java | 69 Rect bounds = getBounds(); in draw() local 71 canvas.clipRect(bounds); in draw() 72 canvas.translate(bounds.left, bounds.top); in draw()
|
D | MipmapDrawable.java | 121 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 122 final int index = mMipmapContainerState.indexForBounds(bounds); in onBoundsChange() 127 super.onBoundsChange(bounds); in onBoundsChange() 216 public int indexForBounds(Rect bounds) { in indexForBounds() argument 217 final int boundsHeight = bounds.height(); in indexForBounds()
|
D | ClipDrawable.java | 188 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument 189 mClipState.mDrawable.setBounds(bounds); in onBoundsChange() 200 final Rect bounds = getBounds(); in draw() local 202 int w = bounds.width(); in draw() 207 int h = bounds.height(); in draw() 213 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection); in draw()
|
/frameworks/base/core/java/android/view/ |
D | TouchDelegate.java | 90 public TouchDelegate(Rect bounds, View delegateView) { in TouchDelegate() argument 91 mBounds = bounds; in TouchDelegate() 94 mSlopBounds = new Rect(bounds); in TouchDelegate() 115 Rect bounds = mBounds; in onTouchEvent() local 117 if (bounds.contains(x, y)) { in onTouchEvent()
|
/frameworks/native/libs/ui/ |
D | GraphicBufferMapper.cpp | 74 int usage, const Rect& bounds, void** vaddr) in lock() argument 80 bounds.left, bounds.top, bounds.width(), bounds.height(), in lock()
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 63 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { in measureCachedGlyph() argument 70 if (bounds->bottom > nPenY) { in measureCachedGlyph() 71 bounds->bottom = nPenY; in measureCachedGlyph() 73 if (bounds->left > nPenX) { in measureCachedGlyph() 74 bounds->left = nPenX; in measureCachedGlyph() 76 if (bounds->right < nPenX + width) { in measureCachedGlyph() 77 bounds->right = nPenX + width; in measureCachedGlyph() 79 if (bounds->top < nPenY + height) { in measureCachedGlyph() 80 bounds->top = nPenY + height; in measureCachedGlyph() 85 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { in drawCachedGlyph() argument [all …]
|
D | Font.h | 86 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 89 int numGlyphs, Rect *bounds, const float* positions); 105 Rect* bounds, const float* pos); 108 Rect* bounds, const float* pos); 111 Rect* bounds, const float* pos);
|
/frameworks/native/services/surfaceflinger/ |
D | Transform.cpp | 206 Rect Transform::transform(const Rect& bounds) const in transform() 209 vec2 lt( bounds.left, bounds.top ); in transform() 210 vec2 rt( bounds.right, bounds.top ); in transform() 211 vec2 lb( bounds.left, bounds.bottom ); in transform() 212 vec2 rb( bounds.right, bounds.bottom ); in transform() 238 out.set(transform(reg.bounds())); in transform()
|
/frameworks/rs/ |
D | rsFont.cpp | 137 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { in measureCachedGlyph() argument 145 if (bounds->bottom < nPenY) { in measureCachedGlyph() 146 bounds->bottom = nPenY; in measureCachedGlyph() 148 if (bounds->left > nPenX) { in measureCachedGlyph() 149 bounds->left = nPenX; in measureCachedGlyph() 151 if (bounds->right < nPenX + width) { in measureCachedGlyph() 152 bounds->right = nPenX + width; in measureCachedGlyph() 154 if (bounds->top > nPenY - height) { in measureCachedGlyph() 155 bounds->top = nPenY - height; in measureCachedGlyph() 161 RenderMode mode, Rect *bounds, in renderUTF() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_view_GLES20Canvas.cpp | 181 android::uirenderer::Rect bounds; in android_view_GLES20Canvas_invokeFunctors() local 182 status_t status = renderer->invokeFunctors(bounds); in android_view_GLES20Canvas_invokeFunctors() 185 int(bounds.left), int(bounds.top), int(bounds.right), int(bounds.bottom)); in android_view_GLES20Canvas_invokeFunctors() 238 const android::uirenderer::Rect& bounds(renderer->getClipBounds()); in android_view_GLES20Canvas_saveLayerClip() local 239 return renderer->saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, in android_view_GLES20Canvas_saveLayerClip() 251 const android::uirenderer::Rect& bounds(renderer->getClipBounds()); in android_view_GLES20Canvas_saveLayerAlphaClip() local 252 return renderer->saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, in android_view_GLES20Canvas_saveLayerAlphaClip() 280 const android::uirenderer::Rect& bounds(renderer->getClipBounds()); in android_view_GLES20Canvas_getClipBounds() local 283 int(bounds.left), int(bounds.top), int(bounds.right), int(bounds.bottom)); in android_view_GLES20Canvas_getClipBounds() 285 return !bounds.isEmpty(); in android_view_GLES20Canvas_getClipBounds() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | Gesture.java | 235 final RectF bounds = new RectF(); in toBitmap() local 236 path.computeBounds(bounds, true); in toBitmap() 238 final float sx = (width - 2 * inset) / bounds.width(); in toBitmap() 239 final float sy = (height - 2 * inset) / bounds.height(); in toBitmap() 243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f, in toBitmap() 244 -bounds.top + (height - bounds.height() * scale) / 2.0f); in toBitmap()
|
/frameworks/base/docs/html/training/animation/ |
D | zoom.jd | 104 screen. To achieve the "zoom" animation, this view's bounds are animated 105 from the bounds of the thumbnail button above, to its final laid-out 106 bounds. 165 … when appropriate. In general, you need to animate from the bounds of the normal-sized view to the 166 …bounds of the larger-sized view. The following method shows you how to implement a zoom animation … 176 <li>Calculate the starting and ending bounds for the {@link android.widget.ImageView}. 181 simultaneously, from the starting bounds to the ending bounds. These four animations are 205 // Calculate the starting and ending bounds for the zoomed-in image. 211 // The start bounds are the global visible rectangle of the thumbnail, 212 // and the final bounds are the global visible rectangle of the container [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DelegateViewHelper.java | 116 RectF bounds = new RectF(); 123 bounds.set(p[0], p[1], p[0] + view.getWidth(), p[1] + view.getHeight()); 125 bounds.union(p[0], p[1], p[0] + view.getWidth(), p[1] + view.getHeight()); 128 mInitialTouch.set(bounds);
|