Searched refs:bounds (Results 101 - 125 of 295) sorted by relevance

1234567891011>>

/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java350 * Clip drawing to the bounds of the offscreen layer, omit at your own peril.
424 * using this method, especially if the bounds provided are large. It is
443 * @param bounds May be null. The maximum size the offscreen bitmap
451 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument
452 if (bounds == null) {
453 bounds = new RectF(getClipBounds());
456 return saveLayer(bounds.left, bounds.top, bounds.right, bounds
486 saveLayer(@ullable RectF bounds, @Nullable Paint paint) argument
551 saveLayerAlpha(@ullable RectF bounds, int alpha, @Saveflags int saveFlags) argument
569 saveLayerAlpha(@ullable RectF bounds, int alpha) argument
1186 getClipBounds(@ullable Rect bounds) argument
1310 nGetClipBounds(long nativeCanvas, Rect bounds) argument
[all...]
H A DNinePatch.java23 * bounds of the graphic. For a thorough explanation of a NinePatch image,
252 * @param bounds The location and size of the NinePatch.
255 * report, else a {@link Region} holding the parts of the specified bounds
258 public final Region getTransparentRegion(Rect bounds) { argument
259 long r = nativeGetTransparentRegion(mBitmap, mNativeChunk, bounds);
/frameworks/rs/
H A DrsFont.cpp138 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { argument
146 if (bounds->bottom < nPenY) {
147 bounds->bottom = nPenY;
149 if (bounds->left > nPenX) {
150 bounds->left = nPenX;
152 if (bounds->right < nPenX + width) {
153 bounds->right = nPenX + width;
155 if (bounds->top > nPenY - height) {
156 bounds->top = nPenY - height;
162 RenderMode mode, Rect *bounds,
160 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
744 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
783 measureText(const char *text, uint32_t len, Font::Rect *bounds) argument
[all...]
/frameworks/base/libs/hwui/
H A DSkiaCanvasProxy.cpp281 // compute conservative bounds
283 // but even more conservative bounds if this is too slow.
284 SkRect bounds; local
285 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds);
303 // setup the first glyph position and adjust bounds if needed
307 bounds.offset(x, y);
336 mCanvas->drawGlyphs(glyphFunc, glyphs.count, glyphs.paint, x, y, bounds.fLeft, bounds.fTop,
337 bounds.fRight, bounds
359 SkRect bounds = SkRect::MakeEmpty(); local
[all...]
H A DBakedOpState.cpp24 static int computeClipSideFlags(const Rect& clip, const Rect& bounds) { argument
26 if (clip.left > bounds.left) clipSideFlags |= OpClipSideFlags::Left;
27 if (clip.top > bounds.top) clipSideFlags |= OpClipSideFlags::Top;
28 if (clip.right < bounds.right) clipSideFlags |= OpClipSideFlags::Right;
29 if (clip.bottom < bounds.bottom) clipSideFlags |= OpClipSideFlags::Bottom;
62 // Rejected based on either empty clip, or bounds not intersecting with clip
119 // bounds are empty, so op is rejected
144 // bounds are empty, so op is rejected
H A DPathTessellator.cpp167 * Outset the bounds of point data (for line endpoints or points) to account for stroke
170 * bounds are in pre-scaled space.
172 void expandBoundsForStroke(Rect* bounds) const {
175 bounds->outset(fabs(inverseScaleX) * (0.5f + Vertex::GeometryFudgeFactor()),
179 bounds->outset(halfStrokeWidth + fabs(inverseScaleX) * Vertex::GeometryFudgeFactor(),
696 SkRect bounds = path.getBounds(); local
697 if (!bounds.isEmpty()) {
698 threshInvScaleX *= bounds.width() / (bounds.width() + paint->getStrokeWidth());
699 threshInvScaleY *= bounds
753 instanceVertices(VertexBuffer& srcBuffer, VertexBuffer& dstBuffer, const float* points, int count, Rect& bounds) argument
828 Rect bounds; local
[all...]
H A DClipArea.h35 TransformedRectangle(const Rect& bounds, const Matrix4& transform);
71 void set(const Rect& bounds, const Matrix4& transform);
72 bool intersectWith(const Rect& bounds, const Matrix4& transform);
H A DVectorDrawable.cpp405 int Tree::draw(Canvas* outCanvas, SkColorFilter* colorFilter, const SkRect& bounds, argument
409 // size first. This bitmap size is determined by the bounds and the
421 int scaledWidth = (int)(bounds.width() * canvasScaleX);
422 int scaledHeight = (int)(bounds.height() * canvasScaleY);
432 outCanvas->translate(bounds.fLeft, bounds.fTop);
436 outCanvas->translate(bounds.width(), 0);
444 SkRect tmpBounds = bounds;
535 sk_sp<SkSurface> Tree::Cache::getSurface(SkRect* bounds) { argument
540 *bounds
557 draw(SkCanvas* canvas, const SkRect& bounds) argument
[all...]
H A DVectorDrawable.h510 int draw(Canvas* outCanvas, SkColorFilter* colorFilter, const SkRect& bounds,
527 (mProperties.mNonAnimatableProperties.bounds !=
528 mStagingProperties.mNonAnimatableProperties.bounds);
550 SkRect bounds; member in struct:android::uirenderer::VectorDrawable::Tree::TreeProperties::NonAnimatableProperties
579 void setBounds(const SkRect& bounds) { argument
580 if (mNonAnimatableProperties.bounds != bounds) {
581 mNonAnimatableProperties.bounds = bounds;
624 const SkRect& getBounds() const { return mNonAnimatableProperties.bounds; }
[all...]
H A DFontRenderer.cpp74 // Note: don't pass dirty bounds here, so user must manage passing dirty bounds to renderer
576 Rect bounds; local
577 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions);
580 uint32_t paddedWidth = (uint32_t)(bounds.right - bounds.left) + 2 * intRadius;
581 uint32_t paddedHeight = (uint32_t)(bounds.top - bounds.bottom) + 2 * intRadius;
597 int penX = intRadius - bounds.left;
598 int penY = intRadius - bounds
622 initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor) argument
648 renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) argument
666 renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, TextDrawFunctor* functor) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskPositioner.java343 // Use the dim bounds, not the original task bounds. The cursor
344 // movement should be calculated relative to the visible bounds.
345 // Also, use the dim bounds of the task which accounts for
346 // multiple app windows. Don't use any bounds from win itself as it
376 // In case of !isDockedInEffect we are using the union of all task bounds. These might be
384 // bounds yet. This will guarantee that the app starts the backdrop renderer before
404 // Make sure we always have valid drag bounds even if the drag ends before any move events
432 // For a moving operation we allow the pointer to go out of the stack bounds, but
433 // use the clamped pointer position for the drag bounds computatio
581 checkBoundsForOrientationViolations(Rect bounds) argument
[all...]
H A DDimmer.java94 // This works because the mHost will be a Task which has the display bounds.
292 * @param bounds The bounds at which to dim.
295 boolean updateDims(SurfaceControl.Transaction t, Rect bounds) { argument
310 t.setSize(mDimState.mDimLayer, bounds.width(), bounds.height());
311 t.setPosition(mDimState.mDimLayer, bounds.left, bounds.top);
H A DTaskStack.java74 /** Minimum size of an adjusted stack bounds relative to original stack bounds. Used to
88 /** For comparison with DisplayContent bounds. */
93 /** Stack bounds adjusted to screen content area (taking into account IM windows, etc.) */
97 * Fully adjusted IME bounds. These are different from {@link #mAdjustedBounds} because they
131 // If this is true, we are in the bounds animating mode. The task will be down or upscaled to
133 // would otherwise apply while resizing, while resizing in the bounds animating mode.
143 // Temporary storage for the new bounds that should be used after the configuration change.
144 // Will be cleared once the client retrieves the new bounds via getBoundsForNewConfiguration().
181 * Set the bounds o
214 setAdjustedBounds(Rect bounds) argument
285 setBounds(Rect bounds) argument
289 setBounds(Rect existing, Rect bounds) argument
341 getBounds(Rect bounds) argument
417 updateDisplayInfo(Rect bounds) argument
1468 getDockSide(Rect bounds) argument
1475 getDockSide(DisplayContent dc, Rect bounds) argument
[all...]
/frameworks/base/libs/hwui/hwui/
H A DMinikinSkia.cpp61 void MinikinFontSkia::GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, argument
69 bounds->mLeft = skBounds.fLeft;
70 bounds->mTop = skBounds.fTop;
71 bounds->mRight = skBounds.fRight;
72 bounds->mBottom = skBounds.fBottom;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java256 protected void onBoundsChange(Rect bounds) { argument
276 bounds.left,
277 bounds.top + Math.round(dy),
278 bounds.left + Math.round(dwidth * scale),
279 bounds.top + Math.round(dheight * scale + dy));
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DRegion.java65 Rect bounds = mFindRegion.getRoiBounds();
68 path.moveTo(mPointsXY[i] - bounds.left + mCutOffsetX,
69 mPointsXY[i + 1] - bounds.top + mCutOffsetY);
71 path.lineTo(mPointsXY[i] - bounds.left + mCutOffsetX,
72 mPointsXY[i + 1] - bounds.top + mCutOffsetY);
/frameworks/layoutlib/bridge/src/android/text/
H A DMeasuredParagraph_Delegate.java135 RectF bounds =
138 return bounds.right - bounds.left;
/frameworks/support/compat/src/main/java/androidx/core/view/accessibility/
H A DAccessibilityWindowInfoCompat.java159 * Gets the bounds of this window in the screen.
161 * @param outBounds The out window bounds.
342 Rect bounds = new Rect();
343 getBoundsInScreen(bounds);
348 builder.append(", bounds=").append(bounds);
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
H A DRectTest.kt80 assertEquals(Rect(0, 0, 4, 2), r.bounds)
85 assertEquals(Rect(0, 0, 4, 2), r.bounds)
106 assertEquals(Rect(0, 0, 4, 4) and Rect(2, 2, 6, 6), r.bounds)
112 assertEquals(Rect(0, 0, 4, 4) and Rect(2, 2, 6, 6), r.bounds)
204 assertEquals(Rect(1, 1, 5, 5), Rect(1, 1, 5, 5).toRegion().bounds)
208 assertEquals(Rect(1, 1, 5, 5), RectF(1.1f, 1.1f, 4.8f, 4.8f).toRegion().bounds)
/frameworks/base/core/java/android/transition/
H A DChangeClipBounds.java37 private static final String PROPNAME_BOUNDS = "android:clipBounds:bounds";
63 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight());
64 values.values.put(PROPNAME_BOUNDS, bounds);
H A DChangeImageTransform.java46 private static final String PROPNAME_BOUNDS = "android:changeImageTransform:bounds";
96 Rect bounds = new Rect(left, top, right, bottom);
97 values.put(PROPNAME_BOUNDS, bounds);
108 float scaleX = ((float) bounds.width()) / drawableWidth;
109 float scaleY = ((float) bounds.height()) / drawableHeight;
H A DCrossfade.java55 private static final String PROPNAME_BOUNDS = "android:crossfade:bounds";
195 // a reveal of the end scene over time. Also, animate the bounds of both drawables
243 Animator anim2 = ObjectAnimator.ofObject(startDrawable, "bounds",
249 Animator anim3 = ObjectAnimator.ofObject(endDrawable, "bounds",
262 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight());
264 bounds.offset(view.getLeft(), view.getTop());
266 transitionValues.values.put(PROPNAME_BOUNDS, bounds);
269 Log.d(LOG_TAG, "Captured bounds " + transitionValues.values.get(PROPNAME_BOUNDS));
283 drawable.setBounds(bounds);
/frameworks/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java335 Rectangle bounds = region.mArea.getBounds();
336 if (bounds.isEmpty()) {
341 rect.left = bounds.x;
342 rect.top = bounds.y;
343 rect.right = bounds.x + bounds.width;
344 rect.bottom = bounds.y + bounds.height;
/frameworks/support/transition/src/main/java/androidx/transition/
H A DChangeClipBounds.java40 private static final String PROPNAME_BOUNDS = "android:clipBounds:bounds";
67 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight());
68 values.values.put(PROPNAME_BOUNDS, bounds);
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DPasswordTextView.java168 Rect bounds = getCharBounds();
169 int charHeight = (bounds.bottom - bounds.top);
174 float charLength = bounds.right - bounds.left;
191 Rect bounds = new Rect();
192 mDrawPaint.getTextBounds("0", 0, 1, bounds);
193 return bounds;
199 Rect bounds = getCharBounds();
200 int charLength = bounds
[all...]

Completed in 645 milliseconds

1234567891011>>