Searched defs:bounds (Results 26 - 50 of 142) sorted by relevance

123456

/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleComponent.java62 public RippleComponent(RippleDrawable owner, Rect bounds, boolean forceSoftware) { argument
64 mBounds = bounds;
88 private static float getTargetRadius(Rect bounds) { argument
89 final float halfWidth = bounds.width() / 2.0f;
90 final float halfHeight = bounds.height() / 2.0f;
178 * Populates {@code bounds} with the maximum drawing bounds of the ripple
179 * relative to its center. The resulting bounds should be translated into
182 * @param bounds the rect to populate with drawing bounds
184 getBounds(Rect bounds) argument
[all...]
H A DScaleDrawable.java221 protected void onBoundsChange(Rect bounds) { argument
227 int w = bounds.width();
233 int h = bounds.height();
240 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
H A DRippleForeground.java89 public RippleForeground(RippleDrawable owner, Rect bounds, float startingX, float startingY, argument
91 super(owner, bounds, forceSoftware);
136 * Returns the maximum bounds of the ripple relative to the ripple center.
138 public void getBounds(Rect bounds) { argument
142 bounds.set(outerX - r, outerY - r, outerX + r, outerY + r);
146 * Specifies the starting position relative to the drawable bounds. No-op if
330 * Clamps the starting position to fit within the ripple bounds.
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp252 Rect bounds = tr.getBounds(); local
254 // If rectToRect, can simply map bounds before storing verts
255 transform.mapRect(bounds);
256 bounds.doIntersect(clip->rect);
257 if (bounds.isEmpty()) {
262 rectangleVertices.push_back(Vertex{bounds.left, bounds.top});
263 rectangleVertices.push_back(Vertex{bounds.right, bounds.top});
264 rectangleVertices.push_back(Vertex{bounds
[all...]
H A DDeferredDisplayList.h52 // global op bounds, mapped by mMatrix to be in screen space coordinates, clipped
58 int mClipSideFlags; // specifies which sides of the bounds are clipped, unclipped if cleared
80 DeferredDisplayList(const Rect& bounds) argument
81 : mBounds(bounds) {
147 // layer space bounds of rendering
194 bool opaqueOverBounds; // opaque over bounds in DeferredDisplayState - can skip ops below
H A DGlop.h176 Rect bounds; // TODO: remove for HWUI_NEW_OPS member in struct:android::uirenderer::Glop
H A DSnapshot.cpp184 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument
186 if (bounds.isEmpty()) {
207 state->dangerRects[i] = bounds;
209 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius;
210 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius;
211 state->dangerRects[1].left = state->dangerRects[3].left = bounds.right - radius;
212 state->dangerRects[2].top = state->dangerRects[3].top = bounds.bottom - radius;
221 state->innerRect = bounds;
H A DVertexBuffer.h104 * Brute force bounds computation, used only if the producer of this
105 * vertex buffer can't determine bounds more simply/efficiently
142 void setBounds(Rect bounds) { mBounds = bounds; } argument
H A DCanvasState.cpp225 Rect bounds; local
227 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported
232 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op);
235 setClippingRoundRect(allocator, bounds, radius, false);
253 * Calculates whether content drawn within the passed bounds would be outside of, or intersect with
H A DClipArea.cpp55 TransformedRectangle::TransformedRectangle(const Rect& bounds, argument
57 : mBounds(bounds)
108 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { argument
110 mTransformedRectangles[0] = TransformedRectangle(bounds, transform);
113 bool RectangleList::intersectWith(const Rect& bounds, argument
115 TransformedRectangle newRectangle(bounds, transform);
139 Rect bounds; local
143 bounds = tr.transformedBounds();
145 bounds.doIntersect(tr.transformedBounds());
148 return bounds;
151 pathFromTransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
[all...]
H A DLayerBuilder.cpp55 ALOGD(" Batch %p, id %d, merging %d, count %d, bounds " RECT_STRING,
85 * Helper for determining if a new op can merge with a MergingDrawBatch based on their bounds
86 * and clip side flags. Positive bounds delta means new bounds fit in old.
93 // if current is clipped, we must be able to fit new bounds in current
96 // if new is clipped, we must be able to fit current bounds in new
150 * Exploits the fact that if a op or batch is clipped on a side, its bounds will equal its
189 // Therefore it's safe to simply always merge flags, and use the bounds as the clip rect.
264 Rect bounds = mClearRects[0]; local
266 bounds
[all...]
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp83 const SkPaint& paint, float x, float y, MinikinRect& bounds, float totalAdvance)
91 , bounds(bounds)
123 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance);
130 bounds.mLeft, bounds.mTop, bounds
82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, const SkPaint& paint, float x, float y, MinikinRect& bounds, float totalAdvance) argument
145 MinikinRect& bounds; member in class:android::DrawTextFunctor
163 MinikinRect bounds; local
[all...]
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp66 Rect bounds; local
80 // compute bounds
84 bounds.unionWith(glyphBounds);
91 *outBounds = bounds;
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp98 void NinePatch::Draw(SkCanvas* canvas, const SkRect& bounds, argument
101 if (canvas && canvas->quickReject(bounds)) {
117 SkNinePatch::DrawMesh(canvas, bounds, bitmap,
138 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()),
139 SkScalarToFloat(bounds.height()));
145 if (bounds.isEmpty() ||
199 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
201 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFakeShadowDrawable.java106 protected void onBoundsChange(Rect bounds) { argument
107 super.onBoundsChange(bounds);
266 private void buildComponents(Rect bounds) { argument
271 mCardBounds.set(bounds.left + mMaxShadowSize, bounds.top + verticalOffset,
272 bounds.right - mMaxShadowSize, bounds.bottom - verticalOffset);
H A DRecentsTransitionHelper.java103 final boolean screenPinningRequested, final Rect bounds, final int destinationStack) {
105 if (bounds != null) {
106 opts.setLaunchBounds(bounds.isEmpty() ? null : bounds);
271 Rect bounds) {
276 bounds));
101 launchTaskFromRecents(final TaskStack stack, @Nullable final Task task, final TaskStackView stackView, final TaskView taskView, final boolean screenPinningRequested, final Rect bounds, final int destinationStack) argument
270 composeDockAnimationSpec(TaskView taskView, Rect bounds) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java237 protected void onBoundsChange(Rect bounds) { argument
257 bounds.left,
258 bounds.top + Math.round(dy),
259 bounds.left + Math.round(dwidth * scale),
260 bounds.top + Math.round(dheight * scale + dy));
/frameworks/base/services/core/java/com/android/server/wm/
H A DBoundsAnimationController.java36 * Enables animating bounds of objects.
38 * In multi-window world bounds of both stack and tasks can change. When we need these bounds to
41 * the bounds of the resized object.
127 // If we are animating from smaller to larger, we want to change the task bounds
182 // Immediately update the task bounds if they have to become larger, but preserve
226 /** Returns true if the animation target is the same as the input bounds. */
227 public boolean isAnimatingTo(Rect bounds) { argument
228 return mTo.equals(bounds);
251 * resize its bounds
258 setSize(Rect bounds) argument
264 setPinnedStackSize(Rect bounds, Rect taskBounds) argument
276 getFullScreenBounds(Rect bounds) argument
[all...]
H A DDimLayer.java80 /** Gets the bounds of the dim layer user. */
225 /** @param bounds The new bounds to set */
226 void setBounds(Rect bounds) { argument
227 mBounds.set(bounds);
228 if (isDimming() && !mLastBounds.equals(bounds)) {
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.h168 inline Rect bounds() const { return getBounds(); } function in class:android::DisplayDevice
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java96 // We need to inset the oval bounds by half the border width. This is because stroke draws
153 protected void onBoundsChange(Rect bounds) { argument
H A DShadowDrawableWrapper.java119 protected void onBoundsChange(Rect bounds) { argument
319 private void buildComponents(Rect bounds) { argument
324 mContentBounds.set(bounds.left + mRawMaxShadowSize, bounds.top + verticalOffset,
325 bounds.right - mRawMaxShadowSize, bounds.bottom - verticalOffset);
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DVectorDrawableCommon.java78 protected void onBoundsChange(Rect bounds) { argument
80 mDelegateDrawable.setBounds(bounds);
83 super.onBoundsChange(bounds);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuPopup.java63 * Specifies the anchor-relative bounds of the popup's transition
66 * @param bounds anchor-relative bounds
68 public void setEpicenterBounds(Rect bounds) { argument
69 mEpicenterBounds = bounds;
73 * @return anchor-relative bounds of the popup's transition epicenter
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DRoundRectDrawable.java104 private void updateBounds(Rect bounds) { argument
105 if (bounds == null) {
106 bounds = getBounds();
108 mBoundsF.set(bounds.left, bounds.top, bounds.right, bounds.bottom);
109 mBoundsI.set(bounds);
114 // to make sure they have same bounds.
120 protected void onBoundsChange(Rect bounds) { argument
[all...]

Completed in 3071 milliseconds

123456