/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatch.cpp | 30 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, 68 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, argument 86 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), 87 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom)); 88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 93 canvas->translate(bounds.fLeft, bounds.fTop); 96 bounds 122 SkRect bounds; local 138 SkRect bounds; local 151 SkRect bounds; local [all...] |
H A D | NinePatchImpl.cpp | 105 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument 108 if (canvas && canvas->quickReject(bounds, SkCanvas::kBW_EdgeType)) { 122 SkNinePatch::DrawMesh(canvas, bounds, bitmap, 146 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height())); 153 if (bounds.isEmpty() || 204 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n", 206 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds [all...] |
H A D | HarfbuzzSkia.cpp | 150 SkRect bounds; local 151 paint->getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds); 153 metrics->x = SkScalarToHBFixed(bounds.fLeft); 154 metrics->y = SkScalarToHBFixed(bounds.fTop); 155 metrics->width = SkScalarToHBFixed(bounds.width()); 156 metrics->height = SkScalarToHBFixed(bounds.height());
|
/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 | 74 final Rect bounds = drawable.getBounds(); 76 int w = bounds.right - bounds.left; 77 int h = bounds.bottom - bounds.top; 82 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top); 197 protected void onBoundsChange(Rect bounds) { argument 198 mState.mDrawable.setBounds(bounds.left, bounds [all...] |
H A D | RotateDrawable.java | 76 Rect bounds = mState.mDrawable.getBounds(); 78 int w = bounds.right - bounds.left; 79 int h = bounds.bottom - bounds.top; 86 canvas.rotate(st.mCurrentDegrees, px + bounds.left, py + bounds.top); 177 protected void onBoundsChange(Rect bounds) { argument 178 mState.mDrawable.setBounds(bounds.left, bounds [all...] |
H A D | MipmapDrawable.java | 34 * size matches the most closely the drawing bounds. Providing several pre-scaled version of the 41 * the bounds' height. This selection ensures that the best available mipmap level is scaled down to 45 * If the bounds' height is larger than the largest mipmap, the largest mipmap will be scaled up. 79 * bounds' height is lower or equal than 8 pixels. The second drawable will then be used up to a 94 * this MipmapDrawable is drawn is determined from its bounds. 121 protected void onBoundsChange(Rect bounds) { argument 122 final int index = mMipmapContainerState.indexForBounds(bounds); 127 super.onBoundsChange(bounds); 206 * Returns the index of the child mipmap drawable that will best fit the provided bounds. 207 * This index is determined by comparing bounds' heigh 216 indexForBounds(Rect bounds) argument [all...] |
H A D | ClipDrawable.java | 188 protected void onBoundsChange(Rect bounds) { argument 189 mClipState.mDrawable.setBounds(bounds); 200 final Rect bounds = getBounds(); 202 int w = bounds.width(); 207 int h = bounds.height(); 213 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection);
|
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 31 const SkRect& bounds = path->getBounds(); local 32 computeBounds(bounds, paint, left, top, offset, width, height); 35 void computeBounds(const SkRect& bounds, const SkPaint* paint, argument 37 const float pathWidth = fmax(bounds.width(), 1.0f); 38 const float pathHeight = fmax(bounds.height(), 1.0f); 40 left = bounds.fLeft; 41 top = bounds.fTop;
|
H A D | ShapeCache.cpp | 108 SkRect bounds; local 109 bounds.set(0.0f, 0.0f, width, height); 113 computeBounds(bounds, paint, left, top, offset, rectWidth, rectHeight); 127 canvas.drawRect(bounds, pathPaint);
|
H A D | OpenGLRenderer.cpp | 638 * layer is created and a shape intersecting the bounds of the layers and the 658 * frame buffer contained within the layer's bounds is copied into this texture 694 Rect bounds(left, top, right, bottom); 695 Rect untransformedBounds(bounds); 696 mSnapshot->transform->mapRect(bounds); 698 // Layers only make sense if they are in the framebuffer's bounds 699 if (bounds.intersect(*mSnapshot->clipRect)) { 701 bounds.snapToPixelBoundaries(); 704 // need to make sure the layer does not extend outside the bounds 706 if (!bounds 780 createFboLayer(Layer* layer, Rect& bounds, Rect& clip, GLuint previousFbo) argument 1105 dirtyLayerUnchecked(Rect& bounds, Region* region) argument 1133 Rect* bounds = mLayers.itemAt(i); local 1900 const Rect& bounds = mesh->quads.itemAt(i); local 1985 SkRect bounds = PathRenderer::computePathBounds(path, paint); local [all...] |
H A D | Layer.h | 58 const android::Rect& bounds = region.getBounds(); local 59 regionRect.set(bounds.leftTop().x, bounds.leftTop().y, 60 bounds.rightBottom().x, bounds.rightBottom().y);
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 74 int usage, const Rect& bounds, void** vaddr) 80 bounds.left, bounds.top, bounds.width(), bounds.height(), 73 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 142 protected void onBoundsChange(Rect bounds) { argument 143 super.onBoundsChange(bounds); 147 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument 156 track.setBounds(bounds); 162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 167 thumbRect.set(bounds.left, bounds.top + offset, 168 bounds.right, bounds.top + offset + length); 170 thumbRect.set(bounds [all...] |
H A D | TabWidget.java | 342 final Rect bounds = mBounds; 343 bounds.left = selectedChild.getLeft(); 344 bounds.right = selectedChild.getRight(); 346 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()), 347 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight); 348 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(), 349 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A 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);
|
/frameworks/base/libs/hwui/font/ |
H A 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);
|
H A D | Font.cpp | 63 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 70 if (bounds->bottom > nPenY) { 71 bounds->bottom = nPenY; 73 if (bounds->left > nPenX) { 74 bounds->left = nPenX; 76 if (bounds->right < nPenX + width) { 77 bounds->right = nPenX + width; 79 if (bounds->top < nPenY + height) { 80 bounds->top = nPenY + height; 85 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, cons 62 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 84 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 103 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 253 measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds, const float* positions) argument 284 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Transform.cpp | 206 Rect Transform::transform(const Rect& bounds) const 209 vec2 lt( bounds.left, bounds.top ); 210 vec2 rt( bounds.right, bounds.top ); 211 vec2 lb( bounds.left, bounds.bottom ); 212 vec2 rb( bounds.right, bounds.bottom ); 238 out.set(transform(reg.bounds())); [all...] |
/frameworks/native/include/ui/ |
H A D | GraphicBufferMapper.h | 46 int usage, const Rect& bounds, void** vaddr);
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | PreviewRenderer.cpp | 108 Rect bounds(mWidth, mHeight); 113 bounds, &dst));
|
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 235 final RectF bounds = new RectF(); 236 path.computeBounds(bounds, true); 238 final float sx = (width - 2 * inset) / bounds.width(); 239 final float sy = (height - 2 * inset) / bounds.height(); 243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f, 244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
|
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 181 android::uirenderer::Rect bounds; local 182 status_t status = renderer->invokeFunctors(bounds); 185 int(bounds.left), int(bounds.top), int(bounds.right), int(bounds.bottom)); 238 const android::uirenderer::Rect& bounds(renderer->getClipBounds()); 239 return renderer->saveLayer(bounds.left, bounds.top, bounds 708 android::uirenderer::Rect bounds; local [all...] |
/frameworks/rs/ |
H A D | rsFont.cpp | 137 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { argument 145 if (bounds->bottom < nPenY) { 146 bounds->bottom = nPenY; 148 if (bounds->left > nPenX) { 149 bounds->left = nPenX; 151 if (bounds->right < nPenX + width) { 152 bounds->right = nPenX + width; 154 if (bounds->top > nPenY - height) { 155 bounds->top = nPenY - height; 161 RenderMode mode, Rect *bounds, 159 renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t start, int32_t numGlyphs, RenderMode mode, Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 745 renderText(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t startIndex, int32_t numGlyphs, Font::RenderMode mode, Font::Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 782 measureText(const char *text, uint32_t len, Font::Rect *bounds) argument [all...] |