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

123456

/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...]
/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...]
H A DListView.java3295 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument
3299 canvas.clipRect(bounds);
3301 final int span = bounds.bottom - bounds.top;
3303 bounds.top = bounds.bottom - height;
3306 drawable.setBounds(bounds);
3312 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument
3316 canvas.clipRect(bounds);
3318 final int span = bounds
3515 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument
[all...]
H A DPopupWindow.java435 * Sets the bounds used as the epicenter of the enter and exit transitions.
438 * the direction of travel. For popup windows, the anchor view bounds are
444 * @param bounds the epicenter bounds relative to the anchor view, or
449 public void setEpicenterBounds(Rect bounds) { argument
450 mEpicenterBounds = bounds;
805 * <p>Allows the popup window to extend beyond the bounds of the screen. By default the
1867 * Returns the window-relative epicenter bounds to be used by enter and
1873 * @return the window-relative epicenter bounds to be used by enter and
1887 final Rect bounds
[all...]
H A DRadialTimePickerView.java1274 private void getBoundsForVirtualView(int virtualViewId, Rect bounds) { argument
1306 bounds.set((int) (xCenter - radius), (int) (yCenter - radius),
/frameworks/base/core/jni/android/graphics/
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
/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/graphics/java/android/graphics/drawable/
H A DAnimatedVectorDrawable.java245 protected void onBoundsChange(Rect bounds) { argument
246 mAnimatedVectorState.mVectorDrawable.setBounds(bounds);
H A DDrawableContainer.java232 protected void onBoundsChange(Rect bounds) { argument
234 mLastDrawable.setBounds(bounds);
237 mCurrDrawable.setBounds(bounds);
H A DLayerDrawable.java616 final Rect bounds = childDrawable.mDrawable.getBounds();
617 drawable.setBounds(bounds);
920 * Specifies how layer padding should affect the bounds of subsequent
1511 protected void onBoundsChange(Rect bounds) { argument
1512 updateLayerBounds(bounds);
1515 private void updateLayerBounds(Rect bounds) { argument
1518 updateLayerBoundsInternal(bounds);
1524 private void updateLayerBoundsInternal(Rect bounds) { argument
1556 container.set(bounds.left + insetL + paddingL, bounds
[all...]
H A DVectorDrawable.java294 // We will offset the bounds for drawBitmap, so copyBounds() here instead
311 // Invalid canvas matrix or drawable bounds. This would not affect existing bitmap
1803 long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache);
1802 nDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) argument
/frameworks/base/libs/hwui/
H A DDisplayListOp.h145 const std::vector<OpStatePair>& ops, const Rect& bounds) {
166 * Query the conservative, local bounds (unmapped) bounds of the op.
168 * returns true if bounds exist
192 // Helper method for determining op opaqueness. Assumes op fills its bounds in local
195 // ensure that local bounds cover mapped bounds
233 // Calculates bounds as smallest rect encompassing all points
246 // default empty constructor for bounds, to be overridden in child constructor body
567 SkRect bounds variable
144 multiDraw(OpenGLRenderer& renderer, Rect& dirty, const std::vector<OpStatePair>& ops, const Rect& bounds) argument
588 SkIRect bounds = mRegion->getBounds(); variable
1113 DrawVectorDrawableOp(VectorDrawableRoot* tree, const SkRect& bounds) argument
1310 DrawTextOp(const glyph_t* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument
1342 Rect bounds; variable
1343 getLocalBounds(bounds); variable
[all...]
H A DPathTessellator.cpp165 * Outset the bounds of point data (for line endpoints or points) to account for stroke
168 * bounds are in pre-scaled space.
170 void expandBoundsForStroke(Rect* bounds) const {
173 bounds->outset(fabs(inverseScaleX) * (0.5f + Vertex::GeometryFudgeFactor()),
177 bounds->outset(halfStrokeWidth + fabs(inverseScaleX) * Vertex::GeometryFudgeFactor(),
735 SkRect bounds = path.getBounds(); local
736 if (!bounds.isEmpty()) {
737 threshInvScaleX *= bounds.width() / (bounds.width() + paint->getStrokeWidth());
738 threshInvScaleY *= bounds
793 instanceVertices(VertexBuffer& srcBuffer, VertexBuffer& dstBuffer, const float* points, int count, Rect& bounds) argument
868 Rect bounds; local
[all...]
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 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;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java993 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument
998 bounds.left = Math.round(mTempMatrix[MATRIX_SIZE]);
999 bounds.right = Math.round(mTempMatrix[MATRIX_SIZE + 4]);
1000 bounds.top = Math.round(mTempMatrix[MATRIX_SIZE + 1]);
1001 bounds.bottom = Math.round(mTempMatrix[MATRIX_SIZE + 5]);
1002 bounds.sort();
/frameworks/base/services/core/java/com/android/server/am/
H A DTaskRecord.java258 // Last non-fullscreen bounds the task was launched in or resized to.
570 * Sets the last thumbnail with the current task bounds and the system orientation.
594 * Sets the last thumbnail with the current task bounds.
1249 Rect bounds = null;
1318 bounds = Rect.unflattenFromString(attrValue);
1384 task.updateOverrideConfiguration(bounds);
1394 private void adjustForMinimalTaskDimensions(Rect bounds) { argument
1395 if (bounds == null) {
1402 // to do this for the pinned stack as the bounds are controlled by the system.
1411 final boolean adjustWidth = minWidth > bounds
1442 updateOverrideConfiguration(Rect bounds) argument
1454 updateOverrideConfiguration(Rect bounds, @Nullable Rect insetBounds) argument
1512 calculateOverrideConfig(Rect bounds, Rect insetBounds, boolean overrideWidth, boolean overrideHeight) argument
1610 validateBounds(Rect bounds) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java450 Rect bounds) {
459 bounds.left = rect.x;
460 bounds.top = rect.y;
461 bounds.right = rect.x + rect.width;
462 bounds.bottom = rect.y + rect.height;
718 Rectangle2D bounds = shape.getBounds2D();
719 if (bounds.isEmpty()) {
729 // The stroke width is not consider for the size of the bounds so,
738 bounds.setRect(bounds
449 native_getClipBounds(long nativeCanvas, Rect bounds) argument
[all...]
H A DPaint_Delegate.java647 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags);
648 float res = bounds.right - bounds.left;
983 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags);
984 return bounds.right - bounds.left;
1036 String text, int start, int end, int bidiFlags, Rect bounds) {
1038 end - start, bidiFlags, bounds);
1043 char[] text, int index, int count, int bidiFlags, Rect bounds) {
1054 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds);
1035 nGetStringBounds(long nativePaint, long native_typeface, String text, int start, int end, int bidiFlags, Rect bounds) argument
1042 nGetCharArrayBounds(long nativePaint, long native_typeface, char[] text, int index, int count, int bidiFlags, Rect bounds) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/
H A DVectorDrawable_Delegate.java128 long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) {
132 Canvas_Delegate.native_translate(canvasWrapperPtr, bounds.left, bounds.top);
135 Canvas_Delegate.native_translate(canvasWrapperPtr, bounds.width(), 0);
142 bounds.offsetTo(0, 0);
143 nativePathRenderer.draw(canvasWrapperPtr, colorFilterPtr, bounds.width(), bounds.height());
147 return bounds.width() * bounds.height();
127 nDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) argument
/frameworks/minikin/libs/minikin/
H A DLayout.cpp848 ALOGE("cluster %zu (start %zu) out of bounds of count %zu",
963 void Layout::getBounds(MinikinRect* bounds) { argument
964 bounds->set(mBounds);
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp388 // subtract the transparent region and snap to the bounds
429 // display bounds.
434 // subtract the transparent region and snap to the bounds
565 // display bounds.
794 // Subtract the transparent region and snap to the bounds
795 Rect bounds = reduce(win, s.activeTransparentRegion); local
796 Rect frame(s.active.transform.transform(bounds));
843 // subtract the transparent region and snap to the bounds
844 Rect bounds = reduce(win, s.activeTransparentRegion); local
845 Rect frame(s.active.transform.transform(bounds));
[all...]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DVectorDrawableCompat.java154 // We will offset the bounds for drawBitmap, so copyBounds() here instead
167 // size first. This bitmap size is determined by the bounds and the
667 protected void onBoundsChange(Rect bounds) { argument
669 mDelegateDrawable.setBounds(bounds);
800 // The bitmap's size is the same as the bounds.
/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...]
H A DPaint.java1394 * metrics, and also increases top and bottom bounds to provide more space.
2193 * <p>The shaping bounds limit the amount of context available
2195 * These bounds typically reflect changes in bidi level or font
2260 * the bounds of the metric span enclosing the cursor in the direction of
2300 * the bounds of the metric span enclosing the cursor in the direction of
2347 * the bounds of the metric span enclosing the cursor in the direction of
2423 * Return in bounds (allocated by the caller) the smallest rectangle that
2426 * @param text String to measure and return its bounds
2429 * @param bounds Returns the unioned bounds o
2432 getTextBounds(String text, int start, int end, Rect bounds) argument
2452 getTextBounds(char[] text, int index, int count, Rect bounds) argument
2696 nGetStringBounds(long nativePaint, long typefacePtr, String text, int start, int end, int bidiFlags, Rect bounds) argument
2698 nGetCharArrayBounds(long nativePaint, long typefacePtr, char[] text, int index, int count, int bidiFlags, Rect bounds) argument
[all...]

Completed in 417 milliseconds

123456