Searched defs:bounds (Results 51 - 75 of 101) sorted by relevance

12345

/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java106 Rect bounds = mOpts.placeholder.getBounds();
107 if (bounds.width() != 0) {
108 placeholderWidth = bounds.width();
112 if (bounds.height() != 0) {
113 placeholderHeight = bounds.height();
254 final Rect bounds = getBounds();
255 if (bounds.isEmpty()) {
302 protected void onBoundsChange(Rect bounds) { argument
303 super.onBoundsChange(bounds);
304 if (mPlaceholder != null) mPlaceholder.setBounds(bounds);
[all...]
/frameworks/base/core/java/android/widget/
H A DExpandableListView.java175 * indicator bounds
416 // the left & right bounds
523 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument
536 divider.setBounds(bounds);
545 super.drawDivider(canvas, bounds, flatListPosition);
1164 * Sets the drawing bounds for the child indicator. For either, you can
1166 * indicator's bounds.
1169 * @param left The left position (relative to the left bounds of this View)
1171 * @param right The right position (relative to the left bounds of this
1181 * Sets the relative drawing bounds fo
[all...]
H A DFastScroller.java562 final Rect bounds = mTempBounds;
563 measurePreview(mPrimaryText, bounds);
564 applyLayout(mPrimaryText, bounds);
565 measurePreview(mSecondaryText, bounds);
566 applyLayout(mSecondaryText, bounds);
570 bounds.left -= mPreviewImage.getPaddingLeft();
571 bounds.top -= mPreviewImage.getPaddingTop();
572 bounds.right += mPreviewImage.getPaddingRight();
573 bounds.bottom += mPreviewImage.getPaddingBottom();
574 applyLayout(mPreviewImage, bounds);
587 applyLayout(View view, Rect bounds) argument
1618 animateBounds(View v, Rect bounds) argument
[all...]
H A DListView.java3192 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument
3196 canvas.clipRect(bounds);
3198 final int span = bounds.bottom - bounds.top;
3200 bounds.top = bounds.bottom - height;
3203 drawable.setBounds(bounds);
3209 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument
3213 canvas.clipRect(bounds);
3215 final int span = bounds
3412 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument
[all...]
H A DRadialTimePickerView.java1535 private void getBoundsForVirtualView(int virtualViewId, Rect bounds) { argument
1567 bounds.set((int) (xCenter - radius), (int) (yCenter - radius),
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp106 const SkRect& bounds = obj->getBounds(); local
107 GraphicsJNI::rect_to_jrectf(bounds, env, jbounds);
H A DPaint.cpp900 static void doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, argument
914 GraphicsJNI::irect_to_jrect(ir, env, bounds);
918 jstring text, jint start, jint end, jint bidiFlags, jobject bounds) {
922 doTextBounds(env, textArray + start, end - start, bounds, *paint, typeface, bidiFlags);
927 jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) {
931 doTextBounds(env, textArray + index, count, bounds, *paint, typeface, bidiFlags);
917 getStringBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jstring text, jint start, jint end, jint bidiFlags, jobject bounds) argument
926 getCharArrayBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) argument
H A DSkiaCanvas.cpp290 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
291 int count = mCanvas->saveLayer(&bounds, paint, flags | SkCanvas::kMatrixClip_SaveFlag);
298 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
299 int count = mCanvas->saveLayerAlpha(&bounds, alpha, flags | SkCanvas::kMatrixClip_SaveFlag);
406 // if we can't invert the CTM, we can't return local clip bounds
422 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
423 return mCanvas->quickReject(bounds);
/frameworks/base/graphics/java/android/graphics/
H A DPath.java273 * not null, set rect to the bounds of the path. If the path does not
276 * @param rect If not null, returns the bounds of the path if it specifies
285 * Compute the bounds of the control points of the path, and write the
286 * answer into bounds. If the path contains 0 or 1 points, the bounds is
289 * @param bounds Returns the computed bounds of the path's control points.
293 public void computeBounds(RectF bounds, boolean exact) { argument
294 native_computeBounds(mNativePath, bounds);
430 * @param oval The bounds o
790 native_computeBounds(long nPath, RectF bounds) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java274 /** Get the gravity used to position/stretch the bitmap within its bounds.
282 /** Set the gravity used to position/stretch the bitmap within its bounds.
468 protected void onBoundsChange(Rect bounds) { argument
474 updateMirrorMatrix(bounds.right - bounds.left);
572 final Rect bounds = getBounds();
575 bounds, mDstRect, layoutDirection);
577 final int left = mDstRect.left - bounds.left;
578 final int top = mDstRect.top - bounds.top;
579 final int right = bounds
[all...]
H A DDrawable.java141 * Draw in its bounds (set via setBounds) respecting optional effects such
162 // first invalidate the previous bounds
174 public void setBounds(Rect bounds) { argument
175 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
179 * Return a copy of the drawable's bounds in the specified Rect (allocated
180 * by the caller). The bounds specify where this will draw when its draw()
183 * @param bounds Rec
186 copyBounds(Rect bounds) argument
817 onBoundsChange(Rect bounds) argument
[all...]
H A DLayerDrawable.java429 final Rect bounds = childDrawable.mDrawable.getBounds();
430 drawable.setBounds(bounds);
467 * Specifies how layer padding should affect the bounds of subsequent
793 protected void onBoundsChange(Rect bounds) { argument
804 r.mDrawable.setBounds(bounds.left + r.mInsetL + padL, bounds.top + r.mInsetT + padT,
805 bounds.right - r.mInsetR - padR, bounds.bottom - r.mInsetB - padB);
H A DRippleDrawable.java86 * may extend outside of the Drawable bounds.
113 /** Current ripple effect bounds, used to constrain ripple effects. */
116 /** Current drawing bounds, used to compute dirty region. */
119 /** Current dirty bounds, union of current and previous drawing bounds. */
165 /** Whether bounds are being overridden. */
307 protected void onBoundsChange(Rect bounds) { argument
308 super.onBoundsChange(bounds);
311 mHotspotBounds.set(bounds);
390 * Specifies how layer padding should affect the bounds o
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp397 float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) {
415 x, y, positions, outlinePaint, totalAdvance, bounds)); // bounds?
422 x, y, positions, innerPaint, totalAdvance, bounds));
428 x, y, positions, paint, totalAdvance, bounds);
395 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
H A DFontRenderer.cpp613 Rect bounds; local
614 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions);
617 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * intRadius;
618 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * intRadius;
639 int penX = intRadius - bounds.left;
640 int penY = intRadius - bounds.bottom;
642 if ((bounds.right > bounds
664 initRender(const Rect* clip, Rect* bounds, Functor* functor) argument
690 renderPosText(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, Functor* functor, bool forceFinish) argument
708 renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, Functor* functor) argument
[all...]
H A DOpenGLRenderer.h163 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint);
194 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds,
211 * additionally map the state's bounds from local to window coordinates.
389 bool quickRejectSetupScissor(const Rect& bounds, const SkPaint* paint = NULL) { argument
390 return quickRejectSetupScissor(bounds.left, bounds.top,
391 bounds.right, bounds.bottom, paint);
406 * Marks the specified region as dirty at the specified bounds.
408 void dirtyLayerUnchecked(Rect& bounds, Regio
[all...]
H A DRenderNode.cpp305 // changes in isRenderable or, in the future, bounds
418 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer
453 Rect bounds; local
454 mProperties.getRevealClip().getBounds(&bounds);
455 renderer.setClippingRoundRect(handler.allocator(), bounds, mProperties.getRevealClip().getRadius());
832 * passing actual drawing/dirtying bounds of projected content down to native.
/frameworks/base/services/core/java/com/android/server/wm/
H A DAccessibilityController.java527 Region bounds = Region.obtain();
528 bounds.set(magnifiedBounds);
530 bounds).sendToTarget();
702 public void setBounds(Region bounds) { argument
704 if (mBounds.equals(bounds)) {
707 mBounds.set(bounds);
710 Slog.i(LOG_TAG, "ViewportWindow set bounds: " + bounds);
857 Region bounds = (Region) message.obj;
858 mCallbacks.onMagnifedBoundsChanged(bounds);
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java202 /*package*/ static void native_computeBounds(long nPath, RectF bounds) { argument
208 pathDelegate.fillBounds(bounds);
565 * Fills the given {@link RectF} with the path bounds.
566 * @param bounds the RectF to be filled.
568 private void fillBounds(RectF bounds) { argument
570 bounds.left = (float)rect.getMinX();
571 bounds.right = (float)rect.getMaxX();
572 bounds.top = (float)rect.getMinY();
573 bounds.bottom = (float)rect.getMaxY();
/frameworks/rs/
H A DrsFont.cpp139 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { argument
147 if (bounds->bottom < nPenY) {
148 bounds->bottom = nPenY;
150 if (bounds->left > nPenX) {
151 bounds->left = nPenX;
153 if (bounds->right < nPenX + width) {
154 bounds->right = nPenX + width;
156 if (bounds->top > nPenY - height) {
157 bounds->top = nPenY - height;
163 RenderMode mode, Rect *bounds,
161 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
749 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
787 measureText(const char *text, uint32_t len, Font::Rect *bounds) argument
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java219 final Rect bounds = getBounds();
221 c.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY());
222 mRing.draw(c, bounds);
457 public void draw(Canvas c, Rect bounds) { argument
459 arcBounds.set(bounds);
469 drawTriangle(c, startAngle, sweepAngle, bounds);
474 c.drawCircle(bounds.exactCenterX(), bounds.exactCenterY(), bounds
479 drawTriangle(Canvas c, float startAngle, float sweepAngle, Rect bounds) argument
[all...]
/frameworks/base/core/java/android/text/
H A DLayout.java466 * Return the start position of the line, given the left and right bounds
470 * @param left the left bounds (0, or leading margin if ltr para)
471 * @param right the right bounds (width, minus leading margin if rtl para)
609 * If bounds is not null, return the top, left, right, bottom extents
612 * @param bounds Optional. If not null, it returns the extent of the line
615 public int getLineBounds(int line, Rect bounds) { argument
616 if (bounds != null) {
617 bounds.left = 0; // ???
618 bounds.top = getLineTop(line);
619 bounds
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java347 public boolean getClipBounds(Rect bounds) { argument
348 return nGetClipBounds(mRenderer, bounds);
351 private static native boolean nGetClipBounds(long renderer, Rect bounds); argument
445 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument
446 if (bounds != null) {
447 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags);
470 public int saveLayerAlpha(RectF bounds, in argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp139 static jboolean getClipBounds(JNIEnv* env, jobject, jlong canvasHandle, jobject bounds) { argument
149 (void)GraphicsJNI::irect_to_jrect(ir, env, bounds);
414 const SkPaint& paint, float x, float y, MinikinRect& bounds)
416 x(x), y(y), bounds(bounds) { }
435 bounds.mLeft , bounds.mTop , bounds.mRight , bounds.mBottom);
445 MinikinRect& bounds; member in class:android::CanvasJNI::DrawTextFunctor
413 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, const SkPaint& paint, float x, float y, MinikinRect& bounds) argument
495 MinikinRect bounds; local
[all...]
H A Dandroid_view_GLES20Canvas.cpp219 const android::uirenderer::Rect& bounds(renderer->getLocalClipBounds());
220 return renderer->saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom,
234 const android::uirenderer::Rect& bounds(renderer->getLocalClipBounds());
235 return renderer->saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds
596 RenderTextFunctor(const Layout& layout, DisplayListRenderer* renderer, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, float* pos, float totalAdvance, uirenderer::Rect& bounds) argument
621 uirenderer::Rect& bounds; member in class:android::RenderTextFunctor
802 android::uirenderer::Rect bounds; local
[all...]

Completed in 409 milliseconds

12345