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

1234567

/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp34 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap,
92 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, argument
96 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop),
97 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom));
98 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
103 canvas->translate(bounds.fLeft, bounds.fTop);
106 bounds
134 SkRect bounds; local
153 SkRect bounds; local
166 SkRect bounds; local
[all...]
H A DNinePatchImpl.cpp105 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument
108 if (canvas && canvas->quickReject(bounds)) {
124 SkNinePatch::DrawMesh(canvas, bounds, bitmap,
148 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()));
155 if (bounds.isEmpty() ||
206 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
208 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp76 int usage, const Rect& bounds, void** vaddr)
82 bounds.left, bounds.top, bounds.width(), bounds.height(),
90 int usage, const Rect& bounds, android_ycbcr *ycbcr)
100 bounds.left, bounds.top, bounds.width(), bounds
75 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
89 lockYCbCr(buffer_handle_t handle, int usage, const Rect& bounds, android_ycbcr *ycbcr) argument
118 lockAsync(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr, int fenceFd) argument
140 lockAsyncYCbCr(buffer_handle_t handle, int 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/services/core/java/com/android/server/wm/
H A DFocusedStackFrame.java65 private void draw(Rect bounds, int color) { argument
66 if (false && DEBUG_STACK) Slog.i(TAG, "draw: bounds=" + bounds.toShortString() +
68 mTmpDrawRect.set(bounds);
79 final int w = bounds.width();
80 final int h = bounds.height();
102 private void positionSurface(Rect bounds) { argument
103 if (false && DEBUG_STACK) Slog.i(TAG, "positionSurface: bounds=" + bounds.toShortString());
104 mSurfaceControl.setSize(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 int usage, const Rect& bounds, void** vaddr);
49 int usage, const Rect& bounds, android_ycbcr *ycbcr);
54 int usage, const Rect& bounds, void** vaddr, int fenceFd);
57 int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd);
/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.java86 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS);
89 calculateOut(sceneRoot, bounds, mTempLoc);
93 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top,
103 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS);
104 int viewPosX = bounds.left;
105 int viewPosY = bounds.top;
114 endX += interruptedPosition[0] - bounds.left;
115 endY += interruptedPosition[1] - bounds.top;
116 bounds
126 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.java58 Rect bounds = getBounds();
59 float width = bounds.width() * OUTER_EXTENT;
60 float height = (mTop + bounds.height()) * OUTER_EXTENT;
63 canvas.drawRect(isLtr ? bounds.right - width : 0, 0,
64 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java145 protected void onBoundsChange(Rect bounds) { argument
146 super.onBoundsChange(bounds);
150 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument
159 track.setBounds(bounds);
165 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
170 thumbRect.set(bounds.left, bounds.top + offset,
171 bounds.right, bounds.top + offset + length);
173 thumbRect.set(bounds
[all...]
/frameworks/base/libs/hwui/
H A DSnapshot.cpp99 const SkIRect& bounds = clipRegion->getBounds(); local
100 clipRect->set(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
219 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument
221 if (bounds.isEmpty()) {
243 state->dangerRects[i] = bounds;
245 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius;
246 state->dangerRects[0].right = state->dangerRects[2].right = bounds
[all...]
H A DStatefulBaseRenderer.cpp179 Rect* bounds = mSnapshot->previous->clipRect; local
180 clip.setRect(bounds->left, bounds->top, bounds->right, bounds->bottom);
198 Rect bounds; local
200 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported
205 clipRect(bounds.left, bounds.top, 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/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.java39 * {@link #CORNER_STYLE_FLAP} corners have a colored flap drawn within the bounds.
210 protected void onBoundsChange(Rect bounds) { argument
211 super.onBoundsChange(bounds);
222 final Rect bounds = getBounds();
223 if (bounds.isEmpty()) {
240 float left = bounds.left + mBorderWidth / 2;
241 float top = bounds.top + mBorderWidth / 2;
242 float right = bounds.right - mBorderWidth / 2;
243 float bottom = bounds.bottom - mBorderWidth / 2;
282 final Rect bounds
[all...]
/frameworks/base/libs/hwui/font/
H A DFont.h117 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions);
120 int numGlyphs, Rect *bounds, const float* positions);
130 Rect* bounds, const float* pos);
133 Rect* bounds, const float* pos);
136 Rect* bounds, const float* pos);
139 Rect* bounds, const float* pos);
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DReplacementDrawableSpan.java32 final Rect bounds = getBounds();
35 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin;
36 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2)
/frameworks/av/services/audioflinger/
H A DFastThread.cpp54 bounds(0),
174 bounds = 0;
273 // advance the FIFO queue bounds
274 size_t i = bounds & (dumpState->mSamplingN - 1);
275 bounds = (bounds & 0xFFFF0000) | ((bounds + 1) & 0xFFFF);
277 bounds += 0x10000;
278 } else if (!(bounds & (dumpState->mSamplingN - 1))) {
324 dumpState->mBounds = bounds;
[all...]

Completed in 659 milliseconds

1234567