Searched defs:bounds (Results 101 - 125 of 159) sorted by relevance

1234567

/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleDrawable.java88 * may extend outside of the Drawable bounds.
113 /** Current ripple effect bounds, used to constrain ripple effects. */
116 /** Current drawing bounds, used to compute dirty region. */
119 /** Current dirty bounds, union of current and previous drawing bounds. */
165 /** Whether bounds are being overridden. */
298 protected void onBoundsChange(Rect bounds) { argument
299 super.onBoundsChange(bounds);
302 mHotspotBounds.set(bounds);
352 // bounds the
[all...]
H A DAnimatedVectorDrawable.java409 protected void onBoundsChange(Rect bounds) { argument
410 mAnimatedVectorState.mVectorDrawable.setBounds(bounds);
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.cpp39 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds) { argument
40 vertices[0] = { bounds.left, bounds.top, 0, 0 };
41 vertices[1] = { bounds.right, bounds.top, 1, 0 };
42 vertices[2] = { bounds.left, bounds.bottom, 0, 1 };
43 vertices[3] = { bounds.right, bounds.bottom, 1, 1 };
61 // calculate unclipped bounds, sinc
385 SkRect bounds = op.unmappedBounds.toSkRect(); local
[all...]
H A DFontRenderer.cpp75 // Note: don't pass dirty bounds here, so user must manage passing dirty bounds to renderer
579 Rect bounds; local
580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions);
583 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * intRadius;
584 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * intRadius;
600 int penX = intRadius - bounds.left;
601 int penY = intRadius - bounds
625 initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor) argument
651 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
669 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...]
H A DFrameBuilder.cpp146 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop)
155 // Usually the contents bounds should be mContentDrawBounds - however - we will
157 // If there is no content bounds we ignore the layering as stated above and start with 2.
159 // Backdrop bounds in render target space
162 // Bounds that content will fill in render target space (note content node bounds may be bigger)
244 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer
272 Rect bounds; local
273 properties.getRevealClip().getBounds(&bounds);
275 bounds, properties.getRevealClip().getRadius());
562 * for paint's style on the bounds bein
[all...]
H A DRecordingCanvas.cpp133 // determine clipped bounds relative to previous viewport.
150 // Map visible bounds back to layer space, and intersect with parameter bounds
163 // layerBounds is in original bounds space, but clipped by current recording clip
234 SkRect bounds = path.getBounds(); local
235 return mState.quickRejectConservative(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
255 SkRect bounds; local
[all...]
H A DSkiaCanvasProxy.cpp293 // compute conservative bounds
295 // but even more conservative bounds if this is too slow.
296 SkRect bounds; local
297 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds);
315 // setup the first glyph position and adjust bounds if needed
319 bounds.offset(x,y);
338 x, y, bounds.fLeft, bounds.fTop, bounds.fRight, bounds
369 SkRect bounds = SkRect::MakeEmpty(); local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskStack.java359 Rect bounds = dockAreaOverlay.getBounds();
360 int x = bounds.left + (bounds.width() - mHintTextBounds.x) / 2;
361 int y = bounds.top + (bounds.height() + mHintTextBounds.y) / 2;
365 canvas.rotate(-90f, bounds.centerX(), bounds.centerY());
375 * Creates a new bounds and alpha animation.
377 public void startAnimation(Rect bounds, int areaAlpha, int hintAlpha, int duration, argument
410 if (bounds !
526 updateBoundsWithSystemInsets(Rect bounds, Rect insets) argument
538 getMappedRect(RectF bounds, int width, int height, Rect out) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSignalDrawable.java204 protected void onBoundsChange(Rect bounds) { argument
205 super.onBoundsChange(bounds);
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityStarter.java1431 // Launch ResolverActivity in the source task, so that it stays in the task bounds
1730 null /* bounds */, mLaunchFlags, mOptions);
1973 mTargetStack = computeStackFocus(mStartActivity, false, null /* bounds */, mLaunchFlags,
2037 private ActivityStack computeStackFocus(ActivityRecord r, boolean newTask, Rect bounds, argument
2096 bounds != null ? FREEFORM_WORKSPACE_STACK_ID :
/frameworks/base/services/core/java/com/android/server/wm/
H A DAccessibilityController.java576 // Update accounted bounds
772 public void setBounds(Region bounds) { argument
774 if (mBounds.equals(bounds)) {
777 mBounds.set(bounds);
780 Slog.i(LOG_TAG, "ViewportWindow set bounds: " + bounds);
1078 // Compute the bounds in the screen.
1138 // Compute the bounds in the screen.
1232 // Got the bounds.
H A DDockedStackDividerController.java151 int getSmallestWidthDpForBounds(Rect bounds) { argument
161 mTmpRect.set(bounds);
H A DTask.java48 // Return value from {@link setBounds} indicating no change was made to the Task bounds.
50 // Return value from {@link setBounds} indicating the position of the Task bounds changed.
52 // Return value from {@link setBounds} indicating the size of the Task bounds changed.
76 // For comparison with DisplayContent bounds.
102 Task(int taskId, TaskStack stack, int userId, WindowManagerService service, Rect bounds, argument
114 setBounds(bounds, overrideConfig);
229 void positionAt(int position, Rect bounds, Configuration overrideConfig) { argument
231 resizeLocked(bounds, overrideConfig, false /* force */);
236 // Update task bounds if needed.
271 /** Set the task bounds
272 setBounds(Rect bounds, Configuration overrideConfig) argument
369 resizeLocked(Rect bounds, Configuration overrideConfig, boolean forced) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java209 /*package*/ static void nComputeBounds(long nPath, RectF bounds) { argument
215 pathDelegate.fillBounds(bounds);
625 * Fills the given {@link RectF} with the path bounds.
626 * @param bounds the RectF to be filled.
628 public void fillBounds(RectF bounds) { argument
630 bounds.left = (float)rect.getMinX();
631 bounds.right = (float)rect.getMaxX();
632 bounds.top = (float)rect.getMinY();
633 bounds.bottom = (float)rect.getMaxY();
/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/support/core-ui/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java226 final Rect bounds = getBounds();
228 c.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY());
229 mRing.draw(c, bounds);
528 public void draw(Canvas c, Rect bounds) { argument
530 arcBounds.set(bounds);
540 drawTriangle(c, startAngle, sweepAngle, bounds);
545 c.drawCircle(bounds.exactCenterX(), bounds.exactCenterY(), bounds
550 drawTriangle(Canvas c, float startAngle, float sweepAngle, Rect bounds) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java146 * Optional anchor-relative bounds to be used as the transition epicenter.
147 * When {@code null}, the anchor bounds are used as the epicenter.
503 * Specifies the anchor-relative bounds of the popup's transition
506 * @param bounds anchor-relative bounds
510 public void setEpicenterBounds(Rect bounds) { argument
511 mEpicenterBounds = bounds;
1104 * outside of its bounds will open the popup window. Lifting will select the
/frameworks/base/core/java/android/text/
H A DLayout.java651 * Return the start position of the line, given the left and right bounds
655 * @param left the left bounds (0, or leading margin if ltr para)
656 * @param right the right bounds (width, minus leading margin if rtl para)
805 * If bounds is not null, return the top, left, right, bottom extents
808 * @param bounds Optional. If not null, it returns the extent of the line
811 public int getLineBounds(int line, Rect bounds) { argument
812 if (bounds != null) {
813 bounds.left = 0; // ???
814 bounds.top = getLineTop(line);
815 bounds
[all...]
/frameworks/base/core/java/android/widget/
H A DFastScroller.java576 final Rect bounds = mTempBounds;
577 measurePreview(mPrimaryText, bounds);
578 applyLayout(mPrimaryText, bounds);
579 measurePreview(mSecondaryText, bounds);
580 applyLayout(mSecondaryText, bounds);
584 bounds.left -= mPreviewImage.getPaddingLeft();
585 bounds.top -= mPreviewImage.getPaddingTop();
586 bounds.right += mPreviewImage.getPaddingRight();
587 bounds.bottom += mPreviewImage.getPaddingBottom();
588 applyLayout(mPreviewImage, bounds);
601 applyLayout(View view, Rect bounds) argument
1674 animateBounds(View v, Rect bounds) argument
[all...]
H A DListView.java3386 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument
3390 canvas.clipRect(bounds);
3392 final int span = bounds.bottom - bounds.top;
3394 bounds.top = bounds.bottom - height;
3397 drawable.setBounds(bounds);
3403 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument
3407 canvas.clipRect(bounds);
3409 final int span = bounds
3606 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument
[all...]
H A DPopupWindow.java455 * Sets the bounds used as the epicenter of the enter and exit transitions.
458 * the direction of travel. For popup windows, the anchor view bounds are
464 * @param bounds the epicenter bounds relative to the anchor view, or
469 public void setEpicenterBounds(Rect bounds) { argument
470 mEpicenterBounds = bounds;
825 * <p>Allows the popup window to extend beyond the bounds of the screen. By default the
1937 * Returns the window-relative epicenter bounds to be used by enter and
1943 * @return the window-relative epicenter bounds to be used by enter and
1959 final Rect bounds
[all...]
H A DRadialTimePickerView.java1311 private void getBoundsForVirtualView(int virtualViewId, Rect bounds) { argument
1343 bounds.set((int) (xCenter - radius), (int) (yCenter - radius),
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp350 static void doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, argument
364 GraphicsJNI::irect_to_jrect(ir, env, bounds);
368 jstring text, jint start, jint end, jint bidiFlags, jobject bounds) {
372 doTextBounds(env, textArray + start, end - start, bounds, *paint, typeface, bidiFlags);
377 jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) {
381 doTextBounds(env, textArray + index, count, bounds, *paint, typeface, bidiFlags);
367 getStringBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jstring text, jint start, jint end, jint bidiFlags, jobject bounds) argument
376 getCharArrayBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) argument
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp151 static jboolean getClipBounds(JNIEnv* env, jobject, jlong canvasHandle, jobject bounds) { argument
161 (void)GraphicsJNI::irect_to_jrect(ir, env, bounds);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java351 * Clip drawing to the bounds of the offscreen layer, omit at your own peril.
415 * using this method, especially if the bounds provided are large, or if
433 * @param bounds May be null. The maximum size the offscreen bitmap
441 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument
442 if (bounds == null) {
443 bounds = new RectF(getClipBounds());
445 return saveLayer(bounds.left, bounds.top, bounds.right, bounds
474 saveLayer(@ullable RectF bounds, @Nullable Paint paint) argument
527 saveLayerAlpha(@ullable RectF bounds, int alpha, @Saveflags int saveFlags) argument
543 saveLayerAlpha(@ullable RectF bounds, int alpha) argument
1121 getClipBounds(@ullable Rect bounds) argument
1238 nGetClipBounds(long nativeCanvas, Rect bounds) argument
[all...]

Completed in 6129 milliseconds

1234567