Searched defs:bounds (Results 101 - 125 of 142) sorted by last modified time

123456

/frameworks/base/libs/hwui/
H A DSkiaCanvas.cpp345 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
346 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags));
468 // if we can't invert the CTM, we can't return local clip bounds
484 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
485 return mCanvas->quickReject(bounds);
746 SkRect bounds = SkRect::MakeLTRB(dstLeft, dstTop, dstRight, dstBottom); local
747 NinePatch::Draw(mCanvas, bounds, bitmap, chunk, paint, nullptr);
H A DSkiaCanvasProxy.cpp249 // compute conservative bounds
251 // but even more conservative bounds if this is too slow.
252 SkRect bounds; local
253 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds);
271 // setup the first glyph position and adjust bounds if needed
275 bounds.offset(x,y);
294 x, y, bounds.fLeft, bounds.fTop, bounds.fRight, bounds
325 SkRect bounds; local
[all...]
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 DVectorDrawable.cpp460 const SkRect& bounds, bool needsMirroring, bool canReuseCache) {
463 // size first. This bitmap size is determined by the bounds and the
475 int scaledWidth = (int) (bounds.width() * canvasScaleX);
476 int scaledHeight = (int) (bounds.height() * canvasScaleY);
486 outCanvas->translate(bounds.fLeft, bounds.fTop);
490 outCanvas->translate(bounds.width(), 0);
498 SkRect tmpBounds = bounds;
459 draw(Canvas* outCanvas, SkColorFilter* colorFilter, const SkRect& bounds, bool needsMirroring, bool canReuseCache) argument
H A DVectorDrawable.h554 const SkRect& bounds, bool needsMirroring, bool canReuseCache);
585 SkRect bounds; member in struct:android::uirenderer::VectorDrawable::Tree::TreeProperties::NonAnimatableProperties
616 void setBounds(const SkRect& bounds) { argument
617 if (mNonAnimatableProperties.bounds != bounds) {
618 mNonAnimatableProperties.bounds = bounds;
669 return mNonAnimatableProperties.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
/frameworks/base/libs/hwui/font/
H A DFont.cpp136 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) {
143 if (bounds->bottom > nPenY) {
144 bounds->bottom = nPenY;
146 if (bounds->left > nPenX) {
147 bounds->left = nPenX;
149 if (bounds->right < nPenX + width) {
150 bounds->right = nPenX + width;
152 if (bounds->top < nPenY + height) {
153 bounds->top = nPenY + height;
158 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, cons
135 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
157 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
176 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
206 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument
348 measure(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, Rect *bounds, const float* positions) argument
377 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
[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...]
H A DMinikinSkia.cpp58 void MinikinFontSkia::GetBounds(MinikinRect* bounds, uint32_t glyph_id, argument
65 bounds->mLeft = skBounds.fLeft;
66 bounds->mTop = skBounds.fTop;
67 bounds->mRight = skBounds.fRight;
68 bounds->mBottom = skBounds.fBottom;
/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/tests/unit/
H A DFontRendererTests.cpp42 Rect bounds; local
44 &glyphs, &positions, &totalAdvance, &bounds);
51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width);
52 EXPECT_LE(bounds.getHeight() + radius * 2, (int) result.height);
H A DTextDropShadowCacheTests.cpp42 uirenderer::Rect bounds; local
44 &glyphs, &positions, &totalAdvance, &bounds);
45 EXPECT_TRUE(bounds.contains(5, -10, 100, 0)) << "Expect input to be nontrivially sized";
/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/graphics/java/android/graphics/
H A DCanvas.java344 * Clip drawing to the bounds of the offscreen layer, omit at your own peril.
400 * using this method, especially if the bounds provided are large, or if
417 * @param bounds May be null. The maximum size the offscreen bitmap
425 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument
426 if (bounds == null) {
427 bounds = new RectF(getClipBounds());
429 return saveLayer(bounds.left, bounds.top, bounds.right, bounds
435 saveLayer(@ullable RectF bounds, @Nullable Paint paint) argument
484 saveLayerAlpha(@ullable RectF bounds, int alpha, @Saveflags int saveFlags) argument
494 saveLayerAlpha(@ullable RectF bounds, int alpha) argument
948 getClipBounds(@ullable Rect bounds) argument
2040 native_getClipBounds(long nativeCanvas, Rect bounds) argument
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDockedDividerUtils.java55 * Makes sure that the bounds are always valid, i. e. they are at least one pixel high and wide.
57 * @param bounds The bounds to sanitize.
58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are
60 * the bounds.
62 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { argument
64 // If the bounds are either on the top or left of the screen, rather move it further to the
68 if (bounds.left >= bounds.right) {
69 bounds
84 calculatePositionForBounds(Rect bounds, int dockSide, int dividerSize) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopup.java65 * Specifies the anchor-relative bounds of the popup's transition
68 * @param bounds anchor-relative bounds
70 public void setEpicenterBounds(Rect bounds) { argument
71 mEpicenterBounds = bounds;
75 * @return anchor-relative bounds of the popup's transition epicenter
/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp98 SkRect bounds; local
99 GraphicsJNI::jrect_to_rect(env, boundsRect, &bounds);
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region);
H A DPaint.cpp726 static void doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, argument
740 GraphicsJNI::irect_to_jrect(ir, env, bounds);
744 jstring text, jint start, jint end, jint bidiFlags, jobject bounds) {
748 doTextBounds(env, textArray + start, end - start, bounds, *paint, typeface, bidiFlags);
753 jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) {
757 doTextBounds(env, textArray + index, count, bounds, *paint, typeface, bidiFlags);
743 getStringBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jstring text, jint start, jint end, jint bidiFlags, jobject bounds) argument
752 getCharArrayBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) argument
H A DPath.cpp104 const SkRect& bounds = obj->getBounds(); local
105 GraphicsJNI::rect_to_jrectf(bounds, env, jbounds);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp160 static jboolean getClipBounds(JNIEnv* env, jobject, jlong canvasHandle, jobject bounds) { argument
170 (void)GraphicsJNI::irect_to_jrect(ir, env, bounds);
/frameworks/base/cmds/am/src/com/android/commands/am/
H A DAm.java314 " and supplying temporary different task bounds indicated by\n" +
323 " bounds of the pinned stack.\n" +
340 "am task resize: makes sure <TASK_ID> is in a stack with the specified bounds.\n" +
342 " has the specified bounds.\n" +
1830 final Rect bounds = getBounds();
1831 if (bounds == null) {
1832 System.err.println("Error: invalid input bounds");
1835 resizeStack(stackId, bounds, 0);
1841 final Rect bounds;
1843 bounds
1854 resizeStackUnchecked(int stackId, Rect bounds, int delayMs, boolean animate) argument
1878 resizeStack(int stackId, Rect bounds, int delayMs) argument
2019 setBoundsSide(Rect bounds, String side, int value) argument
2095 taskResize(int taskId, Rect bounds, int delay_ms, boolean pretendUserResize) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManager.java550 /** Returns true if the task bounds should persist across power cycles. */
600 * are laid out differently as they are allowed to extend past the display bounds
646 * Returns true if the stack should be resized to match the bounds specified by
733 * that the resize doesn't need to preserve the window, and can be skipped if bounds
748 * that the resize should be performed even if the bounds appears unchanged.
770 * even if the bounds is unchanged. Usually used to force a resizing when a drag action
1333 * The bounds of the task.
1336 public Rect bounds; field in class:ActivityManager.RecentTaskInfo
1387 if (bounds != null) {
1389 bounds
2372 public Rect bounds = new Rect(); field in class:ActivityManager.StackInfo
[all...]
H A DIActivityManager.java151 public boolean moveTopActivityToPinnedStack(int stackId, Rect bounds) throws RemoteException; argument
154 * Resizes the input stack id to the given bounds.
157 * @param bounds Bounds to resize the stack to or {@code null} for fullscreen.
167 public void resizeStack(int stackId, Rect bounds, boolean allowResizeInDockedMode, argument
177 * Resizes the docked stack, and all other stacks as the result of the dock stack bounds change.
179 * @param dockedBounds The bounds for the docked stack.
180 * @param tempDockedTaskBounds The temporary bounds for the tasks in the docked stack, which
181 * might be different from the stack bounds to allow more
183 * same as the stack bounds.
184 * @param tempDockedTaskInsetBounds The temporary bounds fo
579 resizeTask(int taskId, Rect bounds, int resizeMode) argument
[all...]
/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/text/
H A DLayout.java511 * Return the start position of the line, given the left and right bounds
515 * @param left the left bounds (0, or leading margin if ltr para)
516 * @param right the right bounds (width, minus leading margin if rtl para)
654 * If bounds is not null, return the top, left, right, bottom extents
657 * @param bounds Optional. If not null, it returns the extent of the line
660 public int getLineBounds(int line, Rect bounds) { argument
661 if (bounds != null) {
662 bounds.left = 0; // ???
663 bounds.top = getLineTop(line);
664 bounds
[all...]

Completed in 3337 milliseconds

123456