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

1234

/frameworks/base/libs/hwui/
H A DSnapshot.cpp95 const SkIRect& bounds = clipRegion->getBounds(); local
96 clipRect->set(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
H A DFontRenderer.cpp505 Rect bounds; local
506 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions);
508 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * radius;
509 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * radius;
516 int penX = radius - bounds.left;
517 int penY = radius - bounds.bottom;
533 void FontRenderer::initRender(const Rect* clip, Rect* bounds) { argument
537 mBounds = bounds;
570 renderText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, Rect* bounds) argument
584 renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds) argument
599 renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, SkPath* path, float hOffset, float vOffset, Rect* bounds) argument
[all...]
H A DFontRenderer.h54 // bounds is an out parameter
56 uint32_t len, int numGlyphs, int x, int y, Rect* bounds);
57 // bounds is an out parameter
59 uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds);
60 // bounds is an out parameter
62 uint32_t len, int numGlyphs, SkPath* path, float hOffset, float vOffset, Rect* bounds);
122 void initRender(const Rect* clip, Rect* bounds);
H A DSkiaShader.cpp181 SkiaLinearGradientShader::SkiaLinearGradientShader(float* bounds, uint32_t* colors, argument
185 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) {
187 points[0].set(bounds[0], bounds[1]);
188 points[1].set(bounds[2], bounds[3]);
/frameworks/base/core/java/android/widget/
H A DListView.java3098 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument
3102 canvas.clipRect(bounds);
3104 final int span = bounds.bottom - bounds.top;
3106 bounds.top = bounds.bottom - height;
3109 drawable.setBounds(bounds);
3115 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument
3119 canvas.clipRect(bounds);
3121 final int span = bounds
3304 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument
[all...]
/frameworks/ex/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java96 final Point bounds = getImageBounds(resolver, uri);
99 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
184 * Gets the image bounds
189 * @return The image bounds
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java129 * Draw in its bounds (set via setBounds) respecting optional effects such
158 public void setBounds(Rect bounds) { argument
159 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
163 * Return a copy of the drawable's bounds in the specified Rect (allocated
164 * by the caller). The bounds specify where this will draw when its draw()
167 * @param bounds Rect to receive the drawable's bounds (allocate
170 copyBounds(Rect bounds) argument
654 onBoundsChange(Rect bounds) argument
[all...]
H A DScaleDrawable.java210 protected void onBoundsChange(Rect bounds) { argument
214 int w = bounds.width();
219 int h = bounds.height();
225 Gravity.apply(mScaleState.mGravity, w, h, bounds, r, layoutDirection);
H A DGradientDrawable.java132 * Controls how the gradient is oriented relative to the drawable's bounds
565 RectF bounds = new RectF(mRect);
567 float x = bounds.width() / 2.0f;
568 float y = bounds.height() / 2.0f;
571 st.mThickness : bounds.width() / st.mThicknessRatio;
574 st.mInnerRadius : bounds.width() / st.mInnerRadiusRatio;
576 RectF innerBounds = new RectF(bounds);
579 bounds = new RectF(innerBounds);
580 bounds.inset(-thickness, -thickness);
598 ringPath.arcTo(bounds, 0.
[all...]
H A DLayerDrawable.java285 Rect bounds = layers[i].mDrawable.getBounds();
286 drawable.setBounds(bounds);
301 /** Specify modifiers to the bounds for the drawable[index].
487 protected void onBoundsChange(Rect bounds) { argument
493 r.mDrawable.setBounds(bounds.left + r.mInsetL + padL,
494 bounds.top + r.mInsetT + padT,
495 bounds.right - r.mInsetR - padR,
496 bounds.bottom - r.mInsetB - padB);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java336 Rectangle bounds = region.mArea.getBounds();
337 if (bounds.isEmpty()) {
342 rect.left = bounds.x;
343 rect.top = bounds.y;
344 rect.right = bounds.x + bounds.width;
345 rect.bottom = bounds.y + bounds.height;
H A DPath_Delegate.java195 /*package*/ static void native_computeBounds(int nPath, RectF bounds) { argument
201 pathDelegate.fillBounds(bounds);
554 * Fills the given {@link RectF} with the path bounds.
555 * @param bounds the RectF to be filled.
557 private void fillBounds(RectF bounds) { argument
559 bounds.left = (float)rect.getMinX();
560 bounds.right = (float)rect.getMaxX();
561 bounds.top = (float)rect.getMinY();
562 bounds.bottom = (float)rect.getMaxY();
704 * @param oval The bounds o
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DFixedSizeDrawable.java43 public void setBounds(Rect bounds) { argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java105 final Point bounds = getImageBounds(resolver, uri);
107 if (bounds == null || inputStream == null) {
110 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
207 * Gets the image bounds
212 * @return The image bounds
/frameworks/rs/
H A DrsFont.h88 RenderMode mode = FRAMEBUFFER, Rect *bounds = NULL,
133 void measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds);
152 Font::Rect *bounds = NULL,
155 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompatIcs.java144 public static void setBoundsInParent(Object info, Rect bounds) { argument
145 ((AccessibilityNodeInfo) info).setBoundsInParent(bounds);
148 public static void setBoundsInScreen(Object info, Rect bounds) { argument
149 ((AccessibilityNodeInfo) info).setBoundsInScreen(bounds);
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityInteractionClient.java607 * Applies compatibility scale to the info bounds if it is not equal to one.
609 * @param info The info whose bounds to scale.
616 Rect bounds = mTempBounds;
617 info.getBoundsInParent(bounds);
618 bounds.scale(scale);
619 info.setBoundsInParent(bounds);
621 info.getBoundsInScreen(bounds);
622 bounds.scale(scale);
623 info.setBoundsInScreen(bounds);
H A DAccessibilityNodeInfo.java779 * Gets the node bounds in parent coordinates.
781 * @param outBounds The output node bounds.
789 * Sets the node bounds in parent coordinates.
796 * @param bounds The node bounds.
800 public void setBoundsInParent(Rect bounds) { argument
802 mBoundsInParent.set(bounds.left, bounds.top, bounds.right, bounds
827 setBoundsInScreen(Rect bounds) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/accessibilityservice/
H A DInterrogationActivityTest.java106 // bounds
107 Rect bounds = new Rect();
108 button.getBoundsInParent(bounds);
109 assertEquals(0, bounds.left);
110 assertEquals(0, bounds.top);
111 assertEquals(160, bounds.right);
112 assertEquals(100, bounds.bottom);
379 // bounds
/frameworks/native/libs/ui/
H A DRegion.cpp85 const Rect bounds(getBounds());
87 mStorage.add(bounds);
256 Rect bounds; member in class:android::Region::rasterizer
264 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() {
273 bounds.top = storage.itemAt(0).top;
274 bounds.bottom = storage.top().bottom;
279 bounds.left = 0;
280 bounds.right = 0;
282 storage.add(bounds);
328 bounds
[all...]
/frameworks/av/services/audioflinger/
H A DFastMixer.cpp76 uint32_t bounds = 0; local
168 bounds = 0;
518 // advance the FIFO queue bounds
519 size_t i = bounds & (FastMixerDumpState::kSamplingN - 1);
520 bounds = (bounds & 0xFFFF0000) | ((bounds + 1) & 0xFFFF);
522 bounds += 0x10000;
523 } else if (!(bounds & (FastMixerDumpState::kSamplingN - 1))) {
569 dumpState->mBounds = bounds;
[all...]
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompat.java59 public void setBoundsInParent(Object info, Rect bounds); argument
61 public void setBoundsInScreen(Object info, Rect bounds); argument
274 public void setBoundsInParent(Object info, Rect bounds) { argument
279 public void setBoundsInScreen(Object info, Rect bounds) { argument
541 public void setBoundsInParent(Object info, Rect bounds) { argument
542 AccessibilityNodeInfoCompatIcs.setBoundsInParent(info, bounds);
546 public void setBoundsInScreen(Object info, Rect bounds) { argument
547 AccessibilityNodeInfoCompatIcs.setBoundsInScreen(info, bounds);
1283 * Gets the node bounds in parent coordinates.
1285 * @param outBounds The output node bounds
1302 setBoundsInParent(Rect bounds) argument
1326 setBoundsInScreen(Rect bounds) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java289 final RectF bounds = new RectF();
290 path.computeBounds(bounds, true);
294 mPath.addPath(path, -bounds.left + (getWidth() - bounds.width()) / 2.0f,
295 -bounds.top + (getHeight() - bounds.height()) / 2.0f);
/frameworks/native/services/surfaceflinger/
H A DTransform.h80 Rect transform(const Rect& bounds) const;
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java303 /** clip against the layer's bounds */
341 * @param bounds May be null. The maximum size the offscreen bitmap
348 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument
349 return native_saveLayer(mNativeCanvas, bounds,
373 * @param bounds The maximum size the offscreen bitmap needs to be
380 public int saveLayerAlpha(RectF bounds, int alpha, int saveFlags) { argument
382 return native_saveLayerAlpha(mNativeCanvas, bounds, alpha, saveFlags);
718 * (i.e. the bounds of the path intersects, but the path does not).
758 * Retrieve the clip bounds, returning true if they are non-empty.
760 * @param bounds Retur
764 getClipBounds(Rect bounds) argument
1629 native_saveLayer(int nativeCanvas, RectF bounds, int paint, int layerFlags) argument
1634 native_saveLayerAlpha(int nativeCanvas, RectF bounds, int alpha, int layerFlags) argument
1655 native_getClipBounds(int nativeCanvas, Rect bounds) argument
[all...]

Completed in 1345 milliseconds

1234