/frameworks/base/libs/hwui/ |
H A D | DeferredDisplayList.cpp | 58 virtual bool coversBounds(const Rect& bounds) { return false; } argument 71 // NOTE: ignore empty bounds special case, since we don't merge across those ops 83 DEFER_LOGD("op intersects with op %p with bounds %f %f %f %f:", mOps[i].op, 112 const Rect& bounds = state->mBounds; local 117 renderer.drawScreenSpaceColorRect(bounds.left, bounds.top, bounds.right, bounds.bottom, 126 virtual bool coversBounds(const Rect& bounds) { argument 127 if (CC_LIKELY(!mAllOpsOpaque || !mBounds.contains(bounds) || coun [all...] |
H A D | FontRenderer.cpp | 613 Rect bounds; local 614 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); 617 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * intRadius; 618 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * intRadius; 639 int penX = intRadius - bounds.left; 640 int penY = intRadius - bounds.bottom; 642 if ((bounds.right > bounds 664 initRender(const Rect* clip, Rect* bounds, Functor* functor) argument 690 renderPosText(const 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, Functor* functor, bool forceFinish) argument 708 renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, Functor* functor) argument [all...] |
H A D | OpenGLRenderer.h | 163 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint); 194 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, 211 * additionally map the state's bounds from local to window coordinates. 389 bool quickRejectSetupScissor(const Rect& bounds, const SkPaint* paint = NULL) { argument 390 return quickRejectSetupScissor(bounds.left, bounds.top, 391 bounds.right, bounds.bottom, paint); 406 * Marks the specified region as dirty at the specified bounds. 408 void dirtyLayerUnchecked(Rect& bounds, Regio [all...] |
H A D | DisplayListOp.h | 149 const Vector<OpStatePair>& ops, const Rect& bounds) { 172 * Query the conservative, local bounds (unmapped) bounds of the op. 174 * returns true if bounds exist 206 // Helper method for determining op opaqueness. Assumes op fills its bounds in local 209 // ensure that local bounds cover mapped bounds 247 // Calculates bounds as smallest rect encompassing all points 260 // default empty constructor for bounds, to be overridden in child constructor body 577 SkRect bounds local 148 multiDraw(OpenGLRenderer& renderer, Rect& dirty, const Vector<OpStatePair>& ops, const Rect& bounds) argument 598 SkIRect bounds = mRegion->getBounds(); local 675 multiDraw(OpenGLRenderer& renderer, Rect& dirty, const Vector<OpStatePair>& ops, const Rect& bounds) argument 868 multiDraw(OpenGLRenderer& renderer, Rect& dirty, const Vector<OpStatePair>& ops, const Rect& bounds) argument 1371 DrawTextOp(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument 1404 Rect bounds; local 1410 multiDraw(OpenGLRenderer& renderer, Rect& dirty, const Vector<OpStatePair>& ops, const Rect& bounds) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 270 protected void onBoundsChange(Rect bounds) { argument 271 mState.mDrawable.setBounds(bounds); 282 final Rect bounds = getBounds(); 284 int w = bounds.width(); 289 int h = bounds.height(); 295 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
|
H A D | RippleDrawable.java | 86 * 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. */ 307 protected void onBoundsChange(Rect bounds) { argument 308 super.onBoundsChange(bounds); 311 mHotspotBounds.set(bounds); 390 * Specifies how layer padding should affect the bounds o [all...] |
H A D | NinePatchDrawable.java | 231 final Rect bounds = getBounds(); 244 canvas.translate(bounds.right - bounds.left, 0); 256 mNinePatch.draw(canvas, bounds, mPaint); 289 final Rect bounds = getBounds(); 290 if (bounds.isEmpty()) return; 296 outline.setRoundRect(bounds.left + outlineInsets.left, 297 bounds.top + outlineInsets.top, 298 bounds.right - outlineInsets.right, 299 bounds [all...] |
H A D | VectorDrawable.java | 250 final Rect bounds = getBounds(); 251 if (bounds.width() == 0 || bounds.height() == 0) { 259 canvas.translate(bounds.left, bounds.top); 261 canvas.translate(bounds.width(), 0); 272 canvas, bounds.width(), bounds.height(), colorFilter); 274 mVectorState.createCachedBitmapIfNeeded(bounds); 275 mVectorState.updateCachedBitmap(bounds); 704 updateCachedBitmap(Rect bounds) argument 710 createCachedBitmapIfNeeded(Rect bounds) argument [all...] |
H A D | GradientDrawable.java | 127 /** Radius is a fraction of the bounds size. */ 155 * Controls how the gradient is oriented relative to the drawable's bounds 659 RectF bounds = new RectF(mRect); 661 float x = bounds.width() / 2.0f; 662 float y = bounds.height() / 2.0f; 665 st.mThickness : bounds.width() / st.mThicknessRatio; 668 st.mInnerRadius : bounds.width() / st.mInnerRadiusRatio; 670 RectF innerBounds = new RectF(bounds); 673 bounds = new RectF(innerBounds); 674 bounds [all...] |
H A D | Drawable.java | 141 * Draw in its bounds (set via setBounds) respecting optional effects such 162 // first invalidate the previous bounds 174 public void setBounds(Rect bounds) { argument 175 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 179 * Return a copy of the drawable's bounds in the specified Rect (allocated 180 * by the caller). The bounds specify where this will draw when its draw() 183 * @param bounds Rec 186 copyBounds(Rect bounds) argument 817 onBoundsChange(Rect bounds) argument [all...] |
/frameworks/base/core/java/android/transition/ |
H A D | ChangeClipBounds.java | 36 private static final String PROPNAME_BOUNDS = "android:clipBounds:bounds"; 62 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight()); 63 values.values.put(PROPNAME_BOUNDS, bounds);
|
H A D | ChangeImageTransform.java | 46 private static final String PROPNAME_BOUNDS = "android:changeImageTransform:bounds"; 96 Rect bounds = new Rect(left, top, right, bottom); 97 values.put(PROPNAME_BOUNDS, bounds); 108 float scaleX = ((float) bounds.width()) / drawableWidth; 109 float scaleY = ((float) bounds.height()) / drawableHeight;
|
H A D | Crossfade.java | 55 private static final String PROPNAME_BOUNDS = "android:crossfade:bounds"; 195 // a reveal of the end scene over time. Also, animate the bounds of both drawables 243 Animator anim2 = ObjectAnimator.ofObject(startDrawable, "bounds", 249 Animator anim3 = ObjectAnimator.ofObject(endDrawable, "bounds", 262 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight()); 264 bounds.offset(view.getLeft(), view.getTop()); 266 transitionValues.values.put(PROPNAME_BOUNDS, bounds); 269 Log.d(LOG_TAG, "Captured bounds " + transitionValues.values.get(PROPNAME_BOUNDS)); 283 drawable.setBounds(bounds);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 335 Rectangle bounds = region.mArea.getBounds(); 336 if (bounds.isEmpty()) { 341 rect.left = bounds.x; 342 rect.top = bounds.y; 343 rect.right = bounds.x + bounds.width; 344 rect.bottom = bounds.y + bounds.height;
|
H A D | Paint_Delegate.java | 607 RectF bounds = delegate.measureText(text, index, count, null, 0, bidiFlags); 608 return bounds.right - bounds.left; 646 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags); 647 float res = bounds.right - bounds.left; 973 RectF bounds = delegate.measureText(text, index, count, widths, 0, bidiFlags); 974 return ((int) (bounds.right - bounds.left)); 1010 RectF bounds 1062 nativeGetStringBounds(long nativePaint, long native_typeface, String text, int start, int end, int bidiFlags, Rect bounds) argument 1069 nativeGetCharArrayBounds(long nativePaint, long native_typeface, char[] text, int index, int count, int bidiFlags, Rect bounds) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | PasswordTextView.java | 142 Rect bounds = getCharBounds(); 143 int charHeight = (bounds.bottom - bounds.top); 145 float charLength = bounds.right - bounds.left; 162 Rect bounds = new Rect(); 163 mDrawPaint.getTextBounds("0", 0, 1, bounds); 164 return bounds; 170 Rect bounds = getCharBounds(); 171 int charLength = bounds [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 377 * Clip drawing to the bounds of the offscreen layer, omit at your own peril. 433 * using this method, especially if the bounds provided are large, or if 450 * @param bounds May be null. The maximum size the offscreen bitmap 458 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument 459 if (bounds == null) { 460 bounds = new RectF(getClipBounds()); 462 return saveLayer(bounds.left, bounds.top, bounds.right, bounds 468 saveLayer(@ullable RectF bounds, @Nullable Paint paint) argument 517 saveLayerAlpha(@ullable RectF bounds, int alpha, @Saveflags int saveFlags) argument 527 saveLayerAlpha(@ullable RectF bounds, int alpha) argument 965 getClipBounds(@ullable Rect bounds) argument 2007 native_getClipBounds(long nativeCanvas, Rect bounds) argument [all...] |
H A D | NinePatch.java | 23 * bounds of the graphic. For a thorough explanation of a NinePatch image, 248 * @param bounds The location and size of the NinePatch. 251 * report, else a {@link Region} holding the parts of the specified bounds 254 public final Region getTransparentRegion(Rect bounds) { argument 255 long r = nativeGetTransparentRegion(mBitmap.ni(), mNativeChunk, bounds);
|
/frameworks/av/services/audioflinger/ |
H A D | FastThread.h | 68 uint32_t bounds; member in class:android::FastThread
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | ImageUtils.java | 101 final Point bounds = getImageBounds(factory); 102 if (bounds == null) { 108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); 190 * Gets the image bounds 194 * @return The image bounds
|
/frameworks/rs/ |
H A D | rsFont.h | 87 RenderMode mode = FRAMEBUFFER, Rect *bounds = NULL, 132 void measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds); 151 Font::Rect *bounds = NULL, 154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
|
/frameworks/support/v4/ics/android/support/v4/view/accessibility/ |
H A D | AccessibilityNodeInfoCompatIcs.java | 144 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/widget/ |
H A D | TabWidget.java | 345 final Rect bounds = mBounds; 346 bounds.left = selectedChild.getLeft(); 347 bounds.right = selectedChild.getRight(); 349 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()), 350 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight); 351 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(), 352 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskStack.java | 50 /** For comparison with DisplayContent bounds. */ 84 // TODO: remove bounds from log, they are always 0. 118 boolean setBounds(Rect bounds) { argument 122 mFullscreen = mTmpRect.equals(bounds); 125 if (mBounds.equals(bounds) && oldFullscreen == mFullscreen) { 129 mDimLayer.setBounds(bounds); 130 mAnimationBackgroundSurface.setBounds(bounds); 131 mBounds.set(bounds);
|
/frameworks/native/libs/ui/ |
H A D | Region.cpp | 196 outputRegion.mStorage.add(r.getBounds()); // to make region valid, mStorage must end with bounds 218 const Rect bounds(getBounds()); 220 mStorage.add(bounds); 409 Rect bounds; member in class:android::Region::rasterizer 417 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() { 426 bounds.top = storage.itemAt(0).top; 427 bounds.bottom = storage.top().bottom; 432 bounds.left = 0; 433 bounds.right = 0; 435 storage.add(bounds); [all...] |