Searched refs:bounds (Results 1 - 25 of 79) sorted by relevance

1234

/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp30 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 DNinePatchImpl.cpp105 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 LOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()));
153 if (bounds.isEmpty() ||
204 LOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
206 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds
[all...]
H A DHarfbuzzSkia.cpp169 SkRect bounds; local
170 paint.getTextWidths(&glyph16, sizeof(glyph16), &width, &bounds);
172 metrics->x = SkScalarToHBFixed(bounds.fLeft);
173 metrics->y = SkScalarToHBFixed(bounds.fTop);
174 metrics->width = SkScalarToHBFixed(bounds.width());
175 metrics->height = SkScalarToHBFixed(bounds.height());
/frameworks/base/core/java/android/view/
H A DTouchDelegate.java26 * 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/libs/ui/
H A DGraphicBufferMapper.cpp70 int usage, const Rect& bounds, void** vaddr)
75 bounds.left, bounds.top, bounds.width(), bounds.height(),
69 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java69 Rect bounds = getBounds();
71 canvas.clipRect(bounds);
72 canvas.translate(bounds.left, bounds.top);
H A DAnimatedRotateDrawable.java74 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 DRotateDrawable.java76 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 DMipmapDrawable.java34 * 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 DClipDrawable.java189 protected void onBoundsChange(Rect bounds) { argument
190 mClipState.mDrawable.setBounds(bounds);
201 final Rect bounds = getBounds();
203 int w = bounds.width();
208 int h = bounds.height();
214 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection);
H A DDrawable.java127 * Draw in its bounds (set via setBounds) respecting optional effects such
156 public void setBounds(Rect bounds) { argument
157 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
161 * Return a copy of the drawable's bounds in the specified Rect (allocated
162 * by the caller). The bounds specify where this will draw when its draw()
165 * @param bounds Rect to receive the drawable's bounds (allocate
168 copyBounds(Rect bounds) argument
653 onBoundsChange(Rect bounds) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java142 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 DTabWidget.java344 final Rect bounds = mBounds;
345 bounds.left = selectedChild.getLeft();
346 bounds.right = selectedChild.getRight();
348 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()),
349 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight);
350 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(),
351 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
H A DListView.java3033 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument
3037 canvas.clipRect(bounds);
3039 final int span = bounds.bottom - bounds.top;
3041 bounds.top = bounds.bottom - height;
3044 drawable.setBounds(bounds);
3050 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument
3054 canvas.clipRect(bounds);
3056 final int span = bounds
3239 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument
[all...]
/frameworks/base/libs/hwui/
H A DLayer.h66 const android::Rect& bounds = region.getBounds(); local
67 regionRect.set(bounds.leftTop().x, bounds.leftTop().y,
68 bounds.rightBottom().x, bounds.rightBottom().y);
H A DFontRenderer.cpp74 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, Rect *bounds) { argument
81 if (bounds->bottom > nPenY) {
82 bounds->bottom = nPenY;
84 if (bounds->left > nPenX) {
85 bounds->left = nPenX;
87 if (bounds->right < nPenX + width) {
88 bounds->right = nPenX + width;
90 if (bounds->top < nPenY + height) {
91 bounds->top = nPenY + height;
169 int numGlyphs, Rect *bounds) {
168 measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds) argument
180 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) argument
729 Rect bounds; local
756 renderText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, Rect* bounds) argument
[all...]
H A DOpenGLRenderer.cpp366 * layer is created and a shape intersecting the bounds of the layers and the
386 * frame buffer contained within the layer's bounds is copied into this texture
422 Rect bounds(left, top, right, bottom);
424 mSnapshot->transform->mapRect(bounds);
426 // Layers only make sense if they are in the framebuffer's bounds
427 if (bounds.intersect(*snapshot->clipRect)) {
429 bounds.snapToPixelBoundaries();
432 // need to make sure the layer does not extend outside the bounds
434 if (!bounds.intersect(snapshot->previous->viewport)) {
435 bounds
494 createFboLayer(Layer* layer, Rect& bounds, sp<Snapshot> snapshot, GLuint previousFbo) argument
859 dirtyLayerUnchecked(Rect& bounds, Region* region) argument
889 Rect* bounds = mLayers.itemAt(i); local
1557 const Rect& bounds = mesh->quads.itemAt(i); local
[all...]
/frameworks/base/services/surfaceflinger/
H A DTransform.cpp207 Rect Transform::transform(const Rect& bounds) const
210 vec2 lt( bounds.left, bounds.top );
211 vec2 rt( bounds.right, bounds.top );
212 vec2 lb( bounds.left, bounds.bottom );
213 vec2 rb( bounds.right, bounds.bottom );
239 out.set(transform(reg.bounds()));
[all...]
/frameworks/base/include/ui/
H A DGraphicBufferMapper.h46 int usage, const Rect& bounds, void** vaddr);
/frameworks/base/core/java/android/gesture/
H A DGesture.java235 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/java/android/view/accessibility/
H A DAccessibilityInteractionClient.java447 * Applies compatibility scale to the info bounds if it is not equal to one.
449 * @param info The info whose bounds to scale.
456 Rect bounds = mTempBounds;
457 info.getBoundsInParent(bounds);
458 bounds.scale(scale);
459 info.setBoundsInParent(bounds);
461 info.getBoundsInScreen(bounds);
462 bounds.scale(scale);
463 info.setBoundsInScreen(bounds);
/frameworks/base/libs/rs/
H A DrsFont.cpp136 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { argument
144 if (bounds->bottom < nPenY) {
145 bounds->bottom = nPenY;
147 if (bounds->left > nPenX) {
148 bounds->left = nPenX;
150 if (bounds->right < nPenX + width) {
151 bounds->right = nPenX + width;
153 if (bounds->top > nPenY - height) {
154 bounds->top = nPenY - height;
160 RenderMode mode, Rect *bounds,
158 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
725 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
758 measureText(const char *text, uint32_t len, Font::Rect *bounds) argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompat.java49 public void setBoundsInParent(Object info, Rect bounds); argument
51 public void setBoundsInScreen(Object info, Rect bounds); argument
196 public void setBoundsInParent(Object info, Rect bounds) { argument
200 public void setBoundsInScreen(Object info, Rect bounds) { argument
415 public void setBoundsInParent(Object info, Rect bounds) { argument
416 AccessibilityNodeInfoCompatIcs.setBoundsInParent(info, bounds);
420 public void setBoundsInScreen(Object info, Rect bounds) { argument
421 AccessibilityNodeInfoCompatIcs.setBoundsInScreen(info, bounds);
748 * Gets the node bounds in parent coordinates.
750 * @param outBounds The output node bounds
767 setBoundsInParent(Rect bounds) argument
791 setBoundsInScreen(Rect bounds) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java336 Rectangle bounds = region.mArea.getBounds();
337 if (bounds.isEmpty()) {
342 rect.left = bounds.x;
343 rect.top = bounds.y;
344 rect.right = bounds.x + bounds.width;
345 rect.bottom = bounds.y + bounds.height;
/frameworks/media/libvideoeditor/lvpp/
H A DPreviewRenderer.cpp109 Rect bounds(mWidth, mHeight);
114 bounds, &dst));

Completed in 3799 milliseconds

1234