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

12345678

/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp35 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap,
91 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap& bitmap, argument
95 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop),
96 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom));
97 NinePatch_Draw(canvas, bounds, bitmap, *chunk, paint, NULL);
102 canvas->translate(bounds.fLeft, bounds.fTop);
105 bounds
133 SkRect bounds; local
152 SkRect bounds; local
165 SkRect bounds; local
[all...]
H A DNinePatchImpl.cpp100 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument
103 if (canvas && canvas->quickReject(bounds)) {
119 SkNinePatch::DrawMesh(canvas, bounds, bitmap,
140 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()),
141 SkScalarToFloat(bounds.height()));
147 if (bounds.isEmpty() ||
201 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
203 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp81 uint32_t usage, const Rect& bounds, void** vaddr)
87 bounds.left, bounds.top, bounds.width(), bounds.height(),
95 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr)
105 bounds.left, bounds.top, bounds.width(), bounds
80 lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr) argument
94 lockYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) argument
123 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument
147 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument
[all...]
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DRoundRectDrawable.java74 private void updateBounds(Rect bounds) { argument
75 if (bounds == null) {
76 bounds = getBounds();
78 mBoundsF.set(bounds.left, bounds.top, bounds.right, bounds.bottom);
79 mBoundsI.set(bounds);
84 // to make sure they have same bounds.
90 protected void onBoundsChange(Rect bounds) { argument
[all...]
/frameworks/support/v7/cardview/jellybean-mr1/android/support/v7/widget/
H A DCardViewJellybeanMr1.java29 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius,
31 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
/frameworks/base/core/java/android/view/accessibility/
H A DIAccessibilityInteractionConnection.aidl34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds,
39 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback,
42 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds,
46 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId,
50 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId,
/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/core/java/android/view/animation/
H A DTransformation.java126 Rect bounds = t.getClipRect();
128 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top,
129 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom);
131 setClipRect(bounds);
145 Rect bounds = t.getClipRect();
147 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top,
148 mClipRect.right + bounds
[all...]
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DCardViewEclairMr1.java37 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius,
40 final float innerWidth = bounds.width() - twoRadius - 1;
41 final float innerHeight = bounds.height() - twoRadius - 1;
47 canvas.translate(bounds.left + cornerRadius, bounds.top + cornerRadius);
60 canvas.drawRect(bounds.left + cornerRadius - 1f, bounds.top,
61 bounds.right - cornerRadius + 1f, bounds.top + cornerRadius,
63 canvas.drawRect(bounds
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java65 Rect bounds = getBounds();
67 canvas.clipRect(bounds);
68 canvas.translate(bounds.left, bounds.top);
/frameworks/native/include/ui/
H A DGraphicBufferMapper.h46 uint32_t usage, const Rect& bounds, void** vaddr);
49 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
54 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd);
57 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
/frameworks/base/core/java/android/hardware/camera2/params/
H A DFace.java71 * @param bounds Bounds of the face.
79 * if bounds is {@code null},
88 public Face(Rect bounds, int score, int id, argument
90 checkNotNull("bounds", bounds);
102 mBounds = bounds;
122 * @param bounds Bounds of the face.
126 * if bounds is {@code null},
132 public Face(Rect bounds, int score) { argument
133 this(bounds, scor
[all...]
/frameworks/base/core/java/android/transition/
H A DExplode.java85 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS);
88 calculateOut(sceneRoot, bounds, mTempLoc);
92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top,
102 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS);
103 int viewPosX = bounds.left;
104 int viewPosY = bounds.top;
113 endX += interruptedPosition[0] - bounds.left;
114 endY += interruptedPosition[1] - bounds.top;
115 bounds
125 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument
[all...]
H A DTransitionUtils.java93 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight());
94 matrix.mapRect(bounds);
95 int left = Math.round(bounds.left);
96 int top = Math.round(bounds.top);
97 int right = Math.round(bounds.right);
98 int bottom = Math.round(bounds.bottom);
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
151 * @param bounds The bounds of the bitmap in the destination coordinate system (where the
153 * @return A bitmap of the given view or null if bounds ha
155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherScrim.java57 Rect bounds = getBounds();
58 float width = bounds.width() * OUTER_EXTENT;
59 float height = (mTop + bounds.height()) * OUTER_EXTENT;
62 canvas.drawRect(isLtr ? bounds.right - width : 0, 0,
63 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java159 protected void onBoundsChange(Rect bounds) { argument
160 super.onBoundsChange(bounds);
191 private void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument
201 track.setBounds(bounds);
207 private void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
213 thumb.setBounds(bounds.left, bounds.top + offset,
214 bounds.right, bounds.top + offset + length);
223 thumb.setBounds(bounds
[all...]
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java52 Rect bounds, Rect outRect) {
54 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
51 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsViewLayoutAlgorithm.java42 * Computes and returns the bounds that each of the stack views should take up.
45 ArrayList<Rect> bounds = new ArrayList<Rect>(stackViews.size());
52 bounds.add(new Rect(getRelativeCoordinate(ab.left, ab.width(), sb.left, db.width()),
57 return bounds;
/frameworks/base/libs/hwui/
H A DClipArea.cpp60 TransformedRectangle::TransformedRectangle(const Rect& bounds, argument
62 : mBounds(bounds)
114 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { argument
116 mTransformedRectangles[0] = TransformedRectangle(bounds, transform);
119 bool RectangleList::intersectWith(const Rect& bounds, argument
121 TransformedRectangle newRectangle(bounds, transform);
145 Rect bounds; local
149 bounds = tr.transformedBounds();
151 bounds.intersect(tr.transformedBounds());
154 return bounds;
157 pathFromTransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
[all...]
/frameworks/minikin/sample/
H A DMinikinSkia.cpp48 void MinikinFontSkia::GetBounds(MinikinRect* bounds, uint32_t glyph_id,
55 bounds->mLeft = skBounds.fLeft;
56 bounds->mTop = skBounds.fTop;
57 bounds->mRight = skBounds.fRight;
58 bounds->mBottom = skBounds.fBottom;
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DTileDrawable.java76 protected void onBoundsChange(Rect bounds) { argument
77 super.onBoundsChange(bounds);
83 if (bounds.isEmpty()) {
86 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2);
87 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2);
H A DStyledCornersBitmapDrawable.java41 * {@link #CORNER_STYLE_FLAP} corners have a colored flap drawn within the bounds.
217 protected void onBoundsChange(Rect bounds) { argument
218 super.onBoundsChange(bounds);
229 final Rect bounds = getBounds();
230 if (bounds.isEmpty()) {
249 float left = bounds.left + mBorderWidth / 2;
250 float top = bounds.top + mBorderWidth / 2;
251 float right = bounds.right - mBorderWidth / 2;
252 float bottom = bounds.bottom - mBorderWidth / 2;
302 final Rect bounds
[all...]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java36 final Rect bounds; field in class:AssistVisualizer.TextEntry
48 bounds = new Rect(left, top, left+node.getWidth(), top+node.getHeight());
114 Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString()
180 canvas.drawRect(te.bounds.left - mTmpLocation[0], te.bounds.top - mTmpLocation[1],
181 te.bounds.right - mTmpLocation[0], te.bounds.bottom - mTmpLocation[1],
189 canvas.drawRect(0, 0, te.bounds.right - te.bounds.left, te.bounds
[all...]
/frameworks/base/libs/hwui/font/
H A DFont.h118 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions);
121 int numGlyphs, Rect *bounds, const float* positions);
131 Rect* bounds, const float* pos);
134 Rect* bounds, const float* pos);
137 Rect* bounds, const float* pos);
140 Rect* bounds, const float* pos);
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DReplacementDrawableSpan.java33 final Rect bounds = getBounds();
36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin;
37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2)

Completed in 4760 milliseconds

12345678