Searched refs:bounds (Results 26 - 50 of 235) sorted by relevance

12345678910

/frameworks/base/libs/hwui/
H A DOpenGLRenderer.cpp486 void OpenGLRenderer::calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) { argument
487 const Rect untransformedBounds(bounds);
489 currentTransform()->mapRect(bounds);
491 // Layers only make sense if they are in the framebuffer's bounds
492 bounds.doIntersect(mState.currentRenderTargetClip());
493 if (!bounds.isEmpty()) {
495 bounds.snapToPixelBoundaries();
498 // need to make sure the layer does not extend outside the bounds
503 bounds.doIntersect(previousViewport);
504 if (!bounds
519 updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, bool fboLayer, int alpha) argument
675 createFboLayer(Layer* layer, Rect& bounds, Rect& clip) argument
1039 dirtyLayerUnchecked(Rect& bounds, Region* region) argument
1069 const Rect& bounds = mLayers[i]; local
1247 Rect bounds = tr.getBounds(); local
1460 drawBitmaps(const SkBitmap* bitmap, AssetAtlas::Entry* entry, int bitmapCount, TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint) argument
1743 const Rect& bounds = buffer.getBounds(); local
1761 const Rect& bounds = buffer.getBounds(); local
2095 drawText(const glyph_t* glyphs, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
[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 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 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...]
/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...]
/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.java41 * {@link #CORNER_STYLE_FLAP} corners have a colored flap drawn within the bounds.
217 protected void onBoundsChange(Rect bounds) { argument
218 super.onBoundsChange(bounds);
229 final Rect bounds = getBounds();
230 if (bounds.isEmpty()) {
249 float left = bounds.left + mBorderWidth / 2;
250 float top = bounds.top + mBorderWidth / 2;
251 float right = bounds.right - mBorderWidth / 2;
252 float bottom = bounds.bottom - mBorderWidth / 2;
302 final Rect bounds
[all...]
H A DCircularBitmapDrawable.java101 Rect bounds = getBounds();
108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha);
114 canvas.drawCircle(bounds.centerX(), bounds.centerY(),
115 bounds.width() / 2f - mBorderWidth / 2, mBorderPaint);
141 // Fit bitmap to bounds.
145 // Translate bitmap to dst bounds.
H A DBasicBitmapDrawable.java376 final Rect bounds = getBounds();
377 if (bounds.isEmpty()) {
384 bounds.width(), bounds.height(),
385 bounds.height(), Integer.MAX_VALUE, getDecodeHorizontalCenter(),
397 // We may need to rotate the canvas, so we also have to rotate the bounds.
398 final Rect rotatedBounds = new Rect(bounds);
399 RectUtils.rotateRect(orientation, bounds.centerX(), bounds.centerY(), rotatedBounds);
403 canvas.rotate(orientation, bounds
[all...]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java36 final Rect bounds; field in class:AssistVisualizer.TextEntry
50 bounds = new Rect(left, top, left+node.getWidth(), top+node.getHeight());
118 Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString()
186 canvas.drawRect(te.bounds.left - mTmpLocation[0], te.bounds.top - mTmpLocation[1],
187 te.bounds.right - mTmpLocation[0], te.bounds.bottom - mTmpLocation[1],
195 canvas.drawRect(0, 0, te.bounds.right - te.bounds.left, te.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);
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/opt/chips/src/com/android/ex/chips/recipientchip/
H A DReplacementDrawableSpan.java33 final Rect bounds = getBounds();
36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin;
37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2)
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java196 Rect bounds = getBounds();
221 final float px = bounds.left;
222 final float py = bounds.top;
229 // Scale the bounds to match.
231 scaledBounds.left = bounds.left;
232 scaledBounds.top = bounds.top;
233 scaledBounds.right = bounds.left + Math.round(bounds.width() / scale);
234 scaledBounds.bottom = bounds.top + Math.round(bounds
[all...]
H A DAnimatedRotateDrawable.java59 final Rect bounds = drawable.getBounds();
60 final int w = bounds.right - bounds.left;
61 final int h = bounds.bottom - bounds.top;
68 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top);
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 DRotateDrawable.java146 final Rect bounds = d.getBounds();
147 final int w = bounds.right - bounds.left;
148 final int h = bounds.bottom - bounds.top;
154 canvas.rotate(st.mCurrentDegrees, px + bounds.left, py + bounds.top);
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...]
/frameworks/base/libs/hwui/hwui/
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;
H A DMinikinSkia.h39 void GetBounds(MinikinRect* bounds, uint32_t glyph_id,
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskStack.java58 /** Minimum size of an adjusted stack bounds relative to original stack bounds. Used to
78 /** For comparison with DisplayContent bounds. */
85 /** Stack bounds adjusted to screen content area (taking into account IM windows, etc.) */
89 * Fully adjusted IME bounds. These are different from {@link #mAdjustedBounds} because they
127 // If this is true, we are in the bounds animating mode.
131 // while resizing in the bounds animating mode.
134 // Temporary storage for the new bounds that should be used after the configuration change.
135 // Will be cleared once the client retrieves the new bounds via getBoundsForNewConfiguration().
168 * Set the bounds o
214 isFullscreenBounds(Rect bounds) argument
228 setAdjustedBounds(Rect bounds) argument
269 setBounds(Rect bounds) argument
350 updateDisplayInfo(Rect bounds) argument
1203 getDockSide(Rect bounds) argument
1215 getDockSideUnchecked(Rect bounds, Rect displayRect, int orientation) argument
1284 setSize(Rect bounds) argument
1297 setPinnedStackSize(Rect bounds, Rect tempTaskBounds) argument
1367 getFullScreenBounds(Rect bounds) argument
[all...]
/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);
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewActions.java371 final Rect bounds = new Rect();
372 view.getBoundsOnScreen(bounds);
377 if (!visibleDisplayBounds.intersect(bounds)) {
385 final float dragPointX = Math.max(Math.min(bounds.centerX(),
387 final float verticalOffset = bounds.height() * 0.7f;
388 final float dragPointY = Math.max(Math.min(bounds.top + verticalOffset,
451 final Rect bounds = new Rect();
452 view.getBoundsOnScreen(bounds);
457 if (!visibleDisplayBounds.intersect(bounds)) {
465 final float dragPointX = Math.max(Math.min(bounds
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLightStatusBarController.java117 Rect bounds = mFullscreenLight ? fullscreenStackBounds : dockedStackBounds;
118 if (bounds.isEmpty()) {
121 mIconController.setIconsDarkArea(bounds);
/frameworks/base/core/java/android/widget/
H A DFastScroller.java575 final Rect bounds = mTempBounds;
576 measurePreview(mPrimaryText, bounds);
577 applyLayout(mPrimaryText, bounds);
578 measurePreview(mSecondaryText, bounds);
579 applyLayout(mSecondaryText, bounds);
583 bounds.left -= mPreviewImage.getPaddingLeft();
584 bounds.top -= mPreviewImage.getPaddingTop();
585 bounds.right += mPreviewImage.getPaddingRight();
586 bounds.bottom += mPreviewImage.getPaddingBottom();
587 applyLayout(mPreviewImage, bounds);
600 applyLayout(View view, Rect bounds) argument
1666 animateBounds(View v, Rect bounds) argument
[all...]

Completed in 1314 milliseconds

12345678910