/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 30 * The top-left of the transformed full rectangle will always be placed at (0, 0). 49 matrix.setTranslate(-fullRectF.left, -fullRectF.top); 53 fullRect.set((int) fullRectF.left, (int) fullRectF.top, (int) fullRectF.right, 55 partialRect.set((int) partialRectF.left, (int) partialRectF.top, (int) partialRectF.right, 64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
|
/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
H A D | CardViewDelegate.java | 31 void setShadowPadding(int left, int top, int right, int bottom); argument
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DockedDividerUtils.java | 48 outRect.top = position + dividerSize; 58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are 64 // If the bounds are either on the top or left of the screen, rather move it further to the 65 // left/top to make it more offscreen. If they are on the bottom or right, push them off the 71 if (bounds.top >= bounds.bottom) { 72 bounds.top = bounds.bottom - 1; 78 if (bounds.bottom <= bounds.top) { 79 bounds.bottom = bounds.top + 1; 93 return bounds.top - dividerSize; 101 int start = isHorizontalDivision ? insets.top [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); 468 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); 483 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument 486 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); 514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument 522 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); 533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); 540 * @param top The top of a rectangle to add to the path 545 public void addRect(float left, float top, floa argument 565 addOval(float left, float top, float right, float bottom, Direction dir) argument 600 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument 625 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument 655 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument 828 native_arcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument 832 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument 834 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument 837 native_addArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument 840 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument 843 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument [all...] |
H A D | YuvImage.java | 28 * region by left, top, width and height. 139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); 182 int[] calculateOffsets(int left, int top) { argument 185 offsets = new int[] {top * mStrides[0] + left, 186 mHeight * mStrides[0] + top / 2 * mStrides[1] 192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; 218 // Make sure left, top, width and height are all even. 222 rect.top &= ~1; 224 rect.bottom = rect.top + height;
|
H A D | Region.java | 71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 76 public Region(int left, int top, int right, int bottom) { argument 78 nativeSetRect(mNativeRegion, left, top, right, bottom); 97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 102 public boolean set(int left, int top, int right, int bottom) { argument 103 return nativeSetRect(mNativeRegion, left, top, right, bottom); 182 return quickContains(r.left, r.top, r.right, r.bottom); 191 public native boolean quickContains(int left, int top, int right, argument 200 return quickReject(r.left, r.top, r.right, r.bottom); 208 public native boolean quickReject(int left, int top, in argument 267 op(int left, int top, int right, int bottom, Op op) argument 412 nativeSetRect(long native_dst, int left, int top, int right, int bottom) argument 420 nativeOp(long native_dst, int left, int top, int right, int bottom, int op) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | AnimateableViewBounds.java | 62 outline.setRoundRect(mClipRect.left, mClipRect.top, 67 outline.setRect(mClipRect.left, mClipRect.top, 91 /** Sets the top clip. */ 92 public void setClipTop(int top) { argument 93 mClipRect.top = top; 97 /** Returns the top clip. */ 99 return mClipRect.top; 114 mClipBounds.set(Math.max(0, mClipRect.left), Math.max(0, mClipRect.top),
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 79 final int top = (getHeight() - height) / 2; 84 mPatch3.setBounds(left, top, left + height, top + width); 89 mPatch1.setBounds(left, top, left + width, top + height); 95 mPatch2.setBounds(left, top, left + width, top + height);
|
H A D | PathDestructionActivity.java | 59 float left, top, right, bottom; 61 top = MathUtils.random(getHeight() - MIN_SIZE); 63 bottom = top + MathUtils.random(getHeight() - top); 65 path.moveTo(left, top); 66 path.lineTo(right, top);
|
H A D | GradientsActivity.java | 221 float top = 40.0f; 228 mMatrix.postTranslate(right, top); 231 canvas.drawRect(right - mDrawWidth, top, right, top + mDrawHeight, mPaint); 233 top += 40.0f + mDrawHeight; 237 mMatrix.postTranslate(left, top); 240 canvas.drawRect(left, top, right, top + mDrawHeight, mPaint); 244 top -= 40.0f + mDrawHeight; 254 top [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 245 // Draw scrim on top of parent. 250 float top = bounds.top + mBorderWidth / 2; 258 flapCornerRectF.offsetTo(left, top); 263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); 305 float top = bounds.top; 313 fakeCornerRectF.offsetTo(left, top); 315 mCompatibilityModePath.moveTo(left, top); 316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | RecentApplicationsBackground.java | 60 protected boolean setFrame(int left, int top, int right, int bottom) { argument 62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { 65 return super.setFrame(left, top, right, bottom); 100 final int top = chld.top - bkg.top; 115 background.setBounds(left, top, right, bottom); 144 r.left = r.top = Integer.MAX_VALUE; 151 r.top = Math.min(r.top, [all...] |
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/ |
H A D | NavigationBarButton.java | 56 public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) { argument 58 if (top != null) top = TintedDrawable.wrap(top.mutate()); 61 super.setCompoundDrawables(left, top, right, bottom); 66 public void setCompoundDrawablesRelative(Drawable start, Drawable top, Drawable end, argument 69 if (top != null) top = TintedDrawable.wrap(top.mutate()); 72 super.setCompoundDrawablesRelative(start, top, en [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
H A D | ReplacementDrawableSpan.java | 36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; 39 fm.top = fm.ascent; 51 public void draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top, argument 54 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2;
|
/frameworks/base/libs/hwui/ |
H A D | Outline.h | 42 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { argument 47 && top == mBounds.top 55 mBounds.set(left, top, right, bottom); 61 mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), 64 mPath.addRect(left, top, right, bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableView.java | 100 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 101 super.onLayout(changed, left, top, right, bottom); 107 float top = mClipTopAmount; 109 return localX >= -slop && localY >= top - slop && localX < ((mRight - mLeft) + slop) && 213 * Sets the amount this view should be clipped from the top. This is used when an expanded 214 * notification is scrolling in the top or bottom stack. 216 * @param clipTopAmount The amount of pixels this view should be clipped from top. 255 * such that the child appears to be going away to the top. 1 291 * view,we also need to subtract the clipTopAmount from the top. This is needed in order to 301 outRect.bottom = (int) (outRect.top [all...] |
H A D | ExpandableOutlineView.java | 83 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom); 114 protected void setOutlineRect(float left, float top, float right, float bottom) { argument 118 mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom); 121 mOutlineRect.bottom = (int) Math.max(top, mOutlineRect.bottom);
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
H A D | Scope.java | 86 * Note that these scopes are added on top of the already existing scopes. 115 ScopeEntry top = sScopeItems.get(); 116 while (top != null) { 117 ScopeProvider provider = top.mProvider; 135 top = top.mParent; 142 ScopeEntry top = sScopeItems.get(); 145 while (top != null && (filePath == null || locations == null)) { 146 ScopeProvider provider = top.mProvider; 148 locations = findAbsoluteLocationFrom(top, (LocationScopeProvide 158 findAbsoluteLocationFrom(ScopeEntry entry, LocationScopeProvider top) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | SimpleItemAnimator.java | 79 int oldTop = preLayoutInfo.top; 82 int newTop = postLayoutInfo == null ? disappearingItemView.getTop() : postLayoutInfo.top; 103 || preLayoutInfo.top != postLayoutInfo.top)) { 108 return animateMove(viewHolder, preLayoutInfo.left, preLayoutInfo.top, 109 postLayoutInfo.left, postLayoutInfo.top); 121 if (preInfo.left != postInfo.left || preInfo.top != postInfo.top) { 127 preInfo.left, preInfo.top, postInfo.left, postInfo.top); [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | CustomLayout.java | 30 public LayoutParams(int left, int top, int right, int bottom) { argument 33 mTop = top;
|
/frameworks/rs/java/ |
H A D | Android.mk | 3 # Only build our tests if we doing a top-level build. Do not build the
|
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/ |
H A D | ViewCompatJellybeanMr1.java | 55 public static void setPaddingRelative(View view, int start, int top, int end, int bottom) { argument 56 view.setPaddingRelative(start, top, end, bottom);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_deblocking.c | 133 u32 top; member in struct:__anon639 390 top-most edge of a macroblock. Macroblock types are checked 420 top-most edge of a macroblock. Macroblock types are checked 563 mb pointer to macroblock data structure of the top-left 1149 /* top edges */ 1154 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 4; 1159 bS[0].top [all...] |
/frameworks/support/v4/donut/android/support/v4/view/ |
H A D | WindowInsetsCompat.java | 47 * Returns the top system window inset in pixels. 53 * @return The top system window inset 127 * <p>A round window's left, top, right and bottom edges reach all the way to the 152 * @param top New top inset in pixels 157 public WindowInsetsCompat replaceSystemWindowInsets(int left, int top, int right, int bottom) { argument 174 * Returns the top stable inset in pixels. 182 * @return The top stable inset
|
/frameworks/base/core/java/android/view/animation/ |
H A D | ClipRectAnimation.java | 58 int t = mFromRect.top + (int) ((mToRect.top - mFromRect.top) * it);
|